From patchwork Thu Feb 2 12:38:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 51888 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp212867wrn; Thu, 2 Feb 2023 04:40:23 -0800 (PST) X-Google-Smtp-Source: AK7set8bjZo6zcd1GRjQt45jbvBWdyhJ8A0y8ibm/IqmAjVH1sL5lULhCUh0XRq0VL03ArCT4d5O X-Received: by 2002:a05:6402:128d:b0:499:1ed2:6456 with SMTP id w13-20020a056402128d00b004991ed26456mr5752178edv.22.1675341623795; Thu, 02 Feb 2023 04:40:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675341623; cv=none; d=google.com; s=arc-20160816; b=Rr5XkP63LiPaaLLDh2NVIcAbEMHMXsgCut8mISjkPkhCguGZuerfg73twcJhWjVeNe VRA6utCGCFN+cpKjq7u3JQokqUAYHgzTCXEvm3P6gY2ajcpTmeOYc6VkYMZ30W6bLtRD WRUFtmdNxhkBXDDXmyHHoFKFQlTDjwx8332fr3HCcMDGcc/ykAt5+xAgb7KiiXxB8tvN bNjDFMKOmEv2d61lXecygN42CJ8OqO/h2omJPOx3E3WzoFodAWTSOEnIRsWhXp/jYxCX 3uNo7OQQB0Z5cDZkM4/SBXq9PcI7m4h0vT8cWBR/hY97FmClDXLBb4CDKzYNFbhMGWGT Srsg== 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=f6VouN0MlWgjUshOJPKbo7az5XyXYLPFJ7JD5CxhfXU=; b=htN0olh4NR/wTy235xaOF8Q3Wi+JsbqsCw3e5TMazPHS0mF5nH0QiOHj8HC3vIyBZA I9YqWsFtIFyfkzXTASirxU1yYl0LjPUVbMvx8gRXg6x667x9Dda8bO4VuO5GN5L0xWni EAZZPauwBHAasZgwUQ7arWfPdXPWBzDyQydqmi79VTrc/L6kfKx1+UvO1RkH9vvU7dFi 77EStOCphfgFMYU7Dtd9MboP757NpSx+U0XvT3Epwc5dY6SH+YY78pRtLksD94lpPj0w fXlMnS8N4jSULen1aQruPUOmCS9d7nKpAIPueRBB/teAGbkGOnh3CGVsLl/KAbt7nnUa jidA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IAAI0Mve; 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 eb14-20020a0564020d0e00b004a089b112b4si29696127edb.542.2023.02.02.04.39.59; Thu, 02 Feb 2023 04:40:23 -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=IAAI0Mve; 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 S230454AbjBBMjU (ORCPT + 99 others); Thu, 2 Feb 2023 07:39:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230004AbjBBMjQ (ORCPT ); Thu, 2 Feb 2023 07:39:16 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 174E08497B for ; Thu, 2 Feb 2023 04:39:14 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id q5so1623855wrv.0 for ; Thu, 02 Feb 2023 04:39:14 -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=f6VouN0MlWgjUshOJPKbo7az5XyXYLPFJ7JD5CxhfXU=; b=IAAI0Mve3sXdspkDMVmAAgMvVKtqC8M8bvqtq841a0lZOcllSyFN4CCXQl+6ZORct4 gWxwXg54GlTw/t7ujjHhEg7yGvdPmBxIJjADfZC/OgdgVJlM7J63rxUrRPGzDEIG1RTx DL7PKAa/gdhtFotKxMCdorico/dFvJ1GB3bHiYQXqmpXGjP7Iezxdosh6RiikSTnkiuX TVDtPgO55+sK3RmrSuEfk5oAZmVpYxxu4JgVMtHNBdVu53bVhM3HH2BA/M9nz2Sz6I2B ehVLetPKrK78pFOcUPjyP3kbLXISd7Mz0FVJQGdjtGCzoWz8+WLFJa1dnIKXFhs6CLLP yooQ== 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=f6VouN0MlWgjUshOJPKbo7az5XyXYLPFJ7JD5CxhfXU=; b=u9acDjqxx2XRliXeN6/TsrkUB6rbpcHrxX9knxkYINAvgDWbfDPA1OUHsSBzkSvTwc mvmMWIuj7wVgMpd6m3mnHrnU7JIzim7EZtSyYdyYW0UKBPZGjJK8TL8ajblum4+OPruD 3rqfxQsdaKpEQ7ChChmbg4nC1See5hjh5GaKTTQ9xLxoMP6OrgqSbEs8nuwqAu5F8FF8 WPJxW6NC8XCH6QhIRdV/UWxHLqiEgyqH1wxV72T0T9UJwMDYxXCvFs3mXiEwJHTmZUzk panz7NfXIlR/aBKFjff+Ndp7P9M9O6Tk+ly/nR6b8cTAyci9RRB4S1YowzkFd2ibkdyE uYIw== X-Gm-Message-State: AO0yUKV2dLSlQotAt5Madsa0XGMF7l/atjVXv8VTniejILbq+rDBIhvB q01vH7ntdw7xQrAzwMvBZ9rDpg== X-Received: by 2002:adf:ea08:0:b0:2bf:dfa2:977c with SMTP id q8-20020adfea08000000b002bfdfa2977cmr5364351wrm.47.1675341552503; Thu, 02 Feb 2023 04:39:12 -0800 (PST) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id j5-20020adff005000000b002bddd75a83fsm19525644wro.8.2023.02.02.04.39.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Feb 2023 04:39:12 -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 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 v6 01/12] dt-bindings: phy: Add QMP PCIe PHY comptible for SM8550 Date: Thu, 2 Feb 2023 14:38:51 +0200 Message-Id: <20230202123902.3831491-2-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230202123902.3831491-1-abel.vesa@linaro.org> References: <20230202123902.3831491-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?1756723018111444773?= X-GMAIL-MSGID: =?utf-8?q?1756723018111444773?= Document the QMP PCIe PHY compatible for SM8550. Signed-off-by: Abel Vesa Reviewed-by: Krzysztof Kozlowski --- This patchset relies on the following patchset: https://lore.kernel.org/all/20230117224148.1914627-1-abel.vesa@linaro.org/ The v5 of this patch is: https://lore.kernel.org/all/20230124124714.3087948-2-abel.vesa@linaro.org/ 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