From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.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 E0C8F225417 for ; Wed, 4 Mar 2026 00:59:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772585949; cv=none; b=my3uD8ThwwyesUCObAoXxafGTwZcqVavXtL4Ro5FZeR750xVJl7L1Uv9/ZYzWnaxuIWoa+IiGWg6IdlXAw7TmMl78UoyEGOac/6CZoMstEIeua05q8FfulhK/RjohP//0wcIkS/2JCx5+NB/j2fBiIxi8q3pvbJ2QwBf9ijuP4Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772585949; c=relaxed/simple; bh=Qe3nWY0lSbvjCIK4+kctylSw9SzyLCRUsYkdKSTPEv8=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=XR6phhiN8NszKIH56+Rm4BI/pxY+ZqILwfkLkDON1I+IR+SIP2kanm/Nk9/2/VdGPb1pD1VuasVCF2vAPC+uFb0pGiZEbnEHelulIQSXniEVZYlYdFM9ZXIsGOy0qjnG8p5LM9hkrU3yxAbJV6n7CqCxbS5udxbuZhLmI175hMI= 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=AhwahGbw; arc=none smtp.client-ip=209.85.128.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="AhwahGbw" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-48378136adcso37466105e9.1 for ; Tue, 03 Mar 2026 16:59:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772585945; x=1773190745; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=5ogMkUraTjety9MOgCpxzZj4mdAQTkI2/0DG477NiJI=; b=AhwahGbwMYsaD8xHnabj7AY9TaDbzZrbWyiIBOlpwHWkr9gJuk/J9ZOQlgRu4Wo5u3 VkkC+ZAwp4Xtal24csM4n09+kF1IGP89qtCVeQGSDYs/CzX4LU+yPIn/uhHGQcLdN3j7 UiUKxA6zbNi5XVniWuQGzyIdWjl9GWQaae/4Lx6E2WoDcAYXeytTERxbmgnZXnZsUbS5 Y/y07tDHDqZ4yQFwuFcnXTUSLAQdelybDWZWPUwH3m0caXQOQTI/VAhxcEnV2fR99E5O 0kyjVXjUEg18wh/znV9hmfiYpVELswJzSZJc8wh2DtF/AjfpNsE3E2GZOyoubOcvYZjy lMfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772585945; x=1773190745; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5ogMkUraTjety9MOgCpxzZj4mdAQTkI2/0DG477NiJI=; b=cJ+jvH+7RSOqbTEal/+v0PCAEJ39uGCX6IqMNmZOb2LE3cIjkx8Roq1WWvQhn0GmNH qa7J39KQwnw8t9wcJOxSJh6WnIjlfU9vFATyjEpNK6OaIH+EcgIyMn5LWhDlBGj4l5On 2eHgF/cED3uumkptIbr005r8m2QB3yvVrQUGvkPjlAgHUowcCAVQrSZMEbCWVTLhz6ju gdFu8qoKwAoJVkiC2kNwTd7DJyw8sZ/mOIJbDceKK60KSpm8ZZY4e7ZHzl2FHbNksedr 3ASuQcIy9jG6Yx+QSem9soUAwsjfvDKw3KNpCiOHHgxtxtSqL366ma2AK7xAJk6u3Y7m IUDA== X-Forwarded-Encrypted: i=1; AJvYcCVmRwxL1u6GwFEZkh4V1sUpcVXyXuHCgx8yfS533bkhIbIg0id17nNpWpbcZAhDURETIew+t1rSCgePJfc=@vger.kernel.org X-Gm-Message-State: AOJu0Yy2FsFxNQP5Nmoo3phGdSVOXpLGt8upCCyhKqoXI4P4e7FVKupn MQOKSlh7U9xzAb6vuEvnAsr4unPocQdjfHWp+twx24g20DwWFvmvayY9 X-Gm-Gg: ATEYQzzdo8/akAZAa8gCUGDAhEqB9bdWj05mSarg0kcAUUPFaV9BlW4x28aaa5Qj7IS EwULj3yF8vayV1ChRq9e2hn99gWhc685TFtsQIfxG33VsGO68uue66SjEq7Yjx0QNYuILmtxqfk zbVOgFiK8omqfEZqTvf/ceiRZ1l1/k1z0r46ShILHiBO7+l5YjyGbWJnGZVYgAtKQ3NIojUNNP9 QNndttK9KpXlU943y1tTrcb4748wJuJZNtEmD1+TzD/49fTtXCEnVdkg5NFgKjpILRowAwnN8s3 gDD0534hUKj09IRVDjR9csjZJMMEZ8u61Bv/V+7LmPfW1eTFsDVx0PawatXHjSOtimWmFvBqOMo cGZQIgFqv75dn4GOmKNhaVzRx5a8wFx92tFCqObxYwVdfkNLdJLbjC8oieYEcQ7iiA8SOIPt0cn BEUmE2XZzNj8f+3U5E8S3ajLOpgePmKL4fzjGvR3AqV8PJt1e3m2z7A2k= X-Received: by 2002:a05:600c:a08c:b0:483:885:f0b0 with SMTP id 5b1f17b1804b1-485198bac26mr3235315e9.35.1772585945092; Tue, 03 Mar 2026 16:59:05 -0800 (PST) Received: from Ansuel-XPS24 (93-34-88-122.ip49.fastwebnet.it. [93.34.88.122]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4851880724esm26927575e9.9.2026.03.03.16.59.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Mar 2026 16:59:03 -0800 (PST) From: Christian Marangi To: Christian Marangi , Vinod Koul , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lorenzo Bianconi , linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 0/4] airoha: an7581: USB support Date: Wed, 4 Mar 2026 01:58:32 +0100 Message-ID: <20260304005843.2680-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.51.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 This is a major rework of the old v2 series. The SoC always support USB 2.0 but for USB 3.0 it needs additional configuration for the Serdes port. Such port can be either configured for USB usage or for PCIe lines or HSGMII and these are configured in the SCU space. The previous implementation of a dedicated SSR driver was too complex and fragile for the simple task of configuring a register hence it was dropped and the handling is entirely in the PHY driver. Everything was reducted to the dt-bindings to describe the Serdes line. Also the property for the PHY are renamed to a more suitable name and everything is now mandatory to simplify the implementation. (the PHY are always present and active on the SoC) Also other unrelated patch are dropped from this series. Changes v5: - Add Ack and Review tag from Connor - Implement Ethernet support in the USB driver (testing support for this Serdes on a special reference board) - Use an7581 prefix for USB PHY driver Changes v4: - Rename PCIe and USB PHY to AN7581 - Drop airoha,scu (handled directly in driver) - Drop dt-bindings for monitor clock in favor of raw values - Better describe the usage of airoha,usb3-serdes - Simplify values of dt-bindings SSR SERDES Link: https://lore.kernel.org/all/20251107160251.2307088-1-ansuelsmth@gmail.com/ Changes v3: - Drop clk changes - Drop SSR driver - Rename property in Documentation - Simplify PHY handling - Move SSR handling inside the PHY driver Link: https://lore.kernel.org/all/20251029173713.7670-1-ansuelsmth@gmail.com/ Changes v2: - Drop changes for simple-mfd - Rework PHY node structure to single node - Drop port-id property in favor of serdes-port and usb2-monitor-clock-sel - Make the SSR driver probe from the clock driver Christian Marangi (4): dt-bindings: soc: Add bindings for Airoha SCU Serdes lines dt-bindings: phy: Add documentation for Airoha AN7581 USB PHY phy: move and rename Airoha PCIe PHY driver to dedicated directory phy: airoha: Add support for Airoha AN7581 USB PHY .../bindings/phy/airoha,an7581-usb-phy.yaml | 71 + MAINTAINERS | 11 +- drivers/phy/Kconfig | 11 +- drivers/phy/Makefile | 4 +- drivers/phy/airoha/Kconfig | 23 + drivers/phy/airoha/Makefile | 4 + drivers/phy/airoha/phy-an7581-pcie-regs.h | 494 +++++++ drivers/phy/airoha/phy-an7581-pcie.c | 1290 +++++++++++++++++ drivers/phy/airoha/phy-an7581-usb.c | 640 ++++++++ include/dt-bindings/soc/airoha,scu-ssr.h | 11 + 10 files changed, 2545 insertions(+), 14 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/airoha,an7581-usb-phy.yaml create mode 100644 drivers/phy/airoha/Kconfig create mode 100644 drivers/phy/airoha/Makefile create mode 100644 drivers/phy/airoha/phy-an7581-pcie-regs.h create mode 100644 drivers/phy/airoha/phy-an7581-pcie.c create mode 100644 drivers/phy/airoha/phy-an7581-usb.c create mode 100644 include/dt-bindings/soc/airoha,scu-ssr.h -- 2.51.0