-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Add support for adt7410 (module and overlay) #5738
Conversation
File sizes are fairly small: |
This needs a few small changes:
Otherwise it looks good. |
Thanks for the quick review! How is this? I appreciate the extra help. |
Looks good. I'll let the build checks run, squash them down to two commits, and merge offline. |
On second thoughts (first thought, if I'm honest), as this is such a simple overlay for an I2C-attached sensor, I'd rather add it to the |
Putting this into i2c-sensor sounds very reasonable. Unfortunately I haven't been successful at testing this approach on my system.
The simpler adt7410.dtbo did load successfully. This is new territory for me so I'm not sure how to debug. I also tried loading i2c-sensors,adt7410,addr=0x4a via config.txt with no luck. I must be doing something wrong when compiling the i2c-sensor overlay, so here are my steps:
If you are confident that everything is fine and will just work with a complete kennel build, no need to help me troubleshoot my broken testing process. I'll trust you. Thanks again for your work! |
There was an unwanted underscore in one of the labels, which then ended up being undefined. I've tested and pushed a modified version. Until recently the dtoverlay command (not the config.txt directive) would fail because it lacked support for the newer overlay features - that should all be fixed in the latest version - but I think the i2c-sensor overlay is sufficiently simple that it would work even with older installs. |
By the way, I would have written your compilation step like this:
Some of the difference are cosmetic or nice-to-haves, but some of them (the |
See #5738 Signed-off-by: Phil Elwell <[email protected]>
This is great, thanks! Your updated i2c-sensor-common.dtsi is working on my system when compiled correctly, thanks for the tips. Don't we still need CONFIG_SENSORS_ADT7410=m added to the configs? |
You're right - commit 057e09b added. |
Perfect. Thank you so much! |
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi/linux#5742 kernel: drm/vc4: vec: Add the margin properties to the connector See: raspberrypi/linux#5745 kernel: drm: panel: jdi-lt070me05000: Add prepare_upstream_first flag See: raspberrypi/linux#5569 kernel: Add support for adt7410 (module and overlay) See: raspberrypi/linux#5738 kernel: drivers: media: cfe: Find the source pads on the sensor entity See: raspberrypi/linux#5744 kernel: dtoverlays: Add option for cam0 to camera-mux-Nport overlays See: raspberrypi/linux#5752 kernel: ASoC: dwc: Permit sample rates up to 384kHz See: raspberrypi/linux#5751
See: raspberrypi/linux#5742 kernel: drm/vc4: vec: Add the margin properties to the connector See: raspberrypi/linux#5745 kernel: drm: panel: jdi-lt070me05000: Add prepare_upstream_first flag See: raspberrypi/linux#5569 kernel: Add support for adt7410 (module and overlay) See: raspberrypi/linux#5738 kernel: drivers: media: cfe: Find the source pads on the sensor entity See: raspberrypi/linux#5744 kernel: dtoverlays: Add option for cam0 to camera-mux-Nport overlays See: raspberrypi/linux#5752 kernel: ASoC: dwc: Permit sample rates up to 384kHz See: raspberrypi/linux#5751
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See #5738 Signed-off-by: Phil Elwell <[email protected]>
See raspberrypi/linux#5738 Signed-off-by: Phil Elwell <[email protected]>
See raspberrypi/linux#5738 Signed-off-by: Phil Elwell <[email protected]>
See raspberrypi/linux#5738 Signed-off-by: Phil Elwell <[email protected]>
commit d4573bf8ff30cf2c10fe1fa6a5b18bc9375f7a17 from https://github.com/raspberrypi/linux.git rpi-6.6.y See raspberrypi/linux#5738 Signed-off-by: Phil Elwell <[email protected]> Signed-off-by: Rajeshkumar Ramasamy <[email protected]>
commit d4573bf8ff30cf2c10fe1fa6a5b18bc9375f7a17 from https://github.com/raspberrypi/linux.git rpi-6.6.y See raspberrypi/linux#5738 Signed-off-by: Phil Elwell <[email protected]> Signed-off-by: Rajeshkumar Ramasamy <[email protected]>
commit d4573bf8ff30cf2c10fe1fa6a5b18bc9375f7a17 from https://github.com/raspberrypi/linux.git rpi-6.6.y See raspberrypi/linux#5738 Signed-off-by: Phil Elwell <[email protected]> Signed-off-by: Rajeshkumar Ramasamy <[email protected]>
commit d4573bf8ff30cf2c10fe1fa6a5b18bc9375f7a17 from https://github.com/raspberrypi/linux.git rpi-6.6.y See raspberrypi/linux#5738 Signed-off-by: Phil Elwell <[email protected]> Signed-off-by: Rajeshkumar Ramasamy <[email protected]>
commit d4573bf8ff30cf2c10fe1fa6a5b18bc9375f7a17 from https://github.com/raspberrypi/linux.git rpi-6.6.y See raspberrypi/linux#5738 Signed-off-by: Phil Elwell <[email protected]> Signed-off-by: Rajeshkumar Ramasamy <[email protected]>
commit d4573bf8ff30cf2c10fe1fa6a5b18bc9375f7a17 from https://github.com/raspberrypi/linux.git rpi-6.6.y See raspberrypi/linux#5738 Signed-off-by: Phil Elwell <[email protected]> Signed-off-by: Rajeshkumar Ramasamy <[email protected]>
commit d4573bf8ff30cf2c10fe1fa6a5b18bc9375f7a17 from https://github.com/raspberrypi/linux.git rpi-6.6.y See raspberrypi/linux#5738 Signed-off-by: Phil Elwell <[email protected]> Signed-off-by: Rajeshkumar Ramasamy <[email protected]>
The Analog Devices ADT7410 is a high precision temperature sensor with growing popularity. This PR seeks to add the module and overlay.