The xHCI 1.1 version also need set Transfer Type field
Signed-off-by: Chunfeng Yun
---
drivers/usb/host/xhci-ring.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index 119b418..6a469e1 100644
--- a/drivers/usb
If skip all return error number, it may skip some real error cases,
so only skip the error when the clock is not provided in DTS
Signed-off-by: Chunfeng Yun
---
drivers/clk/clk-uclass.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/clk-uclass.c b/drivers/clk
Add valid check for clk->dev, it's useful when get optional
clock even when the clk point is valid, but its dev will be
NULL.
Signed-off-by: Chunfeng Yun
---
drivers/clk/clk-uclass.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/clk/clk-uclass.
This is used to avoid clk_enable() return -ENOSYS.
Signed-off-by: Chunfeng Yun
---
drivers/clk/clk_fixed_rate.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rate.c
index f51126793e..2c20eddb0b 100644
--- a/drivers/clk
The SSUSB IP's clocks come from ssusbsys module on mt7629,
so add its driver
Signed-off-by: Chunfeng Yun
---
drivers/clk/mediatek/clk-mt7629.c | 42 +++
1 file changed, 42 insertions(+)
diff --git a/drivers/clk/mediatek/clk-mt7629.c
b/drivers/clk/mediatek/clk
If make the ref clock optional, no need refer to fixed-clock when
the ref clock is always on or comes from oscillator directly.
Signed-off-by: Chunfeng Yun
---
drivers/phy/phy-mtk-tphy.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers
No need check -ENOSYS anymore after add dummy_enable() for
fixed-clock.
Signed-off-by: Chunfeng Yun
---
drivers/phy/phy-mtk-tphy.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy-mtk-tphy.c
index 3701481256..c4fb404f20 100644
Sometimes we may need get (optional) clock without a device,
that means use ofnode.
e.g. when the phy node has subnode, and there is no device created
for subnode, in this case, we need these new APIs to get subnode's
clock.
Signed-off-by: Chunfeng Yun
---
drivers/clk/clk-uclass.c | 28
The xHCI 1.1 version also need set Transfer Type field
Signed-off-by: Chunfeng Yun
---
drivers/usb/host/xhci-ring.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index 119b418..6a469e1 100644
--- a/drivers/usb
The SSUSB IP's clocks come from ssusbsys module on mt7629,
so add its driver
Signed-off-by: Chunfeng Yun
---
drivers/clk/mediatek/clk-mt7629.c | 42 +++
1 file changed, 42 insertions(+)
diff --git a/drivers/clk/mediatek/clk-mt7629.c
b/drivers/clk/mediatek/clk
If make the ref clock optional, no need refer to fixed-clock when
the ref clock is always on or comes from oscillator directly.
Signed-off-by: Chunfeng Yun
---
drivers/phy/phy-mtk-tphy.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers
This is used to avoid clk_enable() return -ENOSYS.
Signed-off-by: Chunfeng Yun
---
drivers/clk/clk_fixed_rate.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rate.c
index f51126793e..2c20eddb0b 100644
--- a/drivers/clk
No need check -ENOSYS anymore after add dummy_enable() for
fixed-clock.
Signed-off-by: Chunfeng Yun
---
drivers/phy/phy-mtk-tphy.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy-mtk-tphy.c
index 3701481256..c4fb404f20 100644
Add valid check for clk->dev, it's useful when get optional
clock even when the clk point is valid, but its dev will be
NULL.
Signed-off-by: Chunfeng Yun
---
drivers/clk/clk-uclass.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/clk/clk-uclass.
Sometimes we may need get (optional) clock without a device,
that means use ofnode.
e.g. when the phy node has subnode, and there is no device created
for subnode, in this case, we need these new APIs to get subnode's
clock.
Signed-off-by: Chunfeng Yun
---
drivers/clk/clk-uclass.c | 28
If skip all return error number, it may skip some real error cases,
so only skip the error when the clock is not provided in DTS
Signed-off-by: Chunfeng Yun
---
drivers/clk/clk-uclass.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/clk-uclass.c b/drivers/clk
No need check -ENOSYS anymore after add dummy_enable() for
fixed-clock.
Signed-off-by: Chunfeng Yun
Reviewed-by: Simon Glass
Reviewed-by: Ryder Lee
---
v2: add reviewed-by Simon & Ryder
---
drivers/phy/phy-mtk-tphy.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff -
The SSUSB IP's clocks come from ssusbsys module on mt7629,
so add its driver
Signed-off-by: Chunfeng Yun
Reviewed-by: Simon Glass
Reviewed-by: Ryder Lee
---
v2: add reviewed-by Simon & Ryder
---
drivers/clk/mediatek/clk-mt7629.c | 42 +++
1 file changed
If skip all return error number, it may skip some real error cases,
so only skip the error when the clock is not provided in DTS
Signed-off-by: Chunfeng Yun
Reviewed-by: Simon Glass
Reviewed-by: Ryder Lee
---
v2: add reviewed-by Simon & Ryder
---
drivers/clk/clk-uclass.c | 2 +-
1
Sometimes we may need get (optional) clock without a device,
that means use ofnode.
e.g. when the phy node has subnode, and there is no device created
for subnode, in this case, we need these new APIs to get subnode's
clock.
Signed-off-by: Chunfeng Yun
Reviewed-by: Simon Glass
Reviewed
Add valid check for clk->dev, it's useful when get optional
clock even when the clk point is valid, but its dev will be
NULL.
Signed-off-by: Chunfeng Yun
Reviewed-by: Simon Glass
Reviewed-by: Ryder Lee
---
v2: add reviewed-by Simon & Ryder
---
drivers/clk/clk-uclass.c | 16
This is used to avoid clk_enable() return -ENOSYS.
Signed-off-by: Chunfeng Yun
Reviewed-by: Simon Glass
Reviewed-by: Ryder Lee
---
v2: add reviewed-by Simon & Ryder
---
drivers/clk/clk_fixed_rate.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/clk/clk_fixed_rate
If make the ref clock optional, no need refer to fixed-clock when
the ref clock is always on or comes from oscillator directly.
Signed-off-by: Chunfeng Yun
Reviewed-by: Simon Glass
Reviewed-by: Ryder Lee
---
v2: add reviewed-by Simon & Ryder
---
drivers/phy/phy-mtk-tphy.c | 3 ++-
1
On Fri, 2019-12-27 at 19:27 -0700, Simon Glass wrote:
> On Sun, 15 Dec 2019 at 20:14, Chunfeng Yun wrote:
> >
> > The SSUSB IP's clocks come from ssusbsys module on mt7629,
> > so add its driver
> >
> > Signed-off-by: Chunfeng Yun
> > ---
>
for digital phy.
Signed-off-by: Chunfeng Yun
---
drivers/phy/phy-mtk-tphy.c | 21 ++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy-mtk-tphy.c
index dd59f9a13f..86cefaa0c5 100644
--- a/drivers/phy/phy-mtk-tphy.c
+++ b
Support USB2 and USB3 PHY with shared banks when support multi-phys
Signed-off-by: Chunfeng Yun
---
drivers/phy/phy-mtk-tphy.c | 224 +++--
1 file changed, 217 insertions(+), 7 deletions(-)
diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy-mtk-tphy.c
This patch add a function used to get the child count of
a ofnode
Signed-off-by: Chunfeng Yun
---
include/dm/ofnode.h | 17 +
1 file changed, 17 insertions(+)
diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h
index b5a50e8849..b2c0118a36 100644
--- a/include/dm/ofnode.h
Add dt-binding for MediaTek xHCI host controller
Signed-off-by: Chunfeng Yun
---
.../usb/mediatek,mtk-xhci.txt | 40 +++
1 file changed, 40 insertions(+)
create mode 100644 doc/device-tree-bindings/usb/mediatek,mtk-xhci.txt
diff --git a/doc/device-tree-bindings
The new version removes all shared banks between multi-phys
Signed-off-by: Chunfeng Yun
---
drivers/phy/phy-mtk-tphy.c | 68 +++---
1 file changed, 63 insertions(+), 5 deletions(-)
diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy-mtk-tphy.c
index
The series of patches are used to support xHCI host controller on
MediaTek SoCs which has a glue layer IPPC (IP Port Control), and
add USB function on T-PHY including T-PHY V1 and V2;
Finally add USB related nodes for MT7629 platform.
Chunfeng Yun (8):
phy: phy-mtk-tphy: add support USB phys
On Wed, 2020-03-11 at 08:11 +0100, Marek Vasut wrote:
> On 3/11/20 7:50 AM, Chunfeng Yun wrote:
> [...]
> > + * @u3_ctrl_p[x]: ip usb3 port x control register, only low 4bytes are used
> > + * @u2_ctrl_p[x]: ip usb2 port x control register, only low 4bytes are used
> > +
1. add the address mapping related properties;
2. make "ref" clock optional, and add optional clock "da_ref";
3. add the banks layout of TPHY V1 and V2;
Signed-off-by: Chunfeng Yun
---
doc/device-tree-bindings/phy/phy-mtk-tphy.txt | 78 ---
1 file changed,
This patch is used to support the on-chip xHCI controller on
MediaTek SoCs, currently only control/bulk transfers are
supported.
Signed-off-by: Chunfeng Yun
---
drivers/usb/host/Kconfig| 6 +
drivers/usb/host/Makefile | 1 +
drivers/usb/host/xhci-mtk.c | 508
Add usb, phy and clock nodes
Signed-off-by: Chunfeng Yun
---
arch/arm/dts/mt7629-rfb.dts | 8
arch/arm/dts/mt7629.dtsi| 41 +
2 files changed, 49 insertions(+)
diff --git a/arch/arm/dts/mt7629-rfb.dts b/arch/arm/dts/mt7629-rfb.dts
index
On Wed, 2020-03-11 at 06:17 -0600, Simon Glass wrote:
> Hi Chunfeng,
>
> On Wed, 11 Mar 2020 at 01:01, Chunfeng Yun wrote:
> >
> > This patch add a function used to get the child count of
> > a ofnode
> >
> > Signed-off-by: Chunfeng Yun
On Wed, 2020-03-11 at 06:18 -0600, Simon Glass wrote:
> Hi Chunfeng,
>
> On Wed, 11 Mar 2020 at 01:00, Chunfeng Yun wrote:
> >
> > This patch is used to support the on-chip xHCI controller on
> > MediaTek SoCs, currently only control/bulk transfers are
> >
Add dt-binding files of xhci-mtk and phys, C files of
phys.
Signed-off-by: Chunfeng Yun
---
v5: new patch
---
MAINTAINERS | 3 +++
1 file changed, 3 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 37ff21a037..4fe3bf949e 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -243,9 +243,12
Add usb, phy and clock nodes
Signed-off-by: Chunfeng Yun
---
v3~v5: no changes
v2:
1. remove fixed clock clk20m
---
arch/arm/dts/mt7629-rfb.dts | 8
arch/arm/dts/mt7629.dtsi| 41 +
2 files changed, 49 insertions(+)
diff --git a/arch/arm
This patch is used to support the on-chip xHCI controller on
MediaTek SoCs, currently control/bulk/interrupt transfers are
supported.
Signed-off-by: Chunfeng Yun
---
v5:
1. print error number suggested by Marek
2. support interrupt transfer
v4:
1. use phy_bulk API
v3:
1. use
1. add the address mapping related properties;
2. make "ref" clock optional, and add optional clock "da_ref";
3. add the banks layout of TPHY V1 and V2;
Signed-off-by: Chunfeng Yun
---
v2~v5: no changes
---
doc/device-tree-bindings/phy/phy-mtk-tphy.txt | 78 +++
The new version removes all shared banks between multi-phys
Signed-off-by: Chunfeng Yun
---
v2~v5: no changes
---
drivers/phy/phy-mtk-tphy.c | 68 +++---
1 file changed, 63 insertions(+), 5 deletions(-)
diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy
Add dt-binding for MediaTek xHCI host controller
Signed-off-by: Chunfeng Yun
---
v2~v5: no changes
---
.../usb/mediatek,mtk-xhci.txt | 40 +++
1 file changed, 40 insertions(+)
create mode 100644 doc/device-tree-bindings/usb/mediatek,mtk-xhci.txt
diff --git
for digital phy.
Signed-off-by: Chunfeng Yun
---
v2~v5: no changes
---
drivers/phy/phy-mtk-tphy.c | 21 ++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy-mtk-tphy.c
index 20167fe7cb..81525a48b7 100644
--- a/drivers/phy/phy
This patch adds a "bulk" API to the phy API in order to
get/enable/disable a group of phys associated with a device.
The bulk API will avoid adding a copy of the same code to
manage a group of phys in drivers.
Signed-off-by: Chunfeng Yun
---
v5: no changes
v4: new patch
---
drive
for ofnode_get_child_count() suggested by Simon
3. use clk_bulk to get clocks suggested by Marek
4. use clrsetbits_le32() etc suggeseted by Marek
5. get the count of phys by dev_get_child_count()
6. drop reference to fixed clock clk20m
Chunfeng Yun (14):
dm: core: Add function to get child count
Use the phy bulk API to get a group of phys
Signed-off-by: Chunfeng Yun
---
v5: no changes
v4: new patch
---
drivers/usb/gadget/dwc2_udc_otg.c | 90 +--
1 file changed, 12 insertions(+), 78 deletions(-)
diff --git a/drivers/usb/gadget/dwc2_udc_otg.c
b/drivers/usb
This patch add function used to get the child count of
a ofnode or a device
Signed-off-by: Chunfeng Yun
---
v4~v5: no changes
v3:
1. add non/inline function dev_get_child_count() instead of macro suggested
by Simon
v2:
1. move ofnode_get_child_count() into ofnode.c suggested by Simon
Add a test item for the phy_bulk API
Signed-off-by: Chunfeng Yun
---
v5: no changes
v4: new patch
---
arch/sandbox/dts/test.dts | 11 +++
test/dm/phy.c | 29 +
2 files changed, 40 insertions(+)
diff --git a/arch/sandbox/dts/test.dts b/arch
Support USB2 and USB3 PHY with shared banks when support multi-phys
Signed-off-by: Chunfeng Yun
---
v3~v5: no changes
v2:
1. get the count of phys by dev_get_child_count()
---
drivers/phy/phy-mtk-tphy.c | 227 +++--
1 file changed, 218 insertions(+), 9
Get a group of phys by the phy bulk API
Signed-off-by: Chunfeng Yun
---
v5: no changes
v4: new patch
---
drivers/usb/dwc3/core.c | 83 -
drivers/usb/dwc3/dwc3-generic.c | 7 ++-
include/dwc3-uboot.h| 11 ++---
3 files changed, 17 insertions
Add a test item for ofnode_get_child_count()
Signed-off-by: Chunfeng Yun
Reviewed-by: Simon Glass
---
v4~v5: no changes
v3:
1. squash dts patch into this one suggested by Simon
2. add reviewed-by Simon
v2:
a new patch to test ofnode_get_child_count() suggested by Simon
---
arch
On Mon, 2020-04-20 at 11:07 -0300, Fabio Estevam wrote:
> On Mon, Apr 20, 2020 at 12:22 AM Chunfeng Yun
> wrote:
>
> > + i-test {
> > + compatible = "mediatek,u-boot-fdt-test";
> > + #address-cells = <
Add a test item for ofnode_get_child_count()
Signed-off-by: Chunfeng Yun
Reviewed-by: Simon Glass
Reviewed-by: Weijie Gao
---
v6: add Reviewed-by Weijie
v4~v5: no changes
v3:
1. squash dts patch into this one suggested by Simon
2. add reviewed-by Simon
v2:
a new patch to test
Use the phy bulk API to get a group of phys
Signed-off-by: Chunfeng Yun
Reviewed-by: Weijie Gao
---
v6: add Reviewed-by Weijie
v5: no changes
v4: new patch
---
drivers/usb/gadget/dwc2_udc_otg.c | 90 +--
1 file changed, 12 insertions(+), 78 deletions(-)
diff
Support USB2 and USB3 PHY with shared banks when support multi-phys
Signed-off-by: Chunfeng Yun
Reviewed-by: Weijie Gao
---
v6: add Reviewed-by Weijie
v3~v5: no changes
v2: get the count of phys by dev_get_child_count()
---
drivers/phy/phy-mtk-tphy.c | 227
This patch adds a "bulk" API to the phy API in order to
get/enable/disable a group of phys associated with a device.
The bulk API will avoid adding a copy of the same code to
manage a group of phys in drivers.
Signed-off-by: Chunfeng Yun
Reviewed-by: Weijie Gao
---
v6: add Reviewed
This patch add function used to get the child count of
a ofnode or a device
Signed-off-by: Chunfeng Yun
Reviewed-by: Weijie Gao
Reviewed-by: Simon Glass
---
v6: add Reviewed-by Weijie & Simon
v4~v5: no changes
v3:
1. add non/inline function dev_get_child_count() instead of m
Get a group of phys by the phy bulk API
Signed-off-by: Chunfeng Yun
Reviewed-by: Weijie Gao
---
v6: add Reviewed-by Weijie
v5: no changes
v4: new patch
---
drivers/usb/dwc3/core.c | 83 -
drivers/usb/dwc3/dwc3-generic.c | 7 ++-
include/dwc3-uboot.h
Add usb, phy and clock nodes
Signed-off-by: Chunfeng Yun
Reviewed-by: Weijie Gao
---
v6: add Reviewed-by Weijie
v3~v5: no changes
v2:
1. remove fixed clock clk20m
---
arch/arm/dts/mt7629-rfb.dts | 8
arch/arm/dts/mt7629.dtsi| 41 +
2
The new version removes all shared banks between multi-phys
Signed-off-by: Chunfeng Yun
Reviewed-by: Weijie Gao
---
v6: add Reviewed-by Weijie
v2~v5: no changes
---
drivers/phy/phy-mtk-tphy.c | 68 +++---
1 file changed, 63 insertions(+), 5 deletions(-)
diff
sted by Simon
2. add a test item for ofnode_get_child_count() suggested by Simon
3. use clk_bulk to get clocks suggested by Marek
4. use clrsetbits_le32() etc suggeseted by Marek
5. get the count of phys by dev_get_child_count()
6. drop reference to fixed clock clk20m
Chunfeng Yun
Add a test item for the phy_bulk API
Signed-off-by: Chunfeng Yun
Reviewed-by: Weijie Gao
Reviewed-by: Simon Glass
---
v6: add Reviewed-by Weijie & Simon
v5: no changes
v4: new patch
---
arch/sandbox/dts/test.dts | 11 +++
test/dm/phy.c
1. add the address mapping related properties;
2. make "ref" clock optional, and add optional clock "da_ref";
3. add the banks layout of TPHY V1 and V2;
Signed-off-by: Chunfeng Yun
Reviewed-by: Weijie Gao
---
v6: add Reviewed-by Weijie
v2~v5: no changes
---
doc/device-t
for digital phy.
Signed-off-by: Chunfeng Yun
Reviewed-by: Weijie Gao
---
v6: add Reviewed-by Weijie
v2~v5: no changes
---
drivers/phy/phy-mtk-tphy.c | 21 ++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy-mtk-tphy.c
index
This patch is used to support the on-chip xHCI controller on
MediaTek SoCs, currently control/bulk/interrupt transfers are
supported.
Signed-off-by: Chunfeng Yun
Reviewed-by: Weijie Gao
---
v6: add Reviewed-by Weijie
v5:
1. print error number suggested by Marek
2. support interrupt
Add dt-binding for MediaTek xHCI host controller
Signed-off-by: Chunfeng Yun
Reviewed-by: Weijie Gao
---
v6: add Reviewed-by Weijie
v2~v5: no changes
---
.../usb/mediatek,mtk-xhci.txt | 40 +++
1 file changed, 40 insertions(+)
create mode 100644 doc/device
Add dt-binding files of xhci-mtk and phys, C files of
phys.
Signed-off-by: Chunfeng Yun
Reviewed-by: Weijie Gao
---
v6: add Reviewed-by Weijie
v5: new patch
---
MAINTAINERS | 3 +++
1 file changed, 3 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 7ac7e21ba1..cbbe7091ad 100644
On Fri, 2020-04-03 at 13:46 +0200, Marek Vasut wrote:
> On 4/3/20 5:33 AM, Chunfeng Yun wrote:
> [...]
> > +static int xhci_mtk_ofdata_get(struct mtk_xhci *mtk)
> > +{
> > + struct udevice *dev = mtk->dev;
> > + int ret = 0;
> > +
> > +
Get a group of phys by the phy bulk API
Signed-off-by: Chunfeng Yun
---
v4: new patch
---
drivers/usb/dwc3/core.c | 83 -
drivers/usb/dwc3/dwc3-generic.c | 7 ++-
include/dwc3-uboot.h| 11 ++---
3 files changed, 17 insertions(+), 84 deletions
5. get the count of phys by dev_get_child_count()
6. drop reference to fixed clock clk20m
Chunfeng Yun (13):
dm: core: Add function to get child count of ofnode or device
test: dm: add test item for ofnode_get_child_count()
phy: Add get/enable/disable for a bulk of phys
test: dm
for digital phy.
Signed-off-by: Chunfeng Yun
---
v2~v4: no changes
---
drivers/phy/phy-mtk-tphy.c | 21 ++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy-mtk-tphy.c
index 20167fe7cb..81525a48b7 100644
--- a/drivers/phy/phy
This patch is used to support the on-chip xHCI controller on
MediaTek SoCs, currently only control/bulk transfers are
supported.
Signed-off-by: Chunfeng Yun
---
v4:
1. use phy_bulk API
v3:
1. use macro approach to access registers suggested by Marek
v2:
1. use clk_bulk to get
Add a test item for the phy_bulk API
Signed-off-by: Chunfeng Yun
---
v4: new patch
---
arch/sandbox/dts/test.dts | 11 +++
test/dm/phy.c | 29 +
2 files changed, 40 insertions(+)
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
Support USB2 and USB3 PHY with shared banks when support multi-phys
Signed-off-by: Chunfeng Yun
---
v3~v4: no changes
v2:
1. get the count of phys by dev_get_child_count()
---
drivers/phy/phy-mtk-tphy.c | 227 +++--
1 file changed, 218 insertions(+), 9
This patch add function used to get the child count of
a ofnode or a device
Signed-off-by: Chunfeng Yun
---
v4: no changes
v3:
1. add non/inline function dev_get_child_count() instead of macro suggested
by Simon
v2:
1. move ofnode_get_child_count() into ofnode.c suggested by Simon
Use the phy bulk API to get a group of phys
Signed-off-by: Chunfeng Yun
---
v4: new patch
---
drivers/usb/gadget/dwc2_udc_otg.c | 90 +--
1 file changed, 12 insertions(+), 78 deletions(-)
diff --git a/drivers/usb/gadget/dwc2_udc_otg.c
b/drivers/usb/gadget
The new version removes all shared banks between multi-phys
Signed-off-by: Chunfeng Yun
---
v2~v4: no changes
---
drivers/phy/phy-mtk-tphy.c | 68 +++---
1 file changed, 63 insertions(+), 5 deletions(-)
diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy
Add dt-binding for MediaTek xHCI host controller
Signed-off-by: Chunfeng Yun
---
v2~v4: no changes
---
.../usb/mediatek,mtk-xhci.txt | 40 +++
1 file changed, 40 insertions(+)
create mode 100644 doc/device-tree-bindings/usb/mediatek,mtk-xhci.txt
diff --git
Add usb, phy and clock nodes
Signed-off-by: Chunfeng Yun
---
v3~v4: no changes
v2:
1. remove fixed clock clk20m
---
arch/arm/dts/mt7629-rfb.dts | 8
arch/arm/dts/mt7629.dtsi| 41 +
2 files changed, 49 insertions(+)
diff --git a/arch/arm
1. add the address mapping related properties;
2. make "ref" clock optional, and add optional clock "da_ref";
3. add the banks layout of TPHY V1 and V2;
Signed-off-by: Chunfeng Yun
---
v2~v4: no changes
---
doc/device-tree-bindings/phy/phy-mtk-tphy.txt | 78 +++
Add a test item for ofnode_get_child_count()
Signed-off-by: Chunfeng Yun
Reviewed-by: Simon Glass
---
v4: no changes
v3:
1. squash dts patch into this one suggested by Simon
2. add reviewed-by Simon
v2:
a new patch to test ofnode_get_child_count() suggested by Simon
---
arch
This patch adds a "bulk" API to the phy API in order to
get/enable/disable a group of phys associated with a device.
The bulk API will avoid adding a copy of the same code to
manage a group of phys in drivers.
Signed-off-by: Chunfeng Yun
---
v4: new patch
---
drivers/phy/phy-ucl
This patch is used to support the on-chip xHCI controller on
MediaTek SoCs, currently only control/bulk transfers are
supported.
Signed-off-by: Chunfeng Yun
---
v3:
use macro approach to access registers suggested by Marek
v2:
1. use clk_bulk to get clocks suggested by Marek
2. use
1. add the address mapping related properties;
2. make "ref" clock optional, and add optional clock "da_ref";
3. add the banks layout of TPHY V1 and V2;
Signed-off-by: Chunfeng Yun
---
v2~v3: no changes
---
doc/device-tree-bindings/phy/phy-mtk-tphy.txt | 78 +++
Add dt-binding for MediaTek xHCI host controller
Signed-off-by: Chunfeng Yun
---
v2~v3: no changes
---
.../usb/mediatek,mtk-xhci.txt | 40 +++
1 file changed, 40 insertions(+)
create mode 100644 doc/device-tree-bindings/usb/mediatek,mtk-xhci.txt
diff --git
The new version removes all shared banks between multi-phys
Signed-off-by: Chunfeng Yun
---
v2~v3: no changes
---
drivers/phy/phy-mtk-tphy.c | 68 +++---
1 file changed, 63 insertions(+), 5 deletions(-)
diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy
for digital phy.
Signed-off-by: Chunfeng Yun
---
v2~v3: no changes
---
drivers/phy/phy-mtk-tphy.c | 21 ++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy-mtk-tphy.c
index 20167fe7cb..81525a48b7 100644
--- a/drivers/phy/phy
suggested by Simon
2. add a test item for ofnode_get_child_count() suggested by Simon
3. use clk_bulk to get clocks suggested by Marek
4. use clrsetbits_le32() etc suggeseted by Marek
5. get the count of phys by dev_get_child_count()
6. drop reference to fixed clock clk20m
Chunfeng
Add usb, phy and clock nodes
Signed-off-by: Chunfeng Yun
---
v3: no changes
v2:
1. remove fixed clock clk20m
---
arch/arm/dts/mt7629-rfb.dts | 8
arch/arm/dts/mt7629.dtsi| 41 +
2 files changed, 49 insertions(+)
diff --git a/arch/arm/dts
Support USB2 and USB3 PHY with shared banks when support multi-phys
Signed-off-by: Chunfeng Yun
---
v3: no changes
v2:
1. get the count of phys by dev_get_child_count()
---
drivers/phy/phy-mtk-tphy.c | 227 +++--
1 file changed, 218 insertions(+), 9
This patch add function used to get the child count of
a ofnode or a device
Signed-off-by: Chunfeng Yun
---
v3:
1. add non/inline function dev_get_child_count() instead of macro suggested
by Simon
v2:
1. move ofnode_get_child_count() into ofnode.c suggested by Simon
2. add a new
Add a test item for ofnode_get_child_count()
Signed-off-by: Chunfeng Yun
Reviewed-by: Simon Glass
---
v3:
1. squash dts patch into this one suggested by Simon
2. add reviewed-by Simon
v2:
a new patch to test ofnode_get_child_count() suggested by Simon
---
arch/sandbox/dts/test.dts
Use the phy bulk API to get a group of phys
Signed-off-by: Chunfeng Yun
Reviewed-by: Weijie Gao
---
v7: use new API of phy bulk
v6: add Reviewed-by Weijie
v5: no changes
v4: new patch
---
drivers/usb/gadget/dwc2_udc_otg.c | 93 ++-
1 file changed, 17 insertions
Add a test item for the phy_bulk API
Signed-off-by: Chunfeng Yun
Reviewed-by: Weijie Gao
Reviewed-by: Simon Glass
---
v7: test new API
v6: add Reviewed-by Weijie & Simon
v5: no changes
v4: new patch
---
arch/sandbox/dts/test.dts | 11 +++
test/dm/phy.c
use clrsetbits_le32() etc suggeseted by Marek
5. get the count of phys by dev_get_child_count()
6. drop reference to fixed clock clk20m
Chunfeng Yun (14):
dm: core: Add function to get child count of ofnode or device
test: dm: add test item for ofnode_get_child_count()
phy: Add API for a bulk of
This patch add function used to get the child count of
a ofnode or a device
Signed-off-by: Chunfeng Yun
Reviewed-by: Weijie Gao
Reviewed-by: Simon Glass
---
v7: no changes
v6: add Reviewed-by Weijie & Simon
v4~v5: no changes
v3:
1. add non/inline function dev_get_child_count() ins
The new version removes all shared banks between multi-phys
Signed-off-by: Chunfeng Yun
Reviewed-by: Weijie Gao
---
v7: no changes
v6: add Reviewed-by Weijie
v2~v5: no changes
---
drivers/phy/phy-mtk-tphy.c | 68 +++---
1 file changed, 63 insertions(+), 5
Add dt-binding files of xhci-mtk and phys, C files of
phys.
Signed-off-by: Chunfeng Yun
Reviewed-by: Weijie Gao
---
v7: no changes
v6: add Reviewed-by Weijie
v5: new patch
---
MAINTAINERS | 3 +++
1 file changed, 3 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 7ac7e21ba1
Add usb, phy and clock nodes
Signed-off-by: Chunfeng Yun
Reviewed-by: Weijie Gao
---
v7: no changes
v6: add Reviewed-by Weijie
v3~v5: no changes
v2:
1. remove fixed clock clk20m
---
arch/arm/dts/mt7629-rfb.dts | 8
arch/arm/dts/mt7629.dtsi| 41
Add a test item for ofnode_get_child_count()
Signed-off-by: Chunfeng Yun
Reviewed-by: Simon Glass
Reviewed-by: Weijie Gao
---
v7: add @index for nodes with reg property suggested by Fabio
v6: add Reviewed-by Weijie
v4~v5: no changes
v3:
1. squash dts patch into this one suggested
1 - 100 of 331 matches
Mail list logo