From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from va-2-30.ptr.blmpb.com (va-2-30.ptr.blmpb.com [209.127.231.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 017FD539762 for ; Tue, 22 Sep 2026 11:04:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.127.231.30 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790075094; cv=none; b=Bm9ilPln08juceJrZu4Z+rq71liAFRi1TgE/Pw7g02Q3uXxhBpGmW51jGJosxHA6UMW21Khx8aybFtMm5WspphSOYEzzoRBPAd40pdT9+umAcfFyzPfRf9xGhhD12yAhLEgAmw6QYDhk3FFDBIbWLBUVz9yy+1AsYAq+X6AQXs8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790075094; c=relaxed/simple; bh=48yPuF0tDHCncmBzIxe6Adixm4tcOkeCt6YRyk9li4k=; h=Date:In-Reply-To:To:Content-Type:Subject:Mime-Version:References: Cc:From:Message-Id; b=Kpk6pxML8ydxWf29jB/eUg0RM2zT3ohflThla/TkVgSmQvpwuOxuwedzXVq2J3uKRElVen2NZ1cALzb+dE+G7a14R44W/oxZEmsvr6d5DRC8x3L47n3KR4GwdSk9cnRAKYL515Yd5Ult5bJ/0xGqAHZzM3ugq05711JcsjcuF3E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=deepcomputing.io; spf=pass smtp.mailfrom=deepcomputing.io; dkim=pass (2048-bit key) header.d=deepcomputing-io.20200927.dkim.feishu.cn header.i=@deepcomputing-io.20200927.dkim.feishu.cn header.b=BXapSEhx; arc=none smtp.client-ip=209.127.231.30 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=deepcomputing.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=deepcomputing.io Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=deepcomputing-io.20200927.dkim.feishu.cn header.i=@deepcomputing-io.20200927.dkim.feishu.cn header.b="BXapSEhx" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=s1; d=deepcomputing-io.20200927.dkim.feishu.cn; t=1790075082; h=from:subject:mime-version:from:date:message-id:subject:to:cc: reply-to:content-type:mime-version:in-reply-to:message-id; bh=rFGPbCu53GFL/4qegEhAxeYlom/jwwxA377ZvxKEsl8=; b=BXapSEhxXphY83h5L5pGHH2v417LgfhNbPAB+FbroRg0OUqKD0hE6o3g/0thrQlVE7maR9 uVkKChscn8ErHMmdNmjoW1FUV9LnDurhGZOwbSx3qYp6ztzwMzt/r51JnuH0rTb577B1DD gckWUi0aeklkWYeAF7A5pLH0NkuMac62OH79AcBYckatpQEpXBCKU8sTGCGXBT3swNKVTG qeN80BQJvZZyg4lDKciMgE6W50Zf4Nrqv5kcGLcF96CXzUcUZRWjjTDSmkx6RPl8Fj2lmi SYHihH1z5KXk8Xk6oGT8BSEGX0z260R9YKTl/4ttnNno/2m/6C0kZCz3ngvklA== Date: Tue, 22 Sep 2026 19:04:34 +0800 Received: from roma-Laptop-12th-Gen-Intel-Core.lan ([183.23.111.1]) by smtp.feishu.cn with ESMTPS; Tue, 22 Sep 2026 19:04:39 +0800 In-Reply-To: <20260922110231.3426011-1-sandie.cao@deepcomputing.io> Content-Transfer-Encoding: 7bit To: "Yixun Lan" , "Troy Mitchell" , "Conor Dooley" , "Rob Herring" , "Krzysztof Kozlowski" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" X-Lms-Return-Path: Content-Type: text/plain; charset=UTF-8 Subject: [PATCH 2/3] riscv: dts: spacemit: k3-deepcomputing-fml13v05: add USB controller and USB phy support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260922110231.3426011-1-sandie.cao@deepcomputing.io> Cc: "Alexandre Ghiti" , , , , , "Sandie Cao" From: "Sandie Cao" Message-Id: <20260922110434.3426051-1-sandie.cao@deepcomputing.io> X-Original-From: Sandie Cao X-Mailer: git-send-email 2.43.0 Add USB device node (b, c, d) to DeepComputing FML13V05 board. USB A works on otg mode, it isn't configured currently. - 4 USB-C Ports - Port 1: PD 3.0 (65W Max), USB 3.2 Gen 1 - Port 2: PD 3.0 (65W Max), USB 3.2 Gen 1, DP 1.4 (4K@60Hz) - Port 3 & 4: USB 3.2 Gen 1 Signed-off-by: Sandie Cao --- .../spacemit/k3-deepcomputing-fml13v05.dts | 44 +++++++++++++ arch/riscv/boot/dts/spacemit/k3.dtsi | 66 +++++++++++++++++++ 2 files changed, 110 insertions(+) diff --git a/arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts b/arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts index 804abc85602a..55b0f63dcb2e 100644 --- a/arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts +++ b/arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts @@ -179,8 +179,52 @@ dldo7: dldo7 { }; }; +&combophy { + spacemit,apmu = <&syscon_apmu 0x17>; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_0_cfg>; status = "okay"; }; + +&usb2_host { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + hub@1 { + compatible = "usb5e3,608"; + reg = <1>; + }; +}; + +&usb2_phy { + status = "okay"; +}; + +&usb3b_u2phy { + status = "okay"; +}; + +&usb3b { + status = "okay"; +}; + +&usb3c_u2phy { + status = "okay"; +}; + +&usb3c { + status = "okay"; +}; + +&usb3d_u2phy { + status = "okay"; +}; + +&usb3d { + status = "okay"; +}; diff --git a/arch/riscv/boot/dts/spacemit/k3.dtsi b/arch/riscv/boot/dts/spacemit/k3.dtsi index b9977e78e096..ae3f8bb1e5ed 100644 --- a/arch/riscv/boot/dts/spacemit/k3.dtsi +++ b/arch/riscv/boot/dts/spacemit/k3.dtsi @@ -441,6 +441,72 @@ soc: soc { dma-noncoherent; ranges; + usb3b: usb@81400000 { + compatible = "spacemit,k3-dwc3"; + reg = <0x0 0x81400000 0x0 0x10000>; + interrupts = <125 IRQ_TYPE_LEVEL_HIGH>; + interrupt-parent = <&saplic>; + clocks = <&syscon_apmu CLK_APMU_USB3_PORTB_BUS>; + clock-names = "usbdrd30"; + resets = <&syscon_apmu RESET_APMU_USB3_B_AHB>, + <&syscon_apmu RESET_APMU_USB3_B_VCC>, + <&syscon_apmu RESET_APMU_USB3_B_PHY>; + reset-names = "ahb", "vcc", "phy"; + phys = <&usb3b_u2phy>, + <&combophy 2 PHY_TYPE_USB3>; + phy-names = "usb2-phy", "usb3-phy"; + phy_type = "utmi"; + snps,dis_enblslpm_quirk; + snps,dis_u2_susphy_quirk; + snps,dis_u3_susphy_quirk; + snps,dis-del-phy-power-chg-quirk; + snps,dis-tx-ipgap-linecheck-quirk; + snps,parkmode-disable-ss-quirk; + dr_mode = "host"; + status = "disabled"; + }; + + usb3b_u2phy: phy@81500000 { + compatible = "spacemit,k3-usb2-phy"; + reg = <0x0 0x81500000 0x0 0x200>; + clocks = <&syscon_apmu CLK_APMU_USB2_BUS>; + #phy-cells = <0>; + status = "disabled"; + }; + + usb3c: usb@81700000 { + compatible = "spacemit,k3-dwc3"; + reg = <0x0 0x81700000 0x0 0x10000>; + interrupts = <148 IRQ_TYPE_LEVEL_HIGH>; + interrupt-parent = <&saplic>; + clocks = <&syscon_apmu CLK_APMU_USB3_PORTC_BUS>; + clock-names = "usbdrd30"; + resets = <&syscon_apmu RESET_APMU_USB3_C_AHB>, + <&syscon_apmu RESET_APMU_USB3_C_VCC>, + <&syscon_apmu RESET_APMU_USB3_C_PHY>; + reset-names = "ahb", "vcc", "phy"; + phys = <&usb3c_u2phy>, + <&combophy 3 PHY_TYPE_USB3>; + phy-names = "usb2-phy", "usb3-phy"; + phy_type = "utmi"; + snps,dis_enblslpm_quirk; + snps,dis_u2_susphy_quirk; + snps,dis_u3_susphy_quirk; + snps,dis-del-phy-power-chg-quirk; + snps,dis-tx-ipgap-linecheck-quirk; + snps,parkmode-disable-ss-quirk; + dr_mode = "host"; + status = "disabled"; + }; + + usb3c_u2phy: phy@81800000 { + compatible = "spacemit,k3-usb2-phy"; + reg = <0x0 0x81800000 0x0 0x200>; + clocks = <&syscon_apmu CLK_APMU_USB2_BUS>; + #phy-cells = <0>; + status = "disabled"; + }; + usb3d: usb@81a00000 { compatible = "spacemit,k3-dwc3"; reg = <0x0 0x81a00000 0x0 0x10000>; -- 2.43.0