From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5157606A332 for ; Mon, 9 Nov 2026 06:56:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Vaf5zs2T; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=xPWjwc6c DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=P2lXEk5LGC7WBnlLNX3O6U9Eobx9DgNAUIatyjT/iYY=; b=Vaf5zs2THPhhdEO+S6K7TVoXgb K9bNMSS5+/PtPZFcWRaKikmTM9AtceXXkhTbwXh1o+ivcvxO/J63mZ3ythnjPYj7llzysm3cZld1S g/XdQ3xiua+38bIrOW5R5Vsi2On9K9s/BavSoj0d3QyIOWv1FjiqkiCvBWsMNzXYE5j4MohLHtUiy HtCC2WLX6wG1dayedv1XTQpwu9Rp4MtiLxBI5EqtyPutnco5lf2lzNt+1LGtU6kEaQ6PiroQmdnNE 5ypL7T7rRtAvtf///uY1xP4u5o4K0WEluEdCq/Z/NOn+RBT7NtXVjbWHRVUPbalq1OQRrvYQanI3C vDI1niTw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xQJIp-0000000HX3q-2U4n; Mon, 09 Nov 2026 06:56:27 +0000 Received: from mail-dl1-x122c.google.com ([2607:f8b0:4864:20::122c]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xQJIm-0000000HX0t-2nxO for linux-phy@lists.infradead.org; Mon, 09 Nov 2026 06:56:26 +0000 Received: by mail-dl1-x122c.google.com with SMTP id a92af1059eb24-15ea896ddc8so1057444c88.0 for ; Sun, 08 Nov 2026 22:56:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794207383; x=1794812183; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=c0Q1lb4Qqoljlh+F9k2cVtvGnbnmDGMBxQf3ZK0rUb8=; b=xPWjwc6cU7ZpN/Fqi5EPdWACeLq6+MGoRXvQVubvJBV9Q/leQtk23bP9nT2svHVwm1 jQPhWhQtLwLDk3us+GSOl1V+sFSyJoxlgJYENlc+5+ScXQyMA1O+0n6cUfkzcFVR/nu8 vTfESKkDdh7mc1Pf62pfS/o4XjUXSVlkkUmW5B5A8uw0jUDaBcI1cTbiFkA2ypjXlXIz 9qP8mgIUPIL6Uh3ydjNEQ19kk76dynXzSfXhDrKZumZEHo642S/Xna8ghXbmvcQ+8IYa 0teFu9FvtoIrvcT4jEQZp4j6u6Dxn/OxN8v8I/DhBnDvHSC3ttDMEBC22lp5jzZVXuA5 N7Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794207383; x=1794812183; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=c0Q1lb4Qqoljlh+F9k2cVtvGnbnmDGMBxQf3ZK0rUb8=; b=0PXTYugUocdHyxU/djSRGjSWXkDSzagTQ3CDSlH12plrKTp30E70oJDu44cceBZYS9 2fK9SpfwbaSAmt4h4g2oFi16DiHMTMhKL471CD/ju7weB4a3T9SDqB+AhDwiBmJHefYR YbLVcOAeeezUXm6R/3L4lObInWhO3KkqhRoKNM2Lt+9zdBD0zmM4C7+qPwd2PfXz+wwi WOQPTg6LbXBSTnvHrrLIGKfJBEg72EsuGNa6AuED/cFqeZg59gKAYCHAs+/FlNjCdaQz xugNaN0ilies640Llzvnl8giJ+rWOsXSZsRzOkxrvfUtzSX+mJPPh0O2QIw5rchtoT1S oAAQ== X-Forwarded-Encrypted: i=1; AL+hErFZhNYoCXktn7JjhBpkHQpIAwvwc623+bax8ShypB1rzzpLiAX0dwagVa79LyH60A5pPjT+ZDxtOU4=@lists.infradead.org X-Gm-Message-State: APuU4Z+nlGTIpzuLArlz6JrNP1ALN3lwEJT80ZH1L28939/Melw26b66 Csi8txBseyUxeb0PQXpGX76spgJt9vEsAAoXWS08k/6z04FwSqg2Sfrt X-Gm-Gg: AYBFou0xC5t8ePsdcndw4hqv6i6fKRGiwJOL4Og4ALwmvxGdUiG942LvIiw8LtMmBA9 jjljBIGtDH4xSkwIjyNMV4ECvd36VHUOsldUNTmSc0rSq05xoQc73iBf+ka4zHTx4tZgAW1/mqb j6d0uGRgbankskk6+LMcgae6htgybBl7VWnpI8CkR8EWI6ZtQMS/MWoxEpONKaYvqn3SyITdmRa mnEuWlCMPiLg6x1yAzR7DkoKzL1m4TVE7JeDYwUL5lmftLff72FYJJvaJHNhQe0tOdvoOaEryur Mf6xwkbyzf90EO2gQE3dd2dPcY0IW5vrccHuZswUXAxlfA4xufWY9kPuJ+op6FjPxx7Lo0uRGUq 6AcfkFxWA1Chvk7Z7tVCZUeVFoE0BiaO/MOntrDsIQh/5HkSXuLtU5aaPLHyQx0P2UKZCfdYxjM UUemC8qeMAQYcaPbEUISIpxLYDdTiDFth5ufdNBlmYtsLPW9GW1DJYPSPrXS/BvUkaFJ+b3s+w9 2kAlNzxoAm16t010JCa9/mVFYA/HyinAjjm27sQ/lesFrwR33DkilElHPeYSsrAzq/6+9bgI9Z8 UoRvsPZ5HHMv1wmXrD2d81oOE4/0UtYZS8yeZXtVe3BoFM6v4soxgopdhRdltZE4Oc1xxI+0rKE L4JE2T/exDfmAaoE0Tg== X-Received: by 2002:a05:701b:2214:b0:1a6:4679:6cf4 with SMTP id a92af1059eb24-1b39feb9511mr5037784c88.36.1794207383471; Sun, 08 Nov 2026 22:56:23 -0800 (PST) Received: from localhost.localdomain (60-250-196-139.hinet-ip.hinet.net. [60.250.196.139]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b3757214cbsm10120176c88.13.2026.11.08.22.56.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Nov 2026 22:56:23 -0800 (PST) From: Joey Lu To: Vinod Koul , Neil Armstrong , Manivannan Sadhasivam Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Arnd Bergmann , Catalin Marinas , Jacky Huang , Shan-Chun Hung , Hui-Ping Chen , Joey Lu , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Joey Lu Subject: [PATCH v8 2/4] arm64: dts: nuvoton: ma35d1: add USB controllers and dual-port PHY node Date: Mon, 9 Nov 2026 14:56:04 +0800 Message-ID: <20261109065606.62641-3-a0987203069@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261109065606.62641-1-a0987203069@gmail.com> References: <20261109065606.62641-1-a0987203069@gmail.com> X-Archived-By: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261108_225625_423323_C0A132DF X-CRM114-Status: GOOD ( 10.16 ) X-Spam-Score: -1.8 (-) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Add the USB subsystem nodes for the MA35D1 SoC and boards: - usb_phy: standalone PHY node with #phy-cells = <1>, covering both the OTG port (PHY0, index 0) and the host-only port (PHY1, index 1). Uses nuvoton,sys phandle and HUSBH0_GATE clock per the binding. - usb (DWC2 gadget, USB0): phys = <&usb_phy 0>, dr_mode = peripheral. - ehci0/ohci0 (USB0 host): phys = <&usb_phy 0>, companion pairing. - ehci1/ohci1 (USB1 host): phys = <&usb_phy 1>. Board files (ma35d1-som-256m.dts, ma35d1-iot-512m.dts) add pinctrl for VBUSVLD, PWREN and OVC signals and enable all USB nodes. Signed-off-by: Joey Lu Reviewed-by: Jacky Huang --- .../boot/dts/nuvoton/ma35d1-iot-512m.dts | 36 ++++++++++ .../boot/dts/nuvoton/ma35d1-som-256m.dts | 36 ++++++++++ arch/arm64/boot/dts/nuvoton/ma35d1.dtsi | 65 +++++++++++++++++++ 3 files changed, 137 insertions(+) diff --git a/arch/arm64/boot/dts/nuvoton/ma35d1-iot-512m.dts b/arch/arm64/boot/dts/nuvoton/ma35d1-iot-512m.dts index 78534d613486..b2f25de2ae44 100644 --- a/arch/arm64/boot/dts/nuvoton/ma35d1-iot-512m.dts +++ b/arch/arm64/boot/dts/nuvoton/ma35d1-iot-512m.dts @@ -97,6 +97,16 @@ pinctrl_uart14: uart14-pins { power-source = <1>; }; }; + + hsusb-grp { + pinctrl_hsusb: hsusb-pins { + nuvoton,pins = <5 15 1>, /* VBUSVLD */ + <11 12 9>, /* PWREN */ + <11 13 9>; /* OVC */ + bias-disable; + power-source = <1>; + }; + }; }; &uart0 { @@ -151,3 +161,29 @@ eth_phy1: ethernet-phy@1 { reg = <1>; }; }; + +&usb_phy { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_hsusb>; + status = "okay"; +}; + +&usb { + status = "okay"; +}; + +&ehci0 { + status = "okay"; +}; + +&ehci1 { + status = "okay"; +}; + +&ohci0 { + status = "okay"; +}; + +&ohci1 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/nuvoton/ma35d1-som-256m.dts b/arch/arm64/boot/dts/nuvoton/ma35d1-som-256m.dts index a029b660e8dc..58349470bc64 100644 --- a/arch/arm64/boot/dts/nuvoton/ma35d1-som-256m.dts +++ b/arch/arm64/boot/dts/nuvoton/ma35d1-som-256m.dts @@ -100,6 +100,16 @@ pinctrl_uart16: uart16-pins { power-source = <1>; }; }; + + hsusb-grp { + pinctrl_hsusb: hsusb-pins { + nuvoton,pins = <5 15 1>, /* VBUSVLD */ + <11 12 9>, /* PWREN */ + <11 13 9>; /* OVC */ + bias-disable; + power-source = <1>; + }; + }; }; &uart0 { @@ -153,3 +163,29 @@ eth_phy1: ethernet-phy@1 { reg = <1>; }; }; + +&usb_phy { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_hsusb>; + status = "okay"; +}; + +&usb { + status = "okay"; +}; + +&ehci0 { + status = "okay"; +}; + +&ehci1 { + status = "okay"; +}; + +&ohci0 { + status = "okay"; +}; + +&ohci1 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/nuvoton/ma35d1.dtsi b/arch/arm64/boot/dts/nuvoton/ma35d1.dtsi index 7228ad4735b5..72a1659207fa 100644 --- a/arch/arm64/boot/dts/nuvoton/ma35d1.dtsi +++ b/arch/arm64/boot/dts/nuvoton/ma35d1.dtsi @@ -76,6 +76,14 @@ IRQ_TYPE_LEVEL_LOW)>, /* Virtual */ interrupt-parent = <&gic>; }; + usb_phy: usb-phy { + compatible = "nuvoton,ma35d1-usb2-phy"; + clocks = <&clk HUSBH0_GATE>; + nuvoton,sys = <&sys>; + #phy-cells = <1>; + status = "disabled"; + }; + soc { compatible = "simple-bus"; #address-cells = <2>; @@ -431,5 +439,62 @@ mdio1: mdio { #size-cells = <0>; }; }; + + usb: usb@40200000 { + compatible = "snps,dwc2"; + reg = <0x0 0x40200000 0x0 0x1000>; + interrupts = ; + clocks = <&clk USBD_GATE>; + clock-names = "otg"; + phys = <&usb_phy 0>; + phy-names = "usb2-phy"; + dr_mode = "peripheral"; + g-np-tx-fifo-size = <16>; + g-rx-fifo-size = <0x100>; + g-tx-fifo-size = <256 256 64 64 64 32 32 32>; + status = "disabled"; + }; + + ehci0: usb@40140000 { + compatible = "generic-ehci"; + reg = <0x0 0x40140000 0x0 0x1000>; + interrupts = ; + clocks = <&clk HUSBH0_GATE>; + phys = <&usb_phy 0>; + phy-names = "usb"; + companion = <&ohci0>; + status = "disabled"; + }; + + ehci1: usb@401c0000 { + compatible = "generic-ehci"; + reg = <0x0 0x401c0000 0x0 0x1000>; + interrupts = ; + clocks = <&clk HUSBH1_GATE>; + phys = <&usb_phy 1>; + phy-names = "usb"; + companion = <&ohci1>; + status = "disabled"; + }; + + ohci0: usb@40150000 { + compatible = "generic-ohci"; + reg = <0x0 0x40150000 0x0 0x1000>; + interrupts = ; + clocks = <&clk HUSBH0_GATE>; + phys = <&usb_phy 0>; + phy-names = "usb"; + status = "disabled"; + }; + + ohci1: usb@401d0000 { + compatible = "generic-ohci"; + reg = <0x0 0x401d0000 0x0 0x1000>; + interrupts = ; + clocks = <&clk HUSBH1_GATE>; + phys = <&usb_phy 1>; + phy-names = "usb"; + status = "disabled"; + }; }; }; -- 2.43.0 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy