brcm2708: update linux 4.4 patches to latest version
[openwrt/staging/dedeckeh.git] / target / linux / brcm2708 / patches-4.4 / 0214-BCM270X_DT-Add-DS1339-to-i2c-rtc-overlay.patch
1 From 679482c3c45177399648d096b7336ba3b1894126 Mon Sep 17 00:00:00 2001
2 From: Nicolas Boullis <nboullis@debian.org>
3 Date: Wed, 23 Mar 2016 23:40:15 +0100
4 Subject: [PATCH 214/381] BCM270X_DT: Add DS1339 to i2c-rtc overlay
5
6 ---
7 arch/arm/boot/dts/overlays/README | 4 ++++
8 arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts | 8 ++++++++
9 2 files changed, 12 insertions(+)
10
11 --- a/arch/arm/boot/dts/overlays/README
12 +++ b/arch/arm/boot/dts/overlays/README
13 @@ -371,6 +371,8 @@ Info: Adds support for a number of I2C
14 Load: dtoverlay=i2c-rtc,<param>=<val>
15 Params: ds1307 Select the DS1307 device
16
17 + ds1339 Select the DS1339 device
18 +
19 ds3231 Select the DS3231 device
20
21 mcp7941x Select the MCP7941x device
22 @@ -381,6 +383,8 @@ Params: ds1307 Select t
23
24 pcf8563 Select the PCF8563 device
25
26 + trickle-resistor-ohms Resistor value for trickle charge (DS1339-only)
27 +
28
29 Name: i2c0-bcm2708
30 Info: Enable the i2c_bcm2708 driver for the i2c0 bus
31 --- a/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
32 +++ b/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
33 @@ -17,6 +17,12 @@
34 reg = <0x68>;
35 status = "disable";
36 };
37 + ds1339: ds1339@68 {
38 + compatible = "dallas,ds1339";
39 + trickle-resistor-ohms = <0>;
40 + reg = <0x68>;
41 + status = "disable";
42 + };
43 mcp7941x: mcp7941x@6f {
44 compatible = "microchip,mcp7941x";
45 reg = <0x6f>;
46 @@ -46,10 +52,12 @@
47 };
48 __overrides__ {
49 ds1307 = <&ds1307>,"status";
50 + ds1339 = <&ds1339>,"status";
51 ds3231 = <&ds3231>,"status";
52 mcp7941x = <&mcp7941x>,"status";
53 pcf2127 = <&pcf2127>,"status";
54 pcf8523 = <&pcf8523>,"status";
55 pcf8563 = <&pcf8563>,"status";
56 + trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0";
57 };
58 };