-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adafruit_feather_nrf52840 dts not setting I2C controller compat (was: SSD1306 DTS properties not being generated in devicetree_unfixed.h) #33529
Comments
i2c node of adafruit_feather_nrf52840 board is missing compatible property, "nordic,nrf-twim" or "nordic,nrf-twi" diff --git a/boards/arm/adafruit_feather_nrf52840/adafruit_feather_nrf52840.dts b/boards/arm/adafruit_feather_nrf52840/adafruit_feather_nrf52840.dts
index bb142eb9b6..4ca4c78b15 100644
--- a/boards/arm/adafruit_feather_nrf52840/adafruit_feather_nrf52840.dts
+++ b/boards/arm/adafruit_feather_nrf52840/adafruit_feather_nrf52840.dts
@@ -76,6 +76,7 @@
};
&i2c0 {
+ compatible = "nordic,nrf-twim";
status = "okay";
sda-gpios = <&gpio0 12 0>;
scl-gpios = <&gpio0 11 0>; |
Thank you! I don't think I would have been able to find that one myself. |
Closing thee issue as it seems @jfischer-no comment resolves this. |
@galak I don’t think it should be closed, this should really be fixed in the board definition file for the adafruit board. |
Also I’m not sure that the SSD1306 driver should necessarily depend on compatibility with a Nordic implementation, seeing as they are not related. |
@jeremyherbert I dont think the SSD1306 driver depends on compatibility with a nordic implementation. I think the issue is that there i2c controller devicetree isn't configured properly and thus the SSD1306 driver can't build as it can't find a proper i2c controller. |
Ah, that makes sense. I will create a pull request with this updated line in the next 24h. (If no one has in the meantime) |
Describe the bug
When building a project with the SSD1306 enabled and set up, I get build errors indicating that devicetree properties are not being generated in the
devicetree_unfixed.h
file, for example:To Reproduce
Add the following file as
display.overlay
to a blank project in the project root directory:edit prj.conf to contain:
Steps to reproduce the behavior:
DTC_OVERLAY_FILE=display.overlay BOARD=adafruit_feather_nrf52840 west build
in the project folderExpected behavior
The devicetree properties should be generated in the header file.
Impact
Showstopper, code doesn't build.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: