[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240117102526.557006-3-s-vadapalli@ti.com>
Date: Wed, 17 Jan 2024 15:55:25 +0530
From: Siddharth Vadapalli <s-vadapalli@...com>
To: <bhelgaas@...gle.com>, <lpieralisi@...nel.org>, <kw@...ux.com>,
<robh@...nel.org>, <krzysztof.kozlowski+dt@...aro.org>,
<conor+dt@...nel.org>
CC: <linux-pci@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <linux-arm-kernel@...ts.infradead.org>,
<vigneshr@...com>, <afd@...com>, <srk@...com>, <s-vadapalli@...com>
Subject: [PATCH 2/3] dt-bindings: PCI: ti,j721e-pci-*: Add checks for max-link-speed
Extend the existing compatible based checks for validating and enforcing
the "max-link-speed" property.
Signed-off-by: Siddharth Vadapalli <s-vadapalli@...com>
---
.../devicetree/bindings/pci/ti,j721e-pci-ep.yaml | 8 ++++++++
.../devicetree/bindings/pci/ti,j721e-pci-host.yaml | 8 ++++++++
2 files changed, 16 insertions(+)
diff --git a/Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml b/Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml
index 278e0892f8ac..4839a9574e20 100644
--- a/Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml
+++ b/Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml
@@ -73,6 +73,8 @@ allOf:
- const: ti,j721e-pcie-ep
then:
properties:
+ max-link-speed:
+ const: 2
num-lanes:
const: 1
@@ -84,6 +86,8 @@ allOf:
- const: ti,j721e-pcie-ep
then:
properties:
+ max-link-speed:
+ const: 3
num-lanes:
minimum: 1
maximum: 2
@@ -95,6 +99,8 @@ allOf:
- const: ti,j721e-pcie-ep
then:
properties:
+ max-link-speed:
+ const: 3
num-lanes:
minimum: 1
maximum: 4
@@ -106,6 +112,8 @@ allOf:
- const: ti,j784s4-pcie-ep
then:
properties:
+ max-link-speed:
+ const: 3
num-lanes:
minimum: 1
maximum: 4
diff --git a/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml b/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml
index 36bcc8cb7896..005546dc8bd4 100644
--- a/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml
+++ b/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml
@@ -102,6 +102,8 @@ allOf:
- const: ti,j721e-pcie-host
then:
properties:
+ max-link-speed:
+ const: 2
num-lanes:
const: 1
@@ -113,6 +115,8 @@ allOf:
- const: ti,j721e-pcie-host
then:
properties:
+ max-link-speed:
+ const: 3
num-lanes:
minimum: 1
maximum: 2
@@ -124,6 +128,8 @@ allOf:
- const: ti,j721e-pcie-host
then:
properties:
+ max-link-speed:
+ const: 3
num-lanes:
minimum: 1
maximum: 4
@@ -135,6 +141,8 @@ allOf:
- const: ti,j784s4-pcie-host
then:
properties:
+ max-link-speed:
+ const: 3
num-lanes:
minimum: 1
maximum: 4
--
2.34.1
Powered by blists - more mailing lists