[PATCH 1/6] dt-bindings: Add usb3.0 phy binding for MT65xx SoCs

2015-05-27 Thread chunfeng.yun
From: Chunfeng Yun add a DT binding documentation of usb3.0 phy for MT65xx SoCs from Mediatek. Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/usb/mt65xx-u3phy.txt | 37 ++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/

[PATCH 5/6] xhci: mediatek: support MTK xHCI host controller

2015-05-27 Thread chunfeng.yun
b/drivers/usb/host/xhci-mtk.c @@ -0,0 +1,470 @@ +/* + * Copyright (c) 2015 MediaTek Inc. + * Author: + * Zhigang.Wei + * Chunfeng.Yun + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be cop

[PATCH 6/6] arm64: dts: mediatek: add xHCI & usb phy for mt8173

2015-05-27 Thread chunfeng.yun
From: Chunfeng Yun Signed-off-by: Chunfeng Yun --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 14 ++ arch/arm64/boot/dts/mediatek/mt8173.dtsi| 24 2 files changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts b/arch/arm6

[PATCH 3/6] xhci: probe phy before add usb_hcd

2015-05-27 Thread chunfeng.yun
From: Chunfeng Yun find the phy driver before add primary usb_hcd to avoid acessing xHCI register which may hangup the system when the phy is not loaded yet and the related powers or clocks put in phy driver are not enabled. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-plat.c | 34 +++

[PATCH 4/6] usb: phy: add usb3.0 phy driver for mt65xx SoCs

2015-05-27 Thread chunfeng.yun
f --git a/drivers/usb/phy/phy-mt65xx-usb3.c b/drivers/usb/phy/phy-mt65xx-usb3.c new file mode 100644 index 000..ec5cf24 --- /dev/null +++ b/drivers/usb/phy/phy-mt65xx-usb3.c @@ -0,0 +1,724 @@ +/* + * Copyright (c) 2015 MediaTek Inc. + * Author: Chunfeng.Yun + * + * This software is lice

[PATCH 2/6] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-05-27 Thread chunfeng.yun
From: Chunfeng Yun add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun --- Documentation/devicetree/bindings/usb/mt8173-xhci.txt | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/devicet

[PATCH 0/6] Mediatek xHCI support

2015-05-27 Thread chunfeng.yun
The patch supports MediaTek's xHCI controller. There are some differences from xHCI spec: 1. The interval is specified in 250 * 8ns increments for Interrupt Moderation Interval(IMODI) of the Interrupter Moderation(IMOD) register, it is 8 times as much as that defined in xHCI spec. 2. For the valu