hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/arm/boot/dts/sun7i-a20-orangepi-mini.dts
....@@ -74,8 +74,6 @@
7474
7575 leds {
7676 compatible = "gpio-leds";
77
- pinctrl-names = "default";
78
- pinctrl-0 = <&led_pins_orangepi>;
7977
8078 green {
8179 label = "orangepi:green:usr";
....@@ -90,8 +88,6 @@
9088
9189 reg_gmac_3v3: gmac-3v3 {
9290 compatible = "regulator-fixed";
93
- pinctrl-names = "default";
94
- pinctrl-0 = <&gmac_power_pin_orangepi>;
9591 regulator-name = "gmac-3v3";
9692 regulator-min-microvolt = <3300000>;
9793 regulator-max-microvolt = <3300000>;
....@@ -123,15 +119,11 @@
123119
124120 &gmac {
125121 pinctrl-names = "default";
126
- pinctrl-0 = <&gmac_pins_rgmii_a>;
127
- phy = <&phy1>;
122
+ pinctrl-0 = <&gmac_rgmii_pins>;
123
+ phy-handle = <&phy1>;
128124 phy-mode = "rgmii";
129125 phy-supply = <&reg_gmac_3v3>;
130126 status = "okay";
131
-
132
- phy1: ethernet-phy@1 {
133
- reg = <1>;
134
- };
135127 };
136128
137129 &hdmi {
....@@ -145,8 +137,6 @@
145137 };
146138
147139 &i2c0 {
148
- pinctrl-names = "default";
149
- pinctrl-0 = <&i2c0_pins_a>;
150140 status = "okay";
151141
152142 axp209: pmic@34 {
....@@ -160,13 +150,17 @@
160150
161151 &ir0 {
162152 pinctrl-names = "default";
163
- pinctrl-0 = <&ir0_rx_pins_a>;
153
+ pinctrl-0 = <&ir0_rx_pin>;
164154 status = "okay";
165155 };
166156
157
+&gmac_mdio {
158
+ phy1: ethernet-phy@1 {
159
+ reg = <1>;
160
+ };
161
+};
162
+
167163 &mmc0 {
168
- pinctrl-names = "default";
169
- pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_orangepi>;
170164 vmmc-supply = <&reg_vcc3v3>;
171165 bus-width = <4>;
172166 cd-gpios = <&pio 7 10 GPIO_ACTIVE_LOW>; /* PH10 */
....@@ -174,8 +168,6 @@
174168 };
175169
176170 &mmc3 {
177
- pinctrl-names = "default";
178
- pinctrl-0 = <&mmc3_pins_a>, <&mmc3_cd_pin_orangepi>;
179171 vmmc-supply = <&reg_vcc3v3>;
180172 bus-width = <4>;
181173 cd-gpios = <&pio 7 11 GPIO_ACTIVE_LOW>; /* PH11 */
....@@ -184,46 +176,6 @@
184176
185177 &otg_sram {
186178 status = "okay";
187
-};
188
-
189
-&pio {
190
- usb0_id_detect_pin: usb0_id_detect_pin@0 {
191
- pins = "PH4";
192
- function = "gpio_in";
193
- bias-pull-up;
194
- };
195
-
196
- mmc0_cd_pin_orangepi: mmc0_cd_pin@0 {
197
- pins = "PH10";
198
- function = "gpio_in";
199
- bias-pull-up;
200
- };
201
-
202
- mmc3_cd_pin_orangepi: mmc3_cd_pin@0 {
203
- pins = "PH11";
204
- function = "gpio_in";
205
- bias-pull-up;
206
- };
207
-
208
- usb2_vbus_pin_bananapro: usb2_vbus_pin@0 {
209
- pins = "PH22";
210
- function = "gpio_out";
211
- };
212
-
213
- gmac_power_pin_orangepi: gmac_power_pin@0 {
214
- pins = "PH23";
215
- function = "gpio_out";
216
- };
217
-
218
- led_pins_orangepi: led_pins@0 {
219
- pins = "PH24", "PH25";
220
- function = "gpio_out";
221
- };
222
-
223
- usb1_vbus_pin_bananapro: usb1_vbus_pin@0 {
224
- pins = "PH26";
225
- function = "gpio_out";
226
- };
227179 };
228180
229181 &reg_dcdc2 {
....@@ -256,20 +208,18 @@
256208 };
257209
258210 &reg_usb1_vbus {
259
- pinctrl-0 = <&usb1_vbus_pin_bananapro>;
260211 gpio = <&pio 7 26 GPIO_ACTIVE_HIGH>; /* PH26 */
261212 status = "okay";
262213 };
263214
264215 &reg_usb2_vbus {
265
- pinctrl-0 = <&usb2_vbus_pin_bananapro>;
266216 gpio = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */
267217 status = "okay";
268218 };
269219
270220 &uart0 {
271221 pinctrl-names = "default";
272
- pinctrl-0 = <&uart0_pins_a>;
222
+ pinctrl-0 = <&uart0_pb_pins>;
273223 status = "okay";
274224 };
275225
....@@ -283,9 +233,7 @@
283233 };
284234
285235 &usbphy {
286
- pinctrl-names = "default";
287
- pinctrl-0 = <&usb0_id_detect_pin>;
288
- usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
236
+ usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */
289237 usb0_vbus_power-supply = <&usb_power_supply>;
290238 usb0_vbus-supply = <&reg_usb0_vbus>;
291239 usb1_vbus-supply = <&reg_usb1_vbus>;