arm64: dts: meson: g12b: odroid-n2: Add I2C RTC device node
Subsystems (2)
PATCH 1/1 arm64: dts: meson: g12b: odroid-n2: Add I2C RTC device node
This is taken from the downstream kernel and works out of the box. Similar to other boards, this RTC should be the primary one, rather than the internal one.
A wakeup alarm by writing to /sys/class/rtc/rtc0/wakealarm works as well.
--- .../boot/dts/amlogic/meson-g12b-odroid-n2.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi +14 -0
@@ -13,6 +13,8 @@ / { aliases { serial0 = &uart_AO; ethernet0 = ðmac; + rtc0 = &rtc; + rtc1 = &vrtc; }; dioo2133: audio-amplifier-0 {
@@ -471,6 +473,18 @@ hdmi_tx_tmds_out: endpoint { }; }; +&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; + }; +}; + &ir { status = "okay"; pinctrl-0 = <&remote_input_ao_pins>;
Signature · 7 lines
2.30.0 _______________________________________________ linux-amlogic mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-amlogic
Hi,
Quoted 1 line · Alexander Stein
This is taken from the downstream kernel and works out of the box.
Please keep authorship of the downstream commit.
Quoted 25 lines
Similar to other boards, this RTC should be the primary one, rather than the internal one.
A wakeup alarm by writing to
/sys/class/rtc/rtc0/wakealarmworks as well.Signed-off-by Alexander Stein <[email protected]>--- .../boot/dts/amlogic/meson-g12b-odroid-n2.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi +2
-0@@ -13,6 +13,8 @@ / { aliases { serial0 = &uart_AO; ethernet0 = ðmac; + rtc0 = &rtc; + rtc1 = &vrtc; }; dioo2133: audio-amplifier-0 {@@ -471,6 +473,18 @@ hdmi_tx_tmds_out: endpoint { };
arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi hdmi_tx_tmds_out: endpoint { · line 483
Quoted 10 lines
arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi +8
-0}; +&i2c3 { + status = "okay"; + pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>; + pinctrl-names = "default"; + + rtc: rtc@51 { + compatible = "nxp,pcf8563"; + reg = <0x51>;
Interrupt line is missing, Anand added:
+» » /*·RTC·INT·*/ +» » interrupts·=·<GPIOAO_7·IRQ_TYPE_LEVEL_LOW>; +» » interrupt-parent·=·<&gpio_intc>;
arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi hdmi_tx_tmds_out: endpoint { · line 490
Quoted 8 lines
arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi +4
-0+ wakeup-source; + }; +}; + &ir { status = "okay"; pinctrl-0 = <&remote_input_ao_pins>;
Neil
_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic
Hi,
Quoted 6 lines · CET Neil Armstrong
Hi,
Quoted 1 line · Alexander Stein
This is taken from the downstream kernel and works out of the box.
Please keep authorship of the downstream commit.
Sure, will do.
Quoted 10 lines
arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi hdmi_tx_tmds_out: endpoint { · line 483
Quoted 8 lines
+&i2c3 {
arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi +7
-0+ status = "okay"; + pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>; + pinctrl-names = "default"; + + rtc: rtc@51 { + compatible = "nxp,pcf8563"; + reg = <0x51>;Interrupt line is missing, Anand added:
Quoted 7 lines
+» » /*·RTC·INT·*/ +» » interrupts·=·<GPIOAO_7·IRQ_TYPE_LEVEL_LOW>; +» » interrupt-parent·=·<&gpio_intc>;arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi hdmi_tx_tmds_out: endpoint { · line 486
Quoted 3 lines
arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi +3
-0+ wakeup-source; + }; +};
Eh, where did you get that? I'm talking about this commit https://github.com/
hardkernel/linux/commit/b2e22de15e55bb070a2fd45150a6d3e0179ed0e6
There is no interrupt line, although I understand it's missing.
Best regards,
Alexander
_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic
Nevermind,
I just saw that an identical patch has already been accepted, but is not in
Linus's tree yet.
See https://patchwork.kernel.org/project/linux-amlogic/patch/[email protected]/
Sorry for the noise and best regards,
Alexander
_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic
Nevermind,
I just saw that an identical patch has already been accepted, but is not in
Linus's tree yet.
See https://patchwork.kernel.org/project/linux-amlogic/patch/[email protected]/
Sorry for the noise and best regards,
Alexander
_______________________________________________
linux-amlogic mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-amlogic