Hi everyone,
I can not detect usb stick on my custom board.
We have developed an electronic card based on the CL-SOM-IMX6UL system-on-module.
Here is the electrical diagram for the usb part de notre card:
we used Pin 170&172 for USB2_D_N , USB2_D_P and Pin 176&178 USB_OTG1_DN, USB_OTG1_DP
I think my device tree is wrong, so would you tell me how to modify it?
related part of my device tree is as follows:
imx6ul-cl-som-imx6ul.dtsi
pinctrl_usb_otg1_id: usbotg1idgrp {
fsl,pins = <
MX6UL_PAD_GPIO1_IO00__ANATOP_OTG1_ID 0x17059
>;
};
pinctrl_usb_otg1: usbotg1grp {
fsl,pins = <
MX6UL_PAD_GPIO1_IO04__GPIO1_IO04 0x10b0
>;
};
&usbotg1 {
vbus-supply = <®_usb_otg1_vbus>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usb_otg1_id>;
dr_mode = "otg";
status = "okay";
};
&usbotg2 {
dr_mode = "host";
disable-over-current;
status = "okay";
};
reg_usb_otg1_vbus: regulator@1 {
compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usb_otg1>;
regulator-name = "usb_otg1_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = <&gpio1 4 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
imx6ul.dtsi:
usbphy1: usbphy@020c9000 {
compatible = "fsl,imx6ul-usbphy", "fsl,imx23-usbphy";
reg = <0x020c9000 0x1000>;
interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX6UL_CLK_USBPHY1>;
phy-3p0-supply = <®_3p0>;
fsl,anatop = <&anatop>;
};
usbphy2: usbphy@020ca000 {
compatible = "fsl,imx6ul-usbphy", "fsl,imx23-usbphy";
reg = <0x020ca000 0x1000>;
interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX6UL_CLK_USBPHY2>;
phy-3p0-supply = <®_3p0>;
fsl,anatop = <&anatop>;
};
aips2: aips-bus@02100000 {
compatible = "fsl,aips-bus", "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
reg = <0x02100000 0x100000>;
ranges;
usbotg1: usb@02184000 {
compatible = "fsl,imx6ul-usb", "fsl,imx27-usb";
reg = <0x02184000 0x200>;
interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX6UL_CLK_USBOH3>;
fsl,usbphy = <&usbphy1>;
fsl,usbmisc = <&usbmisc 0>;
fsl,anatop = <&anatop>;
ahb-burst-config = <0x0>;
tx-burst-size-dword = <0x10>;
rx-burst-size-dword = <0x10>;
status = "disabled";
};
usbotg2: usb@02184200 {
compatible = "fsl,imx6ul-usb", "fsl,imx27-usb";
reg = <0x02184200 0x200>;
interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX6UL_CLK_USBOH3>;
fsl,usbphy = <&usbphy2>;
fsl,usbmisc = <&usbmisc 1>;
ahb-burst-config = <0x0>;
tx-burst-size-dword = <0x10>;
rx-burst-size-dword = <0x10>;
status = "okay";
};
usbmisc: usbmisc@02184800 {
#index-cells = <1>;
compatible = "fsl,imx6ul-usbmisc", "fsl,imx6q-usbmisc";
reg = <0x02184800 0x200>;
};
I checked "dmesg", and "lsusb", but usb stick is not recognized. but i have this message with dmesg :
[351474.050771] usb 1-1: new high-speed USB device number 57 using ci_hdrc
[351474.560820] usb 1-1: new high-speed USB device number 59 using ci_hdrc
[351474.960890] usb 1-1: new high-speed USB device number 60 using ci_hdrc
[351475.362163] usb 1-1: new high-speed USB device number 61 using ci_hdrc
[351475.760674] usb 1-1: new high-speed USB device number 62 using ci_hdrc
[351476.160628] usb 1-1: new high-speed USB device number 63 using ci_hdrc
[351476.560872] usb 1-1: new high-speed USB device number 64 using ci_hdrc
[351477.080729] usb 1-1: new high-speed USB device number 66 using ci_hdrc
[351477.600566] usb 1-1: new high-speed USB device number 68 using ci_hdrc
[351478.000554] usb 1-1: new high-speed USB device number 69 using ci_hdrc
[351478.400572] usb 1-1: new high-speed USB device number 70 using ci_hdrc
[351478.910570] usb 1-1: new high-speed USB device number 72 using ci_hdrc
[351479.420543] usb 1-1: new high-speed USB device number 74 using ci_hdrc
[351479.820486] usb 1-1: new high-speed USB device number 75 using ci_hdrc
[351480.220427] usb 1-1: new high-speed USB device number 76 using ci_hdrc
[351480.730823] usb 1-1: new high-speed USB device number 78 using ci_hdrc
[351481.130351] usb 1-1: new high-speed USB device number 79 using ci_hdrc
[351481.640348] usb 1-1: new high-speed USB device number 81 using ci_hdrc
[351482.040340] usb 1-1: new high-speed USB device number 82 using ci_hdrc
[351482.550393] usb 1-1: new high-speed USB device number 84 using ci_hdrc
[351483.060663] usb 1-1: new high-speed USB device number 86 using ci_hdrc
[351483.580386] usb 1-1: new high-speed USB device number 88 using ci_hdrc
[351483.990364] usb 1-1: new high-speed USB device number 89 using ci_hdrc
[351484.510447] usb 1-1: new high-speed USB device number 91 using ci_hdrc
[351484.920235] usb 1-1: new high-speed USB device number 92 using ci_hdrc
Hi Carlos,
Thank you very much for your answer ! Can you tell me how to pulling down the ID pin ?
Thank you in advance.
Romain
Hi Romain,
The pulling-down of the ID pin is basically connected this pin to ground. This connection in usually implemented by the external OTG-to-Host adapters.
Hope this will be useful for you.
Best regards!
/Carlos
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
-------------------------------------------------------------------------------
Hi Romain,
The CL-SOM-IMX6UL board is not from NXP, so, you may contact to Compulab in case of requiring assistance configuring the custom hardware to match with the software.
However, as a general recommendation, you may check the following points:
Hope this will be useful for you.
Best regards!
/Carlos
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
-------------------------------------------------------------------------------