forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts
....@@ -58,8 +58,6 @@
5858
5959 leds {
6060 compatible = "gpio-leds";
61
- pinctrl-names = "default";
62
- pinctrl-0 = <&led_pins_bpi_m2>;
6361
6462 blue {
6563 label = "bpi-m2:blue:usr";
....@@ -79,8 +77,6 @@
7977
8078 mmc2_pwrseq: mmc2_pwrseq {
8179 compatible = "mmc-pwrseq-simple";
82
- pinctrl-names = "default";
83
- pinctrl-0 = <&mmc2_pwrseq_pin_bpi_m2>;
8480 reset-gpios = <&r_pio 0 8 GPIO_ACTIVE_LOW>; /* PL8 WIFI_EN */
8581 };
8682 };
....@@ -95,42 +91,38 @@
9591
9692 &gmac {
9793 pinctrl-names = "default";
98
- pinctrl-0 = <&gmac_pins_rgmii_a>, <&gmac_phy_reset_pin_bpi_m2>;
99
- phy = <&phy1>;
94
+ pinctrl-0 = <&gmac_rgmii_pins>;
95
+ phy-handle = <&phy1>;
10096 phy-mode = "rgmii";
10197 phy-supply = <&reg_dldo1>;
102
- snps,reset-gpio = <&pio 0 21 GPIO_ACTIVE_HIGH>; /* PA21 */
103
- snps,reset-active-low;
104
- snps,reset-delays-us = <0 10000 30000>;
10598 status = "okay";
106
-
107
- phy1: ethernet-phy@1 {
108
- reg = <1>;
109
- };
11099 };
111100
112101 &ir {
113102 pinctrl-names = "default";
114
- pinctrl-0 = <&ir_pins_a>;
103
+ pinctrl-0 = <&s_ir_rx_pin>;
115104 status = "okay";
116105 };
117106
107
+&mdio {
108
+ phy1: ethernet-phy@1 {
109
+ reg = <1>;
110
+ reset-gpios = <&pio 0 21 GPIO_ACTIVE_LOW>; /* PA21 */
111
+ reset-assert-us = <10000>;
112
+ reset-deassert-us = <30000>;
113
+ };
114
+};
115
+
118116 &mmc0 {
119
- pinctrl-names = "default";
120
- pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_bpi_m2>;
121117 vmmc-supply = <&reg_dcdc1>;
122118 bus-width = <4>;
123119 cd-gpios = <&pio 0 4 GPIO_ACTIVE_LOW>; /* PA4 */
124120 status = "okay";
125121 };
126122
127
-&mmc0_pins_a {
128
- bias-pull-up;
129
-};
130
-
131123 &mmc2 {
132124 pinctrl-names = "default";
133
- pinctrl-0 = <&mmc2_pins_a>;
125
+ pinctrl-0 = <&mmc2_4bit_pins>;
134126 vmmc-supply = <&reg_aldo1>;
135127 mmc-pwrseq = <&mmc2_pwrseq>;
136128 bus-width = <4>;
....@@ -144,10 +136,6 @@
144136 interrupts = <0 5 IRQ_TYPE_LEVEL_LOW>; /* PL5 */
145137 interrupt-names = "host-wake";
146138 };
147
-};
148
-
149
-&mmc2_pins_a {
150
- bias-pull-up;
151139 };
152140
153141 &ohci0 {
....@@ -164,31 +152,6 @@
164152 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
165153 eldoin-supply = <&reg_dcdc1>;
166154 x-powers,drive-vbus-en;
167
- };
168
-};
169
-
170
-&pio {
171
- gmac_phy_reset_pin_bpi_m2: gmac_phy_reset_pin@0 {
172
- pins = "PA21";
173
- function = "gpio_out";
174
- };
175
-
176
- led_pins_bpi_m2: led_pins@0 {
177
- pins = "PG5", "PG10", "PG11";
178
- function = "gpio_out";
179
- };
180
-
181
- mmc0_cd_pin_bpi_m2: mmc0_cd_pin@0 {
182
- pins = "PA4";
183
- function = "gpio_in";
184
- bias-pull-up;
185
- };
186
-};
187
-
188
-&r_pio {
189
- mmc2_pwrseq_pin_bpi_m2: mmc2_pwrseq_pin@0 {
190
- pins = "PL8";
191
- function = "gpio_out";
192155 };
193156 };
194157
....@@ -291,7 +254,7 @@
291254
292255 &uart0 {
293256 pinctrl-names = "default";
294
- pinctrl-0 = <&uart0_pins_a>;
257
+ pinctrl-0 = <&uart0_ph_pins>;
295258 status = "okay";
296259 };
297260