Skip to content

Commit adc14d4

Browse files
mranostaykwilczynski
authored andcommitted
dt-bindings: PCI: ti,j721e-pci-*: Add j784s4-pci-* compatible strings
Add definition for j784s4-pci-ep and j784s4-pci-host devices along with schema checks for num-lanes. Link: https://lore.kernel.org/linux-pci/[email protected] Signed-off-by: Matt Ranostay <[email protected]> Signed-off-by: Achal Verma <[email protected]> Signed-off-by: Siddharth Vadapalli <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]> Acked-by: Krzysztof Kozlowski <[email protected]>
1 parent b3ba0f6 commit adc14d4

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ properties:
1414
compatible:
1515
oneOf:
1616
- const: ti,j721e-pcie-ep
17+
- const: ti,j784s4-pcie-ep
1718
- description: PCIe EP controller in AM64
1819
items:
1920
- const: ti,am64-pcie-ep
@@ -86,6 +87,17 @@ allOf:
8687
minimum: 1
8788
maximum: 2
8889

90+
- if:
91+
properties:
92+
compatible:
93+
enum:
94+
- ti,j784s4-pcie-ep
95+
then:
96+
properties:
97+
num-lanes:
98+
minimum: 1
99+
maximum: 4
100+
89101
required:
90102
- compatible
91103
- reg

Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ properties:
1414
compatible:
1515
oneOf:
1616
- const: ti,j721e-pcie-host
17+
- const: ti,j784s4-pcie-host
1718
- description: PCIe controller in AM64
1819
items:
1920
- const: ti,am64-pcie-host
@@ -115,6 +116,17 @@ allOf:
115116
minimum: 1
116117
maximum: 2
117118

119+
- if:
120+
properties:
121+
compatible:
122+
enum:
123+
- ti,j784s4-pcie-host
124+
then:
125+
properties:
126+
num-lanes:
127+
minimum: 1
128+
maximum: 4
129+
118130
required:
119131
- compatible
120132
- reg

0 commit comments

Comments
 (0)