[9610] arm64: dts: Add CPUIDLE feature.
authorlakkyung.jung <lakkyung.jung@samsung.com>
Fri, 11 May 2018 09:30:28 +0000 (18:30 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:30:35 +0000 (17:30 +0900)
Change-Id: I97301d80eeb6a2f121e215c7fe670ea3196d6475
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
arch/arm64/boot/dts/exynos/exynos9610.dtsi

index 3fb0e00d24d39602945d46dc06e6ad8cb2a2c5ce..21a01ed50916f6d7066fc654fe88540476a6fe1b 100644 (file)
                        compatible = "arm,cortex-a53", "arm,armv8";
                        reg = <0x0 0x0>;
                        enable-method = "psci";
+                       cpu-idle-states = <&BOOTCL_CPU_SLEEP>;
                        #cooling-cells = <2>; /* min followed by max */
                };
                cpu1: cpu@101 {
                        compatible = "arm,cortex-a53", "arm,armv8";
                        reg = <0x0 0x1>;
                        enable-method = "psci";
+                       cpu-idle-states = <&BOOTCL_CPU_SLEEP>;
                };
                cpu2: cpu@102 {
                        device_type = "cpu";
                        compatible = "arm,cortex-a53", "arm,armv8";
                        reg = <0x0 0x2>;
                        enable-method = "psci";
+                       cpu-idle-states = <&BOOTCL_CPU_SLEEP>;
                };
                cpu3: cpu@103 {
                        device_type = "cpu";
                        compatible = "arm,cortex-a53", "arm,armv8";
                        reg = <0x0 0x3>;
                        enable-method = "psci";
+                       cpu-idle-states = <&BOOTCL_CPU_SLEEP>;
                };
                cpu4: cpu@0 {
                        device_type = "cpu";
                        compatible = "arm,cortex-a73", "arm,armv8";
                        reg = <0x0 0x100>;
                        enable-method = "psci";
+                       cpu-idle-states = <&NONBOOTCL_CPU_SLEEP>;
                        #cooling-cells = <2>; /* min followed by max */
                };
                cpu5: cpu@1 {
                        compatible = "arm,cortex-a73", "arm,armv8";
                        reg = <0x0 0x101>;
                        enable-method = "psci";
+                       cpu-idle-states = <&NONBOOTCL_CPU_SLEEP>;
                };
                cpu6: cpu@2 {
                        device_type = "cpu";
                        compatible = "arm,cortex-a73", "arm,armv8";
                        reg = <0x0 0x102>;
                        enable-method = "psci";
+                       cpu-idle-states = <&NONBOOTCL_CPU_SLEEP>;
                };
                cpu7: cpu@3 {
                        device_type = "cpu";
                        compatible = "arm,cortex-a73", "arm,armv8";
                        reg = <0x0 0x103>;
                        enable-method = "psci";
+                       cpu-idle-states = <&NONBOOTCL_CPU_SLEEP>;
+               };
+
+               idle-states {
+                       entry-method = "arm,psci";
+
+                       BOOTCL_CPU_SLEEP: bootcl-cpu-sleep {
+                               idle-state-name = "c2";
+                               compatible = "exynos,idle-state";
+                               arm,psci-suspend-param = <0x0010000>;
+                               entry-latency-us = <35>;
+                               exit-latency-us = <90>;
+                               min-residency-us = <750>;
+                               status = "okay";
+                       };
+
+                       NONBOOTCL_CPU_SLEEP: nobootcl-cpu-sleep {
+                               idle-state-name = "c2";
+                               compatible = "exynos,idle-state";
+                               arm,psci-suspend-param = <0x0010000>;
+                               entry-latency-us = <30>;
+                               exit-latency-us = <75>;
+                               min-residency-us = <2000>;
+                               status = "okay";
+                       };
                };
        };