brcm2708: update to latest patches from the RPi foundation
[openwrt/staging/lynxis.git] / target / linux / brcm2708 / patches-4.14 / 950-0274-overlays-Add-ds1621-to-the-i2c-sensor-overlay.patch
1 From 3c258618cbc0cddb7076b61a08755aa4f73d27db Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Sun, 15 Apr 2018 10:36:15 +0100
4 Subject: [PATCH 274/454] overlays: Add ds1621 to the i2c-sensor overlay
5
6 The ds1621 enables the Dallas Semiconductors DS1621 temperature
7 sensor.
8
9 See: https://github.com/raspberrypi/linux/issues/2509
10
11 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
12 ---
13 arch/arm/boot/dts/overlays/README | 15 +++++++++------
14 .../boot/dts/overlays/i2c-sensor-overlay.dts | 19 ++++++++++++++++++-
15 2 files changed, 27 insertions(+), 7 deletions(-)
16
17 --- a/arch/arm/boot/dts/overlays/README
18 +++ b/arch/arm/boot/dts/overlays/README
19 @@ -821,8 +821,8 @@ Name: i2c-sensor
20 Info: Adds support for a number of I2C barometric pressure and temperature
21 sensors on i2c_arm
22 Load: dtoverlay=i2c-sensor,<param>=<val>
23 -Params: addr Set the address for the BME280, BMP280, TMP102,
24 - HDC100X, LM75 or SHT3x
25 +Params: addr Set the address for the BME280, BMP280, DS1621,
26 + HDC100X, LM75, SHT3x or TMP102
27
28 bme280 Select the Bosch Sensortronic BME280
29 Valid addresses 0x76-0x77, default 0x76
30 @@ -834,6 +834,9 @@ Params: addr Set the
31 bmp280 Select the Bosch Sensortronic BMP280
32 Valid addresses 0x76-0x77, default 0x76
33
34 + ds1621 Select the Dallas Semiconductors DS1621 temp
35 + sensor. Valid addresses 0x48-9x4f, default 0x48
36 +
37 hdc100x Select the Texas Instruments HDC100x temp sensor
38 Valid addresses 0x40-0x43, default 0x40
39
40 @@ -844,6 +847,10 @@ Params: addr Set the
41
42 lm75addr Deprecated - use addr parameter instead
43
44 + sht3x Select the Sensiron SHT3x temperature and
45 + humidity sensor. Valid addresses 0x44-0x45,
46 + default 0x44
47 +
48 si7020 Select the Silicon Labs Si7013/20/21 humidity/
49 temperature sensor
50
51 @@ -856,10 +863,6 @@ Params: addr Set the
52 veml6070 Select the Vishay VEML6070 ultraviolet light
53 sensor
54
55 - sht3x Select the Sensiron SHT3x temperature and
56 - humidity sensor. Valid addresses 0x44-0x45,
57 - default 0x44
58 -
59
60 Name: i2c0-bcm2708
61 Info: Enable the i2c_bcm2708 driver for the i2c0 bus. Not all pin combinations
62 --- a/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
63 +++ b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
64 @@ -186,9 +186,25 @@
65 };
66 };
67
68 + fragment@12 {
69 + target = <&i2c_arm>;
70 + __dormant__ {
71 + #address-cells = <1>;
72 + #size-cells = <0>;
73 + status = "okay";
74 +
75 + ds1621: ds1621@48 {
76 + compatible = "ds1621";
77 + reg = <0x48>;
78 + status = "okay";
79 + };
80 + };
81 + };
82 +
83 __overrides__ {
84 addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
85 - <&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0";
86 + <&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
87 + <&ds1621>,"reg:0";
88 bme280 = <0>,"+0";
89 bmp085 = <0>,"+1";
90 bmp180 = <0>,"+2";
91 @@ -202,5 +218,6 @@
92 tsl4531 = <0>,"+9";
93 veml6070 = <0>,"+10";
94 sht3x = <0>,"+11";
95 + ds1621 = <0>,"+12";
96 };
97 };