immortalwrt/target/linux/bcm27xx/patches-6.6/950-1524-add-shtc3-to-i2c-sensors.patch
Álvaro Fernández Rojas 5872633b9d bcm27xx: pull 6.6 patches from RPi repo
Adds latest 6.6 patches from the Raspberry Pi repository.

These patches were generated from:
https://github.com/raspberrypi/linux/commits/rpi-6.6.y/
With the following command:
git format-patch -N v6.6.83..HEAD
(HEAD -> 08d4e8f52256bd422d8a1f876411603f627d0a82)

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
(cherry picked from commit 251f76c1c67d62c585d799c38dab31e1385d2ad5)
2025-03-16 21:08:29 +01:00

58 lines
1.7 KiB
Diff

From aabe16b3cdc6172618803ed7a6002d1099d306e5 Mon Sep 17 00:00:00 2001
From: James Sarrett <jsarrett@gmail.com>
Date: Sun, 26 Jan 2025 22:07:02 -0800
Subject: [PATCH] add shtc3 to i2c-sensors
This patch adds the shtc3 device tree parameters to the i2c-sensors
overlay. The shtc3 driver needs no other configuration parameters, as the
i2c address is permanently baked in to the silicon.
---
arch/arm/boot/dts/overlays/README | 3 +++
.../arm/boot/dts/overlays/i2c-sensor-common.dtsi | 16 ++++++++++++++++
2 files changed, 19 insertions(+)
--- a/arch/arm/boot/dts/overlays/README
+++ b/arch/arm/boot/dts/overlays/README
@@ -2570,6 +2570,9 @@ Params: addr Set the
humidity sensors. Valid addresses 0x44-0x45,
default 0x44
+ shtc3 Select the Sensirion SHTC3 temperature and
+ humidity sensors.
+
si7020 Select the Silicon Labs Si7013/20/21 humidity/
temperature sensor
--- a/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
+++ b/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
@@ -547,6 +547,21 @@
};
};
+ fragment@36 {
+ target = <&i2cbus>;
+ __dormant__ {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+
+ shtc3: shtc3@70 {
+ compatible = "sensirion,shtc3";
+ reg = <0x70>;
+ status = "okay";
+ };
+ };
+ };
+
fragment@99 {
target = <&gpio>;
__dormant__ {
@@ -595,6 +610,7 @@
sht4x = <0>,"+32";
adt7410 = <0>,"+34";
ina238 = <0>,"+35";
+ shtc3 = <0>,"+36";
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",