Skip to content

Commit 4e0d439

Browse files
committed
ARM: dts: sunxi: Fix OPP arrays
Even though it translates to the same thing down to the binary level, we should have an array of 2 number cells to describe each OPP, which in turns create a validation warning. Let's fix this. Signed-off-by: Maxime Ripard <maxime@cerno.tech> Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com> Link: https://lore.kernel.org/r/20210901091852.479202-42-maxime@cerno.tech
1 parent f7717f2 commit 4e0d439

6 files changed

Lines changed: 61 additions & 71 deletions

File tree

‎arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,11 @@
9191
/*
9292
* The A10-Lime is known to be unstable when running at 1008 MHz
9393
*/
94-
operating-points = <
95-
/* kHz uV */
96-
912000 1350000
97-
864000 1300000
98-
624000 1250000
99-
>;
94+
operating-points =
95+
/* kHz uV */
96+
<912000 1350000>,
97+
<864000 1300000>,
98+
<624000 1250000>;
10099
};
101100

102101
&de {

‎arch/arm/boot/dts/sun4i-a10.dtsi‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,12 @@
115115
reg = <0x0>;
116116
clocks = <&ccu CLK_CPU>;
117117
clock-latency = <244144>; /* 8 32k periods */
118-
operating-points = <
118+
operating-points =
119119
/* kHz uV */
120-
1008000 1400000
121-
912000 1350000
122-
864000 1300000
123-
624000 1250000
124-
>;
120+
<1008000 1400000>,
121+
<912000 1350000>,
122+
<864000 1300000>,
123+
<624000 1250000>;
125124
#cooling-cells = <2>;
126125
};
127126
};

‎arch/arm/boot/dts/sun5i-a13.dtsi‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,14 @@
102102

103103
&cpu0 {
104104
clock-latency = <244144>; /* 8 32k periods */
105-
operating-points = <
105+
operating-points =
106106
/* kHz uV */
107-
1008000 1400000
108-
912000 1350000
109-
864000 1300000
110-
624000 1200000
111-
576000 1200000
112-
432000 1200000
113-
>;
107+
<1008000 1400000>,
108+
<912000 1350000>,
109+
<864000 1300000>,
110+
<624000 1200000>,
111+
<576000 1200000>,
112+
<432000 1200000>;
114113
#cooling-cells = <2>;
115114
};
116115

‎arch/arm/boot/dts/sun6i-a31.dtsi‎

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,12 @@
105105
reg = <0>;
106106
clocks = <&ccu CLK_CPU>;
107107
clock-latency = <244144>; /* 8 32k periods */
108-
operating-points = <
108+
operating-points =
109109
/* kHz uV */
110-
1008000 1200000
111-
864000 1200000
112-
720000 1100000
113-
480000 1000000
114-
>;
110+
<1008000 1200000>,
111+
<864000 1200000>,
112+
<720000 1100000>,
113+
<480000 1000000>;
115114
#cooling-cells = <2>;
116115
};
117116

@@ -121,13 +120,12 @@
121120
reg = <1>;
122121
clocks = <&ccu CLK_CPU>;
123122
clock-latency = <244144>; /* 8 32k periods */
124-
operating-points = <
123+
operating-points =
125124
/* kHz uV */
126-
1008000 1200000
127-
864000 1200000
128-
720000 1100000
129-
480000 1000000
130-
>;
125+
<1008000 1200000>,
126+
<864000 1200000>,
127+
<720000 1100000>,
128+
<480000 1000000>;
131129
#cooling-cells = <2>;
132130
};
133131

@@ -137,13 +135,12 @@
137135
reg = <2>;
138136
clocks = <&ccu CLK_CPU>;
139137
clock-latency = <244144>; /* 8 32k periods */
140-
operating-points = <
138+
operating-points =
141139
/* kHz uV */
142-
1008000 1200000
143-
864000 1200000
144-
720000 1100000
145-
480000 1000000
146-
>;
140+
<1008000 1200000>,
141+
<864000 1200000>,
142+
<720000 1100000>,
143+
<480000 1000000>;
147144
#cooling-cells = <2>;
148145
};
149146

@@ -153,13 +150,12 @@
153150
reg = <3>;
154151
clocks = <&ccu CLK_CPU>;
155152
clock-latency = <244144>; /* 8 32k periods */
156-
operating-points = <
153+
operating-points =
157154
/* kHz uV */
158-
1008000 1200000
159-
864000 1200000
160-
720000 1100000
161-
480000 1000000
162-
>;
155+
<1008000 1200000>,
156+
<864000 1200000>,
157+
<720000 1100000>,
158+
<480000 1000000>;
163159
#cooling-cells = <2>;
164160
};
165161
};

‎arch/arm/boot/dts/sun7i-a20-bananapi.dts‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,15 @@
104104

105105
&cpu0 {
106106
cpu-supply = <&reg_dcdc2>;
107-
operating-points = <
107+
operating-points =
108108
/* kHz uV */
109-
960000 1400000
110-
912000 1400000
111-
864000 1350000
112-
720000 1250000
113-
528000 1150000
114-
312000 1100000
115-
144000 1050000
116-
>;
109+
<960000 1400000>,
110+
<912000 1400000>,
111+
<864000 1350000>,
112+
<720000 1250000>,
113+
<528000 1150000>,
114+
<312000 1100000>,
115+
<144000 1050000>;
117116
};
118117

119118
&de {

‎arch/arm/boot/dts/sun7i-a20.dtsi‎

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,15 @@
106106
reg = <0>;
107107
clocks = <&ccu CLK_CPU>;
108108
clock-latency = <244144>; /* 8 32k periods */
109-
operating-points = <
109+
operating-points =
110110
/* kHz uV */
111-
960000 1400000
112-
912000 1400000
113-
864000 1300000
114-
720000 1200000
115-
528000 1100000
116-
312000 1000000
117-
144000 1000000
118-
>;
111+
<960000 1400000>,
112+
<912000 1400000>,
113+
<864000 1300000>,
114+
<720000 1200000>,
115+
<528000 1100000>,
116+
<312000 1000000>,
117+
<144000 1000000>;
119118
#cooling-cells = <2>;
120119
};
121120

@@ -125,16 +124,15 @@
125124
reg = <1>;
126125
clocks = <&ccu CLK_CPU>;
127126
clock-latency = <244144>; /* 8 32k periods */
128-
operating-points = <
127+
operating-points =
129128
/* kHz uV */
130-
960000 1400000
131-
912000 1400000
132-
864000 1300000
133-
720000 1200000
134-
528000 1100000
135-
312000 1000000
136-
144000 1000000
137-
>;
129+
<960000 1400000>,
130+
<912000 1400000>,
131+
<864000 1300000>,
132+
<720000 1200000>,
133+
<528000 1100000>,
134+
<312000 1000000>,
135+
<144000 1000000>;
138136
#cooling-cells = <2>;
139137
};
140138
};

0 commit comments

Comments
 (0)