From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f169.google.com (mail-dy1-f169.google.com [74.125.82.169]) (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 93126CA52 for ; Mon, 15 Jun 2026 05:49:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781502561; cv=none; b=fsEf51mep09boDGVRUYINoc4hc1aWBy4z5j72pYn2/4BUHl3GdsSiJ7cFokD93UZ6q+qf7e83IyYfhYk1Vh81RbneHUWSjGXCDrnIXaggqxB6uPDZkJCptWmpU3Zq6kqBVXALPhcSCOcCW+4sMrzqIIakAvM79GU2LhxEb3jC8M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781502561; c=relaxed/simple; bh=2V5ZooiLlM7dRgrqupuVdOFnXTZYP0IRthmynTtlcww=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=X/FbXpor9KRX8G47faGER1JnxPCV6f0gnPkCEK5ci+zU6sRy2MzB8RASukPsIqst3l/P4dc5MaJWk1OtYgdzVX7X2RufeQWIJ5u0kz7rCDYLAsXaLVA/pV/ET7KvI8Te7cK03KAemNhBM8U/U5doPYBB7PiLU2/T+98UoweImNs= 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=D/siJOEQ; arc=none smtp.client-ip=74.125.82.169 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="D/siJOEQ" Received: by mail-dy1-f169.google.com with SMTP id 5a478bee46e88-304ec41197bso3222055eec.1 for ; Sun, 14 Jun 2026 22:49:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781502559; x=1782107359; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=fxO3SIwr8zcTEZ8tP4gC3esK2bDmRkRY2LStbTjG76k=; b=D/siJOEQAzI1Yld0JXFTyI4MPOavaSU7hcGCMcuQVHlx1X3qw6riUxhe71p5suXx94 UfnsbqWQXreB2EhZBqtqA2ckXIpP8jbb2wWAG+C4DIXsDoqxl/UarBzonDIRLqRSUNek Z+6Is3q703O6oHaoQV8ebKkPy7+dXFnwuekAgZSTNNVCypij2/Bw3xWB9ZaPVUuAmf8/ btIEPiUrXv/zQjssfM3XJU4cLtsOo3b23Zm9w4CAs1h4LDqHjM0zX2CsMF/cIl+ycIX3 6+322ZXzhRrkO/U8LuBFEEuW1WRMut1SJKhWHbfHbMYLSPhX+7YBG0hkBXmbhhd9ewiy jmTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781502559; x=1782107359; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=fxO3SIwr8zcTEZ8tP4gC3esK2bDmRkRY2LStbTjG76k=; b=bXCoKmCYqRiodnROK9GW5yBi3+j5rYDDHAnyekzurKTXNL0l8Axgo7XXOaBfuzmoUf rJ/77Teon4r7c1KGDHrcI2FgLqVkKfIMHRvz2vDzexg4kQtfZevevth0uvIgtPSN4UW2 9M35x47ngS8GpKnw5y5W8V2WNoava86HKZgHmIO+W3HvNPRwjCRsQSL6fAsTKXlfqu/4 yPzgDUuReR9eu79QCrqvAfjwS26djK4x3kkUCuVvC6edwDC0jdVl/z5nY+j89TAK9WYE 8AF3r8ZChJsCKwr6qHVa9cZ6aFLO8oHaTE0PqU0NxTLjOsPBoVMUFEpfAJedy/+dv+Pg 935A== X-Forwarded-Encrypted: i=1; AFNElJ/OgW5Hr4EjkZRVaqxkMjIJ4FkSTT5vfYixcdwnZGC9IVxnfNHmodOQSgjiPGuIYacB7PxkG2at/xRttIs=@vger.kernel.org X-Gm-Message-State: AOJu0YwRJBVtvWg/1MuSVrcOZXyJbXEn8w5vjLvvTPtaHRcJVMP2lzc+ OtQyY+jtyFOrKrY2H+BUrVk8Sv8jy2R2fOJ2Qgysjm7OA3SH7/OM2Xih X-Gm-Gg: Acq92OH5J+LEJaLqi5iJxaWFH42Bs8+ueukACqpB+StdbkQVd4hZRGwnJ5opIdiCKQ9 JvsC7/juApKduoJ7QAia+jpjiMHk7GVfQw3A0FCH+nxbOTx+AYKf2HN5sJHowjF4hTEgQWd5Uoi 9fdH3uCRXAkZk3JFwoWcJ6A+fwMGBJkhkI8RPzv0wAmZEkb2sFrd2SmZn9xc0T7yc8gV46qrCgj VuMnKGGPPKl4vHZ+F81ZbJQc+a8cJbrj1WJ5QfzU2iA6x8Z0mKNJ0sQLMyL2U+Uup9bLD/E26JB hNEkMAmDWZmvcw5k3Y08byOlitfke9aAoISU37qPFas0Jc1HFdAPgGJXQ1mXds5010nIYVelcuY KW/N6oDaz5lIAS+Tlq0DU3NO5WPwtNLqeZlod5u8S+8ID/9QfyHYpSZKFB/CqPVhKXnhBObzLQA Sg+R3LTngx8AdXiBii0fDpnMN9S/qxNQ1kTdmeJTjEIqWd1QlRBtQmAWGu//K9qxjqzkuN0mDNV eBH89RVDOvB X-Received: by 2002:a05:7300:7496:b0:2ed:e14:e956 with SMTP id 5a478bee46e88-308200c4e8emr6796107eec.32.1781502558263; Sun, 14 Jun 2026 22:49:18 -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 5a478bee46e88-3081ddaf69asm14295300eec.0.2026.06.14.22.49.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jun 2026 22:49:17 -0700 (PDT) From: Joey Lu To: Vinod Koul , Neil Armstrong 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 0/3] phy: nuvoton: extend MA35D1 USB2 PHY driver for dual-port OTG support Date: Mon, 15 Jun 2026 13:49:08 +0800 Message-ID: <20260615054911.48821-1-a0987203069@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The MA35D1 SoC has two USB PHY ports managed by a shared hardware block: - PHY0 (USB0): OTG port shared between the DWC2 gadget controller and the EHCI0/OHCI0 host controllers. A hardware mux automatically routes USB0 signals to the correct controller based on the USB ID pin. - PHY1 (USB1): dedicated host-only port for EHCI1/OHCI1. A previous series [1] added a separate phy-ma35d1-otg.c driver for this. Following reviewer suggestion to reuse the existing phy-ma35d1-usb2.c driver rather than introduce a new one, that series has been dropped and this series instead extends the existing driver. Changes in this series: Patch 1 updates the nuvoton,ma35d1-usb2-phy binding: the PHY node becomes a child of the syscon node (reg = <0x60 0x14>), nuvoton,sys phandle and clocks are removed, and #phy-cells changes from 0 to 1 for per-port selection. Optional nuvoton,rcalcode and nuvoton,oc-active-high properties are added. Patch 2 updates the MA35D1 DTS: sys gains simple-mfd, usb-phy@60 is added as a syscon child, and DWC2/EHCI0/EHCI1/OHCI0/OHCI1 nodes are added. Board files enable the nodes and add HSUSB pinctrl. Patch 3 extends phy-ma35d1-usb2.c: a loop creates two struct phy objects; a unified .init handles both ports with parametric register macros; clock management is removed (each controller gates its own clock); a read-only USB role switch is registered for PHY0 reporting the USB ID pin via PWRONOTP[16]. Link: [1] https://lore.kernel.org/linux-phy/20260604101220.1092822-1-a0987203069@gmail.com/T/#t Joey Lu (3): dt-bindings: phy: nuvoton,ma35d1-usb2-phy: extend for dual-port OTG support arm64: dts: nuvoton: ma35d1: add USB controllers and dual-port PHY node phy: nuvoton: phy-ma35d1-usb2: extend to dual-port with OTG support .../bindings/phy/nuvoton,ma35d1-usb2-phy.yaml | 67 +++-- .../boot/dts/nuvoton/ma35d1-iot-512m.dts | 36 +++ .../boot/dts/nuvoton/ma35d1-som-256m.dts | 36 +++ arch/arm64/boot/dts/nuvoton/ma35d1.dtsi | 68 ++++- drivers/phy/nuvoton/phy-ma35d1-usb2.c | 263 +++++++++++++----- 5 files changed, 378 insertions(+), 92 deletions(-) base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731 -- 2.43.0