hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts
....@@ -97,8 +97,8 @@
9797
9898 &emac {
9999 pinctrl-names = "default";
100
- pinctrl-0 = <&emac_pins_b>;
101
- phy = <&phy1>;
100
+ pinctrl-0 = <&emac_pa_pins>;
101
+ phy-handle = <&phy1>;
102102 status = "okay";
103103 };
104104
....@@ -117,8 +117,6 @@
117117 };
118118
119119 &i2c0 {
120
- pinctrl-names = "default";
121
- pinctrl-0 = <&i2c0_pins_a>;
122120 status = "okay";
123121
124122 axp152: pmic@30 {
....@@ -130,11 +128,9 @@
130128 #include "axp152.dtsi"
131129
132130 &i2c1 {
133
- pinctrl-names = "default";
134
- pinctrl-0 = <&i2c1_pins_a>;
135131 status = "okay";
136132
137
- at24@50 {
133
+ eeprom@50 {
138134 compatible = "atmel,24c16";
139135 pagesize = <16>;
140136 reg = <0x50>;
....@@ -143,8 +139,6 @@
143139 };
144140
145141 &i2c2 {
146
- pinctrl-names = "default";
147
- pinctrl-0 = <&i2c2_pins_a>;
148142 status = "okay";
149143 };
150144
....@@ -152,35 +146,35 @@
152146 vref-supply = <&reg_vcc3v0>;
153147 status = "okay";
154148
155
- button@191 {
149
+ button-191 {
156150 label = "Volume Up";
157151 linux,code = <KEY_VOLUMEUP>;
158152 channel = <0>;
159153 voltage = <191274>;
160154 };
161155
162
- button@392 {
156
+ button-392 {
163157 label = "Volume Down";
164158 linux,code = <KEY_VOLUMEDOWN>;
165159 channel = <0>;
166160 voltage = <392644>;
167161 };
168162
169
- button@601 {
163
+ button-601 {
170164 label = "Menu";
171165 linux,code = <KEY_MENU>;
172166 channel = <0>;
173167 voltage = <601151>;
174168 };
175169
176
- button@795 {
170
+ button-795 {
177171 label = "Enter";
178172 linux,code = <KEY_ENTER>;
179173 channel = <0>;
180174 voltage = <795090>;
181175 };
182176
183
- button@987 {
177
+ button-987 {
184178 label = "Home";
185179 linux,code = <KEY_HOMEPAGE>;
186180 channel = <0>;
....@@ -197,8 +191,6 @@
197191 };
198192
199193 &mmc0 {
200
- pinctrl-names = "default";
201
- pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_olinuxino_micro>;
202194 vmmc-supply = <&reg_vcc3v3>;
203195 bus-width = <4>;
204196 cd-gpios = <&pio 6 1 GPIO_ACTIVE_LOW>; /* PG1 */
....@@ -206,8 +198,6 @@
206198 };
207199
208200 &mmc1 {
209
- pinctrl-names = "default";
210
- pinctrl-0 = <&mmc1_pins_a>, <&mmc1_cd_pin_olinuxino_micro>;
211201 vmmc-supply = <&reg_vcc3v3>;
212202 bus-width = <4>;
213203 cd-gpios = <&pio 6 13 GPIO_ACTIVE_LOW>; /* PG13 */
....@@ -223,33 +213,10 @@
223213 };
224214
225215 &pio {
226
- mmc0_cd_pin_olinuxino_micro: mmc0_cd_pin@0 {
227
- pins = "PG1";
228
- function = "gpio_in";
229
- bias-pull-up;
230
- };
231
-
232
- mmc1_cd_pin_olinuxino_micro: mmc1_cd_pin@0 {
233
- pins = "PG13";
234
- function = "gpio_in";
235
- bias-pull-up;
236
- };
237
-
238
- led_pins_olinuxino: led_pins@0 {
216
+ led_pins_olinuxino: led-pin {
239217 pins = "PE3";
240218 function = "gpio_out";
241219 drive-strength = <20>;
242
- };
243
-
244
- usb1_vbus_pin_olinuxino_m: usb1_vbus_pin@0 {
245
- pins = "PB10";
246
- function = "gpio_out";
247
- };
248
-
249
- usb0_id_detect_pin: usb0_id_detect_pin@0 {
250
- pins = "PG12";
251
- function = "gpio_in";
252
- bias-pull-up;
253220 };
254221 };
255222
....@@ -259,15 +226,14 @@
259226 };
260227
261228 &reg_usb1_vbus {
262
- pinctrl-0 = <&usb1_vbus_pin_olinuxino_m>;
263229 gpio = <&pio 1 10 GPIO_ACTIVE_HIGH>;
264230 status = "okay";
265231 };
266232
267233 &spi2 {
268234 pinctrl-names = "default";
269
- pinctrl-0 = <&spi2_pins_b>,
270
- <&spi2_cs0_pins_b>;
235
+ pinctrl-0 = <&spi2_pb_pins>,
236
+ <&spi2_cs0_pb_pin>;
271237 status = "okay";
272238 };
273239
....@@ -277,19 +243,19 @@
277243
278244 &uart0 {
279245 pinctrl-names = "default";
280
- pinctrl-0 = <&uart0_pins_a>;
246
+ pinctrl-0 = <&uart0_pb_pins>;
281247 status = "okay";
282248 };
283249
284250 &uart2 {
285251 pinctrl-names = "default";
286
- pinctrl-0 = <&uart2_pins_b>;
252
+ pinctrl-0 = <&uart2_pc_pins>;
287253 status = "okay";
288254 };
289255
290256 &uart3 {
291257 pinctrl-names = "default";
292
- pinctrl-0 = <&uart3_pins_a>;
258
+ pinctrl-0 = <&uart3_pg_pins>;
293259 status = "okay";
294260 };
295261
....@@ -299,9 +265,7 @@
299265 };
300266
301267 &usbphy {
302
- pinctrl-names = "default";
303
- pinctrl-0 = <&usb0_id_detect_pin>;
304
- usb0_id_det-gpio = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
268
+ usb0_id_det-gpios = <&pio 6 12 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PG12 */
305269 usb0_vbus-supply = <&reg_usb0_vbus>;
306270 usb1_vbus-supply = <&reg_usb1_vbus>;
307271 status = "okay";