From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) (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 D30EF3D891E for ; Thu, 4 Jun 2026 10:12:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780567953; cv=none; b=JsN/rjx/M0TPtbbLrq6l7ZqTtijXBsqxpXUd2U3iU75r190V7YYIEUyeJpS4o12ccOa7TIBUgnbC7dpZwcQ1VmqEI96/utxAIEaosQqfC2CdfCdn3h9cq75iMM/oefwBwG2fEfyfnOndJOQo473Pzt6Qw3N/EN8Ytpac/YXqEfY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780567953; c=relaxed/simple; bh=KZD8Zz+ug3sS6SUPS7FyviMXeaSNXK4TH+nbzfl418o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KFgiKqlR8nVo5IzNFBx3omZDFXPqzNTO6nL/Zm/yp89HXqn/adIpezcGBkXDVxEXd1ON4dGG7/3NIbfvPerwiP2hcVXMUZZeA/lWTMQnWC7CkHhhnWIEns7oQ58i2YFEiIlexX9eMZa75PNBlaw5YIJ3IyoDReM6aHhOQTHcxN4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KBeFTVU6; arc=none smtp.client-ip=209.85.216.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KBeFTVU6" Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-36b7b7b7a80so886939a91.1 for ; Thu, 04 Jun 2026 03:12:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780567951; x=1781172751; darn=vger.kernel.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; bh=du3ehlF1Uyll9z9fTITCQGImnBetFueZCw24wEt4ZU8=; b=KBeFTVU64PobICdETdrFrnBEwYxbBjuBFXGN0+0QlzuxUNNVK1cBW80DZEfKyG3NQ7 3p0lG8pbnF9Ko11jIZEObtceUcUg0Mo2jXFkX3kCOKrQ0fLNYKjoWuoco0ES+KYhYSSp fxuB4W0uJ8rYf64zG4rTHFFKYFdWI4Yrj3VBbMTkZErRnD6zH9rKWXyNBMOnaofeD3Ip LuDDBRe2b66LR+WQw+V9GOoYO76Q4MvgA4Fb+Z2WIXnMz8V9yftErGf6C9XR1rNp8sP8 vRD21UCr9X9dhg+Mw43xF/BWQ3IYHysUNYEoY0XReqWsNHOnDn6DH3ntpzSDpbtxn/MS Hujw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780567951; x=1781172751; 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; bh=du3ehlF1Uyll9z9fTITCQGImnBetFueZCw24wEt4ZU8=; b=dbyzzJS0iVdaQjwXEZCodTXPfDdK+1wXUBxa2ZBrzrk9fCT0Nf3vzWxDSg60P8rqYE v8FP+YQbTfbMU51+E3FlvEyLfeoS7VzsUv9NQwbnWt+hcn9AWbef5NMKTwDwrjSiUo02 xhKRk/LaDDh+cbaAa4t/7eSljHfNdT6PUcw/dSQZ06vBYRPn2he9mp8x/Uzz98MFNwJE K24iO+FNvVZjf1/lSSF32/VsfHepdTjF7t2pruWRq9HVsdk2OHljy+y1RfgLN7DbMqhA y+ZqDzp0+sl7Wb8jVEkd/7HhbDBbPbglUMibYZnVsAGzdo/jZa6mr7t2ew1HOzEtZarg Tv5g== X-Forwarded-Encrypted: i=1; AFNElJ/+aBsaOatILB86pzC84C+LCF4LfG4k2wcji1aKvjBuyZ64PZ5URMnkBqAv32mLvGTsD1MVL4KC+PfOCRY=@vger.kernel.org X-Gm-Message-State: AOJu0YxRM7rvA60PICs18ozdK3qYA1y0TCw3wlKh91Jd+09BJwX9t/gW jnh0TxajhfdTX37rbBqiUnveEdGzdecbmDUyaPN95rEXy9jxQoVqB/mU X-Gm-Gg: Acq92OHYy155EavF1UahEnuX1rrxvAQVKZFE2brQOTkXFW+Cq07kz2k0zS18RcIjMTZ beDUBSNQheAL407Ox9kK9txMaHN5wWJkY9r7IOgbkCz/051UTGIemeADTGrovJzHXXurbI7UxJy 3huHAmpGTlrbkuOVyZs7PlMspaRG3vqGJrwqFEQNO3vH3+jgldK0aqnhIX8SrPyIqsTo1D1ylgf AZa+vWKQwHs0DYoGRkmBylX4uXu2BjUoU9IMZJLV5dTwgOB6hW/bUXS/BrhkAzowZEjrLnYtyyJ WLEpA0ScQtWI/9h1Zn2fZ3bmUkKcoKPyQbVQegLhpg/5l7sMRLcka23uOPtQHSdnmDDA5O+66dp El3/kwONGiAGoDai9dmbpBt2I2IrVJ2HR9oRfMuUW7KTFczyaZcIlfpg5Pnps974LHSjg1qe1/O 3PnqQdPSLoI6tP4xx4LtoShlWXrlRYXnnVuuLHr7gbgVIu4nPA08IPpk7lE3VeX9S2MLrPCOUc2 WgzWdyNWLhWDqTQYToK4QA= X-Received: by 2002:a17:90b:2c8c:b0:368:65d1:893 with SMTP id 98e67ed59e1d1-36f75f9c22bmr2777074a91.5.1780567951044; Thu, 04 Jun 2026 03:12:31 -0700 (PDT) Received: from localhost.localdomain (60-250-196-139.hinet-ip.hinet.net. [60.250.196.139]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-36f70a29cd6sm2483385a91.11.2026.06.04.03.12.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2026 03:12:30 -0700 (PDT) From: Joey Lu To: Vinod Koul , Neil Armstrong Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jacky Huang , Shan-Chun Hung , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Joey Lu Subject: [PATCH 1/2] dt-bindings: phy: nuvoton: Add MA35D1 USB2 OTG PHY binding Date: Thu, 4 Jun 2026 18:12:19 +0800 Message-ID: <20260604101220.1092822-2-a0987203069@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260604101220.1092822-1-a0987203069@gmail.com> References: <20260604101220.1092822-1-a0987203069@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add device tree binding documentation for the Nuvoton MA35D1 USB 2.0 OTG PHY driver (nuvoton,ma35d1-usb2-phy-otg). PHY index 0 (USB0) is an OTG port whose signals are routed by a hardware mux to either the DWC2 device controller or the EHCI0/OHCI0 host controllers depending on the USB ID pin state. PHY index 1 (USB1) is a dedicated host-only port. Optional properties allow board-specific resistor calibration trim (nuvoton,rcalcode) and over-current detect polarity configuration (nuvoton,oc-active-high). Signed-off-by: Joey Lu --- .../phy/nuvoton,ma35d1-usb2-phy-otg.yaml | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/nuvoton,ma35d1-usb2-phy-otg.yaml diff --git a/Documentation/devicetree/bindings/phy/nuvoton,ma35d1-usb2-phy-otg.yaml b/Documentation/devicetree/bindings/phy/nuvoton,ma35d1-usb2-phy-otg.yaml new file mode 100644 index 000000000000..19f074565cc6 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/nuvoton,ma35d1-usb2-phy-otg.yaml @@ -0,0 +1,79 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/nuvoton,ma35d1-usb2-phy-otg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton MA35D1 USB 2.0 host PHY + +maintainers: + - Joey Lu + +description: + USB 2.0 PHY driver for the Nuvoton MA35D1 SoC, used by the EHCI and + OHCI host controllers. + + USB0 (PHY index 0) is an OTG port whose physical signals are routed to + either the DWC2 device controller or the EHCI0/OHCI0 host controller by + a hardware mux that follows the USB ID pin. + + USB1 (PHY index 1) is a dedicated host port with no OTG capability. + +properties: + compatible: + const: nuvoton,ma35d1-usb2-phy-otg + + clocks: + maxItems: 1 + + nuvoton,sys: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to the system management syscon. + - description: PHY instance index. + enum: + - 0 # USB0, OTG port (shared with DWC2 gadget controller) + - 1 # USB1, host-only port + description: + A phandle to the syscon node covering the SYS register block, with + one argument selecting the PHY instance. Index 0 selects the OTG + port PHY (USB0) and index 1 selects the host-only PHY (USB1). + + "#phy-cells": + const: 0 + + nuvoton,rcalcode: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 15 + description: + Resistor calibration trim code written to the RCALCODE field in + USBPMISCR. The 4-bit value adjusts the PHY's internal termination + resistance. When absent the hardware reset default is used. + + nuvoton,oc-active-high: + type: boolean + description: + When present, the over-current detect input from the VBUS power + switch is treated as active-high. The default (property absent) is + active-low. This setting is shared by both USB host ports. + +required: + - compatible + - clocks + - nuvoton,sys + - "#phy-cells" + +additionalProperties: false + +examples: + - | + #include + + usb_hphy0: usb-host-phy { + compatible = "nuvoton,ma35d1-usb2-phy-otg"; + clocks = <&clk HUSBH0_GATE>; + nuvoton,sys = <&sys 0>; + #phy-cells = <0>; + }; -- 2.43.0