Commit d7bb5b96 authored by Icenowy Zheng's avatar Icenowy Zheng Committed by Maxime Ripard

ARM: sunxi: h3/h5: switch apb0-related clocks to r_ccu

Now we have driver for the PRCM CCU, switch to use it instead of
old-style clock nodes for apb0-related clocks in sunxi-h3-h5.dtsi .

The mux 3 of R_CCU is still the internal oscillator, which is said to be
16MHz plus minus 30%, and get a measured value of 15MHz~16MHz on my two
H3 boards and one H5 board.
Signed-off-by: default avatarIcenowy Zheng <icenowy@aosc.xyz>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 5313ea66
...@@ -68,31 +68,12 @@ osc32k: osc32k_clk { ...@@ -68,31 +68,12 @@ osc32k: osc32k_clk {
clock-output-names = "osc32k"; clock-output-names = "osc32k";
}; };
apb0: apb0_clk { iosc: internal-osc-clk {
compatible = "fixed-factor-clock";
#clock-cells = <0>; #clock-cells = <0>;
clock-div = <1>; compatible = "fixed-clock";
clock-mult = <1>; clock-frequency = <16000000>;
clocks = <&osc24M>; clock-accuracy = <300000000>;
clock-output-names = "apb0"; clock-output-names = "iosc";
};
apb0_gates: clk@01f01428 {
compatible = "allwinner,sun8i-h3-apb0-gates-clk",
"allwinner,sun4i-a10-gates-clk";
reg = <0x01f01428 0x4>;
#clock-cells = <1>;
clocks = <&apb0>;
clock-indices = <0>, <1>;
clock-output-names = "apb0_pio", "apb0_ir";
};
ir_clk: ir_clk@01f01454 {
compatible = "allwinner,sun4i-a10-mod0-clk";
reg = <0x01f01454 0x4>;
#clock-cells = <0>;
clocks = <&osc32k>, <&osc24M>;
clock-output-names = "ir";
}; };
}; };
...@@ -576,9 +557,12 @@ rtc: rtc@01f00000 { ...@@ -576,9 +557,12 @@ rtc: rtc@01f00000 {
<GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
}; };
apb0_reset: reset@01f014b0 { r_ccu: clock@1f01400 {
reg = <0x01f014b0 0x4>; compatible = "allwinner,sun50i-a64-r-ccu";
compatible = "allwinner,sun6i-a31-clock-reset"; reg = <0x01f01400 0x100>;
clocks = <&osc24M>, <&osc32k>, <&iosc>;
clock-names = "hosc", "losc", "iosc";
#clock-cells = <1>;
#reset-cells = <1>; #reset-cells = <1>;
}; };
...@@ -589,9 +573,9 @@ codec_analog: codec-analog@01f015c0 { ...@@ -589,9 +573,9 @@ codec_analog: codec-analog@01f015c0 {
ir: ir@01f02000 { ir: ir@01f02000 {
compatible = "allwinner,sun5i-a13-ir"; compatible = "allwinner,sun5i-a13-ir";
clocks = <&apb0_gates 1>, <&ir_clk>; clocks = <&r_ccu 4>, <&r_ccu 11>;
clock-names = "apb", "ir"; clock-names = "apb", "ir";
resets = <&apb0_reset 1>; resets = <&r_ccu 0>;
interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
reg = <0x01f02000 0x40>; reg = <0x01f02000 0x40>;
status = "disabled"; status = "disabled";
...@@ -601,9 +585,8 @@ r_pio: pinctrl@01f02c00 { ...@@ -601,9 +585,8 @@ r_pio: pinctrl@01f02c00 {
compatible = "allwinner,sun8i-h3-r-pinctrl"; compatible = "allwinner,sun8i-h3-r-pinctrl";
reg = <0x01f02c00 0x400>; reg = <0x01f02c00 0x400>;
interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&apb0_gates 0>, <&osc24M>, <&osc32k>; clocks = <&r_ccu 3>, <&osc24M>, <&osc32k>;
clock-names = "apb", "hosc", "losc"; clock-names = "apb", "hosc", "losc";
resets = <&apb0_reset 0>;
gpio-controller; gpio-controller;
#gpio-cells = <3>; #gpio-cells = <3>;
interrupt-controller; interrupt-controller;
......
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