arm64: dts: ls1012a: add cpu idle support
authorYuantian Tang <andy.tang@nxp.com>
Thu, 8 Feb 2018 07:54:34 +0000 (15:54 +0800)
committerShawn Guo <shawnguo@kernel.org>
Sat, 24 Feb 2018 07:09:51 +0000 (15:09 +0800)
Signed-off-by: Tang Yuantian <andy.tang@nxp.com>
Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi

index 4e98d05..d79d8fe 100644 (file)
                        reg = <0x0>;
                        clocks = <&clockgen 1 0>;
                        #cooling-cells = <2>;
+                       cpu-idle-states = <&CPU_PH20>;
+               };
+       };
+
+       idle-states {
+               /*
+                * PSCI node is not added default, U-boot will add missing
+                * parts if it determines to use PSCI.
+                */
+               entry-method = "arm,psci";
+
+               CPU_PH20: cpu-ph20 {
+                       compatible = "arm,idle-state";
+                       idle-state-name = "PH20";
+                       arm,psci-suspend-param = <0x00010000>;
+                       entry-latency-us = <1000>;
+                       exit-latency-us = <1000>;
+                       min-residency-us = <3000>;
                };
        };