Hi ,

I recently ordered a nice A20 box with VGA out and 2 USB ports.


The USB ports works with android and 3.3.0+ kernel.
How ever with sunxi-3.4 the ports are not working. There does
not seems to be any power on the ports.

The EHCI & OHCI and Sunxi-EHCI and Sunxi-OHCI options are
enabled in the kernel and i am using the stock script.bin configs
for USB.


Can anyone please help ?

redgs
mallah.


Below is the dump from android dmesg in working state.

<4>[    0.244609] axp config [pmu_para] [pmu_usbvol_limit] : 1
<4>[    0.244620] axp config [pmu_para] [pmu_usbvol] : 4000
<4>[    0.244629] axp config [pmu_para] [pmu_usbcur_limit] : 0
<4>[    0.244639] axp config [pmu_para] [pmu_usbcur] : 0
<6>[    0.296837] usbcore: registered new interface driver usbfs
<6>[    0.297184] usbcore: registered new interface driver hub
<6>[    0.297492] usbcore: registered new device driver usb
<6>[    0.342767] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
<4>[    0.342991] Line:1148:ohci_hcd_mod_init
<6>[    0.343000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
<4>[    0.343191] line = 483,usb_manager_init
<4>[    0.343197] [usb_manager]: CONFIG_USB_SW_SUN7I_USB0_OTG
<4>[    0.343228]
WRN:L212(drivers/usb/sun7i_usb/manager/usb_manager.c):ERR: get
usbc(0) det_vbus gpio failed
<4>[    0.343245]
WRN:L235(drivers/usb/sun7i_usb/manager/usb_manager.c):ERR: get
usbc(0) det_vbus failed
<4>[    0.343259]
WRN:L244(drivers/usb/sun7i_usb/manager/usb_manager.c):ERR: get
usbc(0) ac_enable failed
<4>[    0.343273]
WRN:L252(drivers/usb/sun7i_usb/manager/usb_manager.c):ERR: get
usbc0(usb_restrict) failed
<4>[    0.343847] [sw_hcd0]: usb host driver initialize........
<4>[    0.343946] [sw_hcd0]: open_usb_clock
<4>[    0.364050] WRN:L300(drivers/usb/sun7i_usb/hcd/hcd0/sw_hcd0.c):ERR:
get
usbc0(drv vbus) failed
<4>[    0.364071] [sw_hcd0]: platform is usb host
<4>[    0.364150] [sw_hcd0]: sw_hcd_init_controller: sw_hcd_host0: USB Host
mode
controller at f1c13000 using PIO, IRQ 70
<6>[    0.364192] sw_hcd_host0 sw_hcd_host0: new USB bus registered,
assigned
bus number 1
<6>[    0.365308] hub 1-0:1.0: USB hub found
<4>[    0.365815] [sw_hcd0]: sw_usb_host0_disable start
<4>[    0.365839] [sw_hcd_host0]: Set USB Power OFF
<4>[    0.365875] [sw_hcd0]: close_usb_clock
<4>[    0.365892] [sw_hcd0]: sw_usb_host0_disable end
<4>[    2.352092] WRN:L163(drivers/usb/host/sw_hci_sun7i.c):ERR:
sw-ehci1(restrict_gpio) is invalid
<4>[    2.361638] WRN:L172(drivers/usb/host/sw_hci_sun7i.c):ERR:
sw-ehci1(drv
vbus) is invalid
<4>[    2.370726] WRN:L163(drivers/usb/host/sw_hci_sun7i.c):ERR:
sw-ohci1(restrict_gpio) is invalid
<4>[    2.380258] WRN:L172(drivers/usb/host/sw_hci_sun7i.c):ERR:
sw-ohci1(drv
vbus) is invalid
<4>[    2.389340] WRN:L163(drivers/usb/host/sw_hci_sun7i.c):ERR:
sw-ehci2(restrict_gpio) is invalid
<4>[    2.398892] WRN:L163(drivers/usb/host/sw_hci_sun7i.c):ERR:
sw-ohci2(restrict_gpio) is invalid
<4>[    2.408927] [sw-ehci1]: probe, pdev->name: sw-ehci, pdev->id: 1,
sw_ehci:
0xc0788234
<4>[    2.417596] [sw-ehci1]: open clock
<4>[    2.441317] [sw-ehci1]: open clock, 0x60(0xc042), 0xcc(0x102)
<4>[    2.447729] [sw-ehci1]: Set USB Power ON
<6>[    2.452124] sw-ehci sw-ehci.1: SW USB2.0 'Enhanced' Host Controller
(EHCI)
Driver
<6>[    2.460506] sw-ehci sw-ehci.1: new USB bus registered, assigned bus
number
2
<6>[    2.468504] sw-ehci sw-ehci.1: irq 71, io mem 0xf1c14000
<4>[    2.474454] [ehci_run 736]
<6>[    2.488796] sw-ehci sw-ehci.1: USB 0.0 started, EHCI 1.00
<6>[    2.495838] hub 2-0:1.0: USB hub found
<4>[    2.505181] [sw-ohci1]: probe, pdev->name: sw-ohci, pdev->id: 1,
sw_ohci:
0xc0788348
<4>[    2.513889] [sw-ohci1]: open clock
<4>[    2.537539] [sw-ohci1]: open clock, 0x60(0xc046), 0xcc(0x162)
<4>[    2.543968] [sw_ohci_hcd_probe 361]:reg(0xf1c20060) = c046
<6>[    2.550104] sw-ohci sw-ohci.1: SW USB2.0 'Open' Host Controller (OHCI)
Driver
<6>[    2.558078] sw-ohci sw-ohci.1: new USB bus registered, assigned bus
number
3
<6>[    2.566032] sw-ohci sw-ohci.1: irq 96, io mem 0xf1c14400
<6>[    2.633611] hub 3-0:1.0: USB hub found
<4>[    2.643001] [sw-ehci2]: probe, pdev->name: sw-ehci, pdev->id: 2,
sw_ehci:
0xc078845c
<4>[    2.651706] [sw-ehci2]: open clock
<4>[    2.675356] [sw-ehci2]: open clock, 0x60(0xc04e), 0xcc(0x166)
<4>[    2.681776] [sw-ehci2]: Set USB Power ON
<6>[    2.686150] sw-ehci sw-ehci.2: SW USB2.0 'Enhanced' Host Controller
(EHCI)
Driver
<6>[    2.694544] sw-ehci sw-ehci.2: new USB bus registered, assigned bus
number
4
<6>[    2.702611] sw-ehci sw-ehci.2: irq 72, io mem 0xf1c1c000
<4>[    2.708533] [ehci_run 736]
<6>[    2.818790] usb 2-1: new high-speed USB device number 2 using sw-ehci
<6>[    2.838773] sw-ehci sw-ehci.2: USB 0.0 started, EHCI 1.00
<6>[    2.845743] hub 4-0:1.0: USB hub found
<4>[    2.855059] [sw-ohci2]: probe, pdev->name: sw-ohci, pdev->id: 2,
sw_ohci:
0xc0788570
<4>[    2.863772] [sw-ohci2]: open clock
<4>[    2.887423] [sw-ohci2]: open clock, 0x60(0xc05e), 0xcc(0x1e6)
<4>[    2.893850] [sw_ohci_hcd_probe 361]:reg(0xf1c20060) = c05e
<6>[    2.904481] sw-ohci sw-ohci.2: SW USB2.0 'Open' Host Controller (OHCI)
Driver
<6>[    2.912483] sw-ohci sw-ohci.2: new USB bus registered, assigned bus
number
5
<6>[    2.920393] sw-ohci sw-ohci.2: irq 97, io mem 0xf1c1c400
<6>[    2.983648] hub 5-0:1.0: USB hub found
<6>[    2.993047] usbcore: registered new interface driver cdc_acm
<6>[    2.999399] cdc_acm: USB Abstract Control Model driver for USB modems
and
ISDN adapters
<6>[    3.008330] Initializing USB Mass Storage driver...
<6>[    3.014174] usbcore: registered new interface driver usb-storage
<6>[    3.021002] USB Mass Storage support registered.
<6>[    3.026654] usbcore: registered new interface driver usbserial
<6>[    3.033223] usbserial: USB Serial Driver core
<6>[    3.038282] USB Serial support registered for GSM modem (1-port)
<6>[    3.045451] usbcore: registered new interface driver option
<6>[    3.051790] option: v0.7.2:USB Driver for GSM modems
<4>[    3.057840] [sw_udc]: [sw_usb_udc]: binding gadget driver
'android_usb'
<4>[    3.073321] WRN:L2583(drivers/usb/sun7i_usb/udc/sw_udc.c):ERR: usb
device
is not active
<4>[    3.087262] WRN:L2618(drivers/usb/sun7i_usb/udc/sw_udc.c):
<4>[    3.098102] ERR: usb device is not active
<6>[    3.105979] android_usb gadget: Mass Storage Function, version:
2009/09/11
<6>[    3.113701] android_usb gadget: Number of LUNs=3
<4>[    3.118827] The port change to OHCI now!
<4>[    3.140365] WRN:L2583(drivers/usb/sun7i_usb/udc/sw_udc.c):ERR: usb
device
is not active
<6>[    3.149370] android_usb gadget: android_usb ready
<6>[    3.334758] usb 5-1: new low-speed USB device number 2 using sw-ohci
<6>[    3.616331] input: HID 0b38:0010 as
/devices/platform/sw-ohci.2/usb5/5-1/5-1:1.0/input/input3
<6>[    3.626481] generic-usb 0003:0B38:0010.0001: input: USB HID v1.10
Keyboard
[HID 0b38:0010] on usb-sw-ohci-1/input0
<6>[    3.647482] input: HID 0b38:0010 as
/devices/platform/sw-ohci.2/usb5/5-1/5-1:1.1/input/input4
<6>[    3.657498] generic-usb 0003:0B38:0010.0002: input: USB HID v1.10
Device
[HID 0b38:0010] on usb-sw-ohci-1/input1
<6>[    3.669220] usbcore: registered new interface driver usbhid
<6>[    3.675434] usbhid: USB HID core driver
<6>[    3.707801] usbcore: registered new interface driver snd-usb-audio
<4>[    5.397516] [sw_hcd0]: sw_usb_host0_enable start
<4>[    5.408252] [sw_hcd0]: open_usb_clock
<4>[    5.432259] WRN:L300(drivers/usb/sun7i_usb/hcd/hcd0/sw_hcd0.c):ERR:
get
usbc0(drv vbus) failed
<4>[    5.446484] [sw_hcd_host0]: Set USB Power ON
<4>[    5.451266] [sw_hcd0]: sw_usb_host0_enable end
<6>[    8.996239] usbcore: registered new interface driver uvcvideo
<6>[    9.003010] USB Video Class driver (v1.1.0)
 <6>[    9.963760] init: processing action 0x34990
(property:persist.sys.usb.config=*)
<6>[    9.977022] init: processing action 0x37778
(property:sys.usb.config=mass_storage,adb)
<3>[    9.987658] android_usb: already disabled
<3>[   10.005899] init: using deprecated syntax for specifying property
'sys.usb.config', use ${name} instead
<3>[   10.034251] init: using deprecated syntax for specifying property
'sys.usb.config', use ${name} instead
<4>[   10.079908] WRN:L2618(drivers/usb/sun7i_usb/udc/sw_udc.c):ERR: usb
device
is not active
<4>[   10.079930] WRN:L2663(drivers/usb/sun7i_usb/udc/sw_udc.c):ERR: usb
device
is not active

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to