Skip to content

Commit

Permalink
Add adt7410 overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
aSmig committed Nov 23, 2023
1 parent 846fddc commit 7e1c3ff
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,12 @@ Params: cs SPI bus Chip Select (default 1)
www.kernel.org/doc/Documentation/devicetree/bindings/input/ads7846.txt


Name: adt7410
Info: Analog Devices ADT7410 and ADT7420 temperature sensors
Load: dtoverlay=adt7410,<param>=<val>
Params: addr Overrides the I2C address (default 0x48)


Name: adv7282m
Info: Analog Devices ADV7282M analogue video to CSI2 bridge.
Uses Unicam1, which is the standard camera connector on most Pi
Expand Down
29 changes: 29 additions & 0 deletions arch/arm/boot/dts/overlays/adt7410-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* Analog Devices ADT7410 digital temperature sensor
*/

/dts-v1/;
/plugin/;

/ {
compatible = "brcm,bcm2835";

fragment@0 {
target = <&i2c_arm>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

adt7410: adt7410@48 {
compatible = "adi,adt7410", "adi,adt7420";
reg = <0x48>;
status = "okay";
};
};
};

__overrides__ {
addr = <&adt7410>,"reg:0";
};
};

1 comment on commit 7e1c3ff

@aSmig
Copy link
Contributor Author

@aSmig aSmig commented on 7e1c3ff Nov 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might make more sense to integrate into i2c-sensor-common.dts, but I didn't manage to get that working.

Please sign in to comment.