Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5280132rwp; Mon, 17 Jul 2023 00:45:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlFfBMuK709UvNzeYXq8Ay3PFWTdSbmAfmCbm0rLY1GBzvY760IuDKNMTL8YJni4q7zXvJsB X-Received: by 2002:a17:90a:7404:b0:263:829:2de with SMTP id a4-20020a17090a740400b00263082902demr8022856pjg.2.1689579924597; Mon, 17 Jul 2023 00:45:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689579924; cv=none; d=google.com; s=arc-20160816; b=w2ffhdiyD+/V1wgE+FFPCfqA4chUg7ekUZhgQCJs7SpXD1PNzgy6pMbEUNeM8uaSCM vi5aHXA3Y65uw/7G3VZKHKAl4jxl8LEYghvQS0ft6lqoAQqxgGPt2VJcRfxygVca3jLg 5r7KB7kOXyo3jGCjJ1TeE2LUIou0bC683TTMsAZjp7xCHePqB8d4BGa5mElGE54+KHra FH3ys0068b1a+CYkaLMuj80ORae9jixQMt2Ewa2erJ2GIZBqAjEiZXWX1ZBTqQ6YcNzE Ua0f/UzR2WG+PgfmBKGPdV9L3rQx9NmFAbEyQ7BPK5gRMxwmtwvwIiNdIkC9DR4yOtaZ U7Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Qs4HLlO4LlybLe7Ah8QKFBkS3q2XJN402rj3Q8OPMEk=; fh=U9IpF6D4ML1ilzKv1+8YxcMxX7aG5up9DPeyr2U8S1g=; b=Qwcw5JoX75IDAdPYuk2OjuFYRoBJymeeKvHrPi2UNLvW5Vv6vM3ZjBo66DFbXr2oCp z1vS6rc+/xTjH0zdXpIJRl/2FRJGKy6/k6zfiOXK/o55uAQHsZeQEOMSXabHqkgSs9CV 8VecBZlqclS7c/5Z7fPxJQc73yJ+Ew6HvQ6KxX8JtAMey+z22cpb3787HwWqSf5UOKNf KcfcoVFPKu+RdyYh91+IaHM5US7g87efUZPf6RbK/8CrdlNwDWHOOR/bUgZ4ruPXAYQB hull7AOmhb5He7D75clLSyJ/gknisbyjJenm6vajjJaIYLMkA4Hin5BE0QMJ3QZsfubq oZ8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xfIJggQI; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cq19-20020a17090af99300b002563c39f342si5356833pjb.110.2023.07.17.00.45.11; Mon, 17 Jul 2023 00:45:24 -0700 (PDT) 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=xfIJggQI; 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 S229667AbjGQHZY (ORCPT + 99 others); Mon, 17 Jul 2023 03:25:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230302AbjGQHZW (ORCPT ); Mon, 17 Jul 2023 03:25:22 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D362E7F for ; Mon, 17 Jul 2023 00:25:19 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-9923833737eso504050166b.3 for ; Mon, 17 Jul 2023 00:25:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689578718; x=1692170718; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Qs4HLlO4LlybLe7Ah8QKFBkS3q2XJN402rj3Q8OPMEk=; b=xfIJggQILuXOIT+qRFvFEx7EeufNsrNzYjtck6y8JtPZ33lKP1JAe6KxnjHPBNRMhR XQmYcAQgQaXXavpmqLlpWcgklGnAntEqbxpScnQwFMzlOyfXZLbOWa3qN8GfUAaTtx4O bgsWVNRulYggbDsTqq/i3tbpPZroumqSEi8nZmiPPqK9XX0HRX0S6m8puHbJqhF7XkVQ n6mA3T/rOamv1a1KNShWgJ5jEuRZJ4BxVd9wQ2Fs2goDUIyN1l8gRv3wFRD7ItBFUjrI q0dJD+PvBT9YaeKX/8mU1tyolE70/LypiQRuG/mEas86+T1OApPOybLu0e4drrMYZdpz vRrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689578718; x=1692170718; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Qs4HLlO4LlybLe7Ah8QKFBkS3q2XJN402rj3Q8OPMEk=; b=i0Ryv0i1m8bzyFMV1YiO8uz1gtfjvjSsBYwq9a3x9emruIulUJvJ8aFFJ9nWe8vZWd dOQDTupoerObx7SyLgGEfboiETuHdF6HNWBNPKkzXj6Xk/jbTQzmDQyNlznU7fsi3yZ3 unrqikQFG1ekNepuG/k19HdUpbF1nPphUbotlWAvB9oWJNFKJGvGiHmcCGH8rpiGeX7N zmwIxvWc0RggX1U9UlbsFjObCfZUAlLh75EnspxOB2fvjmJS9XkQhNKwmBZ4g6Fu9/I5 /Dt1e+KjkuXVIt3MWyVmJF6LFFnCRc1usCDcW22Er7jJlFuU65COkZbERYKhRPJK2frP cNEQ== X-Gm-Message-State: ABy/qLbdIvnomzcx9Kj0P9yXylLG1N+Iqt7eB2LM8/GbtrZ4a8wkmbn0 m3++lubiTmcD4Ra3jaViX+Q1nQ== X-Received: by 2002:a17:907:8f17:b0:98d:d26c:e142 with SMTP id wg23-20020a1709078f1700b0098dd26ce142mr9536118ejc.46.1689578717832; Mon, 17 Jul 2023 00:25:17 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id f21-20020a1709064dd500b0098951bb4dc3sm8770472ejw.184.2023.07.17.00.25.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Jul 2023 00:25:17 -0700 (PDT) Message-ID: <132e9514-7eb9-8915-6130-5bf656c1aaac@linaro.org> Date: Mon, 17 Jul 2023 09:25:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2 2/6] dt-bindings: phy: qcom,qmp: Add sa8775p QMP PCIe PHY Content-Language: en-US To: Mrinmay Sarkar , agross@kernel.org, andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, konrad.dybcio@linaro.org, mani@kernel.org Cc: quic_shazhuss@quicinc.com, quic_nitegupt@quicinc.com, quic_ramkri@quicinc.com, quic_nayiluri@quicinc.com, dmitry.baryshkov@linaro.org, Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=c5=84ski?= , Rob Herring , Bjorn Helgaas , Vinod Koul , Kishon Vijay Abraham I , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org References: <1689311319-22054-1-git-send-email-quic_msarkar@quicinc.com> <1689311319-22054-3-git-send-email-quic_msarkar@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: <1689311319-22054-3-git-send-email-quic_msarkar@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 14/07/2023 07:08, Mrinmay Sarkar wrote: > Add devicetree YAML binding for Qualcomm QMP PCIe PHY > for SA8775p platform. > > Signed-off-by: Mrinmay Sarkar > --- > .../bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml | 19 ++++++++++++++++++- > 1 file changed, 18 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 a0407fc..ca55ed9 100644 > --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml > +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml > @@ -16,6 +16,8 @@ description: > properties: > compatible: > enum: > + - qcom,sa8775p-qmp-gen4x2-pcie-phy > + - qcom,sa8775p-qmp-gen4x4-pcie-phy > - qcom,sc8280xp-qmp-gen3x1-pcie-phy > - qcom,sc8280xp-qmp-gen3x2-pcie-phy > - qcom,sc8280xp-qmp-gen3x4-pcie-phy > @@ -30,7 +32,7 @@ properties: > > clocks: > minItems: 5 > - maxItems: 6 > + maxItems: 7 > > clock-names: > minItems: 5 > @@ -41,6 +43,7 @@ properties: > - const: rchng > - const: pipe > - const: pipediv2 > + - const: phy_aux > > power-domains: > maxItems: 1 > @@ -141,6 +144,20 @@ allOf: > compatible: > contains: > enum: > + - qcom,sa8775p-qmp-gen4x2-pcie-phy > + - qcom,sa8775p-qmp-gen4x4-pcie-phy > + then: > + properties: > + clocks: > + minItems: 7 > + clock-names: > + minItems: 7 > + > + - if: > + properties: > + compatible: > + contains: > + enum: This probably works but is not obvious and easy to read. You have here if:then:else: block, so else applies to your variant. Change all these if clauses for clocks into separate clauses per matching variant (if:then: ... if:then:... if:then:...) Best regards, Krzysztof