Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2111778rdb; Mon, 20 Nov 2023 02:11:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQHi+DXTeZRIXggnt1e6cvxba8g2VjqEbdQOVgy+p55hDdgg3BGUsmoTrogZWMTH5X5KoA X-Received: by 2002:a05:6830:1e69:b0:6d6:45b1:faff with SMTP id m9-20020a0568301e6900b006d645b1faffmr6712181otr.30.1700475118766; Mon, 20 Nov 2023 02:11:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700475118; cv=none; d=google.com; s=arc-20160816; b=VvIT+6SMNlLyp3ko/cs5PffNLrvC6Nh1X/GjAOX9V8Lt729anA0bukj9P740XCY5NE BQiubSOtIBoANzmOFtdaaxuZVLyt4AZ5UX59/0YCClIDQL68Cd3uvWcIvcAxsCnHqn8T Lq/OeJ2zdWy8do13lzTYNqTYxvJF+ZfcmT7WiDMIfhmHf8/FRhsiZu8KM23ORJuborav cBWOtgqz3jvkyv7EvpRxq/QYIszN+AKEdM7D56ZUYLfLKmG/RZQMjxfA7WoKwzwWoY9y /ObqVs5P5PuRsJz6pbYmPA7jk58mY+6vc4tQVKu5BWVrG8cinPLiabVii9Lm7nLTeg+P Fn5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=B4DwwxeJHrf/t+v6tAUC2iWPA37bLE7YwlZADB165iU=; fh=w/pkq4WHi6xODHWd8U+gQRJkYXok6S52NiEEXwiHuO4=; b=XzFiUls3uiuT8FPRR6/R+n2OE7wgY15w8llztTQnIISAgbg5e73+AD0XXXanT1XFZU BZHwj6bZpUUDaHdWzOQgt4wgk8WxFQX4STAKC0gNJ7oDVwy0eYIot71TmKhxCnJeuxCU o+f3jnzEts4rINGh4XTNAjVFWP73p71vnCB6dEIZ8Xt57EsOKe4SCUn4wQ2NKwe92GOn 7QnZllCHL+hvb8yAkL+hKB21kuzPDGqNpNMRewrHT+KeOzFqN3sA1jdVVWD4k6iD7KKr vnyKZUQ6Tyloh7+y7C9wFDX/Dv3QiUcaWQsTWtLYgY6OsOJUT6IlKgrHl1zifBi90EJR cyQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cjckvdx2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id cb4-20020a056a02070400b00563f627f2easi8379412pgb.122.2023.11.20.02.11.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 02:11:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cjckvdx2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 00C028079C8F; Mon, 20 Nov 2023 02:11:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232566AbjKTKLn (ORCPT + 99 others); Mon, 20 Nov 2023 05:11:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232461AbjKTKLm (ORCPT ); Mon, 20 Nov 2023 05:11:42 -0500 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52E46A7 for ; Mon, 20 Nov 2023 02:11:38 -0800 (PST) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-5b383b4184fso46471027b3.1 for ; Mon, 20 Nov 2023 02:11:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700475097; x=1701079897; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=B4DwwxeJHrf/t+v6tAUC2iWPA37bLE7YwlZADB165iU=; b=cjckvdx2SEB19MVZii0zOffZHTCzdGQ4TITxng5434/UGoEIgS8yERrNoGwPkNgr2o wu30R6a6SbgpIXgu7g5Mxp7afqSowegMjjWuX8woWr+GR2xIzDgxa8F4Jb9IdvF+Osd7 bXAa2sI7LYbZRN6KJP4H8jUcVXpK6kTidcrkUzvGI6DSqg33ajWdIb6JlXwCuwFXF2FO oYWGdO6Ps2nagzafb/upkcCSWPLwpeTsbNqjrrMNOrLslNgmlZJq/NSa1xkaJdhv5uK3 L+tO9ogdMbX33gIf9iHu5Jq5fo70pMes5pDJ22YIq6BdJuZtnR2gF2mc6k9KLr6g1FcX W6Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700475097; x=1701079897; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=B4DwwxeJHrf/t+v6tAUC2iWPA37bLE7YwlZADB165iU=; b=ReALQcMplCmfm9FkC8hyLZKi501TlKiP89KSoxz7F8euHzHpDBT34CyENwYm5D0btJ vI++gR6zKsWojhT+EJeIhqbDCS1cojpBeteya7h8b8QUsOoEj0xd40jrIMrFezDz7x40 St1tERpvP9iLZzBRxFH/+5+mcBhaWcbP/kYU1Rb79RlL+60Ajwi7f3blIxyj0LrA6qWZ aZHDuSmRO5QapU80z7h9sWhAX0yiiol9PTGes+eSJdVba05NiLynh+ZE+FobnVJY4EYc 4+ZORir3on8yP7mLgYp/7MXXlrAg9WX0FKpIbLVNgUykRFe/wTDZKqtNcsn8cJC04HfU UxIg== X-Gm-Message-State: AOJu0YxXeVq11IPMbcZadUY3XPJv21tuGtpqccgr1lgzRKNxA1jCTNmb Epft/myOtCF/tuSIow8UzYgbEOdanSMnW8Oq2PNDTw== X-Received: by 2002:a0d:d403:0:b0:5a7:a874:d83e with SMTP id w3-20020a0dd403000000b005a7a874d83emr7186294ywd.42.1700475097489; Mon, 20 Nov 2023 02:11:37 -0800 (PST) MIME-Version: 1.0 References: <20231120070910.16697-1-krzysztof.kozlowski@linaro.org> <20231120070910.16697-2-krzysztof.kozlowski@linaro.org> In-Reply-To: <20231120070910.16697-2-krzysztof.kozlowski@linaro.org> From: Dmitry Baryshkov Date: Mon, 20 Nov 2023 12:11:26 +0200 Message-ID: Subject: Re: [PATCH v2 2/2] dt-bindings: PCI: qcom: correct clocks for SC8180x and SM8150 To: Krzysztof Kozlowski Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 20 Nov 2023 02:11:56 -0800 (PST) On Mon, 20 Nov 2023 at 09:09, Krzysztof Kozlowski wrote: > > PCI node in Qualcomm SC8180x DTS has 8 clocks, while one on SM8150 has 7 > clocks: > > sc8180x-primus.dtb: pci@1c00000: 'oneOf' conditional failed, one must be fixed: > ['pipe', 'aux', 'cfg', 'bus_master', 'bus_slave', 'slave_q2a', 'ref', 'tbu'] is too short > > sm8150-hdk.dtb: pci@1c00000: 'oneOf' conditional failed, one must be fixed: > ['pipe', 'aux', 'cfg', 'bus_master', 'bus_slave', 'slave_q2a', 'tbu'] is too short > > Reviewed-by: Manivannan Sadhasivam > Signed-off-by: Krzysztof Kozlowski > > --- > > Changes in v2: > 1. Add Acs/Rb. > 2. Correct error message for sm8150. > --- > .../devicetree/bindings/pci/qcom,pcie.yaml | 58 ++++++++++++++++++- > 1 file changed, 57 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml > index 14d25e8a18e4..4c993ea97d7c 100644 > --- a/Documentation/devicetree/bindings/pci/qcom,pcie.yaml > +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.yaml > @@ -479,6 +479,35 @@ allOf: > items: > - const: pci # PCIe core reset > > + - if: > + properties: > + compatible: > + contains: > + enum: > + - qcom,pcie-sc8180x > + then: > + oneOf: > + - properties: > + clocks: > + minItems: 8 > + maxItems: 8 > + clock-names: > + items: > + - const: pipe # PIPE clock > + - const: aux # Auxiliary clock > + - const: cfg # Configuration clock > + - const: bus_master # Master AXI clock > + - const: bus_slave # Slave AXI clock > + - const: slave_q2a # Slave Q2A clock > + - const: ref # REFERENCE clock > + - const: tbu # PCIe TBU clock > + properties: > + resets: > + maxItems: 1 > + reset-names: > + items: > + - const: pci # PCIe core reset > + > - if: > properties: > compatible: > @@ -527,8 +556,35 @@ allOf: > compatible: > contains: > enum: > - - qcom,pcie-sc8180x > - qcom,pcie-sm8150 > + then: > + oneOf: > + - properties: > + clocks: > + minItems: 7 > + maxItems: 7 > + clock-names: > + items: > + - const: pipe # PIPE clock > + - const: aux # Auxiliary clock > + - const: cfg # Configuration clock > + - const: bus_master # Master AXI clock > + - const: bus_slave # Slave AXI clock > + - const: slave_q2a # Slave Q2A clock Mani promised to check whether we should use the 'ref' clock for the PCIe hosts or not. I'd ask to delay this patch until we finish that investigation. > + - const: tbu # PCIe TBU clock > + properties: > + resets: > + maxItems: 1 > + reset-names: > + items: > + - const: pci # PCIe core reset > + > + > + - if: > + properties: > + compatible: > + contains: > + enum: > - qcom,pcie-sm8250 > then: > oneOf: > -- > 2.34.1 > > -- With best wishes Dmitry