From patchwork Sat Jun 15 21:15:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13699373 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 E2BA9C2BA15 for ; Sat, 15 Jun 2024 21:16:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=oUAiMXFj+wEYbsDT9SmWZxzFn1R8yxNbKQ8ib74tHis=; b=FCjrHKN9x53153/G72KkEyfLRl w9tRONywm/jrA/XoqOdBo03jSrFh1lfwQNueNyuIWE00DuIXu7eM0gHN5W/7FRviSjwd9KAd3bo49 hpAl/JX+2l2clNQAhjjZJdwU5xjX+muHwsjwQf4rneBnDzAivkDUO4N/objUviIACjPpmwCk0XQRY sA6swskXtmu0Ihk9eD0qW6WSZy1BBMK8yr5UYt3tp6KG4A+5u9E1GBD3bjDTOfp6W5fo5Qo4frG62 n2TnwYsZPF08h+CRaaHrEy6ta/qIBo9Do0puc2iQuQt2m27FNRenEQYX1Gc9vnCgVdUc3z/DKkb/v oQ1JzzGA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sIakz-000000067Zd-1mXv; Sat, 15 Jun 2024 21:16:17 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sIakv-000000067YO-31ft; Sat, 15 Jun 2024 21:16:15 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 939B9CE0966; Sat, 15 Jun 2024 21:16:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4C40C116B1; Sat, 15 Jun 2024 21:16:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718486169; bh=Jc3vAk1elq+Lgi/TU/hAh3y8Cbgzaz7t4Elvh1xGdXU=; h=From:To:Cc:Subject:Date:From; b=nwRLwqNrd4VOTEBgSDYiKIsN7I73CT8siurgyaPLGXTPohvgMP7uS5UdGqepq0W1x BoWEaL8pmS+afbBo51sjcikaSInHkzwF4HBTENtkyQ+q5eICF/Ovdo3oXUjJgkzKj9 L/RtizFWpVX76JxWB3O81w9Sk+fsDr+1WZTMvpNiwUIMTxmcCZgUZ0fyGbcd9iQRp7 WSTu7dpVt+HYNmSWpHCRH+oVl/DUPNUGtHIY9w0sHS++e7SYMCZEPRDByUl1baSIJX R3UWEOG2krFeOq8U6wJ4GT2uYTi7WZJipIRQuBUhi5p3EGcFGyzA5eUtyKPQCvOBtk qQyzOQiaUjGtw== From: Lorenzo Bianconi To: linux-phy@lists.infradead.org Cc: vkoul@kernel.org, kishon@kernel.org, lorenzo.bianconi83@gmail.com, conor@kernel.org, linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, nbd@nbd.name, john@phrozen.org, dd@embedd.com, catalin.marinas@arm.com, will@kernel.org, upstream@airoha.com, angelogioacchino.delregno@collabora.com, amitsinght@marvell.com Subject: [PATCH v4 0/3] Introduce PCIe PHY driver for EN7581 SoC Date: Sat, 15 Jun 2024 23:15:40 +0200 Message-ID: X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240615_141613_970300_AFFEB8A6 X-CRM114-Status: UNSURE ( 8.41 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add support for Airoha PCIe PHY controller available in the EN7581 SoC. Changes since v3: - fix compilation errors on x86 - remove patch 2/4 Changes since v2: - introduce registers description in dts binding - compile PCIe PHY controller driver as module by default - improve code readability Changes since v1: - add patch 4/4 to enable PCIe PHY driver - rename documentation binding in airoha,en7581-pcie-phy.yaml - fix kernel doc Lorenzo Bianconi (3): dt-bindings: phy: airoha: Add PCIe PHY controller phy: airoha: Add PCIe PHY driver for EN7581 SoC. arm64: defconfig: Enable Airoha pcie phy driver .../bindings/phy/airoha,en7581-pcie-phy.yaml | 58 + MAINTAINERS | 8 + arch/arm64/configs/defconfig | 1 + drivers/phy/Kconfig | 10 + drivers/phy/Makefile | 1 + drivers/phy/phy-airoha-pcie-regs.h | 477 +++++++ drivers/phy/phy-airoha-pcie.c | 1248 +++++++++++++++++ 7 files changed, 1803 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/airoha,en7581-pcie-phy.yaml create mode 100644 drivers/phy/phy-airoha-pcie-regs.h create mode 100644 drivers/phy/phy-airoha-pcie.c