Skip to content

Commit cd6fe8d

Browse files
pelwellpopcornmix
authored andcommitted
overlays: Add i2c-sensor support for AHT10
Add support for the Aosong AHT10 temperature and humidity sensor. See: #5222 Signed-off-by: Phil Elwell <[email protected]>
1 parent df4c644 commit cd6fe8d

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
@@ -1933,6 +1933,9 @@ Params: addr Set the address for the BH1750, BME280, BME680,
19331933
BMP280, CCS811, DS1621, HDC100X, LM75, SHT3x or
19341934
TMP102
19351935

1936+
aht10 Select the Aosong AHT10 temperature and humidity
1937+
sensor
1938+
19361939
bh1750 Select the Rohm BH1750 ambient light sensor
19371940
Valid addresses 0x23 or 0x5c, default 0x23
19381941

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,20 @@
309309
};
310310
};
311311

312+
fragment@20 {
313+
target = <&i2cbus>;
314+
__dormant__ {
315+
#address-cells = <1>;
316+
#size-cells = <0>;
317+
status = "okay";
318+
319+
aht10: aht10@38 {
320+
compatible = "aosong,aht10";
321+
reg = <0x38>;
322+
};
323+
};
324+
};
325+
312326
__overrides__ {
313327
bme280 = <0>,"+0";
314328
bmp085 = <0>,"+1";
@@ -331,6 +345,7 @@
331345
ccs811 = <0>, "+17";
332346
bh1750 = <0>, "+18";
333347
max30102 = <0>,"+19";
348+
aht10 = <0>,"+20";
334349

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

0 commit comments

Comments
 (0)