mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-15 04:42:02 +00:00
65 lines
2.1 KiB
Diff
65 lines
2.1 KiB
Diff
From 6512ff1935fcc7489d3a9b976306be28ca3a8dff Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.com>
|
|
Date: Tue, 25 Oct 2022 20:27:00 +0100
|
|
Subject: [PATCH 460/726] overlays: Add i2c-sensor support for AHT10
|
|
|
|
Add support for the Aosong AHT10 temperature and humidity sensor.
|
|
|
|
See: https://github.com/raspberrypi/linux/issues/5222
|
|
|
|
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
|
---
|
|
arch/arm/boot/dts/overlays/README | 3 +++
|
|
arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi | 15 +++++++++++++++
|
|
2 files changed, 18 insertions(+)
|
|
|
|
diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README
|
|
index 90d861b85c9e..92b0dcb3c9f9 100644
|
|
--- a/arch/arm/boot/dts/overlays/README
|
|
+++ b/arch/arm/boot/dts/overlays/README
|
|
@@ -1933,6 +1933,9 @@ Params: addr Set the address for the BH1750, BME280, BME680,
|
|
BMP280, CCS811, DS1621, HDC100X, LM75, SHT3x or
|
|
TMP102
|
|
|
|
+ aht10 Select the Aosong AHT10 temperature and humidity
|
|
+ sensor
|
|
+
|
|
bh1750 Select the Rohm BH1750 ambient light sensor
|
|
Valid addresses 0x23 or 0x5c, default 0x23
|
|
|
|
diff --git a/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi b/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
|
|
index 2716898e24a4..231db98890fb 100755
|
|
--- a/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
|
|
+++ b/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
|
|
@@ -309,6 +309,20 @@ max30102: max30102@57 {
|
|
};
|
|
};
|
|
|
|
+ fragment@20 {
|
|
+ target = <&i2cbus>;
|
|
+ __dormant__ {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ status = "okay";
|
|
+
|
|
+ aht10: aht10@38 {
|
|
+ compatible = "aosong,aht10";
|
|
+ reg = <0x38>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
__overrides__ {
|
|
bme280 = <0>,"+0";
|
|
bmp085 = <0>,"+1";
|
|
@@ -331,6 +345,7 @@ __overrides__ {
|
|
ccs811 = <0>, "+17";
|
|
bh1750 = <0>, "+18";
|
|
max30102 = <0>,"+19";
|
|
+ aht10 = <0>,"+20";
|
|
|
|
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
|
|
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
|
|
--
|
|
2.33.1
|
|
|