Skip to content

Commit cf623b1

Browse files
committed
dtoverlays: Add BMP580 family to i2c-sensor
They're supported by the standard BMP280 driver, so only needed the overlay configuration. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent 66c97a8 commit cf623b1

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2423,7 +2423,7 @@ Info: Adds support for a number of I2C barometric pressure, temperature,
24232423
Load: dtoverlay=i2c-sensor,<param>=<val>
24242424
Params: addr Set the address for the ADS7828, ADS7830,
24252425
ADT7410, AS73211, AS7331, BH1750, BME280,
2426-
BME680, BMP280, BMP380, CCS811, DS1621,
2426+
BME680, BMP280, BMP380, BMP580, CCS811, DS1621,
24272427
HDC100X, HDC3020, JC42, LM75, MCP980x,
24282428
MPU6050, MPU9250, MS5637, MS5803, MS5805,
24292429
MS5837, MS8607, SHT3x or TMP102
@@ -2478,6 +2478,10 @@ Params: addr Set the address for the ADS7828, ADS7830,
24782478
bmp380 Select the Bosch Sensortronic BMP380
24792479
Valid addresses 0x76-0x77, default 0x76
24802480

2481+
bmp580 Select the Bosch Sensortronic BMP580, BMP581,
2482+
and BMP585
2483+
Valid addresses 0x46-0x47, default 0x46
2484+
24812485
bno055 Select the Bosch Sensortronic BNO055 IMU
24822486
Valid address 0x28-0x29, default 0x29
24832487

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,21 @@
756756
};
757757
};
758758

759+
fragment@49 {
760+
target = <&i2cbus>;
761+
__dormant__ {
762+
#address-cells = <1>;
763+
#size-cells = <0>;
764+
status = "okay";
765+
766+
bmp580: bmp580@46 {
767+
compatible = "bosch,bmp580";
768+
reg = <0x46>;
769+
status = "okay";
770+
};
771+
};
772+
};
773+
759774
fragment@99 {
760775
target = <&gpio>;
761776
__dormant__ {
@@ -817,6 +832,7 @@
817832
ads7828 = <0>,"+46";
818833
ads7830 = <0>,"+47";
819834
adxl355 = <0>,"+48";
835+
bmp580 = <0>,"+49";
820836

821837
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
822838
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
@@ -830,7 +846,7 @@
830846
<&hdc3020>,"reg:0", <&as73211>,"reg:0",
831847
<&as7331>,"reg:0", <&adxl345>,"reg:0",
832848
<&ads7828>,"reg:0", <&ads7830>,"reg:0",
833-
<&adxl355>,"reg:0";
849+
<&adxl355>,"reg:0", <&bmp580>,"reg:0";
834850
int_pin = <&int_pins>, "brcm,pins:0",
835851
<&int_pins>, "reg:0",
836852
<&max30102>, "interrupts:0",

0 commit comments

Comments
 (0)