Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EDC58C7EE2D for ; Fri, 3 Mar 2023 17:31:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231228AbjCCRbu (ORCPT ); Fri, 3 Mar 2023 12:31:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231131AbjCCRbs (ORCPT ); Fri, 3 Mar 2023 12:31:48 -0500 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 985711ADC2 for ; Fri, 3 Mar 2023 09:31:45 -0800 (PST) Received: by mail-lj1-x22c.google.com with SMTP id a32so3086937ljr.9 for ; Fri, 03 Mar 2023 09:31:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=Lulx79GyAFA+P6dFOCo5Azji9mlKR6wcVUynCnl38KE=; b=JITNzhiSKTtjoAwF8+7ZzK3BFkI2QL7n7qvc8NL4tf2TdDiB42bCjsYe/izBt4P+9P lczExnj88Gk6EJnFrpd+rDJqpJLXZrFWJejHE/41SNNpPSOPSMY/t+ka4b5SsJVrPLHS yP8QlZ4A7u0QnpLqepfRRA6oRNAfFlMSLg9RFndTA4G2xf3m6mlZCv7MgAmlGP0c8oWl i8wFp/FD38t10Lcua1M5QYwo/GKeCH7BrCeFC0Qg6KOLMCMSWiBQE04bFJRqxsde4oFG 7xr+53mwxla2EbiKtNRjabsAbACLLZZ8qk5BGu7Xf1wCkEqYOCB87CCuHWnFs7PFvCvc ilNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Lulx79GyAFA+P6dFOCo5Azji9mlKR6wcVUynCnl38KE=; b=xwmUZmPZc1cF4d+Crjq9VMyoM5pM3VUQwzBO/e6/NY/bbn8pEH/a+cgNd9oM/fFkzN tAXd8FVh/y00T2fcERrmzo0TYjqPKL1T2aYqnrw7ut0Jv44y5J0+CVbiTg9QK5OJuPHC fpgb2Hu21mWR/WhagpnOy6nLPE7cTReNTiTXGBU9Q5bZF+vt1GPLtO9+M627qfF6qCOZ HXj+11hKBXA2S2lmLYmXBc395UUBMgyApiuwou3EOnsAeT2Jic1zS7MBiSqwWq6EYdX5 w7fXcVM4mWlXS+//vT1XwW4IHb4Al3EidC/Gj0zBNE/cawBp0XCF+J+mfi6rkh5wujPB qO8Q== X-Gm-Message-State: AO0yUKU4GORu4xPQYgrNn6lc/2oazI8krlgD501G9JydvpqFVODImCXn 8Z9LO41n0yh0RYXWloTIiWugWA== X-Google-Smtp-Source: AK7set+TY6SCuyHzL+clUmus/vGmZ+jVnXAk/MpTCOHfN+mCHX0WkFtQ6gXt+GN97vVUzr2U7gu7/g== X-Received: by 2002:a2e:b019:0:b0:295:a3a9:a3e4 with SMTP id y25-20020a2eb019000000b00295a3a9a3e4mr848742ljk.45.1677864703905; Fri, 03 Mar 2023 09:31:43 -0800 (PST) Received: from [127.0.0.1] (85-76-129-102-nat.elisa-mobile.fi. [85.76.129.102]) by smtp.gmail.com with ESMTPSA id f8-20020a2e6a08000000b0029571d2226bsm402252ljc.11.2023.03.03.09.31.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Mar 2023 09:31:43 -0800 (PST) Date: Fri, 03 Mar 2023 17:16:58 +0200 From: Dmitry Baryshkov To: Manivannan Sadhasivam , Devi Priya CC: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org, kishon@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, p.zabel@pengutronix.de, svarbanov@mm-sol.com, 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, linux-clk@vger.kernel.org, quic_srichara@quicinc.com, quic_gokulsri@quicinc.com, quic_sjaganat@quicinc.com, quic_kathirav@quicinc.com, quic_arajkuma@quicinc.com, quic_anusha@quicinc.com Subject: =?US-ASCII?Q?Re=3A_=5BPATCH_1/7=5D_dt-bindings=3A_PCI=3A_q?= =?US-ASCII?Q?com=3A_Add_IPQ9574_specific_compatible?= User-Agent: K-9 Mail for Android In-Reply-To: <20230228063358.GA4839@thinkpad> References: <20230214164135.17039-1-quic_devipriy@quicinc.com> <20230214164135.17039-2-quic_devipriy@quicinc.com> <20230224082332.GA5443@thinkpad> <20230228063358.GA4839@thinkpad> Message-ID: <9BD62D8E-4E14-4269-B72D-C83EF4D43040@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 28 =D1=84=D0=B5=D0=B2=D1=80=D0=B0=D0=BB=D1=8F 2023 =D0=B3=2E 08:33:58 GMT+0= 2:00, Manivannan Sadhasivam =D0=BF=D0=B8=D1=88=D0=B5=D1= =82: >On Tue, Feb 28, 2023 at 10:56:53AM +0530, Devi Priya wrote: >>=20 >>=20 >> On 2/24/2023 1:53 PM, Manivannan Sadhasivam wrote: >> > On Tue, Feb 14, 2023 at 10:11:29PM +0530, Devi Priya wrote: >> > > Document the compatible for IPQ9574 >> > >=20 >> Hi Mani, Thanks for taking time to review the patch=2E >> >=20 >> > You didn't mention about the "msi-parent" property that is being adde= d >> > by this patch >> Sure, will update the commit message in the next spin >> >=20 >> > > Signed-off-by: Devi Priya >> > > --- >> > > =2E=2E=2E/devicetree/bindings/pci/qcom,pcie=2Eyaml | 72 ++++++= ++++++++++++- >> > > 1 file changed, 70 insertions(+), 2 deletions(-) >> > >=20 >> > > diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie=2Eyaml= b/Documentation/devicetree/bindings/pci/qcom,pcie=2Eyaml >> > > index 872817d6d2bd=2E=2Edabdf2684e2d 100644 >> > > --- a/Documentation/devicetree/bindings/pci/qcom,pcie=2Eyaml >> > > +++ b/Documentation/devicetree/bindings/pci/qcom,pcie=2Eyaml >> > > @@ -26,6 +26,7 @@ properties: >> > > - qcom,pcie-ipq8064-v2 >> > > - qcom,pcie-ipq8074 >> > > - qcom,pcie-ipq8074-gen3 >> > > + - qcom,pcie-ipq9574 >> > > - qcom,pcie-msm8996 >> > > - qcom,pcie-qcs404 >> > > - qcom,pcie-sa8540p >> > > @@ -44,11 +45,11 @@ properties: >> > > reg: >> > > minItems: 4 >> > > - maxItems: 5 >> > > + maxItems: 6 >> > > reg-names: >> > > minItems: 4 >> > > - maxItems: 5 >> > > + maxItems: 6 >> > > interrupts: >> > > minItems: 1 >> > > @@ -105,6 +106,8 @@ properties: >> > > items: >> > > - const: pciephy >> > > + msi-parent: true >> > > + >> > > power-domains: >> > > maxItems: 1 >> > > @@ -173,6 +176,27 @@ allOf: >> > > - const: parf # Qualcomm specific registers >> > > - const: config # PCIe configuration space >> > > + - if: >> > > + properties: >> > > + compatible: >> > > + contains: >> > > + enum: >> > > + - qcom,pcie-ipq9574 >> > > + then: >> > > + properties: >> > > + reg: >> > > + minItems: 5 >> > > + maxItems: 6 >> > > + reg-names: >> > > + minItems: 5 >> > > + items: >> > > + - const: dbi # DesignWare PCIe registers >> > > + - const: elbi # External local bus interface registers >> > > + - const: atu # ATU address space >> > > + - const: parf # Qualcomm specific registers >> > > + - const: config # PCIe configuration space >> > > + - const: aggr_noc #PCIe aggr_noc >> >=20 >> > Why do you need this region unlike other SoCs? Is the driver making u= se of it? >> We have the aggr_noc region in ipq9574 to achieve higher throughput & t= o >> handle multiple PCIe instances=2E The driver uses it to rate adapt 1-la= ne PCIe >> clocks=2E My bad, missed it=2E Will add the driver changes in V2=2E > >Hmm, this is something new=2E How can you achieve higher throughput with = this >region? Can you explain more on how it is used? Based on the name of the region, it looks like it is an interconnect regio= n=2E=20 Devi, if this is the case, then you have to handle it through the intercon= nect driver, rather than poking directly into these registers=2E > >Thanks, >Mani > >> >=20 >> > Thanks, >> > Mani >> >=20 >> > > + >> > > - if: >> > > properties: >> > > compatible: >> > > @@ -365,6 +389,39 @@ allOf: >> > > - const: ahb # AHB Reset >> > > - const: axi_m_sticky # AXI Master Sticky reset >> > > + - if: >> > > + properties: >> > > + compatible: >> > > + contains: >> > > + enum: >> > > + - qcom,pcie-ipq9574 >> > > + then: >> > > + properties: >> > > + clocks: >> > > + minItems: 6 >> > > + maxItems: 6 >> > > + clock-names: >> > > + items: >> > > + - const: ahb # AHB clock >> > > + - const: aux # Auxiliary clock >> > > + - const: axi_m # AXI Master clock >> > > + - const: axi_s # AXI Slave clock >> > > + - const: axi_bridge # AXI bridge clock >> > > + - const: rchng >> > > + resets: >> > > + minItems: 8 >> > > + maxItems: 8 >> > > + reset-names: >> > > + items: >> > > + - const: pipe # PIPE reset >> > > + - const: sticky # Core Sticky reset >> > > + - const: axi_s_sticky # AXI Slave Sticky reset >> > > + - const: axi_s # AXI Slave reset >> > > + - const: axi_m_sticky # AXI Master Sticky reset >> > > + - const: axi_m # AXI Master reset >> > > + - const: aux # AUX Reset >> > > + - const: ahb # AHB Reset >> > > + >> > > - if: >> > > properties: >> > > compatible: >> > > @@ -681,6 +738,16 @@ allOf: >> > > - interconnects >> > > - interconnect-names >> > > + - if: >> > > + properties: >> > > + compatible: >> > > + contains: >> > > + enum: >> > > + - qcom,pcie-ipq9574 >> > > + then: >> > > + required: >> > > + - msi-parent >> > > + >> > > - if: >> > > not: >> > > properties: >> > > @@ -693,6 +760,7 @@ allOf: >> > > - qcom,pcie-ipq8064v2 >> > > - qcom,pcie-ipq8074 >> > > - qcom,pcie-ipq8074-gen3 >> > > + - qcom,pcie-ipq9574 >> > > - qcom,pcie-qcs404 >> > > then: >> > > required: >> > > --=20 >> > > 2=2E17=2E1 >> > >=20 >> >=20 >> Thanks, >> Devi Priya >