Hello all,
Trying to bring USB up so I can use DFU to flash an embedded MMC in our custom board based on the AM437x EVM SK. Both USBs are configured as host, upon `usb start`, I'm getting the following
Please note that I added additional printf instructions to try and figure out where exactly the problem is happening, that's why you will see a slightly more verbose output to usb start.
=> usb start starting USB... USB0: generic_phy_get_by_index(dev=8df418e8, index=0, phy=8df43840) Looking for phy@483a8000 generic_phy_get_by_index: uclass_get_device_by_ofnode failed: err=-19 Looking for ocp2scp@483a8000 Failed to get USB PHY0 for usb@48390000 Port not available. USB1: generic_phy_get_by_index(dev=8df419e0, index=0, phy=8df438c0) Looking for phy@483e8000 generic_phy_get_by_index: uclass_get_device_by_ofnode failed: err=-19 Looking for ocp2scp@483e8000 Failed to get USB PHY0 for usb@483d0000 Port not available.
I added the following to the custom board dts:
boot_usb_ms_pins_default: boot_usb_ms_pins_default { pinctrl-single,pins = < AM4372_IOPAD(0xac4, PIN_OUTPUT | MUX_MODE0) /* (F25) USB1_DRVVBUS.USB1_DRVVBUS */ >; }; lte_usb_pins_default: lte_usb_pins_default { pinctrl-single,pins = < AM4372_IOPAD(0xac0, PIN_OUTPUT | MUX_MODE0) /* (G21) USB0_DRVVBUS.USB0_DRVVBUS */ >; };
&usb2_phy1 { status = "okay"; }; &usb1 { dr_mode = "host"; status = "okay"; pinctrl-names = "default"; pinctrl-0 = <<e_usb_pins_default>; }; &usb2_phy2 { status = "okay"; }; &usb2 { dr_mode = "host"; status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&boot_usb_ms_pins_default>; };
Any idea what might be happening here?
Thank you in advance!