arm64: dts: allwinner: h5: Add clock to CPU cores
authorChen-Yu Tsai <wens@csie.org>
Fri, 17 Jul 2020 16:00:49 +0000 (00:00 +0800)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 20 Jul 2020 13:29:47 +0000 (15:29 +0200)
The ARM CPU cores are fed by the CPU clock from the CCU. Add a
reference to the clock for each CPU core, along with the clock
transition latency.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20200717160053.31191-5-wens@kernel.org
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi

index 4462a68..09523f6 100644 (file)
@@ -13,6 +13,8 @@
                        device_type = "cpu";
                        reg = <0>;
                        enable-method = "psci";
+                       clocks = <&ccu CLK_CPUX>;
+                       clock-latency-ns = <244144>; /* 8 32k periods */
                };
 
                cpu1: cpu@1 {
@@ -20,6 +22,8 @@
                        device_type = "cpu";
                        reg = <1>;
                        enable-method = "psci";
+                       clocks = <&ccu CLK_CPUX>;
+                       clock-latency-ns = <244144>; /* 8 32k periods */
                };
 
                cpu2: cpu@2 {
@@ -27,6 +31,8 @@
                        device_type = "cpu";
                        reg = <2>;
                        enable-method = "psci";
+                       clocks = <&ccu CLK_CPUX>;
+                       clock-latency-ns = <244144>; /* 8 32k periods */
                };
 
                cpu3: cpu@3 {
@@ -34,6 +40,8 @@
                        device_type = "cpu";
                        reg = <3>;
                        enable-method = "psci";
+                       clocks = <&ccu CLK_CPUX>;
+                       clock-latency-ns = <244144>; /* 8 32k periods */
                };
        };