[PATCH RFC 3/3] riscv: dts: sophgo: Add USB support for cv18xx

Alexander Sverdlin alexander.sverdlin at gmail.com
Sun Jun 15 08:38:52 PDT 2025


Thanks for the patch, Inochi!

On Wed, 2025-06-11 at 16:24 +0800, Inochi Amaoto wrote:
> Add USB controller node for cv18xx and enable it for Huashan Pi.
> 
> Signed-off-by: Inochi Amaoto <inochiama at gmail.com>

Successfully tested in host mode on Milk-V Duo Module 01 EVB:

Tested-by: Alexander Sverdlin <alexander.sverdlin at gmail.com>

> ---
>  arch/riscv/boot/dts/sophgo/cv180x.dtsi            | 14 ++++++++++++++
>  arch/riscv/boot/dts/sophgo/cv1812h-huashan-pi.dts |  4 ++++
>  2 files changed, 18 insertions(+)
> 
> diff --git a/arch/riscv/boot/dts/sophgo/cv180x.dtsi b/arch/riscv/boot/dts/sophgo/cv180x.dtsi
> index 65eceaa5d2f8..3ea3a1af103f 100644
> --- a/arch/riscv/boot/dts/sophgo/cv180x.dtsi
> +++ b/arch/riscv/boot/dts/sophgo/cv180x.dtsi
> @@ -428,5 +428,19 @@ dmac: dma-controller at 4330000 {
>  			snps,data-width = <2>;
>  			status = "disabled";
>  		};
> +
> +		usb: usb at 4340000 {
> +			compatible = "sophgo,cv1800-usb";
> +			reg = <0x04340000 0x10000>;
> +			clocks = <&clk CLK_AXI4_USB>, <&clk CLK_APB_USB>;
> +			clock-names = "otg", "utmi";
> +			g-np-tx-fifo-size = <32>;
> +			g-rx-fifo-size = <536>;
> +			g-tx-fifo-size = <768 512 512 384 128 128>;
> +			interrupts = <SOC_PERIPHERAL_IRQ(14) IRQ_TYPE_LEVEL_HIGH>;
> +			phys = <&usbphy>;
> +			phy-names = "usb2-phy";
> +			status = "disabled";
> +		};

-- 
Alexander Sverdlin.



More information about the linux-riscv mailing list