Skip to content

Commit 64e098b

Browse files
jan-kiszkakwilczynski
authored andcommitted
dt-bindings: PCI: ti,am65: Fix remaining binding warnings
This adds the missing num-viewport, phys and phy-name properties to the schema. Based on driver code, num-viewport is required for the root complex, phys are optional. Their number corresponds to the number of lanes. The AM65x supports up to 2 lanes. Link: https://lore.kernel.org/linux-pci/[email protected] Signed-off-by: Jan Kiszka <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]> Reviewed-by: Rob Herring <[email protected]>
1 parent 01fec70 commit 64e098b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,20 @@ properties:
5555

5656
dma-coherent: true
5757

58+
num-viewport:
59+
$ref: /schemas/types.yaml#/definitions/uint32
60+
61+
phys:
62+
description: per-lane PHYs
63+
minItems: 1
64+
maxItems: 2
65+
66+
phy-names:
67+
minItems: 1
68+
maxItems: 2
69+
items:
70+
pattern: '^pcie-phy[0-1]$'
71+
5872
required:
5973
- compatible
6074
- reg
@@ -74,13 +88,15 @@ then:
7488
- dma-coherent
7589
- power-domains
7690
- msi-map
91+
- num-viewport
7792

7893
unevaluatedProperties: false
7994

8095
examples:
8196
- |
8297
#include <dt-bindings/interrupt-controller/arm-gic.h>
8398
#include <dt-bindings/interrupt-controller/irq.h>
99+
#include <dt-bindings/phy/phy.h>
84100
#include <dt-bindings/soc/ti,sci_pm_domain.h>
85101
86102
pcie0_rc: pcie@5500000 {
@@ -98,9 +114,13 @@ examples:
98114
ti,syscon-pcie-id = <&scm_conf 0x0210>;
99115
ti,syscon-pcie-mode = <&scm_conf 0x4060>;
100116
bus-range = <0x0 0xff>;
117+
num-viewport = <16>;
101118
max-link-speed = <2>;
102119
dma-coherent;
103120
interrupts = <GIC_SPI 340 IRQ_TYPE_EDGE_RISING>;
104121
msi-map = <0x0 &gic_its 0x0 0x10000>;
105122
device_type = "pci";
123+
num-lanes = <1>;
124+
phys = <&serdes0 PHY_TYPE_PCIE 0>;
125+
phy-names = "pcie-phy0";
106126
};

0 commit comments

Comments
 (0)