arm64: dts: allwinner: h6: Add clock to CPU cores
authorYangtao Li <tiny.windzz@gmail.com>
Mon, 20 Apr 2020 13:00:13 +0000 (15:00 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 20 Apr 2020 13:23:01 +0000 (15:23 +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: Yangtao Li <tiny.windzz@gmail.com>
Signed-off-by: Clément Péron <peron.clem@gmail.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi

index a5ee68388bd34d193356dd8216b9b19e65c57eb1..370e77b86fe14c7e007b53f538b7a3de58905770 100644 (file)
@@ -25,6 +25,8 @@
                        device_type = "cpu";
                        reg = <0>;
                        enable-method = "psci";
+                       clocks = <&ccu CLK_CPUX>;
+                       clock-latency-ns = <244144>; /* 8 32k periods */
                };
 
                cpu1: cpu@1 {
@@ -32,6 +34,8 @@
                        device_type = "cpu";
                        reg = <1>;
                        enable-method = "psci";
+                       clocks = <&ccu CLK_CPUX>;
+                       clock-latency-ns = <244144>; /* 8 32k periods */
                };
 
                cpu2: cpu@2 {
@@ -39,6 +43,8 @@
                        device_type = "cpu";
                        reg = <2>;
                        enable-method = "psci";
+                       clocks = <&ccu CLK_CPUX>;
+                       clock-latency-ns = <244144>; /* 8 32k periods */
                };
 
                cpu3: cpu@3 {
@@ -46,6 +52,8 @@
                        device_type = "cpu";
                        reg = <3>;
                        enable-method = "psci";
+                       clocks = <&ccu CLK_CPUX>;
+                       clock-latency-ns = <244144>; /* 8 32k periods */
                };
        };