bcm27xx: add kernel 5.10 support
[openwrt/staging/noltari.git] / target / linux / bcm27xx / patches-5.10 / 950-0493-overlays-i2c-rtc-Add-the-Dallas-DS1340.patch
1 From fd478b369992e56665de3aabf0e19e24b5fa5e43 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Fri, 26 Feb 2021 14:19:00 +0000
4 Subject: [PATCH] overlays: i2c-rtc: Add the Dallas DS1340
5
6 See: https://github.com/raspberrypi/linux/issues/4180
7
8 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
9 ---
10 arch/arm/boot/dts/overlays/README | 2 ++
11 arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts | 16 ++++++++++++++++
12 2 files changed, 18 insertions(+)
13
14 --- a/arch/arm/boot/dts/overlays/README
15 +++ b/arch/arm/boot/dts/overlays/README
16 @@ -1311,6 +1311,8 @@ Params: abx80x Select o
17
18 ds1339 Select the DS1339 device
19
20 + ds1340 Select the DS1340 device
21 +
22 ds3231 Select the DS3231 device
23
24 m41t62 Select the M41T62 device
25 --- a/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
26 +++ b/arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts
27 @@ -231,6 +231,20 @@
28 };
29 };
30
31 + fragment@17 {
32 + target = <&i2cbus>;
33 + __dormant__ {
34 + #address-cells = <1>;
35 + #size-cells = <0>;
36 +
37 + ds1340: ds1340@68 {
38 + compatible = "dallas,ds1340";
39 + trickle-resistor-ohms = <0>;
40 + reg = <0x68>;
41 + };
42 + };
43 + };
44 +
45 frag100: fragment@100 {
46 target = <&i2c_arm>;
47 i2cbus: __overlay__ {
48 @@ -242,6 +256,7 @@
49 abx80x = <0>,"+0";
50 ds1307 = <0>,"+1";
51 ds1339 = <0>,"+2";
52 + ds1340 = <0>,"+17";
53 ds3231 = <0>,"+3";
54 mcp7940x = <0>,"+4";
55 mcp7941x = <0>,"+5";
56 @@ -273,6 +288,7 @@
57 trickle-diode-type = <&abx80x>,"abracon,tc-diode",
58 <&rv1805>,"abracon,tc-diode";
59 trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0",
60 + <&ds1340>,"trickle-resistor-ohms:0",
61 <&abx80x>,"abracon,tc-resistor:0",
62 <&rv3028>,"trickle-resistor-ohms:0",
63 <&rv1805>,"abracon,tc-resistor:0";