1 From 72b5fe0084ce231fc0325cdf6151da0e83f5ef4e Mon Sep 17 00:00:00 2001
2 From: Alex Tucker <alex@floop.org.uk>
3 Date: Tue, 3 Jan 2017 21:30:41 +0000
4 Subject: [PATCH] Add support for Silicon Labs Si7013/20/21
5 humidity/temperature sensor. (#1765)
8 arch/arm/boot/dts/overlays/README | 3 ++
9 arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts | 49 +++++++++++++----------
10 2 files changed, 31 insertions(+), 21 deletions(-)
12 diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README
13 index 7aee1af..44ad21f 100644
14 --- a/arch/arm/boot/dts/overlays/README
15 +++ b/arch/arm/boot/dts/overlays/README
16 @@ -543,6 +543,9 @@ Params: bmp085 Select the Bosch sensortronic BMP085
18 bmp280 Select the Bosch sensortronic BMP280
20 + si7020 Select the Silicon Labs Si7013/20/21 humidity/
25 Info: Enable the i2c_bcm2708 driver for the i2c0 bus. Not all pin combinations
26 diff --git a/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
27 index f6d134c..31bda8d 100644
28 --- a/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
29 +++ b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
31 -// Definitions for a few digital barometric pressure and temperature sensors
32 +// Definitions for I2C based sensors using the Industrial IO interface.
37 - compatible = "brcm,bcm2708";
38 + compatible = "brcm,bcm2708";
41 - target = <&i2c_arm>;
43 - #address-cells = <1>;
47 + target = <&i2c_arm>;
49 + #address-cells = <1>;
54 - compatible = "bosch,bmp085";
56 - default-oversampling = <3>;
60 + compatible = "bosch,bmp085";
62 + default-oversampling = <3>;
67 - compatible = "bosch,bmp280";
74 + compatible = "bosch,bmp280";
80 + compatible = "si7020";
88 bmp085 = <&bmp085>,"status";
89 bmp280 = <&bmp280>,"status";
90 + si7020 = <&si7020>,"status";