kernel: update kernel 4.9 to version 4.9.91
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.9 / 950-0115-Add-support-for-Silicon-Labs-Si7013-20-21-humidity-t.patch
1 From 69d0de7d07ec016f2956237ec141bb62ff7ae36c Mon Sep 17 00:00:00 2001
2 From: Alex Tucker <alex@floop.org.uk>
3 Date: Tue, 13 Dec 2016 19:50:18 +0000
4 Subject: [PATCH] Add support for Silicon Labs Si7013/20/21
5 humidity/temperature sensor.
6
7 ---
8 arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts | 49 +++++++++++++----------
9 1 file changed, 28 insertions(+), 21 deletions(-)
10
11 --- a/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
12 +++ b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
13 @@ -1,34 +1,41 @@
14 -// Definitions for a few digital barometric pressure and temperature sensors
15 +// Definitions for I2C based sensors using the Industrial IO interface.
16 /dts-v1/;
17 /plugin/;
18
19 / {
20 - compatible = "brcm,bcm2708";
21 + compatible = "brcm,bcm2708";
22
23 - fragment@0 {
24 - target = <&i2c_arm>;
25 - __overlay__ {
26 - #address-cells = <1>;
27 - #size-cells = <0>;
28 - status = "okay";
29 -
30 - bmp085: bmp085@77 {
31 - compatible = "bosch,bmp085";
32 - reg = <0x77>;
33 - default-oversampling = <3>;
34 - status = "disable";
35 - };
36 -
37 - bmp280: bmp280@76 {
38 - compatible = "bosch,bmp280";
39 - reg = <0x76>;
40 - status = "disable";
41 - };
42 - };
43 - };
44 + fragment@0 {
45 + target = <&i2c_arm>;
46 + __overlay__ {
47 + #address-cells = <1>;
48 + #size-cells = <0>;
49 + status = "okay";
50 +
51 + bmp085: bmp085@77 {
52 + compatible = "bosch,bmp085";
53 + reg = <0x77>;
54 + default-oversampling = <3>;
55 + status = "disable";
56 + };
57 +
58 + bmp280: bmp280@76 {
59 + compatible = "bosch,bmp280";
60 + reg = <0x76>;
61 + status = "disable";
62 + };
63 +
64 + si7020: si7020@40 {
65 + compatible = "si7020";
66 + reg = <0x40>;
67 + status = "disable";
68 + };
69 + };
70 + };
71
72 __overrides__ {
73 bmp085 = <&bmp085>,"status";
74 bmp280 = <&bmp280>,"status";
75 + si7020 = <&si7020>,"status";
76 };
77 };