主题中讨论的其他器件:SK-AM62B-P1、 SK-AM62-LP、SK-AM62B 、SK-AM62-SIP
工具与软件:
大家好!
我们正在尝试将 usb0配置为用作主机、以便在连接 USB 等设备时、它可以从 USB 读取数据。
我们的硬件连接采用的方式是将 Vbus、CC1和 CC2连接到+5V。 USB ID 连接到1v8。
其余连接为 USB_1_D_CON_P、USB_1_D_CON_N 连接到 USB-C 连接器。
以下是设备树配置:
/* Verdin USB_1_ID */
pinctrl_usb0_id: main-gpio1-19-pins-default {
pinctrl-single,pins = <
AM62X_IOPAD(0x01c4, PIN_INPUT_PULLUP, 7) /* (B14) SPI0_D1.GPIO1_19 */ /* SODIMM 161 */
>;
};
/* Verdin USB_1 */
&usbss0 {
ti,vbus-divider;
status = "okay";
connector {
compatible = "gpio-usb-b-connector", "usb-b-connector";
pinctrl-names = "default";
pinctrl-0 = <>;
label = "USB-C";
port {
usb_dr_connector: endpoint {
remote-endpoint = <&usb0_ep>;
};
};
};
};
&usb0 {
dr_mode = "host";
status="okay";
port {
usb0_ep: endpoint {
remote-endpoint = <&usb_dr_connector>;
};
};
};
请检查一下、如果我有什么问题、请告诉我

