From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 7ED5E3AC0C9 for ; Wed, 8 Jul 2026 10:36:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783506990; cv=none; b=EyeyAhBkHhL9TnYy5AdHHD8Qhafd0DqzmT/KkqG7jkANeaqDppKgUazVmaWfocEaUEoFwQ+cBG+w8ki4nxgHL+KgF3LhP2cYCjWJbjdMQdUHHyxcOOrx/UE1eCGKA54dUbQadm6tCEcwtow6Oom+/7CZmQSeUiBM3o9v8lEnnZ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783506990; c=relaxed/simple; bh=CFZQ4T2NuSY6b1uW22iyRht6jFkIPGjm2CRlUiEMznw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ew54WUE/rWCa98Fw3VhyUZ/cD0v9zzGNqxYNgVIg6GZOjnDxvhxzV0S/+YPTVzwgDZt0PLklLYI+NR1Cl65SDrp2TlFDzFzB3HevU9TpLo3FffJtqNAHUWKKq7JiSc8Rz2Z+CwgXaSasvq9kGH6dwvMTqgrwejihh6tKEcjCsQU= 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=fEoUTDKV; arc=none smtp.client-ip=209.85.214.174 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="fEoUTDKV" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-2c7cfa17fedso5825815ad.3 for ; Wed, 08 Jul 2026 03:36:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783506973; x=1784111773; 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:content-type; bh=EcTCzAOxZhd2+yZYHcQy1edub3AeT6RA/ghrUBqO+Sc=; b=fEoUTDKVAsNXFPD6BTRpVN3wqRfQCBOPowo/Z4NyjxsRXa4fBS6xQZ5pH4h30pyZsR 99RC+JmHJQbrkFe28dg5GW1SRL4p25UAxQ52Am155idl7HL4/qQ0KnS6A8QjNIhNrIYW 9v/CDfLR8hHgI1b9T4bUZmH/sQm/usML09usFScW4HbB+iFoH2pmUjhelhZqt5qd8c3V 9Nx+ek++Kn49XHdQj0b6M76Tt0Cflz7BAmTmaDNZ2EzwxM28uayMxvGJwgUnLYEtRvi6 sWIa5d4XGx+R/57M7WJVE3ORWVusWQMQzcSU711jF6kl9w3pu8u3YF4FviWOY6BZFYdS UD1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783506973; x=1784111773; 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:content-type; bh=EcTCzAOxZhd2+yZYHcQy1edub3AeT6RA/ghrUBqO+Sc=; b=jCkJnitmPXtJ7EhySO6e4tF5K22U4R5a4CLy2eO+gNGiFT8o8xAQ6XW3J0uxigViJh ek8KznFqfLWAET9EZOXKkHbb2P4dQy+j/5crPlAL8vLhgcpoynBIFBw1lioxlcDf0O3q VSI7HoTpoMQWwCmIc4Kke+PMypf43cxageF/jCbFbN5WX+FavfDUWAnLQsQcZW+mzj+t QubxQXpOd+yDAIOv/TcixDtm75uk2VDn9AeWENMeYwVe8z5oGT8zptpvPH4RewWxv14j sFDEkfw4BehxSTyrOcUG4F+4WwUZ94PowdnTPBzcXp5WeTwzR3AbTny2zWztdl+VJ+sX smag== X-Forwarded-Encrypted: i=1; AHgh+RpinphfFWHKSada0NUbfRpkfS1C0iK4qcS4a6wEPh0tgFdaYUbqJM4G3HJmw2xx1hAXSs58KUF4jQLx+b4=@vger.kernel.org X-Gm-Message-State: AOJu0Yxi2YL5oBC/Ed9gKPHL+UjY2TjIiFZXJErtNkutEb+Um+kNXouD Y9n9LPfHfTvcVFIByVjWhQ9S5KACTg+iDL+O2uzikGDM7zvvhbgNyVIw X-Gm-Gg: AfdE7cnGvJHvgSqv+zJQEwYNOrrkdxbGlgIqTKSeSNSxM/uuClp/YIzUdcNaDBSrmhe ONTB3GcbtICqYvP33Mgq1skcakNpk5Y5Ph6JQfcnTmblvqsvRQ03FIKYloLGSGz6SW8ptIYi6RO 260e7qtJUCsMIU63AriGXVjCRYciB9zn1CuGK5H/a8oi0yb+kVJS0lfIoS+X+DpFGceHIjJJ1XW +ZiIICp+3gHo0dhGvzL36KR7JAa7CAGiHzNmDkOsLXuFibprJVMYE51lx5bapOQkf5lwkecx6/W BQiHJTa+ma6EadkrY46SqBDj42bpgiTl23xhU7X63q0+y+eZpRdfuXuS31R37MGemzPm67zmgIj YRKGNq1VpgnPVZRY/knDWwho3GdouNb1CtJig7G04Cwrk+LVlmSIWlwYKVq6IJm5LYuJJ6Yi2En Ook09odFsMg+9MSFPVAYmcE2JDN0GrbUmf1ylnHqP1TO/j2cwVCXH/fh78iRcWPGV8Nub6X2Eps Q== X-Received: by 2002:a17:902:d487:b0:2cc:d807:369c with SMTP id d9443c01a7336-2ccea3e6988mr22070025ad.45.1783506973202; Wed, 08 Jul 2026 03:36:13 -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 d9443c01a7336-2ccc9bdb9a3sm25987525ad.13.2026.07.08.03.36.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2026 03:36:12 -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 v3 0/3] phy: nuvoton: extend MA35D1 USB2 PHY driver for dual-port OTG support Date: Wed, 8 Jul 2026 18:36:03 +0800 Message-ID: <20260708103606.1462960-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 state. - PHY1 (USB1): dedicated host-only port for EHCI1/OHCI1. This series extends the existing phy-ma35d1-usb2.c driver and its binding to cover both ports and add OTG role-switch support, while keeping full backward compatibility with existing device trees. Changes since v2: - Dropped patch 1 (nuvoton,ma35d1-reset: add simple-mfd and child node support) entirely. That approach embedded usb-phy@60 as a child of the syscon node with a reg property, which broke the established ABI for out-of-tree MA35D1 board files. - The PHY remains a standalone top-level node as in the mainline binding. The existing required properties (clocks, nuvoton,sys, #phy-cells) are retained. No reg property is added. - '#phy-cells' is now enum: [0, 1] instead of const: 1. Boards using '#phy-cells = <0>' continue to validate and work unchanged. - The DTS usb_phy node is a sibling of sys (not its child), retaining clocks and nuvoton,sys, matching the original binding structure. Joey Lu (3): dt-bindings: phy: nuvoton,ma35d1-usb2-phy: extend for dual-port and OTG 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 | 45 ++- .../boot/dts/nuvoton/ma35d1-iot-512m.dts | 36 +++ .../boot/dts/nuvoton/ma35d1-som-256m.dts | 36 +++ arch/arm64/boot/dts/nuvoton/ma35d1.dtsi | 65 ++++ drivers/phy/nuvoton/phy-ma35d1-usb2.c | 279 +++++++++++++----- 5 files changed, 384 insertions(+), 77 deletions(-) base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482 -- 2.43.0