kernel: bump 6.1 to 6.1.66
[openwrt/staging/stintel.git] / target / linux / bcm27xx / patches-6.1 / 950-0445-overlays-Add-i2c-sensor-support-for-AHT10.patch
1 From 028a15d99246ddf1ac126586a5680faab59e6a86 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Tue, 25 Oct 2022 20:27:00 +0100
4 Subject: [PATCH] overlays: Add i2c-sensor support for AHT10
5
6 Add support for the Aosong AHT10 temperature and humidity sensor.
7
8 See: https://github.com/raspberrypi/linux/issues/5222
9
10 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
11 ---
12 arch/arm/boot/dts/overlays/README | 3 +++
13 arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi | 15 +++++++++++++++
14 2 files changed, 18 insertions(+)
15
16 --- a/arch/arm/boot/dts/overlays/README
17 +++ b/arch/arm/boot/dts/overlays/README
18 @@ -1933,6 +1933,9 @@ Params: addr Set the
19 BMP280, CCS811, DS1621, HDC100X, LM75, SHT3x or
20 TMP102
21
22 + aht10 Select the Aosong AHT10 temperature and humidity
23 + sensor
24 +
25 bh1750 Select the Rohm BH1750 ambient light sensor
26 Valid addresses 0x23 or 0x5c, default 0x23
27
28 --- a/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
29 +++ b/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
30 @@ -309,6 +309,20 @@
31 };
32 };
33
34 + fragment@20 {
35 + target = <&i2cbus>;
36 + __dormant__ {
37 + #address-cells = <1>;
38 + #size-cells = <0>;
39 + status = "okay";
40 +
41 + aht10: aht10@38 {
42 + compatible = "aosong,aht10";
43 + reg = <0x38>;
44 + };
45 + };
46 + };
47 +
48 __overrides__ {
49 bme280 = <0>,"+0";
50 bmp085 = <0>,"+1";
51 @@ -331,6 +345,7 @@
52 ccs811 = <0>, "+17";
53 bh1750 = <0>, "+18";
54 max30102 = <0>,"+19";
55 + aht10 = <0>,"+20";
56
57 addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
58 <&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",