mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
dt-bindings: PCI: qcom-ep: Consolidate DMA vs non-DMA cases
On Qualcomm platforms here are two major kinds of PCIe Endpoint controllers: ones which use eDMA and IOMMU and the ones which do not (e.g., SDX55 or SDX65). As such, it doesn't make sense to duplicate similar properties all over the place. Thus, merge these two cases into a single conditional clause. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Link: https://lore.kernel.org/r/20250221-sar2130p-pci-v3-4-61a0fdfb75b4@linaro.org [kwilczynski: commit log] Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
This commit is contained in:
parent
d589fe0bf0
commit
f9d7bbd050
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user