[PATCHv1 1/3] arm64: dts: meson-g12b-odroid-n2: Enable RTC controller node
Anand Moon
linux.amoon at gmail.com
Wed Jul 15 12:02:07 EDT 2020
Enable RTC PCF8563 node on Odroid-N2 SBC, In order
to support the RTC wakealarm feature for suspend and resume.
Cc: Neil Armstrong <narmstrong at baylibre.com>
Cc: Kevin Hilman <khilman at baylibre.com>
Signed-off-by: Anand Moon <linux.amoon at gmail.com>
---
$ sudo hwclock -r && date
2020-07-15 13:11:53.862508+00:00
Wed Jul 15 13:11:54 UTC 2020
$ hwclock --show
2020-07-15 13:17:30.903300+00:00
But RTC wake up is not working at my end.
Any inputs are welcome.
$ time rtcwake -s 30 -m mem
rtcwake: /dev/rtc0 not enabled for wakeup events
real 0m0.002s
user 0m0.002s
sys 0m0.000s
---
.../boot/dts/amlogic/meson-g12b-odroid-n2.dts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
index 169ea283d4ee..a447cba4dd53 100644
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts
@@ -391,6 +391,20 @@ hdmi_tx_tmds_out: endpoint {
};
};
+&i2c3 {
+ pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>;
+ pinctrl-names = "default";
+ status = "okay";
+
+ rtc: rtc at 51 {
+ reg = <0x51>;
+ compatible = "nxp,pcf8563";
+ #clock-cells = <0>;
+ clock-frequency = <32768>;
+ clock-output-names = "rtc_clkout";
+ };
+};
+
&ir {
status = "okay";
pinctrl-0 = <&remote_input_ao_pins>;
--
2.27.0
More information about the linux-arm-kernel
mailing list