Skip to content

Commit 77a01f7

Browse files
aSmigpelwell
authored andcommitted
overlays: i2c-sensor: Add adt7410 support
See #5738 Signed-off-by: Phil Elwell <[email protected]>
1 parent a984fda commit 77a01f7

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2148,10 +2148,14 @@ Name: i2c-sensor
21482148
Info: Adds support for a number of I2C barometric pressure, temperature,
21492149
light level and chemical sensors on i2c_arm
21502150
Load: dtoverlay=i2c-sensor,<param>=<val>
2151-
Params: addr Set the address for the BH1750, BME280, BME680,
2152-
BMP280, BMP380, CCS811, DS1621, HDC100X, JC42,
2153-
LM75, MCP980x, MPU6050, MPU9250, MS5637, MS5803,
2154-
MS5805, MS5837, MS8607, SHT3x or TMP102
2151+
Params: addr Set the address for the ADT7410, BH1750, BME280,
2152+
BME680, BMP280, BMP380, CCS811, DS1621, HDC100X,
2153+
JC42, LM75, MCP980x, MPU6050, MPU9250, MS5637,
2154+
MS5803, MS5805, MS5837, MS8607, SHT3x or TMP102
2155+
2156+
adt7410 Select the Analog Devices ADT7410 and ADT7420
2157+
temperature sensors
2158+
Valid address 0x48-0x4b, default 0x48
21552159

21562160
aht10 Select the Aosong AHT10 temperature and humidity
21572161
sensor

arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,21 @@
508508
};
509509
};
510510

511+
fragment@34 {
512+
target = <&i2cbus>;
513+
__dormant__ {
514+
#address-cells = <1>;
515+
#size-cells = <0>;
516+
status = "okay";
517+
518+
adt7410: adt7410@48 {
519+
compatible = "adi,adt7410", "adi,adt7420";
520+
reg = <0x48>;
521+
status = "okay";
522+
};
523+
};
524+
};
525+
511526
__overrides__ {
512527
bme280 = <0>,"+0";
513528
bmp085 = <0>,"+1";
@@ -543,6 +558,7 @@
543558
mpu9250 = <0>,"+29";
544559
bno055 = <0>,"+31";
545560
sht4x = <0>,"+32";
561+
adt7410 = <0>,"+34";
546562

547563
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
548564
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
@@ -552,7 +568,7 @@
552568
<&ms5837>,"reg:0", <&ms8607>,"reg:0",
553569
<&mpu6050>,"reg:0", <&mpu9250>,"reg:0",
554570
<&bno055>,"reg:0", <&sht4x>,"reg:0",
555-
<&bmp380>,"reg:0";
571+
<&bmp380>,"reg:0", <&adt7410>,"reg:0";
556572
int_pin = <&max30102>, "interrupts:0",
557573
<&mpu6050>, "interrupts:0",
558574
<&mpu9250>, "interrupts:0";

0 commit comments

Comments
 (0)