Skip to contentSkip to conversation

phy: airoha: Add support for Airoha AN7583 USB PHY

RFC PATCH New Christian Marangi 1 participant 1 message Oct 15, 2025 Generic PHY framework

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 phy: airoha: Add support for Airoha AN7583 USB PHY

Add support for USB PHY for Airoha AN7583 SoC, this share some U2 init from AN7581 but use a totally different init phase for PLL and calibration for U3.

---
 drivers/phy/airoha/Kconfig                    |   16 +-
 drivers/phy/airoha/Makefile                   |    3 +-
 ...y-airoha-usb.c => phy-airoha-an7581-usb.c} |    0
 drivers/phy/airoha/phy-airoha-an7583-usb.c    | 1185 +++++++++++++++++
 4 files changed, 1200 insertions(+), 4 deletions(-)
 rename drivers/phy/airoha/{phy-airoha-usb.c => phy-airoha-an7581-usb.c} (100%)
 create mode 100644 drivers/phy/airoha/phy-airoha-an7583-usb.c
drivers/phy/airoha/Kconfig +13 -3
index 0675d8f2f9d1..98859d41c4db 100644
@@ -12,12 +12,22 @@ config PHY_AIROHA_PCIE
 	  This driver create the basic PHY instance and provides initialize
 	  callback for PCIe GEN3 port.
 
-config PHY_AIROHA_USB
-	tristate "Airoha USB PHY Driver"
+config PHY_AIROHA_AN7581_USB
+	tristate "Airoha AN7581 USB PHY Driver"
 	depends on ARCH_AIROHA || COMPILE_TEST
 	depends on OF
 	select GENERIC_PHY
 	help
-	  Say 'Y' here to add support for Airoha USB PHY driver.
+	  Say 'Y' here to add support for Airoha AN7581 USB PHY driver.
+	  This driver create the basic PHY instance and provides initialize
+	  callback for USB port.
+
+config PHY_AIROHA_AN7583_USB
+	tristate "Airoha AN7583 USB PHY Driver"
+	depends on ARCH_AIROHA || COMPILE_TEST
+	depends on OF
+	select GENERIC_PHY
+	help
+	  Say 'Y' here to add support for Airoha AN7583 USB PHY driver.
 	  This driver create the basic PHY instance and provides initialize
 	  callback for USB port.
drivers/phy/airoha/Makefile +2 -1
index fd188d08c412..2424bf36872c 100644
@@ -1,4 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
 
 obj-$(CONFIG_PHY_AIROHA_PCIE)		+= phy-airoha-pcie.o
-obj-$(CONFIG_PHY_AIROHA_USB)		+= phy-airoha-usb.o
+obj-$(CONFIG_PHY_AIROHA_AN7581_USB)	+= phy-airoha-an7581-usb.o
+obj-$(CONFIG_PHY_AIROHA_AN7583_USB)	+= phy-airoha-an7583-usb.o
drivers/phy/airoha/phy-airoha-an7581-usb.c renamed from drivers/phy/airoha/phy-airoha-usb.c +0 -0
similarity index 100%
rename from drivers/phy/airoha/phy-airoha-usb.c
rename to drivers/phy/airoha/phy-airoha-an7581-usb.c
drivers/phy/airoha/phy-airoha-an7583-usb.c new file +1185 -0

1,185 lines not on this page · raw message

Signature · 1 line
2.51.0