<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From e1016d61e3dcb058932e8ec5072f2c4bbb05fcb7 Mon Sep 17 00:00:00 2001
From: Phil Elwell &lt;phil@raspberrypi.com&gt;
Date: Sun, 30 Jul 2023 18:27:03 +0100
Subject: [PATCH] overlays: Add bmp380 to i2c-sensor overlay

Add support for the BMP380 pressor sensor to the i2c-sensor overlay.

See: https://github.com/raspberrypi/linux/issues/5558

Signed-off-by: Phil Elwell &lt;phil@raspberrypi.com&gt;
---
 arch/arm/boot/dts/overlays/README             |  7 +++++--
 .../boot/dts/overlays/i2c-sensor-common.dtsi  | 19 ++++++++++++++++++-
 2 files changed, 23 insertions(+), 3 deletions(-)

--- a/arch/arm/boot/dts/overlays/README
+++ b/arch/arm/boot/dts/overlays/README
@@ -2052,8 +2052,8 @@ Info:   Adds support for a number of I2C
         light level and chemical sensors on i2c_arm
 Load:   dtoverlay=i2c-sensor,&lt;param&gt;=&lt;val&gt;
 Params: addr                    Set the address for the BH1750, BME280, BME680,
-                                BMP280, CCS811, DS1621, HDC100X, JC42, LM75,
-                                MCP980x, MPU6050, MPU9250, MS5637, MS5803,
+                                BMP280, BMP380, CCS811, DS1621, HDC100X, JC42,
+                                LM75, MCP980x, MPU6050, MPU9250, MS5637, MS5803,
                                 MS5805, MS5837, MS8607, SHT3x or TMP102
 
         aht10                   Select the Aosong AHT10 temperature and humidity
@@ -2075,6 +2075,9 @@ Params: addr                    Set the
         bmp280                  Select the Bosch Sensortronic BMP280
                                 Valid addresses 0x76-0x77, default 0x76
 
+        bmp380                  Select the Bosch Sensortronic BMP380
+                                Valid addresses 0x76-0x77, default 0x76
+
         bno055                  Select the Bosch Sensortronic BNO055 IMU
                                 Valid address 0x28-0x29, default 0x29
 
--- a/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
+++ b/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
@@ -493,11 +493,27 @@
 		};
 	};
 
+	fragment@33 {
+		target = &lt;&amp;i2cbus&gt;;
+		__dormant__ {
+			#address-cells = &lt;1&gt;;
+			#size-cells = &lt;0&gt;;
+			status = "okay";
+
+			bmp380: bmp380@76 {
+				compatible = "bosch,bmp380";
+				reg = &lt;0x76&gt;;
+				status = "okay";
+			};
+		};
+	};
+
 	__overrides__ {
 		bme280 = &lt;0&gt;,"+0";
 		bmp085 = &lt;0&gt;,"+1";
 		bmp180 = &lt;0&gt;,"+2";
 		bmp280 = &lt;0&gt;,"+3";
+		bmp380 = &lt;0&gt;,"+33";
 		htu21 = &lt;0&gt;,"+4";
 		lm75 = &lt;0&gt;,"+5";
 		lm75addr = &lt;&amp;lm75&gt;,"reg:0";
@@ -535,7 +551,8 @@
 			&lt;&amp;ms5637&gt;,"reg:0", &lt;&amp;ms5803&gt;,"reg:0", &lt;&amp;ms5805&gt;,"reg:0",
 			&lt;&amp;ms5837&gt;,"reg:0", &lt;&amp;ms8607&gt;,"reg:0",
 			&lt;&amp;mpu6050&gt;,"reg:0", &lt;&amp;mpu9250&gt;,"reg:0",
-			&lt;&amp;bno055&gt;,"reg:0", &lt;&amp;sht4x&gt;,"reg:0";
+			&lt;&amp;bno055&gt;,"reg:0", &lt;&amp;sht4x&gt;,"reg:0",
+			&lt;&amp;bmp380&gt;,"reg:0";
 		int_pin = &lt;&amp;max30102&gt;, "interrupts:0",
 			&lt;&amp;mpu6050&gt;, "interrupts:0",
 			&lt;&amp;mpu9250&gt;, "interrupts:0";
</pre></body></html>