[U-Boot] ClearFog base USB keyboard
Влад Мао
vlaomao at gmail.com
Wed Sep 27 14:56:58 UTC 2017
I have a ClearfogBase board with armada A388 processor (6828), and
trying to setup USB keyboard in U-boot.
SOM have 3 USB controllers, described in armada-38x.dtsi:
usb at 58000 {
compatible = "marvell,orion-ehci";
reg = <0x58000 0x500>;
interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&gateclk 18>;
status = "disabled";
};
usb3 at f0000 {
compatible = "marvell,armada-380-xhci";
reg = <0xf0000 0x4000>,<0xf4000 0x4000>;
interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&gateclk 9>;
status = "disabled";
};
usb3 at f8000 {
compatible = "marvell,armada-380-xhci";
reg = <0xf8000 0x4000>,<0xfc000 0x4000>;
interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&gateclk 10>;
status = "disabled";
};
in armada-388-clearfog.dts:
usb at 58000 {
status = "okay";
};
usb3 at f0000 {
status = "okay";
};
usb3 at f8000 {
status = "okay";
};
In U-Boot menuconfig i enabled:
CONFIG_CMD_USB=y
CONFIG_USB=y
CONFIG_DM_USB=y
CONFIG_USB_HOST=y
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_XHCI_DWC3=y
CONFIG_USB_XHCI_MVEBU=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_MARVELL=y
CONFIG_USB_EHCI_GENERIC=y
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_STORAGE=y
CONFIG_USB_KEYBOARD=y
When i load the U-boot, and type usb start, i see only USB Hub on
usb at 58000, which have no connector on board.
I tried find out what's wrong and why my keyboard does not work, load
linux and find out - USB connector on board (U2) works with usb3 at f8000
(i commented out status = "disabled" usb at 58000 and usb3 at f0000, and in
linux keyboard still works), dmesg from linux system:
[ 3.163750] usbcore: registered new interface driver asix
[ 3.169178] usbcore: registered new interface driver ax88179_178a
[ 3.175314] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.181871] ehci-pci: EHCI PCI platform driver
[ 3.186343] ehci-orion: EHCI orion driver
[ 3.190584] xhci-hcd f10f8000.usb3: xHCI Host Controller
[ 3.195924] xhci-hcd f10f8000.usb3: new USB bus registered,
assigned bus number 1
[ 3.203492] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci
version 0x100 quirks 0x00010010
[ 3.212063] xhci-hcd f10f8000.usb3: irq 48, io mem 0xf10f8000
[ 3.218169] hub 1-0:1.0: USB hub found
[ 3.221991] hub 1-0:1.0: 1 port detected
[ 3.226072] xhci-hcd f10f8000.usb3: xHCI Host Controller
[ 3.231399] xhci-hcd f10f8000.usb3: new USB bus registered,
assigned bus number 2
[ 3.238978] usb usb2: We don't know the algorithms for LPM for this
host, disabling LPM.
[ 3.247420] hub 2-0:1.0: USB hub found
[ 3.251190] hub 2-0:1.0: 1 port detected
[ 3.255350] usbcore: registered new interface driver usb-storage
In linux with this settings keyboard work perfectry, but in U-boot i see:
=> usb start
starting USB...
scan end
No controllers found
How to fix it and get the keyboard working in U-boot?
More information about the U-Boot
mailing list