From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 39542CA5FFF for ; Tue, 6 Oct 2026 10:29:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BANXqTfcbZFilMV0glQwh9KTH4+M9EEmkwAq3Xse8O8=; b=3SmESOHwuhlZun PPxKesMHBXiTJnaeKt2pKagBGpqhlNuVostNb3vZ/LD4drCao+QM6tt8jTA5uMlfKPAXRmDEYOcP6 qIysiwAl7I+GAX8AkqSeTaqlEhOVGslL2zf/8ExBazq4yu7fQYtFv7TkbPB5D7etjP/rxvoBHgZP3 Nq7BMN0E+U1BDOR0o8TGw+DwOar9dvut5FeENJ+czRdA24JTOolIvluXau7oyJ1huUR3m8/HsDxEA BgBlLH950rFu266Up0T9/LrCDM4bMBm0ueC2VzqaqGgLT2Oh1t2JUvVFEy7wjpARSLAf8nRSCd8LL zxzF90n3ORCmOeZarR1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xE2Qj-00000000VUZ-3YGe; Tue, 06 Oct 2026 10:29:53 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xE2Qf-00000000VPl-418u for linux-phy@lists.infradead.org; Tue, 06 Oct 2026 10:29:51 +0000 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-4a02667ccebso4735885e9.0 for ; Tue, 06 Oct 2026 03:29:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791282588; x=1791887388; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=GMoDjP/8jzIOVVPI/q7X7XspWmYoPHIZ6LHmrab35AY=; b=lGeQX8WbsZAz5XF5qk5tqpbS8dyvlcRQAUi8KWc8V+65Ey2Ox7Z2T/W7+tuQ/lcy/O sG3moCsYpzgSgovEG1L/ugDlYf1zDWLIPVmB8UYsZJuDA6+oRo7cZBkAR7LMNJeDFvar B9ZS8chegtZKhpsP4rUr5xRT7nHO0Fchm/ybJXI/ZkgMdEMRGPnEogx/JzPQt8urc95i W0YCYmt5tT6pFJiBSv/+xMQ53L9Jf1lmnJIh4xXzH74U2+89FMzBhiH8jwQKTU1aSZMN MoiVJh1fMD0AQioMDdbIGcKAxVGFmc6h58slFhagfLYgPj9ExzlkkLCSVRVheBPX22JA EAtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791282588; x=1791887388; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=GMoDjP/8jzIOVVPI/q7X7XspWmYoPHIZ6LHmrab35AY=; b=ueHT59Yx0oiE+w35sIZoc05r+q+MYJl9WW3IPtxmJzGpBoisRpwp2fdMd42iQZK7/d PF4X8+GCBjE9k32WqmuUDimEpcY0FDiBczunmn4nvz5EFCBWbnHo4uADk0A7duGB5O/4 nkcQI63XETvaEGh4DlnhC70gUgJldLcwdRsAC+o7Er4tfWju7g0nl/guZUxXqoQ9eKad Yczvc5eup5NSclGltikc1ANnVot6Rf/C8Ydy12YAt3UwYo/JVwf6vTKn202tUAT4oZTB hhhu1kDXjZ5LDiPW1PoFTiMv8tHIPOj9QuM/JSD4ews7Iu8CTCdfcJtH3NyNJxMSJflp 97OQ== X-Forwarded-Encrypted: i=1; AKwUvBxRrnoUctjvs0vyaquq3/5G1wPYTrleXdq+TyTpY+0tahQwVX0rpyTCHmk45KPND7ahKUBMOCSPBpw=@lists.infradead.org X-Gm-Message-State: AFuF++k0stOamxxVHHsS3cSWW7gGSMaM0cIBXTtGbBXLznsv7Pki0Kmd vIWLe00Qol9wQjgo8iEGRrRqKhQF8Dhtglzc6MBFI8irXF5PeOzVm8y/ X-Gm-Gg: AYBFou3La/UbJCTOeGma5oArA5I+eFaXSc+RjP/VlJPH61FHFMSrmX21PsfHdfw6wuw lmBCkB00Vnlm7n0YyD7yAltgSXylSpyDAT5F3F2jAPS94UFawSL3xfJegbZaRMGsllfzniS+qiH hfEDZlai70+gt3ptPObugs28OdbfII8OOUW1HMeAwlEZXSh0YpOH/qvjo6Isq89TN0F5422PK7Y epcbzWSqTctTWW/JJhYDKDkNR5Pnite3h4j99fDGTW0gIcRymowXDzArvDqpc/sEcQ/MdfgHtQH 4yQjF6ClodUb59vrAA34HzG9TCBCn7FIcMXM+hzpHlYVJtFxXNGUpwKs/NVOnAQ65fuwgYVdtXu zUTwFeJdq7kmxRfB8kWINeLgd0UAH6KGbgtN4HnFgHEgHdkOHuVl/hZMsHXC7QGmb9E7oqdAEM4 wL6u/u4EpA7svLPbOe+xp6JPN7W6JQD80UHBlZIL8DQ5QRGLZACXNAQtEwUGUoHIVMxktgbuo+7 PL7mRsXRMbSehHWxv01/HnAUud3lQcrBtsJbrmW5lM/wTbcCFTFCorEAPyl X-Received: by 2002:a05:600c:45d3:b0:49c:fc6c:be03 with SMTP id 5b1f17b1804b1-4a17b53f3e5mr16825945e9.26.1791282587957; Tue, 06 Oct 2026 03:29:47 -0700 (PDT) Received: from Ansuel-XPS24.localdomain (host-87-20-252-14.retail.telecomitalia.it. [87.20.252.14]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4a178c33091sm63427485e9.4.2026.10.06.03.29.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2026 03:29:47 -0700 (PDT) From: Christian Marangi To: Christian Marangi , Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , 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 v14 2/3] phy: move and rename Airoha PCIe PHY driver to dedicated directory Date: Tue, 6 Oct 2026 12:29:34 +0200 Message-ID: <20261006102937.10972-3-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261006102937.10972-1-ansuelsmth@gmail.com> References: <20261006102937.10972-1-ansuelsmth@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261006_032950_025891_8E9EF94F X-CRM114-Status: GOOD ( 24.13 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org To keep the generic PHY directory tidy, move the PCIe PHY driver for Airoha AN7581 SoC to a dedicated directory. Also rename the driver and add the relevant SoC name to the .c and .h file in preparation for support of PCIe and USB PHY driver for Airoha AN7583 SoC that use a completely different implementation and calibration for PHYs and will have their own dedicated drivers. The rename permits to better identify the specific usage of the driver in the future once the airoha PHY directory will have multiple driver for multiple SoC. The config is changed from PHY_AIROHA_PCIE to PHY_AIROHA_AN7581_PCIE. Acked-by: Lorenzo Bianconi Signed-off-by: Christian Marangi --- MAINTAINERS | 4 ++-- drivers/phy/Kconfig | 11 +---------- drivers/phy/Makefile | 4 ++-- drivers/phy/airoha/Kconfig | 13 +++++++++++++ drivers/phy/airoha/Makefile | 3 +++ .../phy-an7581-pcie-regs.h} | 0 .../{phy-airoha-pcie.c => airoha/phy-an7581-pcie.c} | 6 +++--- 7 files changed, 24 insertions(+), 17 deletions(-) create mode 100644 drivers/phy/airoha/Kconfig create mode 100644 drivers/phy/airoha/Makefile rename drivers/phy/{phy-airoha-pcie-regs.h => airoha/phy-an7581-pcie-regs.h} (100%) rename drivers/phy/{phy-airoha-pcie.c => airoha/phy-an7581-pcie.c} (99%) diff --git a/MAINTAINERS b/MAINTAINERS index d8cf9722f76e..26ba9624acd5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -764,8 +764,8 @@ M: Lorenzo Bianconi L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) S: Maintained F: Documentation/devicetree/bindings/phy/airoha,en7581-pcie-phy.yaml -F: drivers/phy/phy-airoha-pcie-regs.h -F: drivers/phy/phy-airoha-pcie.c +F: drivers/phy/airoha/phy-an7581-pcie-regs.h +F: drivers/phy/airoha/phy-an7581-pcie.c AIROHA SPI SNFI DRIVER M: Lorenzo Bianconi diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig index 105fbe408aa2..4ac7475dccfa 100644 --- a/drivers/phy/Kconfig +++ b/drivers/phy/Kconfig @@ -46,16 +46,6 @@ config GENERIC_PHY_MIPI_DPHY Provides a number of helpers a core functions for MIPI D-PHY drivers to us. -config PHY_AIROHA_PCIE - tristate "Airoha PCIe-PHY Driver" - depends on ARCH_AIROHA || COMPILE_TEST - depends on OF - select GENERIC_PHY - help - Say Y here to add support for Airoha PCIe PHY driver. - This driver create the basic PHY instance and provides initialize - callback for PCIe GEN3 port. - config PHY_CAN_TRANSCEIVER tristate "CAN transceiver PHY" select GENERIC_PHY @@ -168,6 +158,7 @@ config PHY_XGENE help This option enables support for APM X-Gene SoC multi-purpose PHY. +source "drivers/phy/airoha/Kconfig" source "drivers/phy/allwinner/Kconfig" source "drivers/phy/amlogic/Kconfig" source "drivers/phy/apple/Kconfig" diff --git a/drivers/phy/Makefile b/drivers/phy/Makefile index c6dd02003bbe..dcc88a3cbaa7 100644 --- a/drivers/phy/Makefile +++ b/drivers/phy/Makefile @@ -7,7 +7,6 @@ obj-$(CONFIG_PHY_COMMON_PROPS) += phy-common-props.o obj-$(CONFIG_PHY_COMMON_PROPS_TEST) += phy-common-props-test.o obj-$(CONFIG_GENERIC_PHY) += phy-core.o obj-$(CONFIG_GENERIC_PHY_MIPI_DPHY) += phy-core-mipi-dphy.o -obj-$(CONFIG_PHY_AIROHA_PCIE) += phy-airoha-pcie.o obj-$(CONFIG_PHY_CAN_TRANSCEIVER) += phy-can-transceiver.o obj-$(CONFIG_PHY_ECONET_PCIE) += phy-econet-pcie.o obj-$(CONFIG_PHY_EYEQ5_ETH) += phy-eyeq5-eth.o @@ -20,7 +19,8 @@ obj-$(CONFIG_PHY_PISTACHIO_USB) += phy-pistachio-usb.o obj-$(CONFIG_PHY_SNPS_EUSB2) += phy-snps-eusb2.o obj-$(CONFIG_PHY_XGENE) += phy-xgene.o -obj-$(CONFIG_GENERIC_PHY) += allwinner/ \ +obj-$(CONFIG_GENERIC_PHY) += airoha/ \ + allwinner/ \ amlogic/ \ apple/ \ aspeed/ \ diff --git a/drivers/phy/airoha/Kconfig b/drivers/phy/airoha/Kconfig new file mode 100644 index 000000000000..9a1b625a7701 --- /dev/null +++ b/drivers/phy/airoha/Kconfig @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Phy drivers for Airoha devices +# +config PHY_AIROHA_AN7581_PCIE + tristate "Airoha AN7581 PCIe-PHY Driver" + depends on ARCH_AIROHA || COMPILE_TEST + depends on OF + select GENERIC_PHY + help + Say Y here to add support for Airoha AN7581 PCIe PHY driver. + This driver create the basic PHY instance and provides initialize + callback for PCIe GEN3 port. diff --git a/drivers/phy/airoha/Makefile b/drivers/phy/airoha/Makefile new file mode 100644 index 000000000000..912f3e11a061 --- /dev/null +++ b/drivers/phy/airoha/Makefile @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0 + +obj-$(CONFIG_PHY_AIROHA_AN7581_PCIE) += phy-an7581-pcie.o diff --git a/drivers/phy/phy-airoha-pcie-regs.h b/drivers/phy/airoha/phy-an7581-pcie-regs.h similarity index 100% rename from drivers/phy/phy-airoha-pcie-regs.h rename to drivers/phy/airoha/phy-an7581-pcie-regs.h diff --git a/drivers/phy/phy-airoha-pcie.c b/drivers/phy/airoha/phy-an7581-pcie.c similarity index 99% rename from drivers/phy/phy-airoha-pcie.c rename to drivers/phy/airoha/phy-an7581-pcie.c index 56e9ade8a9fd..81ddf0e7638b 100644 --- a/drivers/phy/phy-airoha-pcie.c +++ b/drivers/phy/airoha/phy-an7581-pcie.c @@ -13,7 +13,7 @@ #include #include -#include "phy-airoha-pcie-regs.h" +#include "phy-an7581-pcie-regs.h" #define LEQ_LEN_CTRL_MAX_VAL 7 #define FREQ_LOCK_MAX_ATTEMPT 10 @@ -1279,12 +1279,12 @@ MODULE_DEVICE_TABLE(of, airoha_pcie_phy_of_match); static struct platform_driver airoha_pcie_phy_driver = { .probe = airoha_pcie_phy_probe, .driver = { - .name = "airoha-pcie-phy", + .name = "airoha-an7581-pcie-phy", .of_match_table = airoha_pcie_phy_of_match, }, }; module_platform_driver(airoha_pcie_phy_driver); -MODULE_DESCRIPTION("Airoha PCIe PHY driver"); +MODULE_DESCRIPTION("Airoha AN7581 PCIe PHY driver"); MODULE_AUTHOR("Lorenzo Bianconi "); MODULE_LICENSE("GPL"); -- 2.55.0 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy