IMX6 Sabre board - USB Not Work on BSP Krogoth (2.1)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX6 Sabre board - USB Not Work on BSP Krogoth (2.1)

1,304 Views
yunjiang
Contributor I

I followed the instructions to build BSP Krogoth for IMX6 Sabre board. But the USB didn't work on when I connect a mobile phone to its USB port. There is no any power supply from USB port and no any dmesg output. For the same board, USB works under BSP Daisy (1.6) without any issue.

The following are the local.conf for build. The kernel is default one linux-fsl-imx (4.1). I didn't touch dst file at all.

MACHINE ??= 'imx6qsabreauto'
DISTRO ?= 'poky'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"

DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"

The following are the dmesg related to USB during the boot.

usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usb_ehset_test
usbcore: registered new interface driver bcm203x
usbcore: registered new interface driver btusb
usbcore: registered new interface driver ath3k
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
imx_usb 2184000.usb: Can't register ci_hdrc platform device, err=-517
imx_usb 2184200.usb: Can't register ci_hdrc platform device, err=-517
imx_usb 2184000.usb: Can't register ci_hdrc platform device, err=-517
imx_usb 2184200.usb: Can't register ci_hdrc platform device, err=-517
imx_usb 2184000.usb: Can't register ci_hdrc platform device, err=-517
imx_usb 2184200.usb: Can't register ci_hdrc platform device, err=-517

Labels (2)
0 Kudos
Reply
2 Replies

771 Views
yunjiang
Contributor I

After some investigations, I found that the root cause is that GPIO chip (pca953x, max7310) reset information is missed in dtsi file. Such reset information is in BSP 2.0 (Kernel 31.4). The following patch can fix the issue:

diff --git a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi
index 511f133..936c020 100644
--- a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi
@@ -62,6 +62,13 @@
};
};

+ max7310_reset: max7310-reset {
+ compatible = "gpio-reset";
+ reset-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
+ reset-delay-us = <1>;
+ #reset-cells = <0>;
+ };
+
memory: memory {
reg = <0x10000000 0x80000000>;
};
@@ -556,6 +563,7 @@
&i2c3 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c3>;
+ pinctrl-assert-gpios = <&gpio5 4 GPIO_ACTIVE_HIGH>;
status = "okay";

adv7180: adv7180@21 {
@@ -589,6 +597,7 @@
reg = <0x30>;
gpio-controller;
#gpio-cells = <2>;
+ resets = <&max7310_reset>;
};

max7310_b: gpio@32 {
--
1.9.1

0 Kudos
Reply

771 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Jun,

Please note that the community BSPs are not released by NXP, therefore we don't provide support of those releases. To ask for help to the community BSP developers go to freescale.github.io and subscribe to the mailing list in the contributing section.

 

On the other hand, the former Freescale BSPs released by NXP are located in git.freescale.com > fsl-arm-yocto-bsp.git

If you choose to use any of our BSPs we can provide support on any question or concern you have.


Regards,
Carlos

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply