]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: rockchip: enable SCMI clk for RK3528 SoC
authorChukun Pan <amadeus@jmu.edu.cn>
Fri, 7 Mar 2025 10:00:08 +0000 (18:00 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 8 Mar 2025 17:00:23 +0000 (18:00 +0100)
Same as RK3568, RK3528 uses SCMI clk instead of ARMCLK.
Add SCMI clk for CPU, GPU and RNG will also use it.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Link: https://lore.kernel.org/r/20250307100008.789129-2-amadeus@jmu.edu.cn
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3528.dtsi

index 0c0e7f15146281e93a9017f6219f91b89f18a910..4be53868f324167e52671f0f5e11c7e61a4118b0 100644 (file)
@@ -59,6 +59,7 @@
                        reg = <0x0>;
                        device_type = "cpu";
                        enable-method = "psci";
+                       clocks = <&scmi_clk SCMI_CLK_CPU>;
                };
 
                cpu1: cpu@1 {
@@ -66,6 +67,7 @@
                        reg = <0x1>;
                        device_type = "cpu";
                        enable-method = "psci";
+                       clocks = <&scmi_clk SCMI_CLK_CPU>;
                };
 
                cpu2: cpu@2 {
@@ -73,6 +75,7 @@
                        reg = <0x2>;
                        device_type = "cpu";
                        enable-method = "psci";
+                       clocks = <&scmi_clk SCMI_CLK_CPU>;
                };
 
                cpu3: cpu@3 {
                        reg = <0x3>;
                        device_type = "cpu";
                        enable-method = "psci";
+                       clocks = <&scmi_clk SCMI_CLK_CPU>;
+               };
+       };
+
+       firmware {
+               scmi: scmi {
+                       compatible = "arm,scmi-smc";
+                       arm,smc-id = <0x82000010>;
+                       shmem = <&scmi_shmem>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       scmi_clk: protocol@14 {
+                               reg = <0x14>;
+                               #clock-cells = <1>;
+                       };
                };
        };
 
                method = "smc";
        };
 
+       reserved-memory {
+               #address-cells = <2>;
+               #size-cells = <2>;
+               ranges;
+
+               scmi_shmem: shmem@10f000 {
+                       compatible = "arm,scmi-shmem";
+                       reg = <0x0 0x0010f000 0x0 0x100>;
+                       no-map;
+               };
+       };
+
        timer {
                compatible = "arm,armv8-timer";
                interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,