hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/boot/dts/sun7i-a20-hummingbird.dts
....@@ -67,8 +67,6 @@
6767
6868 reg_mmc3_vdd: mmc3_vdd {
6969 compatible = "regulator-fixed";
70
- pinctrl-names = "default";
71
- pinctrl-0 = <&mmc3_vdd_pin_a20_hummingbird>;
7270 regulator-name = "mmc3_vdd";
7371 regulator-min-microvolt = <3000000>;
7472 regulator-max-microvolt = <3000000>;
....@@ -78,8 +76,6 @@
7876
7977 reg_gmac_vdd: gmac_vdd {
8078 compatible = "regulator-fixed";
81
- pinctrl-names = "default";
82
- pinctrl-0 = <&gmac_vdd_pin_a20_hummingbird>;
8379 regulator-name = "gmac_vdd";
8480 regulator-min-microvolt = <3000000>;
8581 regulator-max-microvolt = <3000000>;
....@@ -103,25 +99,14 @@
10399
104100 &gmac {
105101 pinctrl-names = "default";
106
- pinctrl-0 = <&gmac_pins_rgmii_a>;
107
- phy = <&phy1>;
102
+ pinctrl-0 = <&gmac_rgmii_pins>;
103
+ phy-handle = <&phy1>;
108104 phy-mode = "rgmii";
109105 phy-supply = <&reg_gmac_vdd>;
110
- /* phy reset config */
111
- snps,reset-gpio = <&pio 0 17 GPIO_ACTIVE_HIGH>; /* PA17 */
112
- snps,reset-active-low;
113
- /* wait 1s after reset, otherwise fail to read phy id */
114
- snps,reset-delays-us = <0 10000 1000000>;
115106 status = "okay";
116
-
117
- phy1: ethernet-phy@1 {
118
- reg = <1>;
119
- };
120107 };
121108
122109 &i2c0 {
123
- pinctrl-names = "default";
124
- pinctrl-0 = <&i2c0_pins_a>;
125110 status = "okay";
126111
127112 axp209: pmic@34 {
....@@ -135,32 +120,34 @@
135120 };
136121
137122 &i2c1 {
138
- pinctrl-names = "default";
139
- pinctrl-0 = <&i2c1_pins_a>;
140123 status = "okay";
141124 };
142125
143126 &i2c2 {
144
- pinctrl-names = "default";
145
- pinctrl-0 = <&i2c2_pins_a>;
146127 status = "okay";
147128 };
148129
149130 &i2c3 {
150
- pinctrl-names = "default";
151
- pinctrl-0 = <&i2c3_pins_a>;
152131 status = "okay";
153132 };
154133
155134 &ir0 {
156135 pinctrl-names = "default";
157
- pinctrl-0 = <&ir0_rx_pins_a>;
136
+ pinctrl-0 = <&ir0_rx_pin>;
158137 status = "okay";
159138 };
160139
140
+&gmac_mdio {
141
+ phy1: ethernet-phy@1 {
142
+ reg = <1>;
143
+ reset-gpios = <&pio 0 17 GPIO_ACTIVE_LOW>; /* PA17 */
144
+ reset-assert-us = <10000>;
145
+ /* wait 1s after reset, otherwise fail to read phy id */
146
+ reset-deassert-us = <1000000>;
147
+ };
148
+};
149
+
161150 &mmc0 {
162
- pinctrl-names = "default";
163
- pinctrl-0 = <&mmc0_pins_a>;
164151 vmmc-supply = <&reg_vcc3v0>;
165152 bus-width = <4>;
166153 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */
....@@ -168,8 +155,6 @@
168155 };
169156
170157 &mmc3 {
171
- pinctrl-names = "default";
172
- pinctrl-0 = <&mmc3_pins_a>;
173158 vmmc-supply = <&reg_mmc3_vdd>;
174159 bus-width = <4>;
175160 non-removable;
....@@ -184,42 +169,18 @@
184169 status = "okay";
185170 };
186171
187
-&pio {
188
- ahci_pwr_pin_a20_hummingbird: ahci_pwr_pin@0 {
189
- pins = "PH15";
190
- function = "gpio_out";
191
- };
192
-
193
- usb1_vbus_pin_a20_hummingbird: usb1_vbus_pin@0 {
194
- pins = "PH2";
195
- function = "gpio_out";
196
- };
197
-
198
- mmc3_vdd_pin_a20_hummingbird: mmc3_vdd_pin@0 {
199
- pins = "PH9";
200
- function = "gpio_out";
201
- };
202
-
203
- gmac_vdd_pin_a20_hummingbird: gmac_vdd_pin@0 {
204
- pins = "PH16";
205
- function = "gpio_out";
206
- };
207
-};
208
-
209172 &pwm {
210173 pinctrl-names = "default";
211
- pinctrl-0 = <&pwm0_pins_a>;
174
+ pinctrl-0 = <&pwm0_pin>;
212175 status = "okay";
213176 };
214177
215178 &reg_ahci_5v {
216
- pinctrl-0 = <&ahci_pwr_pin_a20_hummingbird>;
217179 gpio = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */
218180 status = "okay";
219181 };
220182
221183 &reg_usb1_vbus {
222
- pinctrl-0 = <&usb1_vbus_pin_a20_hummingbird>;
223184 gpio = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
224185 status = "okay";
225186 };
....@@ -230,38 +191,38 @@
230191
231192 &spi2 {
232193 pinctrl-names = "default";
233
- pinctrl-0 = <&spi2_pins_b>,
234
- <&spi2_cs0_pins_b>;
194
+ pinctrl-0 = <&spi2_pb_pins>,
195
+ <&spi2_cs0_pb_pin>;
235196 status = "okay";
236197 };
237198
238199 &uart0 {
239200 pinctrl-names = "default";
240
- pinctrl-0 = <&uart0_pins_a>;
201
+ pinctrl-0 = <&uart0_pb_pins>;
241202 status = "okay";
242203 };
243204
244205 &uart2 {
245206 pinctrl-names = "default";
246
- pinctrl-0 = <&uart2_pins_a>;
207
+ pinctrl-0 = <&uart2_pi_pins>, <&uart2_cts_rts_pi_pins>;
247208 status = "okay";
248209 };
249210
250211 &uart3 {
251212 pinctrl-names = "default";
252
- pinctrl-0 = <&uart3_pins_a>;
213
+ pinctrl-0 = <&uart3_pg_pins>, <&uart3_cts_rts_pg_pins>;
253214 status = "okay";
254215 };
255216
256217 &uart4 {
257218 pinctrl-names = "default";
258
- pinctrl-0 = <&uart4_pins_a>;
219
+ pinctrl-0 = <&uart4_pg_pins>;
259220 status = "okay";
260221 };
261222
262223 &uart5 {
263224 pinctrl-names = "default";
264
- pinctrl-0 = <&uart5_pins_a>;
225
+ pinctrl-0 = <&uart5_pi_pins>;
265226 status = "okay";
266227 };
267228