riscv: dts: Remove unsupport idle states
authormason.huo <mason.huo@starfivetech.com>
Thu, 27 Oct 2022 00:54:39 +0000 (08:54 +0800)
committermason.huo <mason.huo@starfivetech.com>
Thu, 27 Oct 2022 01:22:26 +0000 (09:22 +0800)
The JH7110 soc only support WFI cpu idle state,
remove the unsupport states.
Add a long WFI for entering the cpu_suspend().

Signed-off-by: mason.huo <mason.huo@starfivetech.com>
arch/riscv/boot/dts/starfive/jh7110.dtsi

index 99db7b0..5ad4ce8 100644 (file)
@@ -85,8 +85,7 @@
                        i-tlb-sets = <1>;
                        i-tlb-size = <40>;
                        mmu-type = "riscv,sv39";
-                       cpu-idle-states = <&CPU_RET_0_0 &CPU_NONRET_0_0
-                            &CLUSTER_RET_0 &CLUSTER_NONRET_0>;
+                       cpu-idle-states = <&CPU_NONRET_0_0>;
                        next-level-cache = <&cachectrl>;
                        riscv,isa = "rv64imac";
                        tlb-split;
                        i-tlb-sets = <1>;
                        i-tlb-size = <40>;
                        mmu-type = "riscv,sv39";
-                       cpu-idle-states = <&CPU_RET_0_0 &CPU_NONRET_0_0
-                            &CLUSTER_RET_0 &CLUSTER_NONRET_0>;
+                       cpu-idle-states = <&CPU_NONRET_0_0>;
                        next-level-cache = <&cachectrl>;
                        riscv,isa = "rv64imafdc";
                        tlb-split;
                        i-tlb-sets = <1>;
                        i-tlb-size = <40>;
                        mmu-type = "riscv,sv39";
-                       cpu-idle-states = <&CPU_RET_0_0 &CPU_NONRET_0_0
-                            &CLUSTER_RET_0 &CLUSTER_NONRET_0>;
+                       cpu-idle-states = <&CPU_NONRET_0_0>;
                        next-level-cache = <&cachectrl>;
                        riscv,isa = "rv64imafdc";
                        tlb-split;
                        i-tlb-sets = <1>;
                        i-tlb-size = <40>;
                        mmu-type = "riscv,sv39";
-                       cpu-idle-states = <&CPU_RET_0_0 &CPU_NONRET_0_0
-                            &CLUSTER_RET_0 &CLUSTER_NONRET_0>;
+                       cpu-idle-states = <&CPU_NONRET_0_0>;
                        next-level-cache = <&cachectrl>;
                        riscv,isa = "rv64imafdc";
                        tlb-split;
                        i-tlb-sets = <1>;
                        i-tlb-size = <40>;
                        mmu-type = "riscv,sv39";
-                       cpu-idle-states = <&CPU_RET_0_0 &CPU_NONRET_0_0
-                            &CLUSTER_RET_0 &CLUSTER_NONRET_0>;
+                       cpu-idle-states = <&CPU_NONRET_0_0>;
                        next-level-cache = <&cachectrl>;
                        riscv,isa = "rv64imafdc";
                        tlb-split;
                };
        };
 
-    idle-states {
-        CPU_RET_0_0: cpu-retentive-0-0 {
-            compatible = "starfive,jh7110-idle-state";
-            riscv,sbi-suspend-param = <0x10000000>;
-            entry-latency-us = <20>;
-            exit-latency-us = <40>;
-            min-residency-us = <80>;
-        };
-
-        CPU_NONRET_0_0: cpu-nonretentive-0-0 {
-            compatible = "starfive,jh7110-idle-state";
-            riscv,sbi-suspend-param = <0x90000000>;
-            entry-latency-us = <250>;
-            exit-latency-us = <500>;
-            min-residency-us = <950>;
-        };
-
-        CLUSTER_RET_0: cluster-retentive-0 {
-            compatible = "starfive,jh7110-idle-state";
-            riscv,sbi-suspend-param = <0x11000000>;
-            local-timer-stop;
-            entry-latency-us = <50>;
-            exit-latency-us = <100>;
-            min-residency-us = <250>;
-            wakeup-latency-us = <130>;
-        };
-
-        CLUSTER_NONRET_0: cluster-nonretentive-0 {
-            compatible = "starfive,jh7110-idle-state";
-            riscv,sbi-suspend-param = <0x91000000>;
-            local-timer-stop;
-            entry-latency-us = <600>;
-            exit-latency-us = <1100>;
-            min-residency-us = <2700>;
-            wakeup-latency-us = <1500>;
-        };
+       idle-states {
+               CPU_NONRET_0_0: cpu-nonretentive-0-0 {
+                       compatible = "riscv,idle-state";
+                       riscv,sbi-suspend-param = <0x80000000>;
+                       entry-latency-us = <600>;
+                       exit-latency-us = <1100>;
+                       min-residency-us = <2700>;
+                       wakeup-latency-us = <1500>;
+               };
        };
 
        soc: soc {