Skip to content

Commit e1016d6

Browse files
committed
overlays: Add bmp380 to i2c-sensor overlay
Add support for the BMP380 pressor sensor to the i2c-sensor overlay. See: #5558 Signed-off-by: Phil Elwell <[email protected]>
1 parent 5fb3b30 commit e1016d6

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,8 +2052,8 @@ Info: Adds support for a number of I2C barometric pressure, temperature,
20522052
light level and chemical sensors on i2c_arm
20532053
Load: dtoverlay=i2c-sensor,<param>=<val>
20542054
Params: addr Set the address for the BH1750, BME280, BME680,
2055-
BMP280, CCS811, DS1621, HDC100X, JC42, LM75,
2056-
MCP980x, MPU6050, MPU9250, MS5637, MS5803,
2055+
BMP280, BMP380, CCS811, DS1621, HDC100X, JC42,
2056+
LM75, MCP980x, MPU6050, MPU9250, MS5637, MS5803,
20572057
MS5805, MS5837, MS8607, SHT3x or TMP102
20582058

20592059
aht10 Select the Aosong AHT10 temperature and humidity
@@ -2075,6 +2075,9 @@ Params: addr Set the address for the BH1750, BME280, BME680,
20752075
bmp280 Select the Bosch Sensortronic BMP280
20762076
Valid addresses 0x76-0x77, default 0x76
20772077

2078+
bmp380 Select the Bosch Sensortronic BMP380
2079+
Valid addresses 0x76-0x77, default 0x76
2080+
20782081
bno055 Select the Bosch Sensortronic BNO055 IMU
20792082
Valid address 0x28-0x29, default 0x29
20802083

arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,11 +493,27 @@
493493
};
494494
};
495495

496+
fragment@33 {
497+
target = <&i2cbus>;
498+
__dormant__ {
499+
#address-cells = <1>;
500+
#size-cells = <0>;
501+
status = "okay";
502+
503+
bmp380: bmp380@76 {
504+
compatible = "bosch,bmp380";
505+
reg = <0x76>;
506+
status = "okay";
507+
};
508+
};
509+
};
510+
496511
__overrides__ {
497512
bme280 = <0>,"+0";
498513
bmp085 = <0>,"+1";
499514
bmp180 = <0>,"+2";
500515
bmp280 = <0>,"+3";
516+
bmp380 = <0>,"+33";
501517
htu21 = <0>,"+4";
502518
lm75 = <0>,"+5";
503519
lm75addr = <&lm75>,"reg:0";
@@ -535,7 +551,8 @@
535551
<&ms5637>,"reg:0", <&ms5803>,"reg:0", <&ms5805>,"reg:0",
536552
<&ms5837>,"reg:0", <&ms8607>,"reg:0",
537553
<&mpu6050>,"reg:0", <&mpu9250>,"reg:0",
538-
<&bno055>,"reg:0", <&sht4x>,"reg:0";
554+
<&bno055>,"reg:0", <&sht4x>,"reg:0",
555+
<&bmp380>,"reg:0";
539556
int_pin = <&max30102>, "interrupts:0",
540557
<&mpu6050>, "interrupts:0",
541558
<&mpu9250>, "interrupts:0";

0 commit comments

Comments
 (0)