[U-Boot] [PATCH] rockchip: rk3229: add dwc2 node for fastboot

2017-07-12 Thread Meng Dongyang
The dwc2 gadget function will get address from DT when fastboot start, so we need to add dwc2 node to support fastboot. Meng Dongyang (1): rockchip: dts: rk3229: add dwc2 node for fastboot arch/arm/dts/rk3229-evb.dts | 4 arch/arm/dts/rk322x.dtsi| 10 ++ 2 files changed, 14

[U-Boot] [PATCH] rockchip: dts: rk3229: add dwc2 node for fastboot

2017-07-12 Thread Meng Dongyang
Add dwc2 node for fastboot to init dwc2 controller. Signed-off-by: Meng Dongyang --- arch/arm/dts/rk3229-evb.dts | 4 arch/arm/dts/rk322x.dtsi| 10 ++ 2 files changed, 14 insertions(+) diff --git a/arch/arm/dts/rk3229-evb.dts b/arch/arm/dts/rk3229-evb.dts index ccdac1c

[U-Boot] [PATCH v8 8/8] rockchip: dts: rk3399: control vbus of typec by fixed regulator

2017-06-28 Thread Meng Dongyang
Add fixed regulator for the port of typec0 and typec1 to control vbus instead of gpio. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass Reviewed-by: Philipp Tomsich Acked-by: Philipp Tomsich --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in

[U-Boot] [PATCH v8 1/8] usb: Kconfig: config USB_XHCI_ROCKCHIP depends on DM_REGULATOR and DM_USB

2017-06-28 Thread Meng Dongyang
The xhci-rockchip driver depends on DM_REGULATOR and DM_USB. So add dependent features for xhci-rockchip driver in Kconfig. Signed-off-by: Meng Dongyang Reviewed-by: Philipp Tomsich Acked-by: Philipp Tomsich --- Changes in v8: None Changes in v7: None Changes in v6: - New patch, add depends

[U-Boot] [PATCH v8 6/8] rockchip: rk3328: board: add support of dwc2 gadget

2017-06-28 Thread Meng Dongyang
Probe dwc2 udc in the function of board_usb_start to enable usb gadget function. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass Reviewed-by: Philipp Tomsich Acked-by: Philipp Tomsich --- Changes in v8: None Changes in v7: None Changes in v6: None Chagnes in v5: None Changes in v4

[U-Boot] [PATCH v8 5/8] usb: dwc2: use dev_read_bool() instead of fdt_getprop()

2017-06-28 Thread Meng Dongyang
Use dev_read_bool() instead of fdt_getprop() to get the property from DTS. And add a comment for "hnp-srp-disable" property to fully describe its effect. Signed-off-by: Meng Dongyang Reviewed-by: Philipp Tomsich Acked-by: Philipp Tomsich --- Changes in v8: None Changes in v7: - Rom

[U-Boot] [PATCH v8 3/8] rockchip: dts: rk3328: add fixed regulator node for xhci

2017-06-28 Thread Meng Dongyang
The driver changes gpio to fixed regulator to control vbus, so add fixed regulator node in DTS for xhci driver. Signed-off-by: Meng Dongyang Reviewed-by: Philipp Tomsich Acked-by: Philipp Tomsich --- Changes in v8: None Changes in v7: None Changes in v6: - New patch, splited from [PATCH,v5,06

[U-Boot] [PATCH v8 7/8] rockchip: dts: rk3328: support and enable dwc2

2017-06-28 Thread Meng Dongyang
Enable dwc2 controller and add fixed regulator for dwc2 controller to control vbus. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass Reviewed-by: Philipp Tomsich Acked-by: Philipp Tomsich --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4

[U-Boot] [PATCH v8 0/8] rk3328: add support of usb host and gadget

2017-06-28 Thread Meng Dongyang
into two patches - Use fixed regulator to control vbus instead of gpio Meng Dongyang (8): usb: Kconfig: config USB_XHCI_ROCKCHIP depends on DM_REGULATOR and DM_USB usb: host: xhci-rockchip: use fixed regulator to control vbus rockchip: dts: rk3328: add fixed regulator node for xhci roc

[U-Boot] [PATCH v8 4/8] rockchip: configs: rk3328: enable dwc2 driver and config fastboot

2017-06-28 Thread Meng Dongyang
Config dwc2 driver support host and gadget function. Add support of fastboot function. Signed-off-by: Meng Dongyang Acked-by: Philipp Tomsich --- Changes in v8: - Convert CONFIG_USB_DWC2 to a Kconfig entry Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes

[U-Boot] [PATCH v8 2/8] usb: host: xhci-rockchip: use fixed regulator to control vbus

2017-06-28 Thread Meng Dongyang
Use fixed regulator to control the voltage of vbus. Enable vbus supply when usb start and disable vbus supply when usb stop. Signed-off-by: Meng Dongyang Reviewed-by: Philipp Tomsich Acked-by: Philipp Tomsich --- Changes in v8: None Changes in v7: None Changes in v6: - Remove #ifdef

[U-Boot] [PATCH v7 8/8] rockchip: dts: rk3399: control vbus of typec by fixed regulator

2017-06-23 Thread Meng Dongyang
Add fixed regulator for the port of typec0 and typec1 to control vbus instead of gpio. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None arch/arm/dts/rk3399-evb.dts | 16

[U-Boot] [PATCH v7 4/8] rockchip: configs: rk3328: enable dwc2 driver and config fastboot

2017-06-23 Thread Meng Dongyang
Config dwc2 driver support host and gadget function. Add support of fastboot function. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None configs/evb

[U-Boot] [PATCH v7 1/8] usb: Kconfig: config USB_XHCI_ROCKCHIP depends on DM_REGULATOR and DM_USB

2017-06-23 Thread Meng Dongyang
The xhci-rockchip driver depends on DM_REGULATOR and DM_USB. So add dependent features for xhci-rockchip driver in Kconfig. Signed-off-by: Meng Dongyang --- Changes in v7: None Changes in v6: - New patch, add depends on features for xhci-rockchip in Kconfig drivers/usb/host/Kconfig | 2 ++ 1

[U-Boot] [PATCH v7 5/8] usb: dwc2: use dev_read_bool() instead of fdt_getprop()

2017-06-23 Thread Meng Dongyang
Use dev_read_bool() instead of fdt_getprop() to get the property from DTS. And add a comment for "hnp-srp-disable" property to fully describe its effect. Signed-off-by: Meng Dongyang --- Changes in v7: - Romove unused variable ‘prop’ in dwc2 driver Changes in v6: - New p

[U-Boot] [PATCH v7 2/8] usb: host: xhci-rockchip: use fixed regulator to control vbus

2017-06-23 Thread Meng Dongyang
Use fixed regulator to control the voltage of vbus. Enable vbus supply when usb start and disable vbus supply when usb stop. Signed-off-by: Meng Dongyang --- Changes in v7: None Changes in v6: - Remove #ifdef DM_REGULATOR and DM_USB due to the addition in Kconfig Changes in v5: - Propagate the

[U-Boot] [PATCH v7 7/8] rockchip: dts: rk3328: support and enable dwc2

2017-06-23 Thread Meng Dongyang
Enable dwc2 controller and add fixed regulator for dwc2 controller to control vbus. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - add hnp-srp-disable property arch/arm/dts/rk3328

[U-Boot] [PATCH v7 6/8] rockchip: rk3328: board: add support of dwc2 gadget

2017-06-23 Thread Meng Dongyang
Probe dwc2 udc in the function of board_usb_start to enable usb gadget function. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v7: None Changes in v6: None Chagnes in v5: None Changes in v4: None Changes in v3: None board/rockchip/evb_rk3328/evb-rk3328.c | 42

[U-Boot] [PATCH v7 3/8] rockchip: dts: rk3328: add fixed regulator node for xhci

2017-06-23 Thread Meng Dongyang
The driver changes gpio to fixed regulator to control vbus, so add fixed regulator node in DTS for xhci driver. Signed-off-by: Meng Dongyang --- Changes in v7: None Changes in v6: - New patch, splited from [PATCH,v5,06/11] arch/arm/dts/rk3328-evb.dts | 11 ++- 1 file changed, 10

[U-Boot] [PATCH v7 0/8] rk3328: add support of usb host and gadget

2017-06-23 Thread Meng Dongyang
gpio Meng Dongyang (8): usb: Kconfig: config USB_XHCI_ROCKCHIP depends on DM_REGULATOR and DM_USB usb: host: xhci-rockchip: use fixed regulator to control vbus rockchip: dts: rk3328: add fixed regulator node for xhci rockchip: configs: rk3328: enable dwc2 driver and config fastboot

[U-Boot] [PATCH v6 5/8] usb: dwc2: use dev_read_bool() instead of fdt_getprop()

2017-06-20 Thread Meng Dongyang
Use dev_read_bool() instead of fdt_getprop() to get the property from DTS. And add a comment for "hnp-srp-disable" property to fully describe its effect. Signed-off-by: Meng Dongyang --- Changes in v6: - New patch - Use dev_read_bool() instead of fdt_getprop() - Add a comment fo

[U-Boot] [PATCH v6 7/8] rockchip: dts: rk3328: support and enable dwc2

2017-06-20 Thread Meng Dongyang
Enable dwc2 controller and add fixed regulator for dwc2 controller to control vbus. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - add hnp-srp-disable property arch/arm/dts/rk3328-evb.dts | 14

[U-Boot] [PATCH v6 2/8] usb: host: xhci-rockchip: use fixed regulator to control vbus

2017-06-20 Thread Meng Dongyang
Use fixed regulator to control the voltage of vbus and turn off vbus when usb stop. Signed-off-by: Meng Dongyang --- Changes in v6: - Remove #ifdef DM_REGULATOR and DM_USB due to the addition in Kconfig Changes in v5: - Propagate the return value of setting VBus and print error when failed

[U-Boot] [PATCH v6 8/8] rockchip: dts: rk3399: control vbus of typec by fixed regulator

2017-06-20 Thread Meng Dongyang
Add fixed regulator for the port of typec0 and typec1 to control vbus instead of gpio. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None arch/arm/dts/rk3399-evb.dts | 16 ++-- 1 file changed

[U-Boot] [PATCH v6 3/8] rockchip: dts: rk3328: add fix-regulator node for xhci

2017-06-20 Thread Meng Dongyang
The driver changes gpio to fix-regulator to control vbus, so add fix-regulator node in DTS for xhci driver. Signed-off-by: Meng Dongyang --- Changes in v6: - New patch, splited from [PATCH,v5,06/11] arch/arm/dts/rk3328-evb.dts | 11 ++- 1 file changed, 10 insertions(+), 1 deletion

[U-Boot] [PATCH v6 4/8] rockchip: configs: rk3328: enable dwc2 driver and config fastboot

2017-06-20 Thread Meng Dongyang
Config dwc2 driver support host and gadget function. Add support of fastboot function. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None configs/evb-rk3328_defconfig| 19

[U-Boot] [PATCH v6 6/8] rockchip: rk3328: board: add support of dwc2 gadget

2017-06-20 Thread Meng Dongyang
Probe dwc2 udc in the function of board_usb_start to enable usb gadget function. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v6: None Chagnes in v5: None Changes in v4: None Changes in v3: None board/rockchip/evb_rk3328/evb-rk3328.c | 42

[U-Boot] [PATCH v6 1/8] usb: Kconfig: add depends on features for xhci-rockchip driver

2017-06-20 Thread Meng Dongyang
The xhci-rockchip driver depends on DM_REGULATOR and DM_USB. So add depends on features in Kconfig to make the driver explicitly depend on DM_REGULATOR and DM_USB. Signed-off-by: Meng Dongyang --- Changes in v6: - New patch, add depends on features for xhci-rockchip in Kconfig drivers/usb

[U-Boot] [PATCH v6 0/8] rk3328: add support of usb host and gadget

2017-06-20 Thread Meng Dongyang
evert change of macro definition in dwc2 driver - Support host mode without HNP/SRP capability through DTS Changes in v2: - Add commit messages - Split patch [U-boot,7/8] into two patches - Use fixed regulator to control vbus instead of gpio Meng Dongyang (8): usb: Kconfig: add depends on featur

[U-Boot] [PATCH v5 09/11] rockchip: rk3328: board: add support of dwc2 gadget

2017-06-12 Thread Meng Dongyang
Probe dwc2 udc in the function of board_usb_start to enable usb gadget function. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Chagnes in v5: None Changes in v4: None Changes in v3: None board/rockchip/evb_rk3328/evb-rk3328.c | 43 +++--- 1 file

[U-Boot] [PATCH v5 10/11] rockchip: dts: rk3328: support and enable dwc2

2017-06-12 Thread Meng Dongyang
Enable dwc2 controller and add fixed regulator for dwc2 controller to control vbus. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: - add hnp-srp-disable property arch/arm/dts/rk3328-evb.dts | 14 ++ arch/arm/dts

[U-Boot] [PATCH v5 11/11] rockchip: dts: rk3399: control vbus of typec by fixed regulator

2017-06-12 Thread Meng Dongyang
Add fixed regulator for the port of typec0 and typec1 to control vbus instead of gpio. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - New change, add fixed regulator for rk3399 arch/arm/dts/rk3399

[U-Boot] [PATCH v5 08/11] usb: dwc2: force to host mode if not support HNP/SRP

2017-06-12 Thread Meng Dongyang
In current code, after running the command of "usb start", the controller will keep in otg mode and can't switch to host mode if not support SNP/SRP capability. So add the property of "hnp-srp-disable" in the DTS to config the contrller work in force mode of host. Sig

[U-Boot] [PATCH v5 04/11] usb: host: xhci-rockchip: use fixed regulator to control vbus

2017-06-12 Thread Meng Dongyang
Use fixed regulator to control the voltage of vbus and turn off vbus when usb stop. Signed-off-by: Meng Dongyang --- Changes in v5: - Propagate return value and print error message when failed Changes in v4: - Splited from patch [Uboot,v3,04/10] - Define set vbus as empty function if the

[U-Boot] [PATCH v5 07/11] rockchip: configs: rk3328: enable dwc2 driver and config fastboot

2017-06-12 Thread Meng Dongyang
Config dwc2 driver support host and gadget function. Add support of fastboot function. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None configs/evb-rk3328_defconfig| 14 ++ include

[U-Boot] [PATCH v5 06/11] rockchip: dts: rk3328: support and enable xhci

2017-06-12 Thread Meng Dongyang
Add dts node of xhci and enable the controller. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- changes in v5: None Changes in v4: None Changes in v3: None arch/arm/dts/rk3328-evb.dts | 14 ++ arch/arm/dts/rk3328.dtsi| 11 +++ 2 files changed, 25 insertions

[U-Boot] [PATCH v5 05/11] usb: host: xhci-rockchip: add support for rk3328

2017-06-12 Thread Meng Dongyang
Add the compatible "rockchip,rk3328-xhci" in match table for rk3328 to probe xhci controller. Signed-off-by: Meng Dongyang --- Chagnes in v5: None Changes in v4: - New patch, splited from patch [Uboot,v3,04/10] drivers/usb/host/xhci-rockchip.c | 2 ++ 1 file changed, 2 insertion

[U-Boot] [PATCH v5 02/11] rockchip: dts: rk3328: add ehci and ohci node and enable host0 port

2017-06-12 Thread Meng Dongyang
Add dts node for ehci and ohci controller, enable the controllers. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/dts/rk3328-evb.dts | 8 arch/arm/dts/rk3328.dtsi| 14 ++ 2 files changed

[U-Boot] [PATCH v5 03/11] rockchip: configs: rk3328: config xhci controller

2017-06-12 Thread Meng Dongyang
Add config of max root ports and add config to enable xhci controller. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None configs/evb-rk3328_defconfig| 3 +++ include/configs/rk3328_common.h | 3 +++ 2

[U-Boot] [PATCH v5 01/11] rockchip: configs: rk3328: support ehci and ohci controller

2017-06-12 Thread Meng Dongyang
Add defconfig for usb and ehci and ohci controller, config maximal number of ports of the root hub for ohci driver. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None configs/evb-rk3328_defconfig| 8

[U-Boot] [PATCH v5 00/11] rk3328: add support of usb host and gadget

2017-06-12 Thread Meng Dongyang
ities in GUSBCFG register once Changes in v3: - Revert change of macro definition in dwc2 driver - Support host mode without HNP/SRP capability through DTS Changes in v2: - Add commit messages - Split patch [U-boot,7/8] into two patches - Use fixed regulator to control vbus instead of gpio

[U-Boot] [PATCH v4 11/11] rockchip: dts: rk3399: control vbus of typec by fixed regulator

2017-06-08 Thread Meng Dongyang
Add fixed regulator for the port of typec0 and typec1 to control vbus instead of gpio. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: - New change, add fixed regulator for rk3399 arch/arm/dts/rk3399-evb.dts | 16

[U-Boot] [PATCH v4 09/11] rk3328: board: add support of dwc2 gadget

2017-06-08 Thread Meng Dongyang
Probe dwc2 udc in the function of board_usb_start to enable usb gadget function. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: - Splited from patch [07/08] of v1 board/rockchip/evb_rk3328/evb-rk3328.c | 43

[U-Boot] [PATCH v4 06/11] rockchip: dts: rk3328: support and enable xhci

2017-06-08 Thread Meng Dongyang
Add dts node of xhci and enable the controller. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: - Add fixed regulator of vbus for xhci controller arch/arm/dts/rk3328-evb.dts | 14 ++ arch/arm/dts/rk3328.dtsi

[U-Boot] [PATCH v4 05/11] usb: host: xhci-rockchip: add support for rk3328

2017-06-08 Thread Meng Dongyang
Add the compatible "rockchip,rk3328-xhci" in match table for rk3328 to probe xhci controller. Signed-off-by: Meng Dongyang --- Changes in v4: - New patch, splited from patch [Uboot,v3,04/10] drivers/usb/host/xhci-rockchip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/d

[U-Boot] [PATCH v4 08/11] usb: dwc2: force to host mode if not support HNP/SRP

2017-06-08 Thread Meng Dongyang
In current code, after running the command of "usb start", the controller will keep in otg mode and can't switch to host mode if not support SNP/SRP capability. So add the property of "hnp-srp-disable" in the DTS to config the contrller work in force mode of host. Sig

[U-Boot] [PATCH v4 10/11] rockchip: dts: rk3328: support and enable dwc2

2017-06-08 Thread Meng Dongyang
Enable dwc2 controller and add fixed regulator for dwc2 controller to control vbus. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: - add hnp-srp-disable property Changes in v2: - Add fixed regulator to control vbus arch/arm/dts/rk3328-evb.dts

[U-Boot] [PATCH v4 07/11] configs: rk3328: enable dwc2 driver and config for fastboot

2017-06-08 Thread Meng Dongyang
Config dwc2 driver support host and gadget function. Add support of fastboot function. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None configs/evb-rk3328_defconfig| 14 ++ include/configs/rk3328_common.h

[U-Boot] [PATCH v4 02/11] rockchip: dts: rk3328: add ehci and ohci node and enable host0 port

2017-06-08 Thread Meng Dongyang
Add dts node for ehci and ohci controller, enable the controllers. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/dts/rk3328-evb.dts | 8 arch/arm/dts/rk3328.dtsi| 14 ++ 2 files changed

[U-Boot] [PATCH v4 04/11] usb: host: xhci-rockchip: use fixed regulator to control vbus

2017-06-08 Thread Meng Dongyang
Use fixed regulator to control the voltage of vbus and turn off vbus when usb stop. Signed-off-by: Meng Dongyang --- Changes in v4: - Splited from patch [Uboot,v3,04/10] - Define set vbus as empty function if the macros aren't set Changes in v3: None Changes in v2: - Use fixed regulat

[U-Boot] [PATCH v4 03/11] configs: rk3328: config xhci controller

2017-06-08 Thread Meng Dongyang
Add config of max root ports and add config to enable xhci controller. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None configs/evb-rk3328_defconfig| 3 +++ include/configs/rk3328_common.h | 3 +++ 2 files changed, 6

[U-Boot] [PATCH v4 00/11] rk3328: add support of usb host and gadget

2017-06-08 Thread Meng Dongyang
ition in dwc2 driver - Support host mode without HNP/SRP capability through DTS Changes in v2: - Add commit messages - Split patch [U-boot,7/8] into two patches - Use fixed regulator to control vbus instead of gpio Meng Dongyang (11): configs: rk3328: add support for usb and config ehci and

[U-Boot] [PATCH v4 01/11] configs: rk3328: add support for usb and config ehci and ohci driver

2017-06-08 Thread Meng Dongyang
Add defconfig for usb and ehci and ohci controller, config maximal number of ports of the root hub for ohci driver. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None configs/evb-rk3328_defconfig| 8 include

[U-Boot] [PATCH v3 10/10] rockchip: dts: rk3399: control vbus of typec by fixed regulator

2017-06-06 Thread Meng Dongyang
Add fixed regulator for the port of typec0 and typec1 to control vbus instead of gpio. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Chnages in v3: None Changes in v2: - New change, add fixed regulator for rk3399 arch/arm/dts/rk3399-evb.dts | 16 ++-- 1 file changed

[U-Boot] [PATCH v3 05/10] rockchip: dts: rk3328: support and enable xhci

2017-06-06 Thread Meng Dongyang
Add dts node of xhci and enable the controller. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: - Add fixed regulator of vbus for xhci controller arch/arm/dts/rk3328-evb.dts | 14 ++ arch/arm/dts/rk3328.dtsi| 11 +++ 2

[U-Boot] [PATCH v3 09/10] rockchip: dts: rk3328: support and enable dwc2

2017-06-06 Thread Meng Dongyang
Enable dwc2 controller and add fixed regulator for dwc2 controller to control vbus. Signed-off-by: Meng Dongyang --- Changes in v3: - add hnp-srp-disable property in DTS Changes in v2: - Add fixed regulator to control vbus arch/arm/dts/rk3328-evb.dts | 14 ++ arch/arm/dts/rk3328

[U-Boot] [PATCH v3 08/10] board: rockchip: evb-rk3328: add support of dwc2 gadget

2017-06-06 Thread Meng Dongyang
Probe dwc2 udc in the function of board_usb_start to enable usb gadget function. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: - Splited from patch [07/08] of v1 board/rockchip/evb_rk3328/evb-rk3328.c | 43 +++--- 1

[U-Boot] [PATCH v3 07/10] usb: dwc2: force to host mode if HNP/SRP not support

2017-06-06 Thread Meng Dongyang
In current code, after running the command of "usb start", the controller will keep in otg mode and can't switch to host mode if not support SNP/SRP capability. So add the property of "hnp-srp-disable" in the DTS to config the contrller work in force mode of host. Sig

[U-Boot] [PATCH v3 06/10] configs: rk3328: enable dwc2 driver and config for fastboot

2017-06-06 Thread Meng Dongyang
Config dwc2 driver support host and gadget function. Add support of fastboot function. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None configs/evb-rk3328_defconfig| 14 ++ include/configs/rk3328_common.h | 3 +++ 2 files

[U-Boot] [PATCH v3 02/10] rockchip: dts: rk3328: add ehci and ohci node and enable host0 port

2017-06-06 Thread Meng Dongyang
Add dts node for ehci and ohci controller, enable the controllers. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/dts/rk3328-evb.dts | 8 arch/arm/dts/rk3328.dtsi| 14 ++ 2 files changed, 22 insertions

[U-Boot] [PATCH v3 03/10] configs: rk3328: config xhci controller

2017-06-06 Thread Meng Dongyang
Add config of max root ports and add config to enable xhci controller. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None configs/evb-rk3328_defconfig| 3 +++ include/configs/rk3328_common.h | 3 +++ 2 files changed, 6 insertions(+) diff

[U-Boot] [PATCH v3 04/10] usb: host: xhci-rockchip: add support for rk3328

2017-06-06 Thread Meng Dongyang
Add the compatible "rockchip,rk3328-xhci" in match table for rk3328 to probe xhci controller. Use fixed regulator to control the voltage of vbus and turn off vbus when usb stop. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: - Use fixed

[U-Boot] [PATCH v3 01/10] configs: rk3328: add support for usb and config ehci and ohci driver

2017-06-06 Thread Meng Dongyang
Add defconfig for usb and ehci and ohci controller, config maximal number of ports of the root hub for ohci driver. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None configs/evb-rk3328_defconfig| 8 include/configs/rk3328_common.h

[U-Boot] [PATCH v3 00/10] rk3328: add support of usb host and gadget

2017-06-06 Thread Meng Dongyang
Changes in v3: - revert change of macro definition in dwc2 driver - support host mode without HNP/SRP capability through DTS Changes in v2: - Add commit messages - Split patch [U-boot,7/8] into two patches - Use fixed regulator to control vbus instead of gpio Meng Dongyang (10): configs

[U-Boot] [PATCH v2 09/10] rockchip: dts: rk3328: support and enable dwc2

2017-06-01 Thread Meng Dongyang
Enable dwc2 controller and add fixed regulator for dwc2 controller to control vbus. Signed-off-by: Meng Dongyang --- Changes in v2: - Add fixed regulator to control vbus arch/arm/dts/rk3328-evb.dts | 14 ++ arch/arm/dts/rk3328.dtsi| 9 + 2 files changed, 23 insertions

[U-Boot] [PATCH v2 10/10] rockchip: dts: rk3399: control vbus of typec by fixed regulator

2017-06-01 Thread Meng Dongyang
Add fixed regulator for the port of typec0 and typec1 to control vbus instead of gpio. Signed-off-by: Meng Dongyang --- Changes in v2: - New change, add fixed regulator for rk3399 arch/arm/dts/rk3399-evb.dts | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a

[U-Boot] [PATCH v2 08/10] rk3328: board: add support of dwc2 gadget

2017-06-01 Thread Meng Dongyang
Probe dwc2 udc in the function of board_usb_start to enable usb gadget function. Signed-off-by: Meng Dongyang --- Changes in v2: - Splited from patch [07/08] of v1 board/rockchip/evb_rk3328/evb-rk3328.c | 43 +++--- 1 file changed, 40 insertions(+), 3 deletions

[U-Boot] [PATCH v2 06/10] configs: rk3328: enable dwc2 driver and config for fastboot

2017-06-01 Thread Meng Dongyang
Config dwc2 driver support host and gadget function. Add support of fastboot function. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v2: None configs/evb-rk3328_defconfig| 14 ++ include/configs/rk3328_common.h | 3 +++ 2 files changed, 17 insertions

[U-Boot] [PATCH v2 07/10] usb: dwc2: fix macro error and change default config for rk3328

2017-06-01 Thread Meng Dongyang
Fix macro error of dwc2 driver, add macro definition to config force mode and HNP/SRP capability. Signed-off-by: Meng Dongyang --- Changes in v2: - Splited from patch [07/08] of v1 drivers/usb/host/dwc2.c | 9 - drivers/usb/host/dwc2.h | 10 ++ 2 files changed, 14 insertions

[U-Boot] [PATCH v2 05/10] rockchip: dts: rk3328: support and enable xhci

2017-06-01 Thread Meng Dongyang
Add dts node of xhci and enable the controller. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v2: - Add fixed regulator of vbus for xhci controller arch/arm/dts/rk3328-evb.dts | 14 ++ arch/arm/dts/rk3328.dtsi| 11 +++ 2 files changed, 25

[U-Boot] [PATCH v2 00/10] rk3328: add support of usb host and gadget

2017-06-01 Thread Meng Dongyang
Add support of usb host and gadget function for rk3328 and fix bug of dwc2 host driver. Changes in v2: - Add commit messages - Split patch [U-boot,7/8] into two patches - Use fixed regulator to control vbus instead of gpio Meng Dongyang (10): configs: rk3328: add support for usb and config

[U-Boot] [PATCH v2 02/10] rockchip: dts: rk3328: add ehci and ohci node and enable host0 port

2017-06-01 Thread Meng Dongyang
Add dts node for ehci and ohci controller, enable the controllers. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v2: None arch/arm/dts/rk3328-evb.dts | 8 arch/arm/dts/rk3328.dtsi| 14 ++ 2 files changed, 22 insertions(+) diff --git a/arch

[U-Boot] [PATCH v2 03/10] configs: rk3328: config xhci controller

2017-06-01 Thread Meng Dongyang
Add config of max root ports and add config to enable xhci controller. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v2: None configs/evb-rk3328_defconfig| 3 +++ include/configs/rk3328_common.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configs/evb

[U-Boot] [PATCH v2 04/10] usb: host: xhci-rockchip: add support for rk3328

2017-06-01 Thread Meng Dongyang
Add the compatible "rockchip,rk3328-xhci" in match table for rk3328 to probe xhci controller. Use fixed regulator to control the voltage of vbus and turn off vbus when usb stop. Signed-off-by: Meng Dongyang --- Changes in v2: - Use fixed regulator to control vbus instead of gpio d

[U-Boot] [PATCH v2 01/10] configs: rk3328: add support for usb and config ehci and ohci driver

2017-06-01 Thread Meng Dongyang
Add defconfig for usb and ehci and ohci controller, config maximal number of ports of the root hub for ohci driver. Signed-off-by: Meng Dongyang Reviewed-by: Simon Glass --- Changes in v2: None configs/evb-rk3328_defconfig| 8 include/configs/rk3328_common.h | 3 +++ 2 files

[U-Boot] [PATCH 7/8] usb: dwc2: fix macro error and support gadget function for rk3328

2017-05-17 Thread Meng Dongyang
Fix macro error of dwc2 driver, add macro definition to config force mode and HNP/SRP capability. Add gpio config to control vbus in host mode. Signed-off-by: Meng Dongyang --- board/rockchip/evb_rk3328/evb-rk3328.c | 42 +++--- drivers/usb/host/dwc2.c

[U-Boot] [PATCH 6/8] configs: rk3328: enable dwc2 driver and config for fastboot

2017-05-17 Thread Meng Dongyang
Config dwc2 driver support host and gadget function. Add support of fastboot function. Signed-off-by: Meng Dongyang --- configs/evb-rk3328_defconfig| 14 ++ include/configs/rk3328_common.h | 3 +++ 2 files changed, 17 insertions(+) diff --git a/configs/evb-rk3328_defconfig b

[U-Boot] [PATCH 8/8] rockchip: dts: rk3328: support and enable dwc2 controller

2017-05-17 Thread Meng Dongyang
Signed-off-by: Meng Dongyang --- arch/arm/dts/rk3328-evb.dts | 5 + arch/arm/dts/rk3328.dtsi| 9 + 2 files changed, 14 insertions(+) diff --git a/arch/arm/dts/rk3328-evb.dts b/arch/arm/dts/rk3328-evb.dts index b807bc5..aeaa5e7 100644 --- a/arch/arm/dts/rk3328-evb.dts +++ b/arch

[U-Boot] [PATCH 5/8] rockchip: dts: rk3328: support and enable xhci

2017-05-17 Thread Meng Dongyang
Signed-off-by: Meng Dongyang --- arch/arm/dts/rk3328-evb.dts | 5 + arch/arm/dts/rk3328.dtsi| 11 +++ 2 files changed, 16 insertions(+) diff --git a/arch/arm/dts/rk3328-evb.dts b/arch/arm/dts/rk3328-evb.dts index 9920935..b807bc5 100644 --- a/arch/arm/dts/rk3328-evb.dts +++ b

[U-Boot] [PATCH 3/8] configs: rk3328: config xhci controller

2017-05-17 Thread Meng Dongyang
Add config of max root ports and add config to enable xhci controller. Signed-off-by: Meng Dongyang --- configs/evb-rk3328_defconfig| 3 +++ include/configs/rk3328_common.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configs/evb-rk3328_defconfig b/configs/evb-rk3328_defconfig

[U-Boot] [PATCH 0/8] rk3328: add support of usb host and gadget

2017-05-17 Thread Meng Dongyang
Add support of usb host and gadget function for rk3328 and fix bug of dwc2 host driver. Meng Dongyang (8): configs: rk3328: add support for usb and config ehci and ohci driver rockchip: dts: rk3328: add ehci and ohci node and enable host0 port configs: rk3328: config xhci controller usb

[U-Boot] [PATCH 2/8] rockchip: dts: rk3328: add ehci and ohci node and enable host0 port

2017-05-17 Thread Meng Dongyang
Signed-off-by: Meng Dongyang --- arch/arm/dts/rk3328-evb.dts | 8 arch/arm/dts/rk3328.dtsi| 14 ++ 2 files changed, 22 insertions(+) diff --git a/arch/arm/dts/rk3328-evb.dts b/arch/arm/dts/rk3328-evb.dts index 01794ed..9920935 100644 --- a/arch/arm/dts/rk3328-evb.dts

[U-Boot] [PATCH 4/8] usb: host: xhci-rockchip: add support for rk3328

2017-05-17 Thread Meng Dongyang
Add the compatible "rockchip,rk3328-xhci" in match table for rk3328 to probe xhci controller. Turn off vbus when usb stop. Signed-off-by: Meng Dongyang --- drivers/usb/host/xhci-rockchip.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/host/xhci-rockchip.c b/d

[U-Boot] [PATCH 1/8] configs: rk3328: add support for usb and config ehci and ohci driver

2017-05-17 Thread Meng Dongyang
Add defconfig for usb and ehci and ohci controller, config maximal number of ports of the root hub for ohci driver. Signed-off-by: Meng Dongyang --- configs/evb-rk3328_defconfig| 8 include/configs/rk3328_common.h | 3 +++ 2 files changed, 11 insertions(+) diff --git a/configs/evb