forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/boot/dts/sun4i-a10-inet97fv2.dts
....@@ -150,20 +150,6 @@
150150 status = "okay";
151151 };
152152
153
-&pio {
154
- usb0_id_detect_pin: usb0-id-detect-pin {
155
- pins = "PH4";
156
- function = "gpio_in";
157
- bias-pull-up;
158
- };
159
-
160
- usb0_vbus_detect_pin: usb0-vbus-detect-pin {
161
- pins = "PH5";
162
- function = "gpio_in";
163
- bias-pull-down;
164
- };
165
-};
166
-
167153 &reg_dcdc2 {
168154 regulator-always-on;
169155 regulator-min-microvolt = <1000000>;
....@@ -209,10 +195,8 @@
209195 };
210196
211197 &usbphy {
212
- pinctrl-names = "default";
213
- pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
214
- usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
215
- usb0_vbus_det-gpio = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
198
+ usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */
199
+ usb0_vbus_det-gpios = <&pio 7 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* PH5 */
216200 usb0_vbus-supply = <&reg_usb0_vbus>;
217201 usb2_vbus-supply = <&reg_usb2_vbus>;
218202 status = "okay";