.. | .. |
---|
158 | 158 | status = "okay"; |
---|
159 | 159 | }; |
---|
160 | 160 | |
---|
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 | | - |
---|
175 | 161 | &pwm { |
---|
176 | 162 | pinctrl-names = "default"; |
---|
177 | 163 | pinctrl-0 = <&pwm0_pin>; |
---|
.. | .. |
---|
223 | 209 | }; |
---|
224 | 210 | |
---|
225 | 211 | &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 */ |
---|
230 | 214 | usb0_vbus-supply = <®_usb0_vbus>; |
---|
231 | 215 | usb2_vbus-supply = <®_usb2_vbus>; |
---|
232 | 216 | status = "okay"; |
---|