hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
....@@ -117,14 +117,10 @@
117117
118118 &gmac {
119119 pinctrl-names = "default";
120
- pinctrl-0 = <&gmac_pins_mii_a>, <&gmac_txerr>;
121
- phy = <&phy1>;
120
+ pinctrl-0 = <&gmac_mii_pins>, <&gmac_txerr>;
121
+ phy-handle = <&phy1>;
122122 phy-mode = "mii";
123123 status = "okay";
124
-
125
- phy1: ethernet-phy@1 {
126
- reg = <1>;
127
- };
128124 };
129125
130126 &hdmi {
....@@ -138,8 +134,6 @@
138134 };
139135
140136 &i2c0 {
141
- pinctrl-names = "default";
142
- pinctrl-0 = <&i2c0_pins_a>;
143137 status = "okay";
144138
145139 axp209: pmic@34 {
....@@ -150,8 +144,6 @@
150144 };
151145
152146 &i2c1 {
153
- pinctrl-names = "default";
154
- pinctrl-0 = <&i2c1_pins_a>;
155147 status = "okay";
156148
157149 eeprom: eeprom@50 {
....@@ -162,8 +154,6 @@
162154 };
163155
164156 &i2c2 {
165
- pinctrl-names = "default";
166
- pinctrl-0 = <&i2c2_pins_a>;
167157 status = "okay";
168158 };
169159
....@@ -171,49 +161,49 @@
171161 vref-supply = <&reg_vcc3v0>;
172162 status = "okay";
173163
174
- button@191 {
164
+ button-191 {
175165 label = "Volume Up";
176166 linux,code = <KEY_VOLUMEUP>;
177167 channel = <0>;
178168 voltage = <191274>;
179169 };
180170
181
- button@392 {
171
+ button-392 {
182172 label = "Volume Down";
183173 linux,code = <KEY_VOLUMEDOWN>;
184174 channel = <0>;
185175 voltage = <392644>;
186176 };
187177
188
- button@601 {
178
+ button-601 {
189179 label = "Menu";
190180 linux,code = <KEY_MENU>;
191181 channel = <0>;
192182 voltage = <601151>;
193183 };
194184
195
- button@795 {
185
+ button-795 {
196186 label = "Search";
197187 linux,code = <KEY_SEARCH>;
198188 channel = <0>;
199189 voltage = <795090>;
200190 };
201191
202
- button@987 {
192
+ button-987 {
203193 label = "Home";
204194 linux,code = <KEY_HOMEPAGE>;
205195 channel = <0>;
206196 voltage = <987387>;
207197 };
208198
209
- button@1184 {
199
+ button-1184 {
210200 label = "Esc";
211201 linux,code = <KEY_ESC>;
212202 channel = <0>;
213203 voltage = <1184678>;
214204 };
215205
216
- button@1398 {
206
+ button-1398 {
217207 label = "Enter";
218208 linux,code = <KEY_ENTER>;
219209 channel = <0>;
....@@ -221,9 +211,13 @@
221211 };
222212 };
223213
214
+&gmac_mdio {
215
+ phy1: ethernet-phy@1 {
216
+ reg = <1>;
217
+ };
218
+};
219
+
224220 &mmc0 {
225
- pinctrl-names = "default";
226
- pinctrl-0 = <&mmc0_pins_a>;
227221 vmmc-supply = <&reg_vcc3v3>;
228222 bus-width = <4>;
229223 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */
....@@ -231,8 +225,6 @@
231225 };
232226
233227 &mmc3 {
234
- pinctrl-names = "default";
235
- pinctrl-0 = <&mmc3_pins_a>, <&mmc3_cd_pin_olinuxinom>;
236228 vmmc-supply = <&reg_vcc3v3>;
237229 bus-width = <4>;
238230 cd-gpios = <&pio 7 11 GPIO_ACTIVE_LOW>; /* PH11 */
....@@ -252,33 +244,15 @@
252244 };
253245
254246 &pio {
255
- gmac_txerr: gmac_txerr@0 {
247
+ gmac_txerr: gmac-txerr-pin {
256248 pins = "PA17";
257249 function = "gmac";
258250 };
259251
260
- mmc3_cd_pin_olinuxinom: mmc3_cd_pin@0 {
261
- pins = "PH11";
262
- function = "gpio_in";
263
- bias-pull-up;
264
- };
265
-
266
- led_pins_olinuxino: led_pins@0 {
252
+ led_pins_olinuxino: led-pins {
267253 pins = "PH2";
268254 function = "gpio_out";
269255 drive-strength = <20>;
270
- };
271
-
272
- usb0_id_detect_pin: usb0_id_detect_pin@0 {
273
- pins = "PH4";
274
- function = "gpio_in";
275
- bias-pull-up;
276
- };
277
-
278
- usb0_vbus_detect_pin: usb0_vbus_detect_pin@0 {
279
- pins = "PH5";
280
- function = "gpio_in";
281
- bias-pull-down;
282256 };
283257 };
284258
....@@ -331,33 +305,33 @@
331305
332306 &spi1 {
333307 pinctrl-names = "default";
334
- pinctrl-0 = <&spi1_pins_a>,
335
- <&spi1_cs0_pins_a>;
308
+ pinctrl-0 = <&spi1_pi_pins>,
309
+ <&spi1_cs0_pi_pin>;
336310 status = "okay";
337311 };
338312
339313 &spi2 {
340314 pinctrl-names = "default";
341
- pinctrl-0 = <&spi2_pins_a>,
342
- <&spi2_cs0_pins_a>;
315
+ pinctrl-0 = <&spi2_pc_pins>,
316
+ <&spi2_cs0_pc_pin>;
343317 status = "okay";
344318 };
345319
346320 &uart0 {
347321 pinctrl-names = "default";
348
- pinctrl-0 = <&uart0_pins_a>;
322
+ pinctrl-0 = <&uart0_pb_pins>;
349323 status = "okay";
350324 };
351325
352326 &uart6 {
353327 pinctrl-names = "default";
354
- pinctrl-0 = <&uart6_pins_a>;
328
+ pinctrl-0 = <&uart6_pi_pins>;
355329 status = "okay";
356330 };
357331
358332 &uart7 {
359333 pinctrl-names = "default";
360
- pinctrl-0 = <&uart7_pins_a>;
334
+ pinctrl-0 = <&uart7_pi_pins>;
361335 status = "okay";
362336 };
363337
....@@ -371,10 +345,8 @@
371345 };
372346
373347 &usbphy {
374
- pinctrl-names = "default";
375
- pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
376
- usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
377
- usb0_vbus_det-gpio = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
348
+ usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */
349
+ usb0_vbus_det-gpios = <&pio 7 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* PH5 */
378350 usb0_vbus-supply = <&reg_usb0_vbus>;
379351 usb1_vbus-supply = <&reg_usb1_vbus>;
380352 usb2_vbus-supply = <&reg_usb2_vbus>;