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
6 Add support for the BMP380 pressor sensor to the i2c-sensor overlay.
8 See: https://github.com/raspberrypi/linux/issues/5558
10 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
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(-)
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
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
33 + bmp380 Select the Bosch Sensortronic BMP380
34 + Valid addresses 0x76-0x77, default 0x76
36 bno055 Select the Bosch Sensortronic BNO055 IMU
37 Valid address 0x28-0x29, default 0x29
39 --- a/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
40 +++ b/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
48 + #address-cells = <1>;
53 + compatible = "bosch,bmp380";
68 lm75addr = <&lm75>,"reg:0";
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",
76 int_pin = <&max30102>, "interrupts:0",
77 <&mpu6050>, "interrupts:0",
78 <&mpu9250>, "interrupts:0";