Commit b3ba0f6e authored by Matt Ranostay's avatar Matt Ranostay Committed by Krzysztof Wilczyński

dt-bindings: PCI: ti,j721e-pci-*: Add checks for num-lanes

Add num-lanes schema checks based on compatible string on available lanes
for that platform.

Link: https://lore.kernel.org/linux-pci/20231128054402.2155183-2-s-vadapalli@ti.comSigned-off-by: default avatarMatt Ranostay <mranostay@ti.com>
Signed-off-by: default avatarAchal Verma <a-verma1@ti.com>
Signed-off-by: default avatarSiddharth Vadapalli <s-vadapalli@ti.com>
Signed-off-by: default avatarKrzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
parent b85ea95d
...@@ -10,9 +10,6 @@ title: TI J721E PCI EP (PCIe Wrapper) ...@@ -10,9 +10,6 @@ title: TI J721E PCI EP (PCIe Wrapper)
maintainers: maintainers:
- Kishon Vijay Abraham I <kishon@ti.com> - Kishon Vijay Abraham I <kishon@ti.com>
allOf:
- $ref: cdns-pcie-ep.yaml#
properties: properties:
compatible: compatible:
oneOf: oneOf:
...@@ -65,6 +62,30 @@ properties: ...@@ -65,6 +62,30 @@ properties:
items: items:
- const: link_state - const: link_state
allOf:
- $ref: cdns-pcie-ep.yaml#
- if:
properties:
compatible:
enum:
- ti,am64-pcie-ep
then:
properties:
num-lanes:
const: 1
- if:
properties:
compatible:
enum:
- ti,j7200-pcie-ep
- ti,j721e-pcie-ep
then:
properties:
num-lanes:
minimum: 1
maximum: 2
required: required:
- compatible - compatible
- reg - reg
......
...@@ -10,9 +10,6 @@ title: TI J721E PCI Host (PCIe Wrapper) ...@@ -10,9 +10,6 @@ title: TI J721E PCI Host (PCIe Wrapper)
maintainers: maintainers:
- Kishon Vijay Abraham I <kishon@ti.com> - Kishon Vijay Abraham I <kishon@ti.com>
allOf:
- $ref: cdns-pcie-host.yaml#
properties: properties:
compatible: compatible:
oneOf: oneOf:
...@@ -94,6 +91,30 @@ properties: ...@@ -94,6 +91,30 @@ properties:
interrupts: interrupts:
maxItems: 1 maxItems: 1
allOf:
- $ref: cdns-pcie-host.yaml#
- if:
properties:
compatible:
enum:
- ti,am64-pcie-host
then:
properties:
num-lanes:
const: 1
- if:
properties:
compatible:
enum:
- ti,j7200-pcie-host
- ti,j721e-pcie-host
then:
properties:
num-lanes:
minimum: 1
maximum: 2
required: required:
- compatible - compatible
- reg - reg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment