forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dts
....@@ -1,5 +1,5 @@
11 /*
2
- * Copyright 2015 Adam Sampson <ats@offog.org>
2
+ * Copyright 2015-2020 Adam Sampson <ats@offog.org>
33 *
44 * This file is dual-licensed: you can use it either under the terms
55 * of the GPL or the X11 license, at your option. Note that this dual
....@@ -71,8 +71,6 @@
7171
7272 leds {
7373 compatible = "gpio-leds";
74
- pinctrl-names = "default";
75
- pinctrl-0 = <&led_pins_pcduino3_nano>;
7674
7775 /* Marked "LED3" on the PCB. */
7876 usr1 {
....@@ -115,14 +113,10 @@
115113
116114 &gmac {
117115 pinctrl-names = "default";
118
- pinctrl-0 = <&gmac_pins_rgmii_a>;
119
- phy = <&phy1>;
120
- phy-mode = "rgmii";
116
+ pinctrl-0 = <&gmac_rgmii_pins>;
117
+ phy-handle = <&phy1>;
118
+ phy-mode = "rgmii-id";
121119 status = "okay";
122
-
123
- phy1: ethernet-phy@1 {
124
- reg = <1>;
125
- };
126120 };
127121
128122 &hdmi {
....@@ -136,8 +130,6 @@
136130 };
137131
138132 &i2c0 {
139
- pinctrl-names = "default";
140
- pinctrl-0 = <&i2c0_pins_a>;
141133 status = "okay";
142134
143135 axp209: pmic@34 {
....@@ -149,13 +141,17 @@
149141
150142 &ir0 {
151143 pinctrl-names = "default";
152
- pinctrl-0 = <&ir0_rx_pins_a>;
144
+ pinctrl-0 = <&ir0_rx_pin>;
153145 status = "okay";
154146 };
155147
148
+&gmac_mdio {
149
+ phy1: ethernet-phy@1 {
150
+ reg = <1>;
151
+ };
152
+};
153
+
156154 &mmc0 {
157
- pinctrl-names = "default";
158
- pinctrl-0 = <&mmc0_pins_a>;
159155 vmmc-supply = <&reg_vcc3v3>;
160156 bus-width = <4>;
161157 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */
....@@ -174,31 +170,7 @@
174170 status = "okay";
175171 };
176172
177
-&pio {
178
- ahci_pwr_pin_pcduino3_nano: ahci_pwr_pin@0 {
179
- pins = "PH2";
180
- function = "gpio_out";
181
- };
182
-
183
- led_pins_pcduino3_nano: led_pins@0 {
184
- pins = "PH16", "PH15";
185
- function = "gpio_out";
186
- };
187
-
188
- usb0_id_detect_pin: usb0_id_detect_pin@0 {
189
- pins = "PH4";
190
- function = "gpio_in";
191
- bias-pull-up;
192
- };
193
-
194
- usb1_vbus_pin_pcduino3_nano: usb1_vbus_pin@0 {
195
- pins = "PD2";
196
- function = "gpio_out";
197
- };
198
-};
199
-
200173 &reg_ahci_5v {
201
- pinctrl-0 = <&ahci_pwr_pin_pcduino3_nano>;
202174 gpio = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
203175 status = "okay";
204176 };
....@@ -232,14 +204,13 @@
232204
233205 /* A single regulator (U24) powers both USB host ports. */
234206 &reg_usb1_vbus {
235
- pinctrl-0 = <&usb1_vbus_pin_pcduino3_nano>;
236207 gpio = <&pio 3 2 GPIO_ACTIVE_HIGH>; /* PD2 */
237208 status = "okay";
238209 };
239210
240211 &uart0 {
241212 pinctrl-names = "default";
242
- pinctrl-0 = <&uart0_pins_a>;
213
+ pinctrl-0 = <&uart0_pb_pins>;
243214 status = "okay";
244215 };
245216
....@@ -249,9 +220,7 @@
249220 };
250221
251222 &usbphy {
252
- pinctrl-names = "default";
253
- pinctrl-0 = <&usb0_id_detect_pin>;
254
- usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
223
+ usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */
255224 usb1_vbus-supply = <&reg_usb1_vbus>;
256225 usb2_vbus-supply = <&reg_usb1_vbus>;
257226 status = "okay";