[5/5] arm64: dts: allwinner: a523: add CPU clocks
Commit Message
The Allwinner A523 family of SoCs feature a separate clock unit for the
CPU PLLs and muxes, including one for the DSU interconnect.
Add a DT node for the CPU clock controller, and list all the clocks from
the other CCUs that this controller needs.
Also list the clock source for each CPU: there is one clock for each
cluster of four cores, suffixed L and B, for little and big (although
all cores are of the same Cortex-A55 type).
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
.../arm64/boot/dts/allwinner/sun55i-a523.dtsi | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)
@@ -5,6 +5,7 @@
#include <dt-bindings/clock/sun6i-rtc.h>
#include <dt-bindings/clock/sun55i-a523-ccu.h>
#include <dt-bindings/clock/sun55i-a523-r-ccu.h>
+#include <dt-bindings/clock/sun55i-a523-cpu-ccu.h>
#include <dt-bindings/reset/sun55i-a523-ccu.h>
#include <dt-bindings/reset/sun55i-a523-r-ccu.h>
#include <dt-bindings/power/allwinner,sun55i-a523-ppu.h>
@@ -24,6 +25,7 @@ cpu0: cpu@0 {
device_type = "cpu";
reg = <0x000>;
enable-method = "psci";
+ clocks = <&cpu_ccu CLK_CPU_L>;
};
cpu1: cpu@100 {
@@ -31,6 +33,7 @@ cpu1: cpu@100 {
device_type = "cpu";
reg = <0x100>;
enable-method = "psci";
+ clocks = <&cpu_ccu CLK_CPU_L>;
};
cpu2: cpu@200 {
@@ -38,6 +41,7 @@ cpu2: cpu@200 {
device_type = "cpu";
reg = <0x200>;
enable-method = "psci";
+ clocks = <&cpu_ccu CLK_CPU_L>;
};
cpu3: cpu@300 {
@@ -45,6 +49,7 @@ cpu3: cpu@300 {
device_type = "cpu";
reg = <0x300>;
enable-method = "psci";
+ clocks = <&cpu_ccu CLK_CPU_L>;
};
cpu4: cpu@400 {
@@ -52,6 +57,7 @@ cpu4: cpu@400 {
device_type = "cpu";
reg = <0x400>;
enable-method = "psci";
+ clocks = <&cpu_ccu CLK_CPU_B>;
};
cpu5: cpu@500 {
@@ -59,6 +65,7 @@ cpu5: cpu@500 {
device_type = "cpu";
reg = <0x500>;
enable-method = "psci";
+ clocks = <&cpu_ccu CLK_CPU_B>;
};
cpu6: cpu@600 {
@@ -66,6 +73,7 @@ cpu6: cpu@600 {
device_type = "cpu";
reg = <0x600>;
enable-method = "psci";
+ clocks = <&cpu_ccu CLK_CPU_B>;
};
cpu7: cpu@700 {
@@ -73,6 +81,7 @@ cpu7: cpu@700 {
device_type = "cpu";
reg = <0x700>;
enable-method = "psci";
+ clocks = <&cpu_ccu CLK_CPU_B>;
};
};
@@ -690,5 +699,18 @@ rtc: rtc@7090000 {
clock-names = "bus", "hosc", "ahb";
#clock-cells = <1>;
};
+
+ cpu_ccu: clock-controller@8817000 {
+ compatible = "allwinner,sun55i-a523-cpu-ccu";
+ reg = <0x08817000 0x80>;
+ clocks = <&osc24M>, <&rtc CLK_OSC32K>,
+ <&rtc CLK_IOSC>, <&ccu CLK_PLL_PERIPH0_2X>,
+ <&ccu CLK_PLL_PERIPH0_600M>;
+ clock-names = "hosc", "losc",
+ "iosc", "pll-periph0-2x",
+ "pll-periph0-600M";
+ #clock-cells = <1>;
+ #reset-cells = <1>;
+ };
};
};