forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/arm/boot/dts/sun4i-a10-hyundai-a7hd.dts
....@@ -86,20 +86,6 @@
8686 status = "okay";
8787 };
8888
89
-&pio {
90
- usb0_id_detect_pin: usb0-id-detect-pin {
91
- pins = "PH4";
92
- function = "gpio_in";
93
- bias-pull-up;
94
- };
95
-
96
- usb0_vbus_detect_pin: usb0-vbus-detect-pin {
97
- pins = "PH5";
98
- function = "gpio_in";
99
- bias-pull-down;
100
- };
101
-};
102
-
10389 &reg_usb0_vbus {
10490 status = "okay";
10591 };
....@@ -121,10 +107,8 @@
121107 };
122108
123109 &usbphy {
124
- pinctrl-names = "default";
125
- pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>;
126
- usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
127
- usb0_vbus_det-gpio = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */
110
+ usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */
111
+ usb0_vbus_det-gpios = <&pio 7 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* PH5 */
128112 usb0_vbus-supply = <&reg_usb0_vbus>;
129113 usb2_vbus-supply = <&reg_usb2_vbus>;
130114 status = "okay";