Platform Adaptation and Bring-Up
Jetson Nano Platform Adaptation and Bring-Up Guide DA_09361-002 | 21
This is the table of GPIO states on J28 and their corresponding output cable states:
GPIO_PCC4
(VBUS_DETECT) EXTCON_STATE
1 0x0 (EXCON_NONE)
0 0x1 (EXTCON_USB)
This is the extcon device node and property list based on the device tree structure
described above and the table of GPIO states and corresponding output cable states for
GPIO_PCC4, customized for Jetson Nano, where the ID pin is floating the port is fixed in
the device role:
vbus_id_gpio_extcon: usb_otg {
compatible = "extcon-gpio-states";
extcon-gpio,name = "VBUS";
extcon-gpio,wait-for-gpio-scan = <0>;
extcon-gpio,cable-states = <0x0 0x1
0x1 0x0>;
gpios = <&gpio TEGRA_GPIO(CC, 4) 0>;
extcon-gpio,out-cable-names =
<EXTCON_USB EXTCON_USB_HOST EXTCON_NONE>;
#extcon-cells = <1>;
};
Note:
Check the pinmux table for the GPIO that corresponds to the ID pin and
VBUS_DETECT pin.