From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: "Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Krzysztof Wilczyński" <kw@linux.com>,
"Rob Herring" <robh@kernel.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Mrinmay Sarkar" <quic_msarkar@quicinc.com>,
"Bjorn Andersson" <andersson@kernel.org>,
"Konrad Dybcio" <konradybcio@kernel.org>,
"Krzysztof Wilczyński" <kwilczynski@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski@linaro.org>,
linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 4/8] dt-bindings: PCI: qcom-ep: consolidate DMA vs non-DMA usecases
Date: Sat, 22 Feb 2025 22:17:30 +0530 [thread overview]
Message-ID: <20250222164730.kelz4csyvd46onyx@thinkpad> (raw)
In-Reply-To: <20250221-sar2130p-pci-v3-4-61a0fdfb75b4@linaro.org>
On Fri, Feb 21, 2025 at 05:52:02PM +0200, Dmitry Baryshkov wrote:
> On Qualcomm platforms here are two major kinds of PCIe EP controllers:
> ones which use eDMA and IOMMU and the ones which do not (like SDX55 /
> SDX65). It doesn't make sense to c&p similar properties all over the
> place. Merge these two usecases into a single conditional clause.
>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
- Mani
> ---
> .../devicetree/bindings/pci/qcom,pcie-ep.yaml | 68 +++++++++++-----------
> 1 file changed, 35 insertions(+), 33 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml
> index d22022ff2760c5aa84d31e3c719dd4b63adbb4cf..2c1918ca30dcfa8decea684ff6bfe11c602bbc7e 100644
> --- a/Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml
> +++ b/Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml
> @@ -131,6 +131,7 @@ required:
>
> allOf:
> - $ref: pci-ep.yaml#
> +
> - if:
> properties:
> compatible:
> @@ -140,9 +141,43 @@ allOf:
> then:
> properties:
> reg:
> + minItems: 6
> maxItems: 6
> reg-names:
> + minItems: 6
> maxItems: 6
> + interrupts:
> + minItems: 2
> + maxItems: 2
> + interrupt-names:
> + minItems: 2
> + maxItems: 2
> + iommus: false
> + else:
> + properties:
> + reg:
> + minItems: 7
> + maxItems: 7
> + reg-names:
> + minItems: 7
> + maxItems: 7
> + interrupts:
> + minItems: 3
> + maxItems: 3
> + interrupt-names:
> + minItems: 3
> + maxItems: 3
> + required:
> + - iommus
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - qcom,sdx55-pcie-ep
> + then:
> + properties:
> clocks:
> items:
> - description: PCIe Auxiliary clock
> @@ -161,11 +196,6 @@ allOf:
> - const: slave_q2a
> - const: sleep
> - const: ref
> - interrupts:
> - maxItems: 2
> - interrupt-names:
> - maxItems: 2
> - iommus: false
>
> - if:
> properties:
> @@ -175,12 +205,6 @@ allOf:
> - qcom,sm8450-pcie-ep
> then:
> properties:
> - reg:
> - minItems: 7
> - maxItems: 7
> - reg-names:
> - minItems: 7
> - maxItems: 7
> clocks:
> items:
> - description: PCIe Auxiliary clock
> @@ -201,14 +225,6 @@ allOf:
> - const: ref
> - const: ddrss_sf_tbu
> - const: aggre_noc_axi
> - interrupts:
> - minItems: 3
> - maxItems: 3
> - interrupt-names:
> - minItems: 3
> - maxItems: 3
> - required:
> - - iommus
>
> - if:
> properties:
> @@ -218,12 +234,6 @@ allOf:
> - qcom,sa8775p-pcie-ep
> then:
> properties:
> - reg:
> - minItems: 7
> - maxItems: 7
> - reg-names:
> - minItems: 7
> - maxItems: 7
> clocks:
> items:
> - description: PCIe Auxiliary clock
> @@ -238,14 +248,6 @@ allOf:
> - const: bus_master
> - const: bus_slave
> - const: slave_q2a
> - interrupts:
> - minItems: 3
> - maxItems: 3
> - interrupt-names:
> - minItems: 3
> - maxItems: 3
> - required:
> - - iommus
>
> unevaluatedProperties: false
>
>
> --
> 2.39.5
>
--
மணிவண்ணன் சதாசிவம்
next prev parent reply other threads:[~2025-02-22 16:47 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-21 15:51 [PATCH v3 0/8] PCI: qcom-ep: add support for using the EP on SAR2130P and SM8450 Dmitry Baryshkov
2025-02-21 15:51 ` [PATCH v3 1/8] dt-bindings: PCI: qcom-ep: describe optional dma-coherent property Dmitry Baryshkov
2025-02-22 10:31 ` Krzysztof Kozlowski
2025-02-22 16:45 ` Manivannan Sadhasivam
2025-02-21 15:52 ` [PATCH v3 2/8] dt-bindings: PCI: qcom-ep: describe optional IOMMU Dmitry Baryshkov
2025-02-22 10:32 ` Krzysztof Kozlowski
2025-02-22 16:45 ` Manivannan Sadhasivam
2025-02-21 15:52 ` [PATCH v3 3/8] dt-bindings: PCI: qcom-ep: enable DMA for SM8450 Dmitry Baryshkov
2025-02-22 10:32 ` Krzysztof Kozlowski
2025-02-21 15:52 ` [PATCH v3 4/8] dt-bindings: PCI: qcom-ep: consolidate DMA vs non-DMA usecases Dmitry Baryshkov
2025-02-22 10:40 ` Krzysztof Kozlowski
2025-02-22 16:47 ` Manivannan Sadhasivam [this message]
2025-02-21 15:52 ` [PATCH v3 5/8] dt-bindings: PCI: qcom-ep: add SAR2130P compatible Dmitry Baryshkov
2025-02-22 10:41 ` Krzysztof Kozlowski
2025-02-21 15:52 ` [PATCH v3 6/8] PCI: dwc: pcie-qcom-ep: enable EP support for SAR2130P Dmitry Baryshkov
2025-02-22 16:50 ` Manivannan Sadhasivam
2025-02-22 18:06 ` Dmitry Baryshkov
2025-02-23 8:48 ` Manivannan Sadhasivam
2025-02-21 15:52 ` [PATCH v3 7/8] arm64: dts: qcom: sar2130p: add PCIe EP device nodes Dmitry Baryshkov
2025-02-21 18:59 ` Konrad Dybcio
2025-02-22 16:51 ` Manivannan Sadhasivam
2025-02-21 15:52 ` [PATCH v3 8/8] arm64: dts: qcom: sm8450: " Dmitry Baryshkov
2025-02-22 16:53 ` Manivannan Sadhasivam
2025-02-22 14:36 ` [PATCH v3 0/8] PCI: qcom-ep: add support for using the EP on SAR2130P and SM8450 Krzysztof Wilczyński
2025-02-24 18:36 ` Krzysztof Wilczyński
2025-02-25 3:19 ` Dmitry Baryshkov
2025-03-14 20:00 ` (subset) " Bjorn Andersson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250222164730.kelz4csyvd46onyx@thinkpad \
--to=manivannan.sadhasivam@linaro.org \
--cc=andersson@kernel.org \
--cc=bhelgaas@google.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=kw@linux.com \
--cc=kwilczynski@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=quic_msarkar@quicinc.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox