Skip to content

Commit 28aab5f

Browse files
soburikartben
authored andcommitted
boards: m5stack: cores3: Add RTC configuration
Adding PFC8563 configuration for enabling RTC feature. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 5a38391 commit 28aab5f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
zephyr,shell-uart = &usb_serial;
1818
zephyr,flash = &flash0;
1919
zephyr,code-partition = &slot0_partition;
20+
zephyr,rtc = &bm8563_rtc;
2021
zephyr,bt-hci = &esp32_bt_hci;
2122
};
2223

@@ -27,6 +28,7 @@
2728
i2c-0 = &i2c0;
2829
i2c-1 = &i2c1;
2930
watchdog0 = &wdt0;
31+
rtc = &bm8563_rtc;
3032
};
3133
};
3234

@@ -68,6 +70,12 @@
6870
clock-frequency = <I2C_BITRATE_STANDARD>;
6971
pinctrl-0 = <&i2c0_default>;
7072
pinctrl-names = "default";
73+
74+
bm8563_rtc: bm8563@51 {
75+
compatible = "nxp,pcf8563";
76+
reg = <0x51>;
77+
status = "okay";
78+
};
7179
};
7280

7381
&i2c1 {

0 commit comments

Comments
 (0)