| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | From 13047f38ca9adef0c0a0b0afce420dc912290d35 Mon Sep 17 00:00:00 2001 |
| 2 | From: Willem Remie <w.remie@drebble.io> |
| 3 | Date: Thu, 9 Jan 2020 21:16:49 +0100 |
| 4 | Subject: [PATCH] add BME680 to i2c-sensor overlay |
| 5 | |
| 6 | --- |
| 7 | arch/arm/boot/dts/overlays/README | 7 +++++-- |
| 8 | .../boot/dts/overlays/i2c-sensor-overlay.dts | 19 ++++++++++++++++++- |
| 9 | 2 files changed, 23 insertions(+), 3 deletions(-) |
| 10 | |
| 11 | --- a/arch/arm/boot/dts/overlays/README |
| 12 | +++ b/arch/arm/boot/dts/overlays/README |
| 13 | @@ -1159,12 +1159,15 @@ Name: i2c-sensor |
| 14 | Info: Adds support for a number of I2C barometric pressure and temperature |
| 15 | sensors on i2c_arm |
| 16 | Load: dtoverlay=i2c-sensor,<param>=<val> |
| 17 | -Params: addr Set the address for the BME280, BMP280, DS1621, |
| 18 | - HDC100X, LM75, SHT3x or TMP102 |
| 19 | +Params: addr Set the address for the BME280, BME680, BMP280, |
| 20 | + DS1621, HDC100X, LM75, SHT3x or TMP102 |
| 21 | |
| 22 | bme280 Select the Bosch Sensortronic BME280 |
| 23 | Valid addresses 0x76-0x77, default 0x76 |
| 24 | |
| 25 | + bme680 Select the Bosch Sensortronic BME680 |
| 26 | + Valid addresses 0x76-0x77, default 0x76 |
| 27 | + |
| 28 | bmp085 Select the Bosch Sensortronic BMP085 |
| 29 | |
| 30 | bmp180 Select the Bosch Sensortronic BMP180 |
| 31 | --- a/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts |
| 32 | +++ b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts |
| 33 | @@ -216,10 +216,26 @@ |
| 34 | }; |
| 35 | }; |
| 36 | |
| 37 | + fragment@14 { |
| 38 | + target = <&i2c_arm>; |
| 39 | + __dormant__ { |
| 40 | + #address-cells = <1>; |
| 41 | + #size-cells = <0>; |
| 42 | + status = "okay"; |
| 43 | + |
| 44 | + bme680: bme680@76 { |
| 45 | + compatible = "bosch,bme680"; |
| 46 | + reg = <0x76>; |
| 47 | + status = "okay"; |
| 48 | + }; |
| 49 | + }; |
| 50 | + }; |
| 51 | + |
| 52 | + |
| 53 | __overrides__ { |
| 54 | addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0", |
| 55 | <&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0", |
| 56 | - <&ds1621>,"reg:0"; |
| 57 | + <&ds1621>,"reg:0", <&bme680>,"reg:0"; |
| 58 | bme280 = <0>,"+0"; |
| 59 | bmp085 = <0>,"+1"; |
| 60 | bmp180 = <0>,"+2"; |
| 61 | @@ -235,5 +251,6 @@ |
| 62 | sht3x = <0>,"+11"; |
| 63 | ds1621 = <0>,"+12"; |
| 64 | max17040 = <0>,"+13"; |
| 65 | + bme680 = <0>,"+14"; |
| 66 | }; |
| 67 | }; |