kernel: update kernel 4.4 to 4.4.59
[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 --- a/arch/arm/boot/dts/overlays/README
13 +++ b/arch/arm/boot/dts/overlays/README
14 @@ -543,6 +543,9 @@ Params: bmp085 Select t
15
16 bmp280 Select the Bosch sensortronic BMP280
17
18 + si7020 Select the Silicon Labs Si7013/20/21 humidity/
19 + temperature sensor
20 +
21
22 Name: i2c0-bcm2708
23 Info: Enable the i2c_bcm2708 driver for the i2c0 bus. Not all pin combinations
24 --- a/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
25 +++ b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
26 @@ -1,34 +1,41 @@
27 -// Definitions for a few digital barometric pressure and temperature sensors
28 +// Definitions for I2C based sensors using the Industrial IO interface.
29 /dts-v1/;
30 /plugin/;
31
32 / {
33 - compatible = "brcm,bcm2708";
34 + compatible = "brcm,bcm2708";
35
36 - fragment@0 {
37 - target = <&i2c_arm>;
38 - __overlay__ {
39 - #address-cells = <1>;
40 - #size-cells = <0>;
41 - status = "okay";
42 -
43 - bmp085: bmp085@77 {
44 - compatible = "bosch,bmp085";
45 - reg = <0x77>;
46 - default-oversampling = <3>;
47 - status = "disable";
48 - };
49 -
50 - bmp280: bmp280@76 {
51 - compatible = "bosch,bmp280";
52 - reg = <0x76>;
53 - status = "disable";
54 - };
55 - };
56 - };
57 + fragment@0 {
58 + target = <&i2c_arm>;
59 + __overlay__ {
60 + #address-cells = <1>;
61 + #size-cells = <0>;
62 + status = "okay";
63 +
64 + bmp085: bmp085@77 {
65 + compatible = "bosch,bmp085";
66 + reg = <0x77>;
67 + default-oversampling = <3>;
68 + status = "disable";
69 + };
70 +
71 + bmp280: bmp280@76 {
72 + compatible = "bosch,bmp280";
73 + reg = <0x76>;
74 + status = "disable";
75 + };
76 +
77 + si7020: si7020@40 {
78 + compatible = "si7020";
79 + reg = <0x40>;
80 + status = "disable";
81 + };
82 + };
83 + };
84
85 __overrides__ {
86 bmp085 = <&bmp085>,"status";
87 bmp280 = <&bmp280>,"status";
88 + si7020 = <&si7020>,"status";
89 };
90 };