difos/target/linux/bcm27xx/patches-6.12/950-0956-overlays-Add-aht20-support-to-i2c-sensor.patch
Álvaro Fernández Rojas 8f9e91ad03 bcm27xx: add 6.12 patches from RPi repo
These patches were generated from:
https://github.com/raspberrypi/linux/commits/rpi-6.12.y
With the following command:
git format-patch -N v6.12.27..HEAD
(HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e)

Exceptions:
- (def)configs patches
- github workflows patches
- applied & reverted patches
- readme patches
- wireless patches

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2025-05-21 11:32:18 +02:00

56 lines
1.7 KiB
Diff

From a65a245a969cb643d652d3ac13131acc39d11797 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Tue, 22 Apr 2025 15:16:50 +0100
Subject: [PATCH] overlays: Add aht20 support to i2c-sensor
See: https://github.com/raspberrypi/linux/pull/6803
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(+)
--- a/arch/arm/boot/dts/overlays/README
+++ b/arch/arm/boot/dts/overlays/README
@@ -2427,6 +2427,9 @@ Params: addr Set the
aht10 Select the Aosong AHT10 temperature and humidity
sensor
+ aht20 Select the Aosong AHT20 temperature and humidity
+ sensor
+
as73211 Select the AMS AS73211 XYZ true color sensor
Valid addresses 0x74-0x77, default 0x74
--- a/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
+++ b/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
@@ -666,6 +666,20 @@
};
};
+ fragment@43 {
+ target = <&i2cbus>;
+ __dormant__ {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+
+ aht20: aht20@38 {
+ compatible = "aosong,aht20";
+ reg = <0x38>;
+ };
+ };
+ };
+
fragment@99 {
target = <&gpio>;
__dormant__ {
@@ -721,6 +735,7 @@
as73211 = <0>,"+40+99";
as7331 = <0>,"+41+99";
adxl345 = <0>,"+42+99";
+ aht20 = <0>,"+43";
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",