hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/arch/arm/boot/dts/sun6i-a31-hummingbird.dts
....@@ -86,31 +86,23 @@
8686 vga-dac {
8787 compatible = "dumb-vga-dac";
8888 vdd-supply = <&reg_vga_3v3>;
89
- #address-cells = <1>;
90
- #size-cells = <0>;
9189
9290 ports {
9391 #address-cells = <1>;
9492 #size-cells = <0>;
9593
9694 port@0 {
97
- #address-cells = <1>;
98
- #size-cells = <0>;
9995 reg = <0>;
10096
101
- vga_dac_in: endpoint@0 {
102
- reg = <0>;
97
+ vga_dac_in: endpoint {
10398 remote-endpoint = <&tcon0_out_vga>;
10499 };
105100 };
106101
107102 port@1 {
108
- #address-cells = <1>;
109
- #size-cells = <0>;
110103 reg = <1>;
111104
112
- vga_dac_out: endpoint@0 {
113
- reg = <0>;
105
+ vga_dac_out: endpoint {
114106 remote-endpoint = <&vga_con_in>;
115107 };
116108 };
....@@ -160,17 +152,10 @@
160152
161153 &gmac {
162154 pinctrl-names = "default";
163
- pinctrl-0 = <&gmac_pins_rgmii_a>, <&gmac_phy_reset_pin_hummingbird>;
164
- phy = <&phy1>;
165
- phy-mode = "rgmii";
166
- snps,reset-gpio = <&pio 0 21 GPIO_ACTIVE_HIGH>;
167
- snps,reset-active-low;
168
- snps,reset-delays-us = <0 10000 30000>;
155
+ pinctrl-0 = <&gmac_rgmii_pins>;
156
+ phy-handle = <&phy1>;
157
+ phy-mode = "rgmii-id";
169158 status = "okay";
170
-
171
- phy1: ethernet-phy@1 {
172
- reg = <1>;
173
- };
174159 };
175160
176161 &hdmi {
....@@ -184,21 +169,15 @@
184169 };
185170
186171 &i2c0 {
187
- pinctrl-names = "default";
188
- pinctrl-0 = <&i2c0_pins_a>;
189172 /* pull-ups and devices require AXP221 DLDO3 */
190173 status = "failed";
191174 };
192175
193176 &i2c1 {
194
- pinctrl-names = "default";
195
- pinctrl-0 = <&i2c1_pins_a>;
196177 status = "okay";
197178 };
198179
199180 &i2c2 {
200
- pinctrl-names = "default";
201
- pinctrl-0 = <&i2c2_pins_a>;
202181 status = "okay";
203182
204183 pcf8563: rtc@51 {
....@@ -209,27 +188,27 @@
209188
210189 &ir {
211190 pinctrl-names = "default";
212
- pinctrl-0 = <&ir_pins_a>;
191
+ pinctrl-0 = <&s_ir_rx_pin>;
213192 status = "okay";
214193 };
215194
195
+&mdio {
196
+ phy1: ethernet-phy@1 {
197
+ reg = <1>;
198
+ reset-gpios = <&pio 0 21 GPIO_ACTIVE_LOW>;
199
+ reset-assert-us = <10000>;
200
+ reset-deassert-us = <30000>;
201
+ };
202
+};
203
+
216204 &mmc0 {
217
- pinctrl-names = "default";
218
- pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_hummingbird>;
219205 vmmc-supply = <&reg_dcdc1>;
220206 bus-width = <4>;
221207 cd-gpios = <&pio 0 8 GPIO_ACTIVE_LOW>; /* PA8 */
222208 status = "okay";
223209 };
224210
225
-&mmc0_pins_a {
226
- /* external pull-ups missing for some pins */
227
- bias-pull-up;
228
-};
229
-
230211 &mmc1 {
231
- pinctrl-names = "default";
232
- pinctrl-0 = <&mmc1_pins_a>, <&wifi_reset_pin_hummingbird>;
233212 vmmc-supply = <&reg_aldo1>;
234213 mmc-pwrseq = <&wifi_pwrseq>;
235214 bus-width = <4>;
....@@ -239,24 +218,6 @@
239218
240219 &ohci0 {
241220 status = "okay";
242
-};
243
-
244
-&pio {
245
- gmac_phy_reset_pin_hummingbird: gmac_phy_reset_pin@0 {
246
- pins = "PA21";
247
- function = "gpio_out";
248
- };
249
-
250
- mmc0_cd_pin_hummingbird: mmc0_cd_pin@0 {
251
- pins = "PA8";
252
- function = "gpio_in";
253
- bias-pull-up;
254
- };
255
-
256
- wifi_reset_pin_hummingbird: wifi_reset_pin@0 {
257
- pins = "PG10";
258
- function = "gpio_out";
259
- };
260221 };
261222
262223 &p2wi {
....@@ -354,7 +315,7 @@
354315
355316 &uart0 {
356317 pinctrl-names = "default";
357
- pinctrl-0 = <&uart0_pins_a>;
318
+ pinctrl-0 = <&uart0_ph_pins>;
358319 status = "okay";
359320 };
360321
....@@ -368,8 +329,8 @@
368329 };
369330
370331 &usbphy {
371
- usb0_id_det-gpio = <&pio 0 15 GPIO_ACTIVE_HIGH>; /* PA15 */
372
- usb0_vbus_det-gpio = <&pio 0 16 GPIO_ACTIVE_HIGH>; /* PA16 */
332
+ usb0_id_det-gpios = <&pio 0 15 GPIO_ACTIVE_HIGH>; /* PA15 */
333
+ usb0_vbus_det-gpios = <&pio 0 16 GPIO_ACTIVE_HIGH>; /* PA16 */
373334 usb0_vbus_power-supply = <&usb_power_supply>;
374335 usb0_vbus-supply = <&reg_drivevbus>;
375336 usb1_vbus-supply = <&reg_usb1_vbus>;