Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30085130rwd; Thu, 6 Jul 2023 00:12:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlHEm7VOre6mi3No2By+SD6MiBn004dIgdLkWjKeeHHOzBYZ7Bau5C7mh4JSw0zrsfu7jZLA X-Received: by 2002:a05:6a21:6da1:b0:10b:764b:a942 with SMTP id wl33-20020a056a216da100b0010b764ba942mr6234053pzb.11.1688627566914; Thu, 06 Jul 2023 00:12:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688627566; cv=none; d=google.com; s=arc-20160816; b=ThWAyMsTt5RD0RaZ/qKn9Mc2lYEb5+B0kTD0TX7Oq9ZpZQQAjvIAGYGqh31n/zjlJY f6UeQjkX+Of3ycuhpiOJnqAa55qP9d5CUjeFVE+Gvhp6SzrgBzgvlgzmcuMoR76NXzmY WnYi7LVhiaieIIGqnlKX4+gEqics/+vYZRPbQe5lubD0cRomnk92EiPUdaGP+xt6AuI8 8VtJutQKEBWsMpNlXYGxZyO+keusf54fyET3ukiPMRdfZp0vzmPiVHlCVLrjihk6eqCy 3xsqqhx1JG05pecqSHUqla+oDudaMc33M6TKsHiprQ/g01kcL3Nm2G5AUt+Slt1NhdGg iQag== 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=/Fcrx7Yb80pNkp2uhYzBT6R9rq95NqVLKKCQ4kXAxd0=; fh=0CgVfI+xt4B2jHq1emTnC0K3gjB2BalbHNjhjaTk9II=; b=L9jci1USgflUasxsk4OsVYmD23zQt2DkWooAYBZZ2Q8Ive45MtEnbDcw0RNaNsi+uD Elzc/MYlauFlppMc4UxH2HmAHzsT5FZJw37pmJk1iEAJcW6sY3oG6DX87jEOpERR8gBj pFo/2thRhVjkxkOkfWH7ZbQJ7hTd+4XONuoYe6eOcWCZpEtCjd9Ymk6WW/28GycQaCKW 0lGzBWWGEaXd87dIQP+g7FKtanXLIEpsvxnFZPD8Ln/uo4zvKTBG26LTl4mftnmezu54 ALYRd1cuOY9XXS50AdCKGeB2m9zXZfIQdGTU0lLkWTxyZKzMC9s817iFUEuXV4LOaSw2 lzQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jmW5yDab; 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 19-20020a631753000000b0055beccef366si832197pgx.727.2023.07.06.00.12.34; Thu, 06 Jul 2023 00:12:46 -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=jmW5yDab; 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 S230383AbjGFGff (ORCPT + 99 others); Thu, 6 Jul 2023 02:35:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233647AbjGFGfe (ORCPT ); Thu, 6 Jul 2023 02:35:34 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAD9E1997 for ; Wed, 5 Jul 2023 23:35:31 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-9928abc11deso39436866b.1 for ; Wed, 05 Jul 2023 23:35:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688625330; x=1691217330; 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=/Fcrx7Yb80pNkp2uhYzBT6R9rq95NqVLKKCQ4kXAxd0=; b=jmW5yDabP4Ok8Fr/e5sXXdC2reJet2oCtHDLIyzUXl3RZi/+e8lR3yq1hjaq2ucTd6 on95I68Rzc8dD/EKyjP0KklY7Mzf+7LFof+c8R/R4P1iBwS/IEDigfTtU7+0yAWpFV+A ZlQN3IbSxQnLLVuFHLOkROx2k+m3HxVlKpkcu0yjxDkW/9K5JrmIhf/38vBuH3xOoTI9 2iZFd29zoiaETJfADJ0bPy8DqF3T2BLt32ioCIOUBatYqruMmT72VvI7KhDnRWlJ5Jno 3QnxCNTEXvQpck3Cf9H+87dBECpfJE876XuYTsTxjv5/waJ7PzZQp/1THCKWcW7EnsZS vzcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688625330; x=1691217330; 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=/Fcrx7Yb80pNkp2uhYzBT6R9rq95NqVLKKCQ4kXAxd0=; b=Oi6cTw+Kn47TFhsj2DViYSjpwPc6w4QxD3UpIVJOKsprcBeJG4Ir89PzRH1mpZby47 hNr2Oj+BuZ/9H6hiqTlEGcA2CdWo0uGqvdo2DOMYA9PtDAv60HP2bIrYG3U+b7VT84EY 4HCOZNbgtCCqQQo7lwDQe941I22aC1prAgKkOOfyGtEZpgMyoZWm74UtfHFKIcUrk2m/ EBGRb22caEEs/9OE9VDdMaLE3lIPendc3RIefPdXwpHRyr5wyIaAhpxVhU87G4zrBUnW yjVhoK3pXmYelAhNdWw2qL4qOa/AkYLZtnsElf+6i3v7K+2Ek9FXNt6+MplrK2nl6Ewe svvg== X-Gm-Message-State: ABy/qLZvc0eMPlogvqTsCPHxL0jgfWGazL6mLHpEydIJhF5Q6j/jyTjV TpDD3ZrO6yX0C1D6GIAcNuR1ow== X-Received: by 2002:a17:906:5358:b0:98e:886:f27f with SMTP id j24-20020a170906535800b0098e0886f27fmr786493ejo.20.1688625330457; Wed, 05 Jul 2023 23:35:30 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id gf3-20020a170906e20300b00992665694f7sm383818ejb.107.2023.07.05.23.35.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Jul 2023 23:35:29 -0700 (PDT) Message-ID: <6203ab10-c9b2-3ea8-a18e-dfd2905ec83f@linaro.org> Date: Thu, 6 Jul 2023 08:35:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v1 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, 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: <1688545032-17748-1-git-send-email-quic_msarkar@quicinc.com> <1688545032-17748-3-git-send-email-quic_msarkar@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: <1688545032-17748-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_NONE, 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 05/07/2023 10:17, Mrinmay Sarkar wrote: > Add devicetree YAML binding for Qualcomm QMP PCIe PHY > for SA8775p platform. > > Signed-off-by: Mrinmay Sarkar > --- > .../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 a0407fc79563..9309066bfcee 100644 > --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml > +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml > @@ -23,6 +23,8 @@ properties: > - qcom,sm8350-qmp-gen3x1-pcie-phy > - qcom,sm8550-qmp-gen3x2-pcie-phy > - qcom,sm8550-qmp-gen4x2-pcie-phy > + - qcom,sa8775p-qmp-gen4x2-pcie-phy > + - qcom,sa8775p-qmp-gen4x4-pcie-phy > > reg: > minItems: 1 > @@ -30,7 +32,7 @@ properties: > > clocks: > minItems: 5 > - maxItems: 6 > + maxItems: 7 > > clock-names: > minItems: 5 > @@ -39,6 +41,7 @@ properties: > - const: cfg_ahb > - const: ref > - const: rchng > + - const: phy_aux Nope, you didn't test, did you? You cannot just add entries in the middle - you break all the boards. Plus, you clearly missed to update the if:else and all this won't work. Just test the bindings before sending them. > - const: pipe > - const: pipediv2 > > @@ -136,6 +139,20 @@ allOf: > clock-names: > minItems: 6 This is not valid anymore. > > + - if: > + properties: > + compatible: > + contains: > + enum: > + - qcom,sa8775p-qmp-gen4x2-pcie-phy > + - qcom,sa8775p-qmp-gen4x4-pcie-phy > + then: > + properties: > + clocks: > + minItems: 7 > + clock-names: > + maxItems: 7 Keep the same approach for clocks and clock-names. Not min here, max there. > + > - if: > properties: > compatible: Best regards, Krzysztof