overlays: i2c-sensor: Add adt7410 support
authorKenny <aSmig+github@romhat.net>
Thu, 23 Nov 2023 00:22:37 +0000 (16:22 -0800)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:16 +0000 (11:35 +0000)
See https://github.com/raspberrypi/linux/pull/5738

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
arch/arm/boot/dts/overlays/README
arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi

index b2e48d2..20a5501 100644 (file)
@@ -2148,10 +2148,14 @@ Name:   i2c-sensor
 Info:   Adds support for a number of I2C barometric pressure, temperature,
         light level and chemical sensors on i2c_arm
 Load:   dtoverlay=i2c-sensor,<param>=<val>
-Params: addr                    Set the address for the BH1750, BME280, BME680,
-                                BMP280, BMP380, CCS811, DS1621, HDC100X, JC42,
-                                LM75, MCP980x, MPU6050, MPU9250, MS5637, MS5803,
-                                MS5805, MS5837, MS8607, SHT3x or TMP102
+Params: addr                    Set the address for the ADT7410, BH1750, BME280,
+                                BME680, BMP280, BMP380, CCS811, DS1621, HDC100X,
+                                JC42, LM75, MCP980x, MPU6050, MPU9250, MS5637,
+                                MS5803, MS5805, MS5837, MS8607, SHT3x or TMP102
+
+        adt7410                 Select the Analog Devices ADT7410 and ADT7420
+                                temperature sensors
+                                Valid address 0x48-0x4b, default 0x48
 
         aht10                   Select the Aosong AHT10 temperature and humidity
                                 sensor
index 5b65f86..2f7d1fe 100755 (executable)
                };
        };
 
+       fragment@34 {
+               target = <&i2cbus>;
+               __dormant__ {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "okay";
+
+                       adt7410: adt7410@48 {
+                               compatible = "adi,adt7410", "adi,adt7420";
+                               reg = <0x48>;
+                               status = "okay";
+                       };
+               };
+       };
+
        __overrides__ {
                bme280 = <0>,"+0";
                bmp085 = <0>,"+1";
                mpu9250 = <0>,"+29";
                bno055 = <0>,"+31";
                sht4x = <0>,"+32";
+               adt7410 = <0>,"+34";
 
                addr =  <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
                        <&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
                        <&ms5837>,"reg:0", <&ms8607>,"reg:0",
                        <&mpu6050>,"reg:0", <&mpu9250>,"reg:0",
                        <&bno055>,"reg:0", <&sht4x>,"reg:0",
-                       <&bmp380>,"reg:0";
+                       <&bmp380>,"reg:0", <&adt7410>,"reg:0";
                int_pin = <&max30102>, "interrupts:0",
                        <&mpu6050>, "interrupts:0",
                        <&mpu9250>, "interrupts:0";