| .. | .. |
|---|
| 146 | 146 | status = "okay"; |
|---|
| 147 | 147 | }; |
|---|
| 148 | 148 | |
|---|
| 149 | | -&pio { |
|---|
| 150 | | - usb0_id_detect_pin: usb0-id-detect-pin { |
|---|
| 151 | | - pins = "PH4"; |
|---|
| 152 | | - function = "gpio_in"; |
|---|
| 153 | | - bias-pull-up; |
|---|
| 154 | | - }; |
|---|
| 155 | | - |
|---|
| 156 | | - usb0_vbus_detect_pin: usb0-vbus-detect-pin { |
|---|
| 157 | | - pins = "PH5"; |
|---|
| 158 | | - function = "gpio_in"; |
|---|
| 159 | | - bias-pull-down; |
|---|
| 160 | | - }; |
|---|
| 161 | | -}; |
|---|
| 162 | | - |
|---|
| 163 | 149 | &pwm { |
|---|
| 164 | 150 | pinctrl-names = "default"; |
|---|
| 165 | 151 | pinctrl-0 = <&pwm0_pin>; |
|---|
| .. | .. |
|---|
| 211 | 197 | }; |
|---|
| 212 | 198 | |
|---|
| 213 | 199 | &usbphy { |
|---|
| 214 | | - pinctrl-names = "default"; |
|---|
| 215 | | - pinctrl-0 = <&usb0_id_detect_pin>, <&usb0_vbus_detect_pin>; |
|---|
| 216 | | - usb0_id_det-gpio = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ |
|---|
| 217 | | - usb0_vbus_det-gpio = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */ |
|---|
| 200 | + usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */ |
|---|
| 201 | + usb0_vbus_det-gpios = <&pio 7 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* PH5 */ |
|---|
| 218 | 202 | usb0_vbus-supply = <®_usb0_vbus>; |
|---|
| 219 | 203 | usb1_vbus-supply = <®_usb1_vbus>; |
|---|
| 220 | 204 | status = "okay"; |
|---|