diff options
author | Dave Gerlach <d-gerlach@ti.com> | 2016-05-18 19:36:27 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2016-06-10 07:58:07 -0400 |
commit | 4317be1162108bcdf50dc53dfb48eac94dcff25c (patch) | |
tree | bb245df3221e7d96042ca4b7e135072c370827ee | |
parent | fb515b8e384d8b1a46c664c1ff6c57fdf4dcbd6c (diff) |
ARM: dts: am33xx: Move to operating-points-v2 table and ti-cpufreq driver
Drop the operating-points table present in am33xx.dtsi and add an
operating-points-v2 table with all OPPs available for all silicon
revisions along with necessary data for use by ti-cpufreq to selectively
enable the appropriate OPPs at runtime. Also, drop the voltage-tolerance
value and provide voltages for each OPP using the <target min max>
format instead.
Information from AM335x Data Manual, SPRS717i, Revised December 2015,
Table 5-7.
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/boot/dts/am33xx.dtsi | 88 |
1 files changed, 75 insertions, 13 deletions
diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index 2661accdcd92..2625414b805a 100644 --- a/arch/arm/boot/dts/am33xx.dtsi +++ b/arch/arm/boot/dts/am33xx.dtsi | |||
@@ -45,19 +45,9 @@ | |||
45 | device_type = "cpu"; | 45 | device_type = "cpu"; |
46 | reg = <0>; | 46 | reg = <0>; |
47 | 47 | ||
48 | /* | 48 | operating-points-v2 = <&cpu0_opp_table>; |
49 | * To consider voltage drop between PMIC and SoC, | 49 | ti,syscon-efuse = <&scm_conf 0x7fc 0x1fff 0>; |
50 | * tolerance value is reduced to 2% from 4% and | 50 | ti,syscon-rev = <&scm_conf 0x600>; |
51 | * voltage value is increased as a precaution. | ||
52 | */ | ||
53 | operating-points = < | ||
54 | /* kHz uV */ | ||
55 | 720000 1285000 | ||
56 | 600000 1225000 | ||
57 | 500000 1125000 | ||
58 | 275000 1125000 | ||
59 | >; | ||
60 | voltage-tolerance = <2>; /* 2 percentage */ | ||
61 | 51 | ||
62 | clocks = <&dpll_mpu_ck>; | 52 | clocks = <&dpll_mpu_ck>; |
63 | clock-names = "cpu"; | 53 | clock-names = "cpu"; |
@@ -66,6 +56,78 @@ | |||
66 | }; | 56 | }; |
67 | }; | 57 | }; |
68 | 58 | ||
59 | cpu0_opp_table: opp_table0 { | ||
60 | compatible = "operating-points-v2"; | ||
61 | |||
62 | /* | ||
63 | * The three following nodes are marked with opp-suspend | ||
64 | * because the can not be enabled simultaneously on a | ||
65 | * single SoC. | ||
66 | */ | ||
67 | opp50@300000000 { | ||
68 | opp-hz = /bits/ 64 <300000000>; | ||
69 | opp-microvolt = <950000 931000 969000>; | ||
70 | opp-supported-hw = <0x06 0x0010>; | ||
71 | opp-suspend; | ||
72 | }; | ||
73 | |||
74 | opp100@275000000 { | ||
75 | opp-hz = /bits/ 64 <275000000>; | ||
76 | opp-microvolt = <1100000 1078000 1122000>; | ||
77 | opp-supported-hw = <0x01 0x00FF>; | ||
78 | opp-suspend; | ||
79 | }; | ||
80 | |||
81 | opp100@300000000 { | ||
82 | opp-hz = /bits/ 64 <300000000>; | ||
83 | opp-microvolt = <1100000 1078000 1122000>; | ||
84 | opp-supported-hw = <0x06 0x0020>; | ||
85 | opp-suspend; | ||
86 | }; | ||
87 | |||
88 | opp100@500000000 { | ||
89 | opp-hz = /bits/ 64 <500000000>; | ||
90 | opp-microvolt = <1100000 1078000 1122000>; | ||
91 | opp-supported-hw = <0x01 0xFFFF>; | ||
92 | }; | ||
93 | |||
94 | opp100@600000000 { | ||
95 | opp-hz = /bits/ 64 <600000000>; | ||
96 | opp-microvolt = <1100000 1078000 1122000>; | ||
97 | opp-supported-hw = <0x06 0x0040>; | ||
98 | }; | ||
99 | |||
100 | opp120@600000000 { | ||
101 | opp-hz = /bits/ 64 <600000000>; | ||
102 | opp-microvolt = <1200000 1176000 1224000>; | ||
103 | opp-supported-hw = <0x01 0xFFFF>; | ||
104 | }; | ||
105 | |||
106 | opp120@720000000 { | ||
107 | opp-hz = /bits/ 64 <720000000>; | ||
108 | opp-microvolt = <1200000 1176000 1224000>; | ||
109 | opp-supported-hw = <0x06 0x0080>; | ||
110 | }; | ||
111 | |||
112 | oppturbo@720000000 { | ||
113 | opp-hz = /bits/ 64 <720000000>; | ||
114 | opp-microvolt = <1260000 1234800 1285200>; | ||
115 | opp-supported-hw = <0x01 0xFFFF>; | ||
116 | }; | ||
117 | |||
118 | oppturbo@800000000 { | ||
119 | opp-hz = /bits/ 64 <800000000>; | ||
120 | opp-microvolt = <1260000 1234800 1285200>; | ||
121 | opp-supported-hw = <0x06 0x0100>; | ||
122 | }; | ||
123 | |||
124 | oppnitro@1000000000 { | ||
125 | opp-hz = /bits/ 64 <1000000000>; | ||
126 | opp-microvolt = <1325000 1298500 1351500>; | ||
127 | opp-supported-hw = <0x04 0x0200>; | ||
128 | }; | ||
129 | }; | ||
130 | |||
69 | pmu { | 131 | pmu { |
70 | compatible = "arm,cortex-a8-pmu"; | 132 | compatible = "arm,cortex-a8-pmu"; |
71 | interrupts = <3>; | 133 | interrupts = <3>; |