1 From fa6a21d6e2e8d5416ec9d2ca7841777aa0822796 Mon Sep 17 00:00:00 2001
2 From: Mart Lubbers <mart@martlubbers.net>
3 Date: Tue, 11 May 2021 11:51:35 +0200
4 Subject: [PATCH] overlays: add bh1750 and ccs811 to i2c-sensor (#4334)
6 See: https://github.com/raspberrypi/linux/pull/4334
8 arch/arm/boot/dts/overlays/README | 15 +++++---
9 .../boot/dts/overlays/i2c-sensor-overlay.dts | 35 ++++++++++++++++++-
10 2 files changed, 45 insertions(+), 5 deletions(-)
12 --- a/arch/arm/boot/dts/overlays/README
13 +++ b/arch/arm/boot/dts/overlays/README
14 @@ -1482,11 +1482,15 @@ Params: abx80x Select o
18 -Info: Adds support for a number of I2C barometric pressure and temperature
20 +Info: Adds support for a number of I2C barometric pressure, temperature,
21 + light level and chemical sensors on i2c_arm
22 Load: dtoverlay=i2c-sensor,<param>=<val>
23 -Params: addr Set the address for the BME280, BME680, BMP280,
24 - DS1621, HDC100X, LM75, SHT3x or TMP102
25 +Params: addr Set the address for the BH1750, BME280, BME680,
26 + BMP280, CCS811, DS1621, HDC100X, LM75, SHT3x or
29 + bh1750 Select the Rohm BH1750 ambient light sensor
30 + Valid addresses 0x23 or 0x5c, default 0x23
32 bme280 Select the Bosch Sensortronic BME280
33 Valid addresses 0x76-0x77, default 0x76
34 @@ -1501,6 +1505,9 @@ Params: addr Set the
35 bmp280 Select the Bosch Sensortronic BMP280
36 Valid addresses 0x76-0x77, default 0x76
38 + ccs811 Select the AMS CCS811 digital gas sensor
39 + Valid addresses 0x5a-0x5b, default 0x5b
41 ds1621 Select the Dallas Semiconductors DS1621 temp
42 sensor. Valid addresses 0x48-0x4f, default 0x48
44 --- a/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
45 +++ b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
51 + target = <&i2c_arm>;
53 + #address-cells = <1>;
58 + compatible = "ccs811";
66 + target = <&i2c_arm>;
68 + #address-cells = <1>;
73 + compatible = "bh1750";
81 addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
82 <&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
83 - <&ds1621>,"reg:0", <&bme680>,"reg:0";
84 + <&ds1621>,"reg:0", <&bme680>,"reg:0", <&ccs811>,"reg:0",
93 + ccs811 = <0>, "+17";
94 + bh1750 = <0>, "+18";