bcm27xx: update 6.1 patches to latest version
[openwrt/staging/svanheule.git] / target / linux / bcm27xx / patches-6.1 / 950-0820-overlays-Add-bmp380-to-i2c-sensor-overlay.patch
1 From e1016d61e3dcb058932e8ec5072f2c4bbb05fcb7 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Sun, 30 Jul 2023 18:27:03 +0100
4 Subject: [PATCH] overlays: Add bmp380 to i2c-sensor overlay
5
6 Add support for the BMP380 pressor sensor to the i2c-sensor overlay.
7
8 See: https://github.com/raspberrypi/linux/issues/5558
9
10 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
11 ---
12 arch/arm/boot/dts/overlays/README | 7 +++++--
13 .../boot/dts/overlays/i2c-sensor-common.dtsi | 19 ++++++++++++++++++-
14 2 files changed, 23 insertions(+), 3 deletions(-)
15
16 --- a/arch/arm/boot/dts/overlays/README
17 +++ b/arch/arm/boot/dts/overlays/README
18 @@ -2052,8 +2052,8 @@ Info: Adds support for a number of I2C
19 light level and chemical sensors on i2c_arm
20 Load: dtoverlay=i2c-sensor,<param>=<val>
21 Params: addr Set the address for the BH1750, BME280, BME680,
22 - BMP280, CCS811, DS1621, HDC100X, JC42, LM75,
23 - MCP980x, MPU6050, MPU9250, MS5637, MS5803,
24 + BMP280, BMP380, CCS811, DS1621, HDC100X, JC42,
25 + LM75, MCP980x, MPU6050, MPU9250, MS5637, MS5803,
26 MS5805, MS5837, MS8607, SHT3x or TMP102
27
28 aht10 Select the Aosong AHT10 temperature and humidity
29 @@ -2075,6 +2075,9 @@ Params: addr Set the
30 bmp280 Select the Bosch Sensortronic BMP280
31 Valid addresses 0x76-0x77, default 0x76
32
33 + bmp380 Select the Bosch Sensortronic BMP380
34 + Valid addresses 0x76-0x77, default 0x76
35 +
36 bno055 Select the Bosch Sensortronic BNO055 IMU
37 Valid address 0x28-0x29, default 0x29
38
39 --- a/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
40 +++ b/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
41 @@ -493,11 +493,27 @@
42 };
43 };
44
45 + fragment@33 {
46 + target = <&i2cbus>;
47 + __dormant__ {
48 + #address-cells = <1>;
49 + #size-cells = <0>;
50 + status = "okay";
51 +
52 + bmp380: bmp380@76 {
53 + compatible = "bosch,bmp380";
54 + reg = <0x76>;
55 + status = "okay";
56 + };
57 + };
58 + };
59 +
60 __overrides__ {
61 bme280 = <0>,"+0";
62 bmp085 = <0>,"+1";
63 bmp180 = <0>,"+2";
64 bmp280 = <0>,"+3";
65 + bmp380 = <0>,"+33";
66 htu21 = <0>,"+4";
67 lm75 = <0>,"+5";
68 lm75addr = <&lm75>,"reg:0";
69 @@ -535,7 +551,8 @@
70 <&ms5637>,"reg:0", <&ms5803>,"reg:0", <&ms5805>,"reg:0",
71 <&ms5837>,"reg:0", <&ms8607>,"reg:0",
72 <&mpu6050>,"reg:0", <&mpu9250>,"reg:0",
73 - <&bno055>,"reg:0", <&sht4x>,"reg:0";
74 + <&bno055>,"reg:0", <&sht4x>,"reg:0",
75 + <&bmp380>,"reg:0";
76 int_pin = <&max30102>, "interrupts:0",
77 <&mpu6050>, "interrupts:0",
78 <&mpu9250>, "interrupts:0";