forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/boot/dts/sun4i-a10-dserve-dsrv9703c.dts
....@@ -158,20 +158,6 @@
158158 status = "okay";
159159 };
160160
161
-&pio {
162
- usb0_id_detect_pin: usb0-id-detect-pin {
163
- pins = "PH4";
164
- function = "gpio_in";
165
- bias-pull-up;
166
- };
167
-
168
- usb0_vbus_detect_pin: usb0-vbus-detect-pin {
169
- pins = "PH5";
170
- function = "gpio_in";
171
- bias-pull-down;
172
- };
173
-};
174
-
175161 &pwm {
176162 pinctrl-names = "default";
177163 pinctrl-0 = <&pwm0_pin>;
....@@ -223,10 +209,8 @@
223209 };
224210
225211 &usbphy {
226
- pinctrl-names = "default";
227
- pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
228
- usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
229
- usb0_vbus_det-gpio = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
212
+ usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */
213
+ usb0_vbus_det-gpios = <&pio 7 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* PH5 */
230214 usb0_vbus-supply = <&reg_usb0_vbus>;
231215 usb2_vbus-supply = <&reg_usb2_vbus>;
232216 status = "okay";