brcm2708: update linux 4.4 patches to latest version
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0563-Add-support-for-Silicon-Labs-Si7013-20-21-humidity-t.patch
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)
6
7 ---
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(-)
11
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
17
18 bmp280 Select the Bosch sensortronic BMP280
19
20 + si7020 Select the Silicon Labs Si7013/20/21 humidity/
21 + temperature sensor
22 +
23
24 Name: i2c0-bcm2708
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
30 @@ -1,34 +1,41 @@
31 -// Definitions for a few digital barometric pressure and temperature sensors
32 +// Definitions for I2C based sensors using the Industrial IO interface.
33 /dts-v1/;
34 /plugin/;
35
36 / {
37 - compatible = "brcm,bcm2708";
38 + compatible = "brcm,bcm2708";
39
40 - fragment@0 {
41 - target = <&i2c_arm>;
42 - __overlay__ {
43 - #address-cells = <1>;
44 - #size-cells = <0>;
45 - status = "okay";
46 + fragment@0 {
47 + target = <&i2c_arm>;
48 + __overlay__ {
49 + #address-cells = <1>;
50 + #size-cells = <0>;
51 + status = "okay";
52
53 - bmp085: bmp085@77 {
54 - compatible = "bosch,bmp085";
55 - reg = <0x77>;
56 - default-oversampling = <3>;
57 - status = "disable";
58 - };
59 + bmp085: bmp085@77 {
60 + compatible = "bosch,bmp085";
61 + reg = <0x77>;
62 + default-oversampling = <3>;
63 + status = "disable";
64 + };
65
66 - bmp280: bmp280@76 {
67 - compatible = "bosch,bmp280";
68 - reg = <0x76>;
69 - status = "disable";
70 - };
71 - };
72 - };
73 + bmp280: bmp280@76 {
74 + compatible = "bosch,bmp280";
75 + reg = <0x76>;
76 + status = "disable";
77 + };
78 +
79 + si7020: si7020@40 {
80 + compatible = "si7020";
81 + reg = <0x40>;
82 + status = "disable";
83 + };
84 + };
85 + };
86
87 __overrides__ {
88 bmp085 = <&bmp085>,"status";
89 bmp280 = <&bmp280>,"status";
90 + si7020 = <&si7020>,"status";
91 };
92 };
93 --
94 2.1.4
95