From patchwork Fri Mar 21 12:14:39 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: George Moussalem X-Patchwork-Id: 14025330 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 DBE82C36002 for ; Fri, 21 Mar 2025 12:14:48 +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:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/pwHPo/CiqnYzn9enuic9jANuFwNNWb4vwar7zUv7NM=; b=TZ2Txd9/0/7hgl nSQAYdQeFDyoOQZKODqsOKvYbeJ18NgSdcE5nCd1pQbp6TXyTCq7WVOrH3uj6F4yMKzeMxJ22Drpg XnnDs32KJytAnCIwkEdnK9EVNC4LEKp5+adhY3pCwrKU0hVx5UJ1ev4ciQQ0e49ah3NkkSgUbgB5y WwSayOtQH9yiuC6l4Zk4fDdo9IHJi3rIKvmIfjbZuZbr+xkImFGqEogeO9fs6xAxxm7ejZ4DbTHrl 5+hJ/mT/Rb4CCa2+tZLtq1zcEdEOGX0J1Dqbm7fI0K/Y2KrMVZmn0SG/ezr6PftsfXNpYOhzhqEEM VEsqYhWtziD1lVPcxA4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tvbGy-0000000Eji5-2Jzv; Fri, 21 Mar 2025 12:14:48 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tvbGw-0000000EjgT-2Tmt for linux-phy@lists.infradead.org; Fri, 21 Mar 2025 12:14:47 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id E525743C95; Fri, 21 Mar 2025 12:14:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id DBE9BC4CEEA; Fri, 21 Mar 2025 12:14:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1742559285; bh=tOdxxoSzUazpcccklQoLqiP7/7aKFLypGPrykuxFBYw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=tNsg33EoA2o7BsYb95TxdRdJmBD1a5N0Ex7xc5JMlm7KF5BAKEN67/W7YCCrdrY1F 5eOjm64gqDUqA7M/LKZa+Horw1tK47irYSPHJlRZoB8peRtOahpDYfoFOAEeGKWTJQ mD2In32+vRWX4c4oukf/Z4ko9dSVKkgpNl/yX/xQEdGNyiQ1R7pKsLc5BUQ6ufkraT WJzOlDv44cgeT/aFSP1UeoQhj9pyRFmpkC6Wyf9HHWmzMfUaRT+sT290Wx5/rwTpzp igTLmyG5ln/oHhU6LuYQJ9tOVUpxbkw4rJlymU3yOUcW01k1rBiSEYkTtyZF/0wlCy +PAgeOiPyo3Rw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2AFFC36002; Fri, 21 Mar 2025 12:14:45 +0000 (UTC) Date: Fri, 21 Mar 2025 16:14:39 +0400 Subject: [PATCH v6 1/6] dt-bindings: phy: qcom: uniphy-pcie: Add ipq5018 compatible MIME-Version: 1.0 Message-Id: <20250321-ipq5018-pcie-v6-1-b7d659a76205@outlook.com> References: <20250321-ipq5018-pcie-v6-0-b7d659a76205@outlook.com> In-Reply-To: <20250321-ipq5018-pcie-v6-0-b7d659a76205@outlook.com> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nitheesh Sekar , Varadarajan Narayanan , Bjorn Helgaas , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski?= , Manivannan Sadhasivam , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, George Moussalem , 20250317100029.881286-2-quic_varada@quicinc.com, Sricharan Ramabadhran X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1742559282; l=2543; i=george.moussalem@outlook.com; s=20250321; h=from:subject:message-id; bh=pXPdeIxQ7UFpyUFii0fIXy8w9NXPjKIIvZnafwJ+4VU=; b=oNXc9owwJDOnsPhm3V/cYg59hNXB1vZmyULocJXqdkbAQrey9H7Yq+OR74DiDEd07OXzaJ5lJ 4IWNkqnplycDqFwN+N9+oC7/33i2pInh216jFMTnX3AvHIIxANdZN4l X-Developer-Key: i=george.moussalem@outlook.com; a=ed25519; pk=/PuRTSI9iYiHwcc6Nrde8qF4ZDhJBlUgpHdhsIjnqIk= X-Endpoint-Received: by B4 Relay for george.moussalem@outlook.com/20250321 with auth_id=364 X-Original-From: George Moussalem X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250321_051446_676680_20588A71 X-CRM114-Status: UNSURE ( 7.03 ) X-CRM114-Notice: Please train this message. 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: , Reply-To: george.moussalem@outlook.com Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org From: George Moussalem From: Nitheesh Sekar The IPQ5018 SoC contains a Gen2 1 and 2-lane PCIe UNIPHY which is the same as the one found in IPQ5332. As such, add IPQ5018 compatible. Signed-off-by: Nitheesh Sekar Signed-off-by: Sricharan Ramabadhran Signed-off-by: George Moussalem Reviewed-by: Rob Herring (Arm) --- .../bindings/phy/qcom,ipq5332-uniphy-pcie-phy.yaml | 49 ++++++++++++++++++---- 1 file changed, 41 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/qcom,ipq5332-uniphy-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,ipq5332-uniphy-pcie-phy.yaml index e39168d55d23..6e9df81441e9 100644 --- a/Documentation/devicetree/bindings/phy/qcom,ipq5332-uniphy-pcie-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,ipq5332-uniphy-pcie-phy.yaml @@ -11,26 +11,24 @@ maintainers: - Varadarajan Narayanan description: - PCIe and USB combo PHY found in Qualcomm IPQ5332 SoC + PCIe and USB combo PHY found in Qualcomm IPQ5018 & IPQ5332 SoCs properties: compatible: enum: + - qcom,ipq5018-uniphy-pcie-phy - qcom,ipq5332-uniphy-pcie-phy reg: maxItems: 1 clocks: - items: - - description: pcie pipe clock - - description: pcie ahb clock + minItems: 1 + maxItems: 2 resets: - items: - - description: phy reset - - description: ahb reset - - description: cfg reset + minItems: 2 + maxItems: 3 "#phy-cells": const: 0 @@ -53,6 +51,41 @@ required: additionalProperties: false +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,ipq5018-uniphy-pcie-phy + then: + properties: + clocks: + items: + - description: pcie pipe clock + resets: + items: + - description: phy reset + - description: cfg reset + + - if: + properties: + compatible: + contains: + enum: + - qcom,ipq5332-uniphy-pcie-phy + then: + properties: + clocks: + items: + - description: pcie pipe clock + - description: pcie ahb clock + resets: + items: + - description: phy reset + - description: ahb reset + - description: cfg reset + examples: - | #include