Skip to content

Commit

Permalink
overlays: Add bmp380 to i2c-sensor overlay
Browse files Browse the repository at this point in the history
Add support for the BMP380 pressor sensor to the i2c-sensor overlay.

See: raspberrypi#5558

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
  • Loading branch information
pelwell committed Jul 30, 2023
1 parent 5fb3b30 commit e1016d6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
7 changes: 5 additions & 2 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -2052,8 +2052,8 @@ Info: Adds support for a number of I2C barometric pressure, temperature,
light level and chemical sensors on i2c_arm
Load: dtoverlay=i2c-sensor,<param>=<val>
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
Expand All @@ -2075,6 +2075,9 @@ Params: addr Set the address for the BH1750, BME280, BME680,
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

Expand Down
19 changes: 18 additions & 1 deletion arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -493,11 +493,27 @@
};
};

fragment@33 {
target = <&i2cbus>;
__dormant__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

bmp380: bmp380@76 {
compatible = "bosch,bmp380";
reg = <0x76>;
status = "okay";
};
};
};

__overrides__ {
bme280 = <0>,"+0";
bmp085 = <0>,"+1";
bmp180 = <0>,"+2";
bmp280 = <0>,"+3";
bmp380 = <0>,"+33";
htu21 = <0>,"+4";
lm75 = <0>,"+5";
lm75addr = <&lm75>,"reg:0";
Expand Down Expand Up @@ -535,7 +551,8 @@
<&ms5637>,"reg:0", <&ms5803>,"reg:0", <&ms5805>,"reg:0",
<&ms5837>,"reg:0", <&ms8607>,"reg:0",
<&mpu6050>,"reg:0", <&mpu9250>,"reg:0",
<&bno055>,"reg:0", <&sht4x>,"reg:0";
<&bno055>,"reg:0", <&sht4x>,"reg:0",
<&bmp380>,"reg:0";
int_pin = <&max30102>, "interrupts:0",
<&mpu6050>, "interrupts:0",
<&mpu9250>, "interrupts:0";
Expand Down

0 comments on commit e1016d6

Please sign in to comment.