1// SPDX-License-Identifier: BSD-3-Clause
2
3/*
4 * Devices that use SC7180 with TrustedFirmware-A
5 * need PSCI PC mode instead of the OSI mode provided
6 * by Qualcomm firmware.
7 */
8
9&CPU0 {
10	/delete-property/ power-domains;
11	/delete-property/ power-domain-names;
12
13	cpu-idle-states = <&LITTLE_CPU_SLEEP_0
14			   &LITTLE_CPU_SLEEP_1
15			   &CLUSTER_SLEEP_0>;
16};
17
18&CPU1 {
19	/delete-property/ power-domains;
20	/delete-property/ power-domain-names;
21
22	cpu-idle-states = <&LITTLE_CPU_SLEEP_0
23			   &LITTLE_CPU_SLEEP_1
24			   &CLUSTER_SLEEP_0>;
25};
26
27&CPU2 {
28	/delete-property/ power-domains;
29	/delete-property/ power-domain-names;
30
31	cpu-idle-states = <&LITTLE_CPU_SLEEP_0
32			   &LITTLE_CPU_SLEEP_1
33			   &CLUSTER_SLEEP_0>;
34};
35
36&CPU3 {
37	/delete-property/ power-domains;
38	/delete-property/ power-domain-names;
39
40	cpu-idle-states = <&LITTLE_CPU_SLEEP_0
41			   &LITTLE_CPU_SLEEP_1
42			   &CLUSTER_SLEEP_0>;
43};
44
45&CPU4 {
46	/delete-property/ power-domains;
47	/delete-property/ power-domain-names;
48
49	cpu-idle-states = <&LITTLE_CPU_SLEEP_0
50			   &LITTLE_CPU_SLEEP_1
51			   &CLUSTER_SLEEP_0>;
52};
53
54&CPU5 {
55	/delete-property/ power-domains;
56	/delete-property/ power-domain-names;
57
58	cpu-idle-states = <&LITTLE_CPU_SLEEP_0
59			   &LITTLE_CPU_SLEEP_1
60			   &CLUSTER_SLEEP_0>;
61};
62
63&CPU6 {
64	/delete-property/ power-domains;
65	/delete-property/ power-domain-names;
66
67	cpu-idle-states = <&BIG_CPU_SLEEP_0
68			   &BIG_CPU_SLEEP_1
69			   &CLUSTER_SLEEP_0>;
70};
71
72&CPU7 {
73	/delete-property/ power-domains;
74	/delete-property/ power-domain-names;
75
76	cpu-idle-states = <&BIG_CPU_SLEEP_0
77			   &BIG_CPU_SLEEP_1
78			   &CLUSTER_SLEEP_0>;
79};
80
81/delete-node/ &domain_idle_states;
82
83&idle_states {
84	CLUSTER_SLEEP_0: cluster-sleep-0 {
85		compatible = "arm,idle-state";
86		idle-state-name = "cluster-power-down";
87		arm,psci-suspend-param = <0x40003444>;
88		entry-latency-us = <3263>;
89		exit-latency-us = <6562>;
90		min-residency-us = <9926>;
91		local-timer-stop;
92	};
93};
94
95/delete-node/ &CPU_PD0;
96/delete-node/ &CPU_PD1;
97/delete-node/ &CPU_PD2;
98/delete-node/ &CPU_PD3;
99/delete-node/ &CPU_PD4;
100/delete-node/ &CPU_PD5;
101/delete-node/ &CPU_PD6;
102/delete-node/ &CPU_PD7;
103/delete-node/ &CLUSTER_PD;
104
105&apps_rsc {
106	/delete-property/ power-domains;
107};
108