forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts
....@@ -131,20 +131,6 @@
131131 status = "okay";
132132 };
133133
134
-&pio {
135
- usb0_id_detect_pin: usb0-id-detect-pin {
136
- pins = "PH4";
137
- function = "gpio_in";
138
- bias-pull-up;
139
- };
140
-
141
- usb0_vbus_detect_pin: usb0-vbus-detect-pin {
142
- pins = "PH5";
143
- function = "gpio_in";
144
- bias-pull-down;
145
- };
146
-};
147
-
148134 &reg_usb0_vbus {
149135 status = "okay";
150136 };
....@@ -165,10 +151,8 @@
165151 };
166152
167153 &usbphy {
168
- pinctrl-names = "default";
169
- pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
170
- usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
171
- usb0_vbus_det-gpio = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
154
+ usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */
155
+ usb0_vbus_det-gpios = <&pio 7 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* PH5 */
172156 usb0_vbus-supply = <&reg_usb0_vbus>;
173157 usb2_vbus-supply = <&reg_usb2_vbus>;
174158 status = "okay";