Skip to content

Commit 6af7cbf

Browse files
pelwellpopcornmix
authored andcommitted
overlays: Add sd3078 to the i2c-rtc overlay
Add support for the SD3078 RTC to the i2c-rtc overlay. See: #3881 Signed-off-by: Phil Elwell <[email protected]>
1 parent 88c1329 commit 6af7cbf

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
@@ -1232,6 +1232,8 @@ Params: abx80x Select one of the ABx80x family:
12321232

12331233
rv3028 Select the Micro Crystal RV3028 device
12341234

1235+
sd3078 Select the ZXW Shenzhen whwave SD3078 device
1236+
12351237
addr Sets the address for the RTC. Note that the
12361238
device must be configured to use the specified
12371239
address.

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,21 @@
220220
};
221221
};
222222

223+
fragment@14 {
224+
target = <&i2c_arm>;
225+
__dormant__ {
226+
#address-cells = <1>;
227+
#size-cells = <0>;
228+
status = "okay";
229+
230+
sd3078: sd3078@32 {
231+
compatible = "whwave,sd3078";
232+
reg = <0x32>;
233+
status = "okay";
234+
};
235+
};
236+
};
237+
223238
__overrides__ {
224239
abx80x = <0>,"+0";
225240
ds1307 = <0>,"+1";
@@ -235,6 +250,7 @@
235250
pcf2129 = <0>,"+11";
236251
pcf85363 = <0>,"+12";
237252
rv1805 = <0>,"+13";
253+
sd3078 = <0>,"+14";
238254

239255
addr = <&abx80x>, "reg:0",
240256
<&ds1307>, "reg:0",

0 commit comments

Comments
 (0)