From patchwork Wed Feb 8 18:00:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 54553 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3601177wrn; Wed, 8 Feb 2023 10:01:43 -0800 (PST) X-Google-Smtp-Source: AK7set+KOMRvHoIoV7MAdyNrf7/gNXwpYxvuNUrptYVSs3gKaUPKhSecVvK0bxYUIbG+0jIinzym X-Received: by 2002:a62:828c:0:b0:5a8:4d93:8864 with SMTP id w134-20020a62828c000000b005a84d938864mr806907pfd.3.1675879303072; Wed, 08 Feb 2023 10:01:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675879303; cv=none; d=google.com; s=arc-20160816; b=l6ezgY/3/Jidp4bw14JtY7NTpBzfL2D74pNZHmtlRC3oTuOJwbcHQRLyaQJt0glFQF wCWd/6F0EOILyeGAtXjPYJXpMVJxNo0GGDYA96KW01SB/sW86eUAqgJ9w89R/4A5ue82 Cp/ck1fvNjSOCTttlldFWWNY0T7xBH747XHAgvtP4AhhMXu94K6xoqIAI6kN/UYcab/V Nd8lLfYiDjjFSiWxnC2mNnLDyY3J34WGoQwmhYjVI31dEZxhxzIbaICOC9Cq5E+zYESJ r7BAZjYqZOMs4nmJdoybYPx7FxKce1+UCVoI320TZRXjt9LvDFumpSh4zFOZcdxvmvxf sqOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6KM/i62HSUxCVg8Zh4TiHwfFhq4muwIio+7QAfo08ow=; b=k4rUbykOYf38NZe2UTFi+QT3l9+6Zje6zLRGubv5R60G0GF0wvesnNvpd20YHY5TR9 nO4sZAvdOYBo0IKGVjWUsmS/HGPH5icE4t59Jt8S208rGMOOOWdHUodR7d/or9XILSXM WL281PsdPqlwkBDyQmf2CPBE3MIpEXcLkzDKt7ApNig0txfPP0jcd7rBgydQgIZxL5bF SciPAOYKG3ndzQASLkhJxQ9LXbboG92tDu0auMtMDmHc+ZE5xK24Yos29mFoJ/FvIdt/ I/M5cBduZEeob1v2UVlzOI/cEOkQ3NTU+rSRKW9Ll4TIHQ/tAk/yFrpfuMsOmnvvJlWC rRiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ujrz+Wh1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q9-20020aa78429000000b0058286279c89si19260733pfn.309.2023.02.08.10.01.27; Wed, 08 Feb 2023 10:01:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ujrz+Wh1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231623AbjBHSAz (ORCPT + 99 others); Wed, 8 Feb 2023 13:00:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231533AbjBHSAv (ORCPT ); Wed, 8 Feb 2023 13:00:51 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6F65EF96 for ; Wed, 8 Feb 2023 10:00:49 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id k8-20020a05600c1c8800b003dc57ea0dfeso2095891wms.0 for ; Wed, 08 Feb 2023 10:00:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6KM/i62HSUxCVg8Zh4TiHwfFhq4muwIio+7QAfo08ow=; b=Ujrz+Wh1xsDd6ZgMgexZNYjur0f8M1mQemnqik7jojmeDQYZSfFUXjXbYCno7wg/1P OVpeAyNqmQRLkS90klnBjIJ+m+dtCzwDnlLwawlEiDIgEEYXr+eVJu+gs5saHqVQs4LU 1q2lDh74nK0CrYHyFTPG9xlu2P1/jIjQvsnnUssumGxU5PNKgfJzUnKA+sM0j4gJMUSQ 0x6nYO3X0TR5lktALIUij2n6GbMsXSWprXPOXq3oLdyniflAXf+l9iqnjgLriWs5br2m HdZbpLfMln8leICZO/+MFEGxQ585UL6e1fnCaQnIKz7v2K5wiCHY2N2Dg8K2p+f20P7w Hp3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6KM/i62HSUxCVg8Zh4TiHwfFhq4muwIio+7QAfo08ow=; b=UG9U/a3TAIyXLQBlJZAVXoOU12zsfC+70tRj50gzkBuCqkHyOg6EzKi03be6b1WziF 6VdSwiAMrVGAj8KKknwYUpKjmqDimp3I9ufKSaaQ+LgeeehrrMr5DGYryOZ7TueQ7zuf UyuwkGnJGrZnTVkntspC987Nx1CaSVn45718mButTwHNS3TFJTOPNFWWMEmUEnO/N3Z6 MSzUmqdm4jimSAcIbRlb5XwsjMtGcP7FdZNjHMpX3FRTbegfoj+TPEdTh8o/NrjcQ3xH 23eW6/B1+rUO8Jc9lJiWPrHsqfzc4WmIs849KXiwSiG85q1KX7uBsL4HJq/IaojTGI4i trkQ== X-Gm-Message-State: AO0yUKVIC27HJX0vXYFNaLBSgfiuZcIM90/gjp2mjG/1KCIXEPvLAskm CX7VurDKdGpq14ynvbNXrnCrGg== X-Received: by 2002:a7b:ce0e:0:b0:3e0:39:ec8d with SMTP id m14-20020a7bce0e000000b003e00039ec8dmr8030047wmc.26.1675879248269; Wed, 08 Feb 2023 10:00:48 -0800 (PST) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id k20-20020a05600c169400b003dc54eef495sm2370286wmn.24.2023.02.08.10.00.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 10:00:47 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Bjorn Helgaas , Krzysztof Kozlowski , Lorenzo Pieralisi , "vkoul@kernel.org" , Kishon Vijay Abraham I , Manivannan Sadhasivam , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, Linux Kernel Mailing List , Krzysztof Kozlowski Subject: [PATCH v9 01/11] dt-bindings: phy: Add QMP PCIe PHY comptible for SM8550 Date: Wed, 8 Feb 2023 20:00:10 +0200 Message-Id: <20230208180020.2761766-2-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230208180020.2761766-1-abel.vesa@linaro.org> References: <20230208180020.2761766-1-abel.vesa@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757286815927982162?= X-GMAIL-MSGID: =?utf-8?q?1757286815927982162?= Document the QMP PCIe PHY compatible for SM8550. Signed-off-by: Abel Vesa Reviewed-by: Krzysztof Kozlowski Reviewed-by: Johan Hovold --- The v8 of this patch is: https://lore.kernel.org/all/20230206212619.3218741-2-abel.vesa@linaro.org/ Changes since v8: * none Changes since v7: * Added Johan's R-b tag Changes since v6: * none Changes since v5: * added Krzysztof's R-b tag * renmaed the no-CSR reset to "phy_nocsr" as discussed off-list with Bjorn and Johan Changes since v4: * constrained resets and reset-names to 1 for every other SoC Changes since v3: * increased the allowed number of resets to allow ncsr reset * added vdda-qref-supply which is used by pcie1_phy node in MTP dts * added both compatibles to the allOf:if:then clause to constrain the number of possible clocks to 5 Changes since v2: * added back the binding compatible update patch Changes since v1: * split all the offsets into separate patches, like Vinod suggested .../phy/qcom,sc8280xp-qmp-pcie-phy.yaml | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml index 8a85318d9c92..ef49efbd0a20 100644 --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml @@ -20,6 +20,8 @@ properties: - qcom,sc8280xp-qmp-gen3x2-pcie-phy - qcom,sc8280xp-qmp-gen3x4-pcie-phy - qcom,sm8350-qmp-gen3x1-pcie-phy + - qcom,sm8550-qmp-gen3x2-pcie-phy + - qcom,sm8550-qmp-gen4x2-pcie-phy reg: minItems: 1 @@ -43,16 +45,21 @@ properties: maxItems: 1 resets: - maxItems: 1 + minItems: 1 + maxItems: 2 reset-names: + minItems: 1 items: - const: phy + - const: phy_nocsr vdda-phy-supply: true vdda-pll-supply: true + vdda-qref-supply: true + qcom,4ln-config-sel: description: PCIe 4-lane configuration $ref: /schemas/types.yaml#/definitions/phandle-array @@ -113,6 +120,8 @@ allOf: contains: enum: - qcom,sm8350-qmp-gen3x1-pcie-phy + - qcom,sm8550-qmp-gen3x2-pcie-phy + - qcom,sm8550-qmp-gen4x2-pcie-phy then: properties: clocks: @@ -126,6 +135,25 @@ allOf: clock-names: minItems: 6 + - if: + properties: + compatible: + contains: + enum: + - qcom,sm8550-qmp-gen4x2-pcie-phy + then: + properties: + resets: + minItems: 2 + reset-names: + minItems: 2 + else: + properties: + resets: + maxItems: 1 + reset-names: + maxItems: 1 + examples: - | #include