Commit 44ff3caf authored by Chen-Yu Tsai's avatar Chen-Yu Tsai

arm64: dts: allwinner: a64: Fix up RTC device node and clock references

The RTC module on the A64 was claimed to be the same as on the A31, when
in fact it is not. It is actually compatible to the H3's RTC. The A64's
RTC has some extra crypto-related registers which the H3's does not, but
the exact function of these is not clear.

This patch fixes the compatible string and clock properties to conform
to the updated bindings. The device node for the internal oscillator is
removed, as it is internalized into the RTC device. Clock references to
the IOSC and LOSC are also fixed.
Acked-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
parent d60ce247
...@@ -139,15 +139,7 @@ osc32k: osc32k_clk { ...@@ -139,15 +139,7 @@ osc32k: osc32k_clk {
#clock-cells = <0>; #clock-cells = <0>;
compatible = "fixed-clock"; compatible = "fixed-clock";
clock-frequency = <32768>; clock-frequency = <32768>;
clock-output-names = "osc32k"; clock-output-names = "ext-osc32k";
};
iosc: internal-osc-clk {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <16000000>;
clock-accuracy = <300000000>;
clock-output-names = "iosc";
}; };
psci { psci {
...@@ -539,7 +531,7 @@ ohci1: usb@1c1b400 { ...@@ -539,7 +531,7 @@ ohci1: usb@1c1b400 {
ccu: clock@1c20000 { ccu: clock@1c20000 {
compatible = "allwinner,sun50i-a64-ccu"; compatible = "allwinner,sun50i-a64-ccu";
reg = <0x01c20000 0x400>; reg = <0x01c20000 0x400>;
clocks = <&osc24M>, <&osc32k>; clocks = <&osc24M>, <&rtc 0>;
clock-names = "hosc", "losc"; clock-names = "hosc", "losc";
#clock-cells = <1>; #clock-cells = <1>;
#reset-cells = <1>; #reset-cells = <1>;
...@@ -969,11 +961,12 @@ hdmi_phy: hdmi-phy@1ef0000 { ...@@ -969,11 +961,12 @@ hdmi_phy: hdmi-phy@1ef0000 {
}; };
rtc: rtc@1f00000 { rtc: rtc@1f00000 {
compatible = "allwinner,sun6i-a31-rtc"; compatible = "allwinner,sun50i-a64-rtc",
reg = <0x01f00000 0x54>; "allwinner,sun8i-h3-rtc";
reg = <0x01f00000 0x400>;
interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
clock-output-names = "rtc-osc32k", "rtc-osc32k-out"; clock-output-names = "osc32k", "osc32k-out", "iosc";
clocks = <&osc32k>; clocks = <&osc32k>;
#clock-cells = <1>; #clock-cells = <1>;
}; };
...@@ -990,8 +983,7 @@ r_intc: interrupt-controller@1f00c00 { ...@@ -990,8 +983,7 @@ r_intc: interrupt-controller@1f00c00 {
r_ccu: clock@1f01400 { r_ccu: clock@1f01400 {
compatible = "allwinner,sun50i-a64-r-ccu"; compatible = "allwinner,sun50i-a64-r-ccu";
reg = <0x01f01400 0x100>; reg = <0x01f01400 0x100>;
clocks = <&osc24M>, <&osc32k>, <&iosc>, clocks = <&osc24M>, <&rtc 0>, <&rtc 2>, <&ccu 11>;
<&ccu 11>;
clock-names = "hosc", "losc", "iosc", "pll-periph"; clock-names = "hosc", "losc", "iosc", "pll-periph";
#clock-cells = <1>; #clock-cells = <1>;
#reset-cells = <1>; #reset-cells = <1>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment