USB OTG blocking HDMI LCD


#1

Hello, I am using HDMI 7" display with usb (i2c) touchscreen. When i plug the usb touch to the standard USB everything works, but i would like to use the micro USB OTG. I reconfigured the usb otg in script.bin to make it similar to standard USB:

[usbc0]
usb_used = 1   
usb_port_type = 1
usb_detect_type = 0
usb_id_gpio = port:PH04<0><1><default><default>
usb_det_vbus_gpio = port:PH05<0><0><default><default>
usb_drv_vbus_gpio = port:PB09<1><0><default><0>
usb_restrict_gpio = port:PH00<1><0><default><0>
usb_host_init_state = 1
usb_restric_flag = 0
usb_restric_voltage = 3550000
usb_restric_capacity = 5

[usbc1]
usb_used = 1
usb_port_type = 1
usb_detect_type = 0
usb_drv_vbus_gpio = port:PH06<1><0><default><0>
usb_restrict_gpio =
usb_host_init_state = 1
usb_restric_flag = 0

But it is not working. The screen is blinking about each 5 seconds and on the dmesg there messages like that:

[  554.425695] usb 1-1: new full-speed USB device number 4 using sw_hcd_host0
[  554.564868] WRN:L1722(drivers/usb/sunxi_usb/hcd/core/sw_hcd_host.c):ERR: sw_hcd_h_ep0_irq, STALLING ENDPOINT
[  554.573395] WRN:L1741(drivers/usb/sunxi_usb/hcd/core/sw_hcd_host.c):ERR: sw_hcd_h_ep0_irq, ep aborting
[  554.581467] WRN:L1722(drivers/usb/sunxi_usb/hcd/core/sw_hcd_host.c):ERR: sw_hcd_h_ep0_irq, STALLING ENDPOINT
[  554.589992] WRN:L1741(drivers/usb/sunxi_usb/hcd/core/sw_hcd_host.c):ERR: sw_hcd_h_ep0_irq, ep aborting
[  554.598060] WRN:L1722(drivers/usb/sunxi_usb/hcd/core/sw_hcd_host.c):ERR: sw_hcd_h_ep0_irq, STALLING ENDPOINT
[  554.606585] WRN:L1741(drivers/usb/sunxi_usb/hcd/core/sw_hcd_host.c):ERR: sw_hcd_h_ep0_irq, ep aborting
[  554.616081] usb 1-1: New USB device found, idVendor=0483, idProduct=5750
[  554.622172] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  554.626279] usb 1-1: Product: ByQDtech 触控USB鼠标
[  554.632104] usb 1-1: Manufacturer: 深圳市全动电子技术有限公司
[  554.635599] usb 1-1: SerialNumber: 878F14695455
[  554.643786] WRN:L1722(drivers/usb/sunxi_usb/hcd/core/sw_hcd_host.c):ERR: sw_hcd_h_ep0_irq, STALLING ENDPOINT
[  554.652318] WRN:L1741(drivers/usb/sunxi_usb/hcd/core/sw_hcd_host.c):ERR: sw_hcd_h_ep0_irq, ep aborting
[  554.671226] input: 深圳市全动电子技术有限公司 ByQDtech 触控USB鼠标 as /devices/platform/sw_hcd_host0/usb1/1-1/1-1:1.0/input/input4
[  554.687520] hid-multitouch 0003:0483:5750.0003: input,hidraw0: USB HID v1.10 Device [深圳市全动电子技术有限公司 ByQDtech 触控USB鼠标] on usb-sw_hcd_host0-1/input0
[  554.744307] ParseEDID
[  554.754726] i2c i2c-4: unable to read EDID block 0, try 1/3
[  554.764766] i2c i2c-4: unable to read EDID block 0, try 2/3
[  554.774694] i2c i2c-4: unable to read EDID block 0, try 3/3
[  558.931722] ParseEDID
[  558.979572] EDID version: 1.3
[  558.985407] PCLK=49000000 X 1024 1029 1042 1312 Y 600 602 605 622 fr 60 NP
[  558.991445] disp_clk: Could not find a matching pll-freq for 172900000 pclk
[  558.997370] disp_clk: Could not find a matching pll-freq for 118650000 pclk
[  559.003195] disp_clk: Could not find a matching pll-freq for 95350000 pclk
[  559.009029] disp_clk: Could not find a matching pll-freq for 84700000 pclk
[  559.014854] disp_clk: Could not find a matching pll-freq for 74600000 pclk
[  559.020686] disp_clk: Could not find a matching pll-freq for 59900000 pclk
[  559.031522] disp_clk: Could not find a matching pll-freq for 46750000 pclk
[  559.037951] disp_clk: Could not find a matching pll-freq for 172900000 pclk
[  559.043864] disp_clk: Could not find a matching pll-freq for 118650000 pclk
[  559.049705] disp_clk: Could not find a matching pll-freq for 95350000 pclk
[  559.055530] disp_clk: Could not find a matching pll-freq for 84700000 pclk
[  559.061363] disp_clk: Could not find a matching pll-freq for 74600000 pclk
[  559.067195] disp_clk: Could not find a matching pll-freq for 59900000 pclk
[  559.073020] disp_clk: Could not find a matching pll-freq for 46750000 pclk[  562.851081] ParseEDID
[  562.864697] i2c i2c-4: unable to read EDID block 0, try 1/3
[  562.874683] i2c i2c-4: unable to read EDID block 0, try 2/3
[  562.884677] i2c i2c-4: unable to read EDID block 0, try 3/3
[  567.041726] ParseEDID
[  567.089569] EDID version: 1.3
[  567.095403] PCLK=49000000 X 1024 1029 1042 1312 Y 600 602 605 622 fr 60 NP
[  567.101407] disp_clk: Could not find a matching pll-freq for 172900000 pclk
[  567.107330] disp_clk: Could not find a matching pll-freq for 118650000 pclk
[  567.113155] disp_clk: Could not find a matching pll-freq for 95350000 pclk
[  567.118988] disp_clk: Could not find a matching pll-freq for 84700000 pclk
[  567.124812] disp_clk: Could not find a matching pll-freq for 74600000 pclk
[  567.135673] disp_clk: Could not find a matching pll-freq for 59900000 pclk
[  567.141498] disp_clk: Could not find a matching pll-freq for 46750000 pclk
[  567.147924] disp_clk: Could not find a matching pll-freq for 172900000 pclk
[  567.153838] disp_clk: Could not find a matching pll-freq for 118650000 pclk
[  567.159680] disp_clk: Could not find a matching pll-freq for 95350000 pclk
[  567.165505] disp_clk: Could not find a matching pll-freq for 84700000 pclk
[  567.171341] disp_clk: Could not find a matching pll-freq for 74600000 pclk
[  567.177173] disp_clk: Could not find a matching pll-freq for 59900000 pclk
[  567.182998] disp_clk: Could not find a matching pll-freq for 46750000 pclk

When using standard USB the output is:

[  644.872337] usb 1-1: USB disconnect, device number 4
[  647.424196] ehci_irq: port change detect
[  647.642469] ehci_irq: port change detect
[  647.702501] The port change to OHCI now!
[  648.005280] usb 5-1: new full-speed USB device number 2 using sw-ohci
[  648.149068] ParseEDID
[  648.154731] i2c i2c-4: unable to read EDID block 0, try 1/3
[  648.164692] i2c i2c-4: unable to read EDID block 0, try 2/3
[  648.174736] i2c i2c-4: unable to read EDID block 0, try 3/3
[  648.200523] usb 5-1: New USB device found, idVendor=0483, idProduct=5750
[  648.206629] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  648.210723] usb 5-1: Product: ByQDtech 触控USB鼠标
[  648.216560] usb 5-1: Manufacturer: 深圳市全动电子技术有限公司
[  648.220047] usb 5-1: SerialNumber: 878F14695455
[  648.243448] input: 深圳市全动电子技术有限公司 ByQDtech 触控USB鼠标 as /devices/platform/sw-ohci.2/usb5/5-1/5-1:1.0/input/input5
[  648.259328] hid-multitouch 0003:0483:5750.0004: input,hidraw0: USB HID v1.10 Device [深圳市全动电子技术有限公司 ByQDtech 触控USB鼠标] on usb-sw-ohci-1/input0

Can someone help me?


#2

It looks like a problem with edid. When i have LCD connected via standard USB i am getting:

 root@bananapi ~ # get-edid
This is read-edid version 3.0.1. Prepare for some fun.
Attempting to use i2c interface
No EDID on bus 0
No EDID on bus 1
No EDID on bus 2
No EDID on bus 3
1 potential busses found: 4
256-byte EDID successfully retrieved from i2c bus 4
������6	p�
#���MPI7002����$ AX 
Looks like i2c was successful. Have a good day.
 y���������������������2Nl�����e@1,	�������kR6kZI;+��������#    

It is the same all the time, but when LCD is connected via USB otg the edid is allways different. For example:

This is read-edid version 3.0.1. Prepare for some fun.
Attempting to use i2c interface
No EDID on bus 0
No EDID on bus 1
No EDID on bus 2
No EDID on bus 3
1 potential busses found: 4
256-byte EDID successfully retrieved from i2c bus 4
������6	p�
#���MPI7002����$ AX 
Looks like i2c was successful. Have a good day.
     y����������������������������������������������������������������������������������������������������������#                                                                                         root@bananapi ~ # get-edid
This is read-edid version 3.0.1. Prepare for some fun.
Attempting to use i2c interface
No EDID on bus 0
No EDID on bus 1
No EDID on bus 2
No EDID on bus 3
1 potential busses found: 4
256-byte EDID successfully retrieved from i2c bus 4
������6	p�
#���MPI7002����$ AX 
Looks like i2c was successful. Have a good day.
     y����������������������������������������������������������������������������������������������������������������������#                                                                             root@bananapi ~ # get-edid
This is read-edid version 3.0.1. Prepare for some fun.
Attempting to use i2c interface
No EDID on bus 0
No EDID on bus 1
No EDID on bus 2
No EDID on bus 3
1 potential busses found: 4
256-byte EDID successfully retrieved from i2c bus 4
������6	p�
#���MPI7002����$ AX 
Looks like i2c was successful. Have a good day.
     y���������������������2Nl�����e@1,	�������kR6kZ�����������������������������#                                                                                       root@bananapi ~ # get-edid
This is read-edid version 3.0.1. Prepare for some fun.
Attempting to use i2c interface
No EDID on bus 0
No EDID on bus 1
No EDID on bus 2
No EDID on bus 3
1 potential busses found: 4
256-byte EDID successfully retrieved from i2c bus 4
������6	p�
#���MPI7002����$ AX 
Looks like i2c was successful. Have a good day.
     y���������������������������������������������������������������������������������������������������������#