Inforce Computing Forums

inforce computing forums to discuss about inforce products

USB 2.0 (Host/OTG) configuration

Questions and discussions related to Inforce 6601™ development kit

by kim760407 » Thu Apr 05, 2018 10:43 am

Hi. I was wondering if there is any documentation on the USB 2.0 (host/otg) port. How would I go about configuring the port? If I plug something in, such as the cable to connect to the PC, how does it know which end is the host (the PC in this case)? Is it automatic? What if I plug in an external hard-drive? Will the USB 2.0 become the host? Do I have to modify some interrupt handler?

In the apq8096-sbc.dtsi, I see these two usb configurations. Is the usb2s for the USB 2.0 port?

&usb3 {
status = "ok";
qcom,charging-disabled;
vbus_dwc3-supply = <&usb_otg_switch>;
qcom,ext-hub-reset-gpio = <&tlmm 103 0>;
qcom,disable-host-mode-pm;
dwc3@6a00000{
dr_mode = "host";
};
};

&usb2s {
status = "ok";
qcom,charging-disabled;
vbus_dwc3-supply = <&vph_pwr_vreg>;
/* qcom,usbin-vadc = <&pmi8994_vadc>;
vdda33-supply = <&pm8994_l24>; */
qcom,disable-host-mode-pm;
interrupts-extended = <&intc 0 352 0>, <&intc 0 140 0>, <&spmi_bus 0x2 0xc3 0x0 0x0>;
interrupt-names = "hs_phy_irq", "pwr_event_irq", "pmic_id_irq";
dwc3@7600000{
interrupts = <0 138 0>, <0 142 0>;
interrupt-names = "irq", "otg_irq";
}


Thanks,
Kim
kim760407
 
Posts: 14
Joined: Thu Jan 04, 2018 7:51 am

Return to INFORCE 6601™ DEVELOPMENT KIT

cron

Contact Us.