Add properties to improve eye diagram which sometimes need adjust
some parameters of u2phy;
Add a property to tune disconnect threshold;
Signed-off-by: Chunfeng Yun
---
drivers/phy/phy-mtk-tphy.c | 58 +-
1 file changed, 57 insertions(+), 1 deletion(-)
diff
Add properties to improve eye diagram which sometimes need adjust
some parameters of u2phy;
Add a property to tune disconnect threshold;
Signed-off-by: Chunfeng Yun
---
doc/device-tree-bindings/phy/phy-mtk-tphy.txt | 9 +
1 file changed, 9 insertions(+)
diff --git a/doc/device-tree
Add properties to improve eye diagram which sometimes need adjust
some parameters of u2phy;
Add a property to tune disconnect threshold;
Signed-off-by: Chunfeng Yun
---
drivers/phy/phy-mtk-tphy.c | 58 +-
1 file changed, 57 insertions(+), 1 deletion(-)
diff
Add properties to improve eye diagram which sometimes need adjust
some parameters of u2phy;
Add a property to tune disconnect threshold;
Signed-off-by: Chunfeng Yun
---
doc/device-tree-bindings/phy/phy-mtk-tphy.txt | 9 +
1 file changed, 9 insertions(+)
diff --git a/doc/device-tree
Prefer to make use of FIELD_PREP() macro to prepare bitfield value,
then no need local macros anymore.
Signed-off-by: Chunfeng Yun
---
v2: new patch
---
drivers/phy/phy-mtk-tphy.c | 122 ++---
1 file changed, 47 insertions(+), 75 deletions(-)
diff --git
Add a new compatible for mt8195 to add a workaround for hardware
issue.
Signed-off-by: Chunfeng Yun
---
v2: no change
---
doc/device-tree-bindings/phy/phy-mtk-tphy.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/doc/device-tree-bindings/phy/phy-mtk-tphy.txt
b/doc/device-tree-bindings
Add a new compatible for mt8195 to add a workaround for hardware
issue.
Signed-off-by: Chunfeng Yun
---
v2: no change
---
doc/device-tree-bindings/usb/mediatek,mtk-xhci.txt | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/doc/device-tree-bindings/usb/mediatek,mtk-xhci.txt
The T-PHY controller is designed to use use PLL integer mode, but
in fact use fractional mode for some ones on mt8195 by mistake,
this causes signal degradation (e.g. eye diagram test fail), fix
it by switching PLL to 26Mhz from default 48Mhz to improve signal
quality.
Signed-off-by: Chunfeng Yun
controllers.
Note:
The first controller no need set it, but if set it, shall change
tphy's pll at the same time.
Signed-off-by: Chunfeng Yun
---
v2: use FIELD_PREP() suggested by Marek
---
drivers/usb/host/xhci-mtk.c | 49 -
1 file changed, 48 insertions(+), 1
Add a new compatible for mt8195 to add a workaround for hardware
issue.
Signed-off-by: Chunfeng Yun
---
doc/device-tree-bindings/phy/phy-mtk-tphy.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/doc/device-tree-bindings/phy/phy-mtk-tphy.txt
b/doc/device-tree-bindings/phy/phy-mtk
controllers.
Note:
The first controller no need set it, but if set it, shall change
tphy's pll at the same time.
Signed-off-by: Chunfeng Yun
---
drivers/usb/host/xhci-mtk.c | 47 +
1 file changed, 47 insertions(+)
diff --git a/drivers/usb/host/xhci-mtk.c b
Add a new compatible for mt8195 to add a workaround for hardware
issue.
Signed-off-by: Chunfeng Yun
---
doc/device-tree-bindings/usb/mediatek,mtk-xhci.txt | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/doc/device-tree-bindings/usb/mediatek,mtk-xhci.txt
b/doc/device-tree
The T-PHY controller is designed to use use PLL integer mode, but
in fact use fractional mode for some ones on mt8195 by mistake,
this causes signal degradation (e.g. eye diagram test fail), fix
it by switching PLL to 26Mhz from default 48Mhz to improve signal
quality.
Signed-off-by: Chunfeng Yun
Hi Marek,
On Thu, 2021-10-21 at 13:33 +0800, Chunfeng Yun wrote:
> When allocate the GPD ring, and tell its address to the controller,
> then
> the driver starts or resumes the QMU, the controller will try to
> access
> the first GPD, so need flush the first one to avoid w
Hi Marek,
On Thu, 2021-10-21 at 13:33 +0800, Chunfeng Yun wrote:
> When allocate the GPD ring, and tell its address to the controller,
> then
> the driver starts or resumes the QMU, the controller will try to
> access
> the first GPD, so need flush the first one to avoid w
Hi Marek,
On Thu, 2021-10-21 at 13:33 +0800, Chunfeng Yun wrote:
> When allocate the GPD ring, and tell its address to the controller,
> then
> the driver starts or resumes the QMU, the controller will try to
> access
> the first GPD, so need flush the first one to avoid w
Hi Marek,
On Thu, 2021-10-21 at 13:33 +0800, Chunfeng Yun wrote:
> When allocate the GPD ring, and tell its address to the controller,
> then
> the driver starts or resumes the QMU, the controller will try to
> access
> the first GPD, so need flush the first one to avoid w
Hi Marek,
On Thu, 2021-10-21 at 13:33 +0800, Chunfeng Yun wrote:
> When allocate the GPD ring, and tell its address to the controller,
> then
> the driver starts or resumes the QMU, the controller will try to
> access
> the first GPD, so need flush the first one to avoid w
When allocate the GPD ring, and tell its address to the controller, then
the driver starts or resumes the QMU, the controller will try to access
the first GPD, so need flush the first one to avoid wrong GPD status.
Reported-by: Xin Lin
Signed-off-by: Chunfeng Yun
---
drivers/usb/mtu3
When allocate the GPD ring, and tell its address to the controller, then
the driver starts or resumes the QMU, the controller will try to access
the first GPD, so need flush the first one to avoid wrong GPD status.
Reported-by: Xin Lin
Signed-off-by: Chunfeng Yun
---
drivers/usb/mtu3
n these related patches:
> >
> > commit d92e866f6008fdd6483735c6fd1ed95c8fdc87b1
> > Author: Chunfeng Yun
> > Date: Wed Oct 14 15:08:28 2020 +0800
> >
> > usb: common: add define of usb_speed_string()
> >
> > There is only declaration of usb_speed_string(), but no de
y@1000 {
> + reg = <0x1000 0x400>;
> + clocks = <_cg CLK_TOP_SSUSB_PHY_CK_EN>,
> + <_cg CLK_TOP_USB20_48M_EN>;
> + clock-names = "ref", "da_ref";
> + #phy-
On Mon, 2021-03-29 at 21:27 +0200, Fabien Parent wrote:
> Add MT8175 SoC support.
>
> Signed-off-by: Fabien Parent
> ---
> arch/arm/dts/mt8175.dtsi | 247 +
> arch/arm/mach-mediatek/Kconfig | 9 +
> arch/arm/mach-mediatek/Makefile| 1 +
>
+CONFIG_WDT=y
> +CONFIG_WDT_MTK=y
> +# CONFIG_REGEX is not set
> +CONFIG_OF_LIBFDT_OVERLAY=y
> +# CONFIG_EFI_LOADER is not set
> diff --git a/include/configs/mt8175.h b/include/configs/mt8175.h
> new file mode 100644
> index ..1f7a8032a65f
> --- /dev/null
> +++ b/include/conf
When flush cache of the current GPD and resume QMU, the controller
will try to access the next GPD after processing the current one,
if not flush the next GPD, the controller may get wrong GPD status.
Signed-off-by: Chunfeng Yun
---
drivers/usb/mtu3/mtu3_qmu.c | 3 +++
1 file changed, 3
> + ret = -ENOENT;
> dev_for_each_subnode(node, parent)
> if (ofnode_read_bool(node, "gpio-controller")) {
> ret = 0;
> --
Acked-by: Chunfeng Yun
Thanks
> 2.29.2
>
Add optional properies to disable usb2 or usb3 ports, they are used
when provided ports are not used on some special platforms.
Signed-off-by: Chunfeng Yun
---
doc/device-tree-bindings/usb/mediatek,mtk-xhci.txt | 4
1 file changed, 4 insertions(+)
diff --git a/doc/device-tree-bindings/usb
Add support to disable specific ports, it's useful for some
scenarios:
1. usb3 PHY is shared whith PCIe or SATA, the corresponding
usb3 port can be disabled;
2. some usb2 or usb3 ports are not used on special platforms,
they should be disabled to save power.
Signed-off-by: Chunfeng Yun
Add optional properies to disable usb2 or usb3 ports, they are used
when provided ports are not used on some special platforms.
Signed-off-by: Chunfeng Yun
---
doc/device-tree-bindings/usb/mediatek,mtk-xhci.txt | 4
1 file changed, 4 insertions(+)
diff --git a/doc/device-tree-bindings/usb
Add support to disable specific ports, it's useful for some
scenarios:
1. usb3 PHY is shared whith PCIe or SATA, the corresponding
usb3 port can be disabled;
2. some usb2 or usb3 ports are not used on special platforms,
they should be disabled to save power.
Signed-off-by: Chunfeng Yun
On Tue, 2020-10-20 at 14:15 +0800, Bin Meng wrote:
> Hi Chunfeng,
>
> On Tue, Oct 20, 2020 at 10:22 AM Chunfeng Yun
> wrote:
> >
> > On Tue, 2020-10-20 at 00:15 +0200, Marek Vasut wrote:
> > > On 10/19/20 2:19 PM, Chunfeng Yun wrote:
> > > > Due to t
On Tue, 2020-10-20 at 00:15 +0200, Marek Vasut wrote:
> On 10/19/20 2:19 PM, Chunfeng Yun wrote:
> > Due to the following to patches:
> > 4a1989c0bc77 ("dm: Don't undefine dev_xxx macros")
> > 69dae8902b16 ("linux/compat.h: Remove redefinition of de
On Mon, 2020-10-19 at 12:34 +0200, Marek Vasut wrote:
> On 10/19/20 11:32 AM, Chunfeng Yun wrote:
> > On Mon, 2020-10-19 at 08:07 +0200, Marek Vasut wrote:
> >> On 10/19/20 5:46 AM, Chunfeng Yun wrote:
> >>> Fix up the following build warning/error:
Due to the following to patches:
4a1989c0bc77 ("dm: Don't undefine dev_xxx macros")
69dae8902b16 ("linux/compat.h: Remove redefinition of dev_xxx macros")
Need include device_compat.h and no need use __maybe_unused anymore
to fix unused variable warning
Signed-off-by: Chun
On Mon, 2020-10-19 at 08:07 +0200, Marek Vasut wrote:
> On 10/19/20 5:46 AM, Chunfeng Yun wrote:
> > Fix up the following build warning/error:
> > 1. unused variable 'mtu' in mtu3_gadget_dequeue() and
> >mtu3_gadget_ep_set_halt()
> > 2. implicit declaration of f
Fix up the following build warning/error:
1. unused variable 'mtu' in mtu3_gadget_dequeue() and
mtu3_gadget_ep_set_halt()
2. implicit declaration of function ‘flush_dcache_range’ and
‘invalidate_dcache_range’
Signed-off-by: Chunfeng Yun
---
drivers/usb/mtu3/mtu3_gadget.c | 4 ++--
drivers
On Fri, 2020-10-16 at 14:08 +0200, Marek Vasut wrote:
> On 10/16/20 5:38 AM, Chunfeng Yun wrote:
> > This patch adds support for the MediaTek USB3 DRD controller,
> > its host side is based on xHCI, this driver supports device mode
> > and host mode.
>
> Build
On Thu, 2020-10-15 at 14:28 +0200, Marek Vasut wrote:
> On 10/15/20 3:49 AM, Chunfeng Yun wrote:
> > Hi Marek,
>
> Hi,
>
> > On Wed, 2020-10-14 at 15:03 +0200, Marek Vasut wrote:
> >> On 10/14/20 2:29 PM, Chunfeng Yun wrote:
> >>> On Wed,
On Wed, 2020-10-14 at 15:31 +0200, Marek Vasut wrote:
> On 10/14/20 3:03 PM, Chunfeng Yun wrote:
> > On Wed, 2020-10-14 at 15:01 +0200, Marek Vasut wrote:
> >> On 10/14/20 2:54 PM, Chunfeng Yun wrote:
> >>> Set CONFIG_USB_MTU3_GADGET=y to enable device mode explic
Hi Marek,
On Wed, 2020-10-14 at 15:03 +0200, Marek Vasut wrote:
> On 10/14/20 2:29 PM, Chunfeng Yun wrote:
> > On Wed, 2020-10-14 at 12:56 +0200, Marek Vasut wrote:
> >> On 10/14/20 10:50 AM, Chunfeng Yun wrote:
> >>> This patch adds support for the MediaTek USB3
On Wed, 2020-10-14 at 15:31 +0200, Marek Vasut wrote:
> On 10/14/20 3:03 PM, Chunfeng Yun wrote:
> > On Wed, 2020-10-14 at 15:01 +0200, Marek Vasut wrote:
> >> On 10/14/20 2:54 PM, Chunfeng Yun wrote:
> >>> Set CONFIG_USB_MTU3_GADGET=y to enable device mode explic
On Wed, 2020-10-14 at 15:01 +0200, Marek Vasut wrote:
> On 10/14/20 2:54 PM, Chunfeng Yun wrote:
> > Set CONFIG_USB_MTU3_GADGET=y to enable device mode explicitly,
> > try to avoid build error:
> > "undefined reference to `dm_usb_gadget_handle_interrupts'"
> &g
Set CONFIG_USB_MTU3_GADGET=y to enable device mode explicitly,
try to avoid build error:
"undefined reference to `dm_usb_gadget_handle_interrupts'"
Fixes: 764751784727 ("configs: mt8512: enable fastboot and USB host related
configs")
Signed-off-by: Chunfeng Yun
---
v
On Wed, 2020-10-14 at 20:33 +0800, Bin Meng wrote:
> On Wed, Oct 14, 2020 at 8:24 PM Chunfeng Yun
> wrote:
> >
> > Set CONFIG_USB_MTU3_GADGET=y to enable it explicitly,
> > try to avoid build error:
> > "undefined reference to `dm_usb_gadget_handle_int
On Wed, 2020-10-14 at 12:56 +0200, Marek Vasut wrote:
> On 10/14/20 10:50 AM, Chunfeng Yun wrote:
> > This patch adds support for the MediaTek USB3 DRD controller,
> > its host side is based on xHCI, this driver supports device mode
> > and host mode.
>
> This patch
Set CONFIG_USB_MTU3_GADGET=y to enable it explicitly,
try to avoid build error:
"undefined reference to `dm_usb_gadget_handle_interrupts'"
fixes: 311412ead0 ("configs: mt8512: enable fastboot and USB host related
configs")
Signed-off-by: Chunfeng Yun
---
configs/mt8512_bm
On Wed, 2020-10-14 at 10:22 +0200, Marek Vasut wrote:
> On 10/14/20 9:08 AM, Chunfeng Yun wrote:
> > This patch adds support for the MediaTek USB3 DRD controller,
> > its host side is based on xHCI, this driver supports device mode
> > and host mode.
>
> This one doe
Hi Bin,
Thank you again
On Wed, 2020-10-14 at 16:05 +0800, Bin Meng wrote:
> On Wed, Oct 14, 2020 at 3:08 PM Chunfeng Yun
> wrote:
> >
> > Enable mtu3, xhci, tphy drivers.
> > Device mode: enable fastboot;
> > Host mode: enable USB, FAT commands, and fixed regul
Enable mtu3, xhci, tphy drivers.
Device mode: enable fastboot;
Host mode: enable USB, FAT commands, and fixed regulator,
mass storage drivers;
Due to device mode is enabled by default, comment out
the host mode config here.
Signed-off-by: Chunfeng Yun
---
v8 changes:
1. add CONFIG_USB_XHCI_HCD
Add usb, usb phy, and fixed regulators nodes
Signed-off-by: Chunfeng Yun
Acked-by: Bin Meng
---
v8: add Acked-by Bin
v5~v7: no changes
v4: add host related properties, add subnode.
v3: remove unused property mediatek,discth
v2: no changes
---
arch/arm/dts/mt8512-bm1-emmc.dts | 34
There is only declaration of usb_speed_string(), but no definition,
so add it to avoid build error when call it.
Signed-off-by: Chunfeng Yun
Reviewed-by: Bin Meng
---
v8: add Reviewed-by Bin
v7: no changes
v6: modify commit message suggested by Roger
v5: no changes
v4: new patch
Add an entry in usb_gadget_controller_number() for the MTU3
gadget controller. It is used to bind the USB Ethernet driver.
Signed-off-by: Chunfeng Yun
Reviewed-by: Bin Meng
---
v8: add Reviewed-by Bin
v4~v7: no changes
v3: new patch
---
drivers/usb/gadget/gadget_chips.h | 8
1 file
Add MediaTek USB3 Dual-Role controller driver to ARM MEDIATEK,
and add myself as a maintainer for it.
Signed-off-by: Chunfeng Yun
Reviewed-by: Bin Meng
---
v8: add Reviewed-by Bin
v6~v7: no changes
v5: add mtu3/, xhci-mtk.c, and myself as maintainer for MTK USB
v4: new patch
---
MAINTAINERS
boot, some properties
are removed or changed.
Signed-off-by: Chunfeng Yun
---
v8: add commit ID the binding referenced suggested by Bin
v5~v7: no changes
v4: Add support host mode, introduce some new properties and subnode
v2~v3: no changes
---
.../usb/mediatek,mtu3.txt
Add bindings for common properties, include maximum-speed,
dr_mode and phy_type
Signed-off-by: Chunfeng Yun
Reviewed-by: Bin Meng
---
v8: add Reviewed-by Bin
v2~v7: no changes
---
doc/device-tree-bindings/usb/generic.txt | 31
1 file changed, 31 insertions(+)
create
v2 changes:
1. simplify QMU operations
Chunfeng Yun (9):
dt-binding: usb: add bindings for some common properties
dt-bindings: usb: mtu3: add bindings for MediaTek USB3 DRD
usb: add USB_SPEED_SUPER_PLUS
usb: common: add define of usb_speed_string()
usb: add MediaTek USB3 DRD driver
Add enum USB_SPEED_SUPER_PLUS for USB3.1
Signed-off-by: Chunfeng Yun
Reviewed-by: Bin Meng
---
v8: add Reviewed-by Bin
v5~v7: no changes
v4: also add it into speed_names array
v2~v3: no changes
---
drivers/usb/common/common.c | 1 +
include/linux/usb/ch9.h | 1 +
2 files changed, 2
On Tue, 2020-10-13 at 22:34 +0800, Bin Meng wrote:
> On Fri, Sep 18, 2020 at 5:12 PM Chunfeng Yun
> wrote:
> >
> > Add USB, FAT commands, and fixed regulator, mass storage
> > drivers.
> > Due to device mode is enabled by default, comment out
> > the host mode
On Tue, 2020-10-13 at 22:26 +0800, Bin Meng wrote:
> On Fri, Sep 18, 2020 at 5:12 PM Chunfeng Yun
> wrote:
> >
> > This patch adds support for the MediaTek USB3 DRD controller,
> > its host side is based on xHCI, this driver supports device mode
> > and host mode.
&
On Tue, 2020-10-13 at 22:19 +0800, Bin Meng wrote:
> On Fri, Sep 18, 2020 at 5:12 PM Chunfeng Yun
> wrote:
> >
> > Add enum USB_SPEED_SUPER_PLUS for USB3.1
> >
> > Signed-off-by: Chunfeng Yun
> > ---
> > v5~v7: no changes
> >
> > v4: also a
On Tue, 2020-10-13 at 22:18 +0800, Bin Meng wrote:
> On Fri, Sep 18, 2020 at 5:12 PM Chunfeng Yun
> wrote:
> >
> > Add dt-binding for MediaTek USB3 DRD Driver
>
> There are some differences compared to the one in the Linux kernel:
Some properties are removed
Hi Bin,
Gentle ping...
Could you help to review this series?
Thanks a lot
On Mon, 2020-09-28 at 04:12 +0200, Marek Vasut wrote:
> On 9/28/20 4:01 AM, Chunfeng Yun wrote:
> [...]
> >> create mode 100644 drivers/usb/mtu3/mtu3_core.c
> >> create mode 100644 dr
Hi Marek,
On Mon, 2020-09-28 at 04:12 +0200, Marek Vasut wrote:
> On 9/28/20 4:01 AM, Chunfeng Yun wrote:
> [...]
> >> create mode 100644 drivers/usb/mtu3/mtu3_core.c
> >> create mode 100644 drivers/usb/mtu3/mtu3_dr.h
> >> create mode 100644 drivers/usb/mtu
Hi Marek, Lukasz
Any comments on this patch series?
Thanks a lot
On Fri, 2020-09-18 at 17:10 +0800, Chunfeng Yun wrote:
> These patches introduce the MediaTek USB3 Dual-Role Controller
> driver.
> The driver can be configured as Peripheral only and Host only(xHCI)
> modes, and
Add usb, usb phy, and fixed regulators nodes
Signed-off-by: Chunfeng Yun
---
v5~v7: no changes
v4: add host related properties, add subnode.
v3: remove unused property mediatek,discth
v2: no changes
---
arch/arm/dts/mt8512-bm1-emmc.dts | 34
arch/arm/dts/mt8512
Enable fastboot to support download image from usb, also enable
usb related drivers, such as usb phy etc.
Signed-off-by: Chunfeng Yun
---
v2~v7: no changes
---
configs/mt8512_bm1_emmc_defconfig | 19 +++
1 file changed, 19 insertions(+)
diff --git a/configs
Add USB, FAT commands, and fixed regulator, mass storage
drivers.
Due to device mode is enabled by default, comment out
the host mode config here.
Signed-off-by: Chunfeng Yun
---
v5~v7: no changes
v4: new patch
---
configs/mt8512_bm1_emmc_defconfig | 7 +++
1 file changed, 7 insertions
for device
5. update bindings to support glue driver
v3 changes:
1. add patch [5/7]
2. add udc_set_speed()
3. simplify some code flow
v2 changes:
1. simplify QMU operations
Chunfeng Yun (10):
dt-binding: usb: add bindings for some common properties
dt-bindings: usb: mtu3: add
Add MediaTek USB3 Dual-Role controller driver to ARM MEDIATEK,
and add myself as a maintainer for it.
Signed-off-by: Chunfeng Yun
---
v6~v7: no changes
v5: add mtu3/, xhci-mtk.c, and myself as maintainer for MTK USB
v4: new patch
---
MAINTAINERS | 3 +++
1 file changed, 3 insertions(+)
diff
Add enum USB_SPEED_SUPER_PLUS for USB3.1
Signed-off-by: Chunfeng Yun
---
v5~v7: no changes
v4: also add it into speed_names array
v2~v3: no changes
---
drivers/usb/common/common.c | 1 +
include/linux/usb/ch9.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/usb/common
Add an entry in usb_gadget_controller_number() for the MTU3
gadget controller. It is used to bind the USB Ethernet driver.
Signed-off-by: Chunfeng Yun
---
v4~v7: no changes
v3: new patch
---
drivers/usb/gadget/gadget_chips.h | 8
1 file changed, 8 insertions(+)
diff --git a/drivers
Add bindings for common properties, include maximum-speed,
dr_mode and phy_type
Signed-off-by: Chunfeng Yun
---
v2~v7: no changes
---
doc/device-tree-bindings/usb/generic.txt | 31 +++
1 file changed, 31 insertions(+)
create mode 100644 doc/device-tree-bindings/usb
Add dt-binding for MediaTek USB3 DRD Driver
Signed-off-by: Chunfeng Yun
---
v5~v7: no changes
v4:
Add support host mode, introduce some new properties and subnode
v2~v3: no changes
---
doc/device-tree-bindings/usb/mediatek,mtu3.txt | 79 ++
1 file changed, 79
There is only declaration of usb_speed_string(), but no definition,
so add it to avoid build error when call it.
Signed-off-by: Chunfeng Yun
---
v7: no changes
v6: modify commit message suggested by Roger
v5: no changes
v4: new patch
---
drivers/usb/common/common.c | 7 +++
include/linux
Add USB, FAT commands, and fixed regulator, mass storage
drivers.
Due to device mode is enabled by default, comment out
the host mode config here.
Signed-off-by: Chunfeng Yun
---
v5~v6: no changes
v4: new patch
---
configs/mt8512_bm1_emmc_defconfig | 7 +++
1 file changed, 7 insertions
Add MediaTek USB3 Dual-Role controller driver to ARM MEDIATEK,
and add myself as a maintainer for it.
Signed-off-by: Chunfeng Yun
---
v6: no changes
v5: add mtu3/, xhci-mtk.c, and myself as maintainer for MTK USB
v4: new patch
---
MAINTAINERS | 3 +++
1 file changed, 3 insertions(+)
diff
Add usb, usb phy, and fixed regulators nodes
Signed-off-by: Chunfeng Yun
---
v5~v6: no changes
v4: add host related properties, add subnode.
v3: remove unused property mediatek,discth
v2: no changes
---
arch/arm/dts/mt8512-bm1-emmc.dts | 34
arch/arm/dts/mt8512
Add enum USB_SPEED_SUPER_PLUS for USB3.1
Signed-off-by: Chunfeng Yun
---
v5~v6: no changes
v4: also add it into speed_names array
v2~v3: no changes
---
drivers/usb/common/common.c | 1 +
include/linux/usb/ch9.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/usb/common
There is only declaration of usb_speed_string(), but no definition,
so add it to avoid build error when call it.
Signed-off-by: Chunfeng Yun
---
v6: modify commit message suggested by Roger
v5: no changes
v4: new patch
---
drivers/usb/common/common.c | 7 +++
include/linux/usb/ch9.h
Enable fastboot to support download image from usb, also enable
usb related drivers, such as usb phy etc.
Signed-off-by: Chunfeng Yun
---
v2~v6: no changes
---
configs/mt8512_bm1_emmc_defconfig | 19 +++
1 file changed, 19 insertions(+)
diff --git a/configs
Add an entry in usb_gadget_controller_number() for the MTU3
gadget controller. It is used to bind the USB Ethernet driver.
Signed-off-by: Chunfeng Yun
---
v4~v6: no changes
v3: new patch
---
drivers/usb/gadget/gadget_chips.h | 8
1 file changed, 8 insertions(+)
diff --git a/drivers
Add bindings for common properties, include maximum-speed,
dr_mode and phy_type
Signed-off-by: Chunfeng Yun
---
v2~v6: no changes
---
doc/device-tree-bindings/usb/generic.txt | 31 +++
1 file changed, 31 insertions(+)
create mode 100644 doc/device-tree-bindings/usb
Add dt-binding for MediaTek USB3 DRD Driver
Signed-off-by: Chunfeng Yun
---
v5~v6: no changes
v4:
Add support host mode, introduce some new properties and subnode
v2~v3: no changes
---
doc/device-tree-bindings/usb/mediatek,mtu3.txt | 79 ++
1 file changed, 79
v3 changes:
1. add patch [5/7]
2. add udc_set_speed()
3. simplify some code flow
v2 changes:
1. simplify QMU operations
Chunfeng Yun (10):
dt-binding: usb: add bindings for some common properties
dt-bindings: usb: mtu3: add bindings for MediaTek USB3 DRD
usb: add
Hi Marek,
I've sent out v4;
Hi Frank,
Please forward this email to Marek, thanks a lot
On Tue, 2020-09-08 at 13:13 +0200, Marek Vasut wrote:
> On 9/8/20 3:44 AM, Bin Meng wrote:
> > On Mon, Sep 7, 2020 at 3:14 PM Chunfeng Yun
> > wrote:
> >>
> >> Use r
For normal TRB fields:
use TRB_LEN(x) instead of ((x) & TRB_LEN_MASK);
and use TRB_INTR_TARGET(x) instead of
(((x) & TRB_INTR_TARGET_MASK) << TRB_INTR_TARGET_SHIFT)
Signed-off-by: Chunfeng Yun
Reviewed-by: Bin Meng
---
v4: keep code alignment and add reviewed-by Bin
v3: merge
Use TRB_TYPE(p) instead of ((p) << TRB_TYPE_SHIFT)
Signed-off-by: Chunfeng Yun
Reviewed-by: Bin Meng
---
v4: no changes
v3: add reviewed-by Bin
v2: no changes
---
drivers/usb/host/xhci-mem.c | 3 +--
drivers/usb/host/xhci-ring.c | 11 +--
include/usb/xhci.h |
Use readx_poll_sleep_timeout() to poll the register status
Signed-off-by: Chunfeng Yun
Reviewed-by: Bin Meng
---
v4: add reviewed-by Bin
v3: no changes
v2: fix typo of title suggested by Frank
---
drivers/usb/host/xhci.c | 25 +++--
1 file changed, 11 insertions(+), 14
Use TRB_TX_TYPE() instead of (TRB_DATA_OUT/IN << TRB_TX_TYPE_SHIFT)
Signed-off-by: Chunfeng Yun
Reviewed-by: Bin Meng
---
v4: add reviewed-by Bin
v2~v3: no changes
---
drivers/usb/host/xhci-ring.c | 4 ++--
include/usb/xhci.h | 1 -
2 files changed, 2 insertions(+), 3 del
in Normal TRB defines a number of packets that
remains to be transferred for a TD after processing all
Max packets in all previous TRBs.
Signed-off-by: Chunfeng Yun
Tested-by: Frank Wunderlich
Reviewed-by: Bin Meng
---
v4: no changes
v3: fix typo, and add reviewed-by Bin
v2: add Tested
Use macros with parameter to fill ep_info2, then some macros
for MASK and SHIFT can be removed
Signed-off-by: Chunfeng Yun
Reviewed-by: Bin Meng
---
v4: add reviewed-by Bin
v3: merge patch [v2 9/11] and [v2 10/11] into one, both for ep_info2
v2: no changes
---
drivers/usb/host/xhci-mem.c
Add a member to save xHCI version, it's used some times.
Signed-off-by: Chunfeng Yun
Reviewed-by: Bin Meng
---
v4: no changes
v3: add reviewed-by Bin
v2: no changes
---
drivers/usb/host/xhci-ring.c | 4 ++--
drivers/usb/host/xhci.c | 1 +
include/usb/xhci.h | 1 +
3 files
o indicate last trb in td remainder
calculation")
Signed-off-by: Chunfeng Yun
Reviewed-by: Bin Meng
---
v4 changes:
1. remove the ending period in the commit title
2. use true instead of 1
3. add Reviewed-by Bin
v2~v3: no changes
---
drivers/usb/ho
Use HCS_MAX_PORTS(p) instead of
((p & HCS_MAX_PORTS_MASK) >> HCS_MAX_PORTS_SHIFT)
Signed-off-by: Chunfeng Yun
Reviewed-by: Bin Meng
---
v4: no changes
v3: add reviewed-by Bin
v2: no changes
---
drivers/usb/host/xhci.c | 3 +--
include/usb/xhci.h | 2 --
2 files changed, 1
On Tue, 2020-09-08 at 13:41 +0800, Bin Meng wrote:
> On Mon, Sep 7, 2020 at 3:14 PM Chunfeng Yun wrote:
> >
>
> nits: please remove the ending period in the commit title
Ok, will fix it
>
> > xhci versions 1.0 and later report the untransferred data remaining in a
>
On Tue, 2020-09-08 at 09:30 +0800, Bin Meng wrote:
> On Mon, Sep 7, 2020 at 3:14 PM Chunfeng Yun wrote:
> >
> > For normal TRB fields:
> > use TRB_LEN(x) instead of ((x) & TRB_LEN_MASK);
> > and use TRB_INTR_TARGET(x) instead of
> > (((x) & TRB_I
Hi Bin,
On Fri, 2020-09-04 at 15:19 +0800, Bin Meng wrote:
> Hi Marek,
>
> On Fri, Sep 4, 2020 at 3:05 PM Marek Vasut wrote:
> >
> > On 9/4/20 8:54 AM, Bin Meng wrote:
> > > On Wed, Aug 26, 2020 at 5:31 PM Chunfeng Yun
> > > wrote:
>
Use macros with parameter to fill ep_info2, then some macros
for MASK and SHIFT can be removed
Signed-off-by: Chunfeng Yun
---
v3: merge patch [v2 9/11] and [v2 10/11] into one, both for ep_info2
v2: no changes
---
drivers/usb/host/xhci-mem.c | 15 +--
drivers/usb/host/xhci.c
Use readx_poll_sleep_timeout() to poll the register status
Signed-off-by: Chunfeng Yun
---
v3: no changes
v2: fix typo of title suggested by Frank
---
drivers/usb/host/xhci.c | 25 +++--
1 file changed, 11 insertions(+), 14 deletions(-)
diff --git a/drivers/usb/host/xhci.c
Use TRB_TYPE(p) instead of ((p) << TRB_TYPE_SHIFT)
Signed-off-by: Chunfeng Yun
Reviewed-by: Bin Meng
---
v3: add reviewed-by Bin
v2: no changes
---
drivers/usb/host/xhci-mem.c | 3 +--
drivers/usb/host/xhci-ring.c | 11 +--
include/usb/xhci.h | 1 -
3 files chan
1 - 100 of 331 matches
Mail list logo