[PATCH v1 0/7] Add Starfive JH7110 Cadence USB driver

2024-05-04 Thread Minda Chen
(usb 3.0) PHY drivier patch4: Cadence USB wrapper driver. patch5-7 dts, config and maintainers update. Minda Chen (7): usb: cdns3: Set USB PHY mode in cdns3_probe() phy: starfive: Add Starfive JH7110 USB 2.0 PHY driver phy: starfive: Add Starfive JH7110 PCIe 2.0 PHY driver usb: cdns: starfive

[PATCH v1 1/7] usb: cdns3: Set USB PHY mode in cdns3_probe()

2024-05-04 Thread Minda Chen
USB PHY maybe need to set PHY mode in different USB dr mode. So translate to generic PHY mode and call generic_phy_set_mode(). Signed-off-by: Minda Chen --- drivers/usb/cdns3/core.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/usb/cdns3/core.c b/drivers/usb

[PATCH v1 2/7] phy: starfive: Add Starfive JH7110 USB 2.0 PHY driver

2024-05-04 Thread Minda Chen
Add Starfive JH7110 USB 2.0 PHY driver, which is generic PHY driver. Signed-off-by: Minda Chen --- drivers/phy/Kconfig| 1 + drivers/phy/Makefile | 1 + drivers/phy/starfive/Kconfig | 13 +++ drivers/phy/starfive/Makefile | 6

[PATCH v1 3/7] phy: starfive: Add Starfive JH7110 PCIe 2.0 PHY driver

2024-05-04 Thread Minda Chen
Add Starfive JH7110 PCIe 2.0 PHY driver, which is generic PHY driver and can be used as USB 3.0 driver. Signed-off-by: Minda Chen --- drivers/phy/starfive/Kconfig | 6 + drivers/phy/starfive/Makefile | 1 + drivers/phy/starfive/phy-jh7110-pcie.c | 211

[PATCH v1 4/7] usb: cdns: starfive: Add cdns USB driver

2024-05-04 Thread Minda Chen
Add cdns USB3 wrapper driver. Signed-off-by: Minda Chen --- drivers/usb/cdns3/Kconfig | 7 ++ drivers/usb/cdns3/Makefile | 2 + drivers/usb/cdns3/cdns3-starfive.c | 184 + 3 files changed, 193 insertions(+) create mode 100644 drivers/usb/cdns3

[PATCH v1 5/7] configs: starfive: Add visionfive2 cadence USB configuration

2024-05-04 Thread Minda Chen
Add cadence USB confiuration. Signed-off-by: Minda Chen --- configs/starfive_visionfive2_defconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig index 3bbd1dbd67..444ddd508d 100644 --- a/configs

[PATCH v1 6/7] dts: starfive: Add JH7110 Cadence USB dts node

2024-05-04 Thread Minda Chen
Add Jh7110 Cadence USB dts node, Visionfive2 default setting is USB 2.0 device. Signed-off-by: Minda Chen --- .../dts/jh7110-starfive-visionfive-2.dtsi | 5 ++ arch/riscv/dts/jh7110.dtsi| 52 +++ 2 files changed, 57 insertions(+) diff --git a/arch/riscv

[PATCH v1 7/7] MAINTAINERS: Update Starfive visionfive2 maintain files.

2024-05-04 Thread Minda Chen
Add USB related files to Starfive visionfive2 MAINTAINERS. Signed-off-by: Minda Chen --- board/starfive/visionfive2/MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/starfive/visionfive2/MAINTAINERS b/board/starfive/visionfive2/MAINTAINERS index d7f638f9b4..1faf83f581

回复: [PATCH 2/4] board: add support for Milk-V Mars CM

2024-05-06 Thread Minda Chen
> > On 30.04.24 11:59, E Shattow wrote: > > On Tue, Apr 30, 2024 at 12:18 AM Heinrich Schuchardt > > wrote: > >> > >> On 30.04.24 00:46, E Shattow wrote: > >>> On Sun, Apr 28, 2024 at 9:13 AM Emil Renner Berthing > >>> wrote: > > Heinrich Schuchardt wrote: > > We already support

Re: [PATCH v1 7/7] MAINTAINERS: Update Starfive visionfive2 maintain files.

2024-05-17 Thread Minda Chen
> > On 5/4/24 5:03 PM, Minda Chen wrote: > > Add USB related files to Starfive visionfive2 MAINTAINERS. > > > > Signed-off-by: Minda Chen > > --- > > board/starfive/visionfive2/MAINTAINERS | 2 ++ > > 1 file changed, 2 insertions(+) > > > &g

Re: [PATCH v1 0/7] Add Starfive JH7110 Cadence USB driver

2024-05-19 Thread Minda Chen
> -邮件原件- > 发件人: E Shattow > 发送时间: 2024年5月20日 13:06 > 收件人: Minda Chen > 抄送: Marek Vasut ; Tom Rini ; Roger > Quadros ; Neil Armstrong ; > Alexey Romanov ; Sumit Garg > ; Mark Kettenis ; Nishanth > Menon ; Rick Chen ; Leo Yu-Chi Liang > ; u-boot@list

Re: [PATCH 1/1] riscv: starfive: MMC card detect

2024-03-29 Thread Minda Chen
rfive-visionfive-2.dtsi > @@ -298,7 +298,7 @@ > pinctrl-0 = <&mmc1_pins>; > no-sdio; > no-mmc; > - broken-cd; > + cd-gpios = <&sysgpio 41 GPIO_ACTIVE_LOW>; > cap-sd-highspeed; > post-power-on-delay-ms = <200>; > status = "okay"; > -- > 2.43.0 Acked-by: Minda Chen

Re: [PATCH v2 4/6] board: starfive: support Milk-V Mars board

2024-04-01 Thread Minda Chen
> > On 4/1/24 17:28, Aurelien Jarno wrote: > > On 2024-03-28 17:01, Heinrich Schuchardt wrote: > >> On 24.03.24 16:00, Aurelien Jarno wrote: > >>> On 2024-03-21 19:11, Heinrich Schuchardt wrote: > The differences between the Milk-V Mars board and the VisionFive 2 > board are small enough

[PATCH v1 1/2] board: starfive: Update maintainer of VisionFive v2 board

2024-03-07 Thread Minda Chen
Update the maintainer of Starfive VisionFive v2 board. Signed-off-by: Minda Chen --- board/starfive/visionfive2/MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/starfive/visionfive2/MAINTAINERS b/board/starfive/visionfive2/MAINTAINERS index 600ff9575b

[PATCH v1 2/2] board: starfive: maintainer: Add visionfive2 PCIe driver

2024-03-07 Thread Minda Chen
Add PCIe driver file to visionfive2 board MAINTAINERS list. Signed-off-by: Minda Chen --- board/starfive/visionfive2/MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/board/starfive/visionfive2/MAINTAINERS b/board/starfive/visionfive2/MAINTAINERS index 5056e9c713..d7f638f9b4

回复: [PATCH v2 0/6] riscv: add support for Milk-V Mars board

2024-03-24 Thread Minda Chen
> > The Milk-V Mars board is technically very close to the StarFive VisionFive 2 > board. > > With this patch series the VisionFive 2 U-Boot SPL will detect that it is > running on > a Milk-V board and patch the device-tree accordingly. > This is the same approach that has been taken to handle

Re: [PATCH v6 0/3] Add StarFive JH7110 PCIe drvier support

2023-05-31 Thread Minda Chen
Hi Rick and Leo Could you review these series patches? Thanks. Since patch 1 was acked by Pali, Does it mean patch 1 is accepted? On 2023/5/9 16:26, Minda Chen wrote: > These PCIe series patches are based on the JH7110 RISC-V SoC and VisionFive > V2 board. > > The PCIe driver dep

Re: [PATCH v6 0/3] Add StarFive JH7110 PCIe drvier support

2023-06-16 Thread Minda Chen
On 2023/6/16 16:42, Leo Liang wrote: > Hi Minda, > > On Thu, Jun 01, 2023 at 09:07:14AM +0800, Minda Chen wrote: >> >> Hi Rick and Leo >> Could you review these series patches? Thanks. >> Since patch 1 was acked by Pali, Does it mean patch 1 is accepted? >

[PATCH v1 1/4] net: rtl8169: Fix compile warning in rtl8169 network adapter

2023-06-21 Thread Minda Chen
Fix make pointer from integer without a cast compile warning. Signed-off-by: Minda Chen --- drivers/net/rtl8169.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c index 2276a465e7..dcba51590d 100644 --- a/drivers/net

[PATCH v1 0/4] Fix rtl8169 compile warning and add a new device ID

2023-06-21 Thread Minda Chen
-conversion] patch 2 fix RISC-V 8169 descriptor less than DMA min aligned size warning patch 3 add new device ID patch 4 enable 8169 in JH7110 SoC configs file. Minda Chen (4): net: rtl8169: Fix compile warning in rtl8169 network adapter net: rtl8169: Fix DMA min aligned compile warning in riscv

[PATCH v1 2/4] net: rtl8169: Fix DMA min aligned compile warning in riscv

2023-06-21 Thread Minda Chen
Fix rtl8169 descriptor less the DMA min aligned compile warning for RISC-V SoC platform. Signed-off-by: Minda Chen --- drivers/net/rtl8169.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c index dcba51590d..34e4cff1e9 100644

[PATCH v1 4/4] configs: starfive-jh7110: Add CONFIG_RTL8169

2023-06-21 Thread Minda Chen
Add PCIe device rtl8169 net adapter driver support. Signed-off-by: Minda Chen --- configs/starfive_visionfive2_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig index ffbc4b9476..360160200f 100644 --- a

[PATCH v1 3/4] net: rtl8169: Add one more device ID

2023-06-21 Thread Minda Chen
Add the NIC device ID and adjust the PCI bar regions. Signed-off-by: Minda Chen --- drivers/net/rtl8169.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c index 34e4cff1e9..963702777c 100644 --- a/drivers/net/rtl8169.c +++ b

[PATCH v4 0/9] Add Starfive JH7110 Cadence USB driver

2024-08-28 Thread Minda Chen
start function. - patch 1-4 correct the code format.(follow Marek's comments.) - patch 2 Add set 125M clock in PHY init function. - Add new patch5. Minda Chen (9): usb: cdns3: Set USB PHY mode in cdns3_drd_update_mode() phy: starfive: Add Starfive JH7110 USB 2.0 PHY dr

[PATCH v4 1/9] usb: cdns3: Set USB PHY mode in cdns3_drd_update_mode()

2024-08-28 Thread Minda Chen
USB PHY maybe need to set PHY mode in different USB dr mode. So translate USB PHY mode to generic PHY mode and call generic_phy_set_mode(). Signed-off-by: Minda Chen --- drivers/usb/cdns3/drd.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/usb/cdns3/drd.c b/drivers

[PATCH v4 2/9] phy: starfive: Add Starfive JH7110 USB 2.0 PHY driver

2024-08-28 Thread Minda Chen
Add Starfive JH7110 USB 2.0 PHY driver, which is generic PHY driver. Signed-off-by: Minda Chen Reviewed-by: Roger Quadros --- drivers/phy/Kconfig| 1 + drivers/phy/Makefile | 1 + drivers/phy/starfive/Kconfig | 14 +++ drivers/phy/starfive

[PATCH v4 4/9] usb: cdns: starfive: Add cdns USB driver

2024-08-28 Thread Minda Chen
Add cdns USB3 wrapper driver. Signed-off-by: Minda Chen --- drivers/usb/cdns3/Kconfig | 7 ++ drivers/usb/cdns3/Makefile | 2 + drivers/usb/cdns3/cdns3-starfive.c | 191 + 3 files changed, 200 insertions(+) create mode 100644 drivers/usb/cdns3

[PATCH v4 3/9] phy: starfive: Add Starfive JH7110 PCIe 2.0 PHY driver

2024-08-28 Thread Minda Chen
Add Starfive JH7110 PCIe 2.0 PHY driver, which is generic PHY driver and can be used as USB 3.0 driver. Signed-off-by: Minda Chen --- drivers/phy/starfive/Kconfig | 7 + drivers/phy/starfive/Makefile | 1 + drivers/phy/starfive/phy-jh7110-pcie.c | 237

[PATCH v4 5/9] spl: starfive: visionfive2: Disable USB overcurrent pin by default.

2024-08-28 Thread Minda Chen
For some JH7110 boards, USB host overcurent pin is not reserved, To make USB host work, overcurrent pin must be disabled. So set the pin default disabled in spl stage. Signed-off-by: Minda Chen --- arch/riscv/include/asm/arch-jh7110/gpio.h | 5 + board/starfive/visionfive2/spl.c

[PATCH v4 6/9] configs: starfive: Add visionfive2 cadence USB configuration

2024-08-28 Thread Minda Chen
Add cadence USB confiuration. Signed-off-by: Minda Chen --- configs/starfive_visionfive2_defconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig index 174ac24dc7..35137eec59 100644 --- a/configs

[PATCH v4 7/9] dts: starfive: Add JH7110 Cadence USB dts node

2024-08-28 Thread Minda Chen
Add Jh7110 Cadence USB dts node, Visionfive2 default setting is USB 2.0 device. Signed-off-by: Minda Chen --- .../dts/jh7110-starfive-visionfive-2.dtsi | 5 ++ arch/riscv/dts/jh7110.dtsi| 53 +++ 2 files changed, 58 insertions(+) diff --git a/arch/riscv

[PATCH v4 8/9] spl: starfive: star64: Setup USB fdt fixup function

2024-08-28 Thread Minda Chen
Setup star64 USB fdt fixup function. Set dr_mode to host, and add vbus pin (GPIO25), and set USB 3.0 mode. the functions can be used by other 7110 board like Milk-V board. Signed-off-by: Minda Chen --- board/starfive/visionfive2/spl.c | 66 1 file changed, 66

[PATCH v4 9/9] MAINTAINERS: Update Starfive visionfive2 maintain files.

2024-08-28 Thread Minda Chen
Add USB related files to Starfive visionfive2 MAINTAINERS. Signed-off-by: Minda Chen Reviewed-by: Marek Vasut --- board/starfive/visionfive2/MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/starfive/visionfive2/MAINTAINERS b/board/starfive/visionfive2/MAINTAINERS index

Re: [PATCH v4 7/9] dts: starfive: Add JH7110 Cadence USB dts node

2024-08-29 Thread Minda Chen
> > On Wed, Aug 28, 2024 at 9:47 PM Sumit Garg wrote: > > > > Hi, > > > > On Thu, 29 Aug 2024 at 07:01, Minda Chen > wrote: > > > > > > Add Jh7110 Cadence USB dts node, Visionfive2 default setting is USB > > > 2.0 device. > >

Re: [PATCH v4 2/9] phy: starfive: Add Starfive JH7110 USB 2.0 PHY driver

2024-09-06 Thread Minda Chen
> > On 8/29/24 3:30 AM, Minda Chen wrote: > > [...] > > > +menu "Starfive PHY driver" > > + > > +config PHY_STARFIVE_JH7110_USB2 > > + bool "Starfive JH7110 USB 2.0 PHY driver" > > + select PHY > > Can this PHY_STARF

Re: [PATCH v4 8/9] spl: starfive: star64: Setup USB fdt fixup function

2024-10-11 Thread Minda Chen
> > Hi Minda, > > On Wed, Aug 28, 2024 at 6:31 PM Minda Chen > wrote: > > > > Setup star64 USB fdt fixup function. Set dr_mode to host, and add vbus > > pin (GPIO25), and set USB 3.0 mode. > > the functions can be used by other 7110 board like Milk-V b

[PATCH v5 7/8] dts: starfive: Add JH7110 Cadence USB dts node

2024-10-11 Thread Minda Chen
Add Jh7110 Cadence USB dts node, Visionfive2 default setting is USB 2.0 device. Signed-off-by: Minda Chen --- .../dts/jh7110-starfive-visionfive-2.dtsi | 5 ++ arch/riscv/dts/jh7110.dtsi| 53 +++ 2 files changed, 58 insertions(+) diff --git a/arch/riscv

[PATCH v5 3/8] phy: starfive: Add Starfive JH7110 PCIe 2.0 PHY driver

2024-10-11 Thread Minda Chen
Add Starfive JH7110 PCIe 2.0 PHY driver, which is generic PHY driver and can be used as USB 3.0 driver. Signed-off-by: Minda Chen --- drivers/phy/starfive/Kconfig | 7 + drivers/phy/starfive/Makefile | 1 + drivers/phy/starfive/phy-jh7110-pcie.c | 239

[PATCH v5 4/8] usb: cdns: starfive: Add cdns USB driver

2024-10-11 Thread Minda Chen
Add cdns USB3 wrapper driver. And cdns core driver also get dr mode from wrapper devcie dts node to make it is same with Starfive cdns USB Linux kernel driver, preparing for enable OF_UPSTREAM. Signed-off-by: Minda Chen --- drivers/usb/cdns3/Kconfig | 7 ++ drivers/usb/cdns3/Makefile

[PATCH v5 2/8] phy: starfive: Add Starfive JH7110 USB 2.0 PHY driver

2024-10-11 Thread Minda Chen
Add Starfive JH7110 USB 2.0 PHY driver, which is generic PHY driver. Signed-off-by: Minda Chen Reviewed-by: Roger Quadros --- drivers/phy/Kconfig | 1 + drivers/phy/Makefile | 1 + drivers/phy/starfive/Kconfig | 14

[PATCH v5 0/8] Add Starfive JH7110 Cadence USB driver

2024-10-11 Thread Minda Chen
e format.(follow Rogers's comments.) - patch 3 using regmap_field. v2: - patch 1 Move the added code to cdns3_core_init_role(). Must set PHY mode before calling cdns3 role start function. - patch 1-4 correct the code format.(follow Marek's commen

[PATCH v5 5/8] spl: starfive: visionfive2: Disable USB overcurrent pin by default.

2024-10-11 Thread Minda Chen
For some JH7110 boards, USB host overcurent pin is not reserved, To make USB host work, overcurrent pin must be disabled. So set the pin default disabled in spl stage. Signed-off-by: Minda Chen --- arch/riscv/include/asm/arch-jh7110/gpio.h | 5 + board/starfive/visionfive2/spl.c

[PATCH v5 1/8] usb: cdns3: Set USB PHY mode in cdns3_drd_update_mode()

2024-10-11 Thread Minda Chen
USB PHY maybe need to set PHY mode in different USB dr mode. So translate USB PHY mode to generic PHY mode and call generic_phy_set_mode(). Signed-off-by: Minda Chen Reviewed-by: Marek Vasut --- drivers/usb/cdns3/drd.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers

[PATCH v5 6/8] configs: starfive: Add visionfive2 cadence USB configuration

2024-10-11 Thread Minda Chen
Add cadence USB confiuration. Signed-off-by: Minda Chen --- configs/starfive_visionfive2_defconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig index 174ac24dc74..4329c8705ec 100644 --- a/configs

[PATCH v5 8/8] MAINTAINERS: Update Starfive visionfive2 maintain files.

2024-10-11 Thread Minda Chen
Add USB related files to Starfive visionfive2 MAINTAINERS. Signed-off-by: Minda Chen Reviewed-by: Marek Vasut --- board/starfive/visionfive2/MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/starfive/visionfive2/MAINTAINERS b/board/starfive/visionfive2/MAINTAINERS index

回复: [PATCH v5 4/8] usb: cdns: starfive: Add cdns USB driver

2024-12-19 Thread Minda Chen
> > > > On 10/11/24 20:34, Marek Vasut wrote: > > On 10/12/24 5:13 AM, Minda Chen wrote: > >> Add cdns USB3 wrapper driver. And cdns core driver also get dr mode > >> from wrapper devcie dts node to make it is same with Starfive cdns > >>

[PATCH v6 1/8] usb: cdns3: Set USB PHY mode in cdns3_drd_update_mode()

2025-01-22 Thread Minda Chen
USB PHY maybe need to set PHY mode in different USB dr mode. So translate USB PHY mode to generic PHY mode and call generic_phy_set_mode(). Signed-off-by: Minda Chen Reviewed-by: Marek Vasut --- drivers/usb/cdns3/drd.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers

[PATCH v6 6/8] spl: starfive: visionfive2: Disable USB overcurrent pin by default.

2025-01-22 Thread Minda Chen
For some JH7110 boards, USB host overcurent pin is not reserved, To make USB host work, overcurrent pin must be disabled. So set the pin default disabled in spl stage. Signed-off-by: Minda Chen Tested-by: E Shattow --- arch/riscv/include/asm/arch-jh7110/gpio.h | 5 + board/starfive

[PATCH v6 2/8] phy: starfive: Add Starfive JH7110 USB 2.0 PHY driver

2025-01-22 Thread Minda Chen
Add Starfive JH7110 USB 2.0 PHY driver, which is generic PHY driver. Signed-off-by: Minda Chen Reviewed-by: Roger Quadros --- drivers/phy/Kconfig | 1 + drivers/phy/Makefile | 1 + drivers/phy/starfive/Kconfig | 14

[PATCH v6 0/8] Add Starfive JH7110 Cadence USB driver

2025-01-22 Thread Minda Chen
ock in PHY init function. - Add new patch5. Minda Chen (8): usb: cdns3: Set USB PHY mode in cdns3_drd_update_mode() phy: starfive: Add Starfive JH7110 USB 2.0 PHY driver phy: starfive: Add Starfive JH7110 PCIe 2.0 PHY driver usb: cdns: starfive: Get dr mode from wrapper device dts

[PATCH v6 3/8] phy: starfive: Add Starfive JH7110 PCIe 2.0 PHY driver

2025-01-22 Thread Minda Chen
Add Starfive JH7110 PCIe 2.0 PHY driver, which is generic PHY driver and can be used as USB 3.0 driver. Signed-off-by: Minda Chen --- drivers/phy/starfive/Kconfig | 7 + drivers/phy/starfive/Makefile | 1 + drivers/phy/starfive/phy-jh7110-pcie.c | 239

[PATCH v6 5/8] usb: cdns: starfive: Add cdns USB driver

2025-01-22 Thread Minda Chen
Add Starfive cdns USB3 wrapper driver. Signed-off-by: Minda Chen --- drivers/usb/cdns3/Kconfig | 7 ++ drivers/usb/cdns3/Makefile | 1 + drivers/usb/cdns3/cdns3-starfive.c | 182 + 3 files changed, 190 insertions(+) create mode 100644 drivers

[PATCH v6 7/8] configs: starfive: Add visionfive2 cadence USB configuration

2025-01-22 Thread Minda Chen
Add cadence USB confiuration. Signed-off-by: Minda Chen --- configs/starfive_visionfive2_defconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig index c3f2142ae1b..c2be9ffae27 100644 --- a/configs

[PATCH v6 8/8] MAINTAINERS: Update Starfive visionfive2 maintain files.

2025-01-22 Thread Minda Chen
Add USB related files to Starfive visionfive2 MAINTAINERS. Signed-off-by: Minda Chen Reviewed-by: Marek Vasut --- board/starfive/visionfive2/MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/starfive/visionfive2/MAINTAINERS b/board/starfive/visionfive2/MAINTAINERS index

[PATCH v6 4/8] usb: cdns: starfive: Get dr mode from wrapper device dts node

2025-01-22 Thread Minda Chen
Cdns core driver also get dr mode from wrapper devcie dts node to make it is same with Starfive cdns USB Linux kernel driver, Starfive 7110 OF_UPSTREAM is enabled Signed-off-by: Minda Chen --- drivers/phy/starfive/phy-jh7110-pcie.c | 2 +- drivers/usb/cdns3/core.c | 3 +++ 2 files

Re: [PATCH v6 0/8] Add Starfive JH7110 Cadence USB driver

2025-03-02 Thread Minda Chen
> > On 2/21/25 8:41 AM, E Shattow wrote: > > On Thu, Jan 23, 2025 at 6:51 AM E Shattow wrote: > >> > >> On Wed, Jan 22, 2025 at 5:01 PM Minda Chen > wrote: > >>> > >>> Add Starfive JH7110 Cadence USB driver and related PHY driver. >

[PATCH v7 1/8] usb: cdns3: Set USB PHY mode in cdns3_drd_update_mode()

2025-03-05 Thread Minda Chen
USB PHY maybe need to set PHY mode in different USB dr mode. So translate USB PHY mode to generic PHY mode and call generic_phy_set_mode(). Signed-off-by: Minda Chen Reviewed-by: Marek Vasut --- drivers/usb/cdns3/drd.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers

[PATCH v7 3/8] phy: starfive: Add Starfive JH7110 PCIe 2.0 PHY driver

2025-03-05 Thread Minda Chen
Add Starfive JH7110 PCIe 2.0 PHY driver, which is generic PHY driver and can be used as USB 3.0 driver. Signed-off-by: Minda Chen Tested-by: E Shattow --- drivers/phy/starfive/Kconfig | 7 + drivers/phy/starfive/Makefile | 1 + drivers/phy/starfive/phy-jh7110-pcie.c

[PATCH v7 7/8] configs: starfive: Add visionfive2 cadence USB configuration

2025-03-05 Thread Minda Chen
Add cadence USB confiuration. Signed-off-by: Minda Chen Tested-by: E Shattow --- configs/starfive_visionfive2_defconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig index c3f2142ae1b

[PATCH v7 5/8] usb: cdns: starfive: Add cdns USB driver

2025-03-05 Thread Minda Chen
Add Starfive cdns USB3 wrapper driver. Signed-off-by: Minda Chen Reviewed-by: Marek Vasut Tested-by: E Shattow --- drivers/usb/cdns3/Kconfig | 7 ++ drivers/usb/cdns3/Makefile | 1 + drivers/usb/cdns3/cdns3-starfive.c | 182 + 3 files changed

[PATCH v7 0/8] Add Starfive JH7110 Cadence USB driver

2025-03-05 Thread Minda Chen
d set 125M clock in PHY init function. - Add new patch5. Minda Chen (8): usb: cdns3: Set USB PHY mode in cdns3_drd_update_mode() phy: starfive: Add Starfive JH7110 USB 2.0 PHY driver phy: starfive: Add Starfive JH7110 PCIe 2.0 PHY driver usb: cdns: starfive: Get dr mode from wrapper

[PATCH v7 6/8] spl: starfive: visionfive2: Disable USB overcurrent pin by default.

2025-03-05 Thread Minda Chen
For some JH7110 boards, USB host overcurent pin is not reserved, To make USB host work, overcurrent pin must be disabled. So set the pin default disabled in spl stage. Signed-off-by: Minda Chen Tested-by: E Shattow --- arch/riscv/include/asm/arch-jh7110/gpio.h | 5 + board/starfive

[PATCH v7 2/8] phy: starfive: Add Starfive JH7110 USB 2.0 PHY driver

2025-03-07 Thread Minda Chen
Add Starfive JH7110 USB 2.0 PHY driver, which is generic PHY driver. Signed-off-by: Minda Chen Reviewed-by: Roger Quadros Tested-by: E Shattow --- drivers/phy/Kconfig | 1 + drivers/phy/Makefile | 1 + drivers/phy/starfive/Kconfig

[PATCH v7 8/8] MAINTAINERS: Update Starfive visionfive2 maintain files.

2025-03-06 Thread Minda Chen
Add USB related files to Starfive visionfive2 MAINTAINERS. Signed-off-by: Minda Chen Reviewed-by: Marek Vasut --- board/starfive/visionfive2/MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/starfive/visionfive2/MAINTAINERS b/board/starfive/visionfive2/MAINTAINERS index

[PATCH v7 4/8] usb: cdns: starfive: Get dr mode from wrapper device dts node

2025-03-11 Thread Minda Chen
Cdns core driver also get dr mode from wrapper devcie dts node to make it is same with Starfive cdns USB Linux kernel driver, Starfive 7110 OF_UPSTREAM is enabled Signed-off-by: Minda Chen Reviewed-by: Marek Vasut --- drivers/phy/starfive/phy-jh7110-pcie.c | 2 +- drivers/usb/cdns3/core.c

<    1   2