Skip to content

Commit c0e2005

Browse files
pelwellpopcornmix
authored andcommitted
overlays: Add aht20 support to i2c-sensor
See: #6803 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent 1e50769 commit c0e2005

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2427,6 +2427,9 @@ Params: addr Set the address for the ADT7410, AS73211,
24272427
aht10 Select the Aosong AHT10 temperature and humidity
24282428
sensor
24292429

2430+
aht20 Select the Aosong AHT20 temperature and humidity
2431+
sensor
2432+
24302433
as73211 Select the AMS AS73211 XYZ true color sensor
24312434
Valid addresses 0x74-0x77, default 0x74
24322435

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,20 @@
666666
};
667667
};
668668

669+
fragment@43 {
670+
target = <&i2cbus>;
671+
__dormant__ {
672+
#address-cells = <1>;
673+
#size-cells = <0>;
674+
status = "okay";
675+
676+
aht20: aht20@38 {
677+
compatible = "aosong,aht20";
678+
reg = <0x38>;
679+
};
680+
};
681+
};
682+
669683
fragment@99 {
670684
target = <&gpio>;
671685
__dormant__ {
@@ -721,6 +735,7 @@
721735
as73211 = <0>,"+40+99";
722736
as7331 = <0>,"+41+99";
723737
adxl345 = <0>,"+42+99";
738+
aht20 = <0>,"+43";
724739

725740
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
726741
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",

0 commit comments

Comments
 (0)