Skip to content

Commit 713922a

Browse files
Phil Elwellpopcornmix
Phil Elwell
authored andcommitted
overlays: Add rv3028 to i2c-rtc
See: #2912 Signed-off-by: Phil Elwell <[email protected]>
1 parent 73493c2 commit 713922a

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,8 @@ Params: abx80x Select one of the ABx80x family:
939939

940940
pcf8563 Select the PCF8563 device
941941

942+
rv3028 Select the Micro Crystal RV3028 device
943+
942944
addr Sets the address for the RTC. Note that the
943945
device must be configured to use the specified
944946
address.
@@ -947,7 +949,7 @@ Params: abx80x Select one of the ABx80x family:
947949
"schottky" (ABx80x only)
948950

949951
trickle-resistor-ohms Resistor value for trickle charge (DS1339,
950-
ABx80x)
952+
ABx80x, RV3028)
951953

952954
wakeup-source Specify that the RTC can be used as a wakeup
953955
source

arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,21 @@
158158
};
159159
};
160160

161+
fragment@10 {
162+
target = <&i2c_arm>;
163+
__dormant__ {
164+
#address-cells = <1>;
165+
#size-cells = <0>;
166+
status = "okay";
167+
168+
rv3028: rv3028@52 {
169+
compatible = "microcrystal,rv3028";
170+
reg = <0x52>;
171+
status = "okay";
172+
};
173+
};
174+
};
175+
161176
__overrides__ {
162177
abx80x = <0>,"+0";
163178
ds1307 = <0>,"+1";
@@ -169,6 +184,7 @@
169184
pcf8523 = <0>,"+7";
170185
pcf8563 = <0>,"+8";
171186
m41t62 = <0>,"+9";
187+
rv3028 = <0>,"+10";
172188

173189
addr = <&abx80x>, "reg:0",
174190
<&ds1307>, "reg:0",
@@ -182,7 +198,8 @@
182198
<&m41t62>, "reg:0";
183199
trickle-diode-type = <&abx80x>,"abracon,tc-diode";
184200
trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0",
185-
<&abx80x>,"abracon,tc-resistor";
201+
<&abx80x>,"abracon,tc-resistor",
202+
<&rv3028>,"trickle-resistor-ohms:0";
186203
wakeup-source = <&ds1339>,"wakeup-source?",
187204
<&ds3231>,"wakeup-source?",
188205
<&mcp7940x>,"wakeup-source?",

0 commit comments

Comments
 (0)