]> Git Repo - linux.git/commitdiff
arm64: dts: meson: add i2c3/rtc nodes and rtc aliases to ODROID-N2 dtsi
authorChristian Hewitt <[email protected]>
Mon, 11 Jan 2021 13:58:31 +0000 (13:58 +0000)
committerKevin Hilman <[email protected]>
Wed, 3 Feb 2021 18:22:10 +0000 (10:22 -0800)
Enable the onboard pcf8563 rtc hardware on ODROID N2/N2+ boards via the
common dtsi. Also add aliases to ensure vrtc does not claim /dev/rtc0.

Signed-off-by: Christian Hewitt <[email protected]>
Reviewed-by: Neil Armstrong <[email protected]>
Signed-off-by: Kevin Hilman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi

index abc052c72420ee79c754985bfa33cbf65793dbe3..58ce569b2ace92d4f6f4eeafa9c21b46b725c740 100644 (file)
@@ -13,6 +13,8 @@
        aliases {
                serial0 = &uart_AO;
                ethernet0 = &ethmac;
+               rtc0 = &rtc;
+               rtc1 = &vrtc;
        };
 
        dioo2133: audio-amplifier-0 {
        linux,rc-map-name = "rc-odroid";
 };
 
+&i2c3 {
+       status = "okay";
+       pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>;
+       pinctrl-names = "default";
+
+       rtc: rtc@51 {
+               compatible = "nxp,pcf8563";
+               reg = <0x51>;
+               wakeup-source;
+       };
+};
+
 &pwm_ab {
        pinctrl-0 = <&pwm_a_e_pins>;
        pinctrl-names = "default";
This page took 0.054107 seconds and 4 git commands to generate.