1 Binding for MediaTek's CPUFreq driver
2 =====================================
5 - clocks: A list of phandle + clock-specifier pairs for the clocks listed in clock names.
6 - clock-names: Should contain the following:
7 "cpu" - The multiplexer for clock input of CPU cluster.
8 "intermediate" - A parent of "cpu" clock which is used as "intermediate" clock
9 source (usually MAINPLL) when the original CPU PLL is under
10 transition and not stable yet.
11 Please refer to Documentation/devicetree/bindings/clk/clock-bindings.txt for
12 generic clock consumer properties.
13 - operating-points-v2: Please refer to Documentation/devicetree/bindings/opp/opp.txt
15 - proc-supply: Regulator for Vproc of CPU cluster.
18 - sram-supply: Regulator for Vsram of CPU cluster. When present, the cpufreq driver
19 needs to do "voltage tracking" to step by step scale up/down Vproc and
20 Vsram to fit SoC specific needs. When absent, the voltage scaling
21 flow is handled by hardware, hence no software "voltage tracking" is
26 Please refer to Documentation/devicetree/bindings/thermal/thermal.txt
29 Example 1 (MT7623 SoC):
31 cpu_opp_table: opp_table {
32 compatible = "operating-points-v2";
36 opp-hz = /bits/ 64 <598000000>;
37 opp-microvolt = <1050000>;
41 opp-hz = /bits/ 64 <747500000>;
42 opp-microvolt = <1050000>;
46 opp-hz = /bits/ 64 <1040000000>;
47 opp-microvolt = <1150000>;
51 opp-hz = /bits/ 64 <1196000000>;
52 opp-microvolt = <1200000>;
56 opp-hz = /bits/ 64 <1300000000>;
57 opp-microvolt = <1300000>;
63 compatible = "arm,cortex-a7";
65 clocks = <&infracfg CLK_INFRA_CPUSEL>,
66 <&apmixedsys CLK_APMIXED_MAINPLL>;
67 clock-names = "cpu", "intermediate";
68 operating-points-v2 = <&cpu_opp_table>;
70 cooling-min-level = <0>;
71 cooling-max-level = <7>;
75 compatible = "arm,cortex-a7";
77 operating-points-v2 = <&cpu_opp_table>;
81 compatible = "arm,cortex-a7";
83 operating-points-v2 = <&cpu_opp_table>;
87 compatible = "arm,cortex-a7";
89 operating-points-v2 = <&cpu_opp_table>;
92 Example 2 (MT8173 SoC):
93 cpu_opp_table_a: opp_table_a {
94 compatible = "operating-points-v2";
98 opp-hz = /bits/ 64 <507000000>;
99 opp-microvolt = <859000>;
103 opp-hz = /bits/ 64 <702000000>;
104 opp-microvolt = <908000>;
108 opp-hz = /bits/ 64 <1001000000>;
109 opp-microvolt = <983000>;
113 opp-hz = /bits/ 64 <1105000000>;
114 opp-microvolt = <1009000>;
118 opp-hz = /bits/ 64 <1183000000>;
119 opp-microvolt = <1028000>;
123 opp-hz = /bits/ 64 <1404000000>;
124 opp-microvolt = <1083000>;
128 opp-hz = /bits/ 64 <1508000000>;
129 opp-microvolt = <1109000>;
133 opp-hz = /bits/ 64 <1573000000>;
134 opp-microvolt = <1125000>;
138 cpu_opp_table_b: opp_table_b {
139 compatible = "operating-points-v2";
143 opp-hz = /bits/ 64 <507000000>;
144 opp-microvolt = <828000>;
148 opp-hz = /bits/ 64 <702000000>;
149 opp-microvolt = <867000>;
153 opp-hz = /bits/ 64 <1001000000>;
154 opp-microvolt = <927000>;
158 opp-hz = /bits/ 64 <1209000000>;
159 opp-microvolt = <968000>;
163 opp-hz = /bits/ 64 <1007000000>;
164 opp-microvolt = <1028000>;
168 opp-hz = /bits/ 64 <1612000000>;
169 opp-microvolt = <1049000>;
173 opp-hz = /bits/ 64 <1807000000>;
174 opp-microvolt = <1089000>;
178 opp-hz = /bits/ 64 <1989000000>;
179 opp-microvolt = <1125000>;
185 compatible = "arm,cortex-a53";
187 enable-method = "psci";
188 cpu-idle-states = <&CPU_SLEEP_0>;
189 clocks = <&infracfg CLK_INFRA_CA53SEL>,
190 <&apmixedsys CLK_APMIXED_MAINPLL>;
191 clock-names = "cpu", "intermediate";
192 operating-points-v2 = <&cpu_opp_table_a>;
197 compatible = "arm,cortex-a53";
199 enable-method = "psci";
200 cpu-idle-states = <&CPU_SLEEP_0>;
201 clocks = <&infracfg CLK_INFRA_CA53SEL>,
202 <&apmixedsys CLK_APMIXED_MAINPLL>;
203 clock-names = "cpu", "intermediate";
204 operating-points-v2 = <&cpu_opp_table_a>;
209 compatible = "arm,cortex-a57";
211 enable-method = "psci";
212 cpu-idle-states = <&CPU_SLEEP_0>;
213 clocks = <&infracfg CLK_INFRA_CA57SEL>,
214 <&apmixedsys CLK_APMIXED_MAINPLL>;
215 clock-names = "cpu", "intermediate";
216 operating-points-v2 = <&cpu_opp_table_b>;
221 compatible = "arm,cortex-a57";
223 enable-method = "psci";
224 cpu-idle-states = <&CPU_SLEEP_0>;
225 clocks = <&infracfg CLK_INFRA_CA57SEL>,
226 <&apmixedsys CLK_APMIXED_MAINPLL>;
227 clock-names = "cpu", "intermediate";
228 operating-points-v2 = <&cpu_opp_table_b>;
232 proc-supply = <&mt6397_vpca15_reg>;
236 proc-supply = <&mt6397_vpca15_reg>;
240 proc-supply = <&da9211_vcpu_reg>;
241 sram-supply = <&mt6397_vsramca7_reg>;
245 proc-supply = <&da9211_vcpu_reg>;
246 sram-supply = <&mt6397_vsramca7_reg>;