Edited by ivan_ucherdjiev at 2015-6-13 20:35
Hello again,
I fixed the problem with the USBs it was a problem in the default sys_config.fex file. They were not init as they should be. Now everythink work nice and smooth. For usbs the default config was :
;--------------------------------
;--- USB0控制标志
;--------------------------------
[usbc0]
usb_used = 1
usb_port_type = 1
usb_detect_type = 1
usb_id_gpio =
usb_det_vbus_gpio =
usb_drv_vbus_gpio = port
L02<1><0><default><0>
usb_host_init_state = 1
usb_restrict_gpio =
usb_restric_flag = 0
usb_restric_voltage = 3550000
usb_restric_capacity= 5
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_not_suspend = 0
;--------------------------------
;--- USB1控制标志
;--------------------------------
[usbc1]
usb_used = 1
usb_drv_vbus_gpio = port
L03<1><0><default><0>
usb_restrict_gpio =
usb_host_init_state = 1
usb_restric_flag = 0
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_not_suspend = 0
;--------------------------------
;--- USB2控制标志
;--------------------------------
[usbc2]
usb_used = 0
usb_drv_vbus_gpio =
usb_restrict_gpio =
usb_host_init_state = 1
usb_restric_flag = 0
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_not_suspend = 0
;--------------------------------
;--- USB3控制标志
;--------------------------------
[usbc3]
usb_used = 1
usb_drv_vbus_gpio =
usb_restrict_gpio =
usb_host_init_state = 0
usb_restric_flag = 0
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_not_suspend = 0
;--------------------------------
The right one, that i used is :
;--------------------------------
;--- USB0控制标志
;--------------------------------
[usbc0]
usb_used = 1
usb_port_type = 2
usb_detect_type = 1
usb_id_gpio =
usb_det_vbus_gpio =
usb_drv_vbus_gpio = port
L02<1><0><default><0>
usb_host_init_state = 1
usb_restrict_gpio =
usb_restric_flag = 0
usb_restric_voltage = 3550000
usb_restric_capacity= 5
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_not_suspend = 0
;--------------------------------
;--- USB1控制标志
;--------------------------------
[usbc1]
usb_used = 1
usb_drv_vbus_gpio = port
G13<1><0><default><0>
usb_restrict_gpio =
usb_host_init_state = 1
usb_restric_flag = 0
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_not_suspend = 0
;--------------------------------
;--- USB2控制标志
;--------------------------------
[usbc2]
usb_used = 0
usb_drv_vbus_gpio =
usb_restrict_gpio =
usb_host_init_state = 1
usb_restric_flag = 0
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_not_suspend = 0
;--------------------------------
;--- USB3控制标志
;--------------------------------
[usbc3]
usb_used = 1
usb_drv_vbus_gpio =
usb_restrict_gpio =
usb_host_init_state = 1
usb_restric_flag = 0
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_not_suspend = 0
;--------------------------------
and for the wifi also need changes to be done
default one config is :
;--------------------------------------------------------------------------------
;wifi/bt/fm/gps/nfc modules configuration
;module_num:
; 0- none
; 1- rtl8188eu(wifi)
; 2- rtl8723bs(wifi+bt)
; 3- ap6181(wifi)
; 4- ap6210(wifi+bt)
; 5- ap6330(wifi+bt)
; 6- ap6335(wifi)
; 7- rtl8189etv(wifi)
;module_power0: axp used by module, "axp22_dldo1" - use dldo1, not use keep it empty
;module_power0_vol: power0 voltage, mv;
;chip_en: enable chip io
;lpo_use_apclk: ""- not use, "losc_out"- a23/33/H3, "ac10032k1"、"ac10032k2"、"ac10032k3"- a80
;--------------------------------------------------------------------------------
[module_para]
module_num = 1
module_power0 =
module_power0_vol = 0
module_power1 =
module_power1_vol =
module_power2 =
module_power2_vol =
module_power3 =
module_power3_vol =
chip_en =
lpo_use_apclk =
;--------------------------------------------------------------------------------
;wifi configuration
;wifi_sdc_id: 0- SDC0, 1- SDC1, 2- SDC2, 3- SDC3
;wifi_usbc_id: 0- USB0, 1- USB1, 2- USB2
;wifi_usbc_type: 1- EHCI(speed 2.0), 2- OHCI(speed 1.0)
;wl_reg_on: wifi function enable pin
;wl_host_wake: wlan device wake-up host pin
;wl_host_wake_invert: whether wl_host_wake use inverter between ap and module
; 0: not used, 1: used
;--------------------------------------------------------------------------------
[wifi_para]
wifi_used = 1
wifi_sdc_id = 1
wifi_usbc_id = 3
wifi_usbc_type = 1
wl_reg_on = port
L07<1><default><default><1>
wl_host_wake =
wl_host_wake_invert = 0
;-------------------------------------------------------------------------------
the right one is :
;--------------------------------------------------------------------------------
;wifi/bt/fm/gps/nfc modules configuration
;module_num:
; 0- none
; 1- rtl8188eu(wifi)
; 2- rtl8723bs(wifi+bt)
; 3- ap6181(wifi)
; 4- ap6210(wifi+bt)
; 5- ap6330(wifi+bt)
; 6- ap6335(wifi)
; 7- rtl8189etv(wifi)
;module_power0: axp used by module, "axp22_dldo1" - use dldo1, not use keep it empty
;module_power0_vol: power0 voltage, mv;
;chip_en: enable chip io
;lpo_use_apclk: ""- not use, "losc_out"- a23/33/H3, "ac10032k1"、"ac10032k2"、"ac10032k3"- a80
;--------------------------------------------------------------------------------
[module_para]
module_num = 7
module_power0 = "vcc-wifi-33"
module_power0_vol = 0
module_power1 =
module_power1_vol =
module_power2 =
module_power2_vol =
module_power3 =
module_power3_vol =
chip_en =
lpo_use_apclk =
;--------------------------------------------------------------------------------
;wifi configuration
;wifi_sdc_id: 0- SDC0, 1- SDC1, 2- SDC2, 3- SDC3
;wifi_usbc_id: 0- USB0, 1- USB1, 2- USB2
;wifi_usbc_type: 1- EHCI(speed 2.0), 2- OHCI(speed 1.0)
;wl_reg_on: wifi function enable pin
;wl_host_wake: wlan device wake-up host pin
;wl_host_wake_invert: whether wl_host_wake use inverter between ap and module
; 0: not used, 1: used
;--------------------------------------------------------------------------------
[wifi_para]
wifi_used = 1
wifi_sdc_id = 1
wifi_usbc_id = 2
wifi_usbc_type = 1
wl_reg_on = port
L07<1><default><default><0>
wl_host_wake = port
G10<0><default><default><0>
wl_host_wake_invert = 0
;--------------------------------------------------------------------------------
This configs would work for OPI2 and OPIPLUS.
Thanks for the support fritz