Skip to content

Commit 4255d99

Browse files
author
Phil Elwell
committed
overlays: Add rv3028 to i2c-rtc
See: raspberrypi#2912 Signed-off-by: Phil Elwell <[email protected]>
1 parent f2d3211 commit 4255d99

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 2 additions & 0 deletions
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.

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

Lines changed: 16 additions & 0 deletions
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",

0 commit comments

Comments
 (0)