phy: airoha: Add support for Airoha AN7583 USB PHY
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.
Signed-off-by Christian Marangi <[email protected]>
---
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.cdrivers/phy/airoha/Kconfig +13 -3
@@ -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
@@ -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
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