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.com Signed-off-by: Matt Ranostay <mranostay@ti.com> Signed-off-by: Achal Verma <a-verma1@ti.com> Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com> Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
This commit is contained in:
committed by
Krzysztof Wilczyński
parent
b85ea95d08
commit
b3ba0f6e82
@@ -10,9 +10,6 @@ title: TI J721E PCI EP (PCIe Wrapper)
|
||||
maintainers:
|
||||
- Kishon Vijay Abraham I <kishon@ti.com>
|
||||
|
||||
allOf:
|
||||
- $ref: cdns-pcie-ep.yaml#
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
oneOf:
|
||||
@@ -65,6 +62,30 @@ properties:
|
||||
items:
|
||||
- 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:
|
||||
- compatible
|
||||
- reg
|
||||
|
||||
@@ -10,9 +10,6 @@ title: TI J721E PCI Host (PCIe Wrapper)
|
||||
maintainers:
|
||||
- Kishon Vijay Abraham I <kishon@ti.com>
|
||||
|
||||
allOf:
|
||||
- $ref: cdns-pcie-host.yaml#
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
oneOf:
|
||||
@@ -94,6 +91,30 @@ properties:
|
||||
interrupts:
|
||||
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:
|
||||
- compatible
|
||||
- reg
|
||||
|
||||
Reference in New Issue
Block a user