Skip to content

Commit 6873aaa

Browse files
mindachen1987bjorn-helgaas
authored andcommitted
dt-bindings: PCI: Add PLDA XpressRICH PCIe host common properties
Add PLDA XpressRICH PCIe host common properties dt-binding doc. The PolarFire PCIe host uses PLDA IP. Move common properties from Microchip PolarFire PCIe host to PLDA files. Link: https://lore.kernel.org/linux-pci/20240328091835.14797-2-minda.chen@starfivetech.com Signed-off-by: Minda Chen <minda.chen@starfivetech.com> Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org> [bhelgaas: adapt for 5db62b7 ("dt-bindings: PCI: host-bridges: Switch from deprecated pci-bus.yaml")] Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Hal Feng <hal.feng@starfivetech.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Rob Herring <robh@kernel.org> Tested-by: John Clark <inindev@gmail.com>
1 parent 1613e60 commit 6873aaa

3 files changed

Lines changed: 82 additions & 54 deletions

File tree

Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml

Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,13 @@ maintainers:
1010
- Daire McNamara <daire.mcnamara@microchip.com>
1111

1212
allOf:
13-
- $ref: /schemas/pci/pci-host-bridge.yaml#
13+
- $ref: plda,xpressrich3-axi-common.yaml#
1414
- $ref: /schemas/interrupt-controller/msi-controller.yaml#
1515

1616
properties:
1717
compatible:
1818
const: microchip,pcie-host-1.0 # PolarFire
1919

20-
reg:
21-
maxItems: 2
22-
23-
reg-names:
24-
items:
25-
- const: cfg
26-
- const: apb
27-
2820
clocks:
2921
description:
3022
Fabric Interface Controllers, FICs, are the interface between the FPGA
@@ -52,18 +44,6 @@ properties:
5244
items:
5345
pattern: '^fic[0-3]$'
5446

55-
interrupts:
56-
minItems: 1
57-
items:
58-
- description: PCIe host controller
59-
- description: builtin MSI controller
60-
61-
interrupt-names:
62-
minItems: 1
63-
items:
64-
- const: pcie
65-
- const: msi
66-
6747
ranges:
6848
minItems: 1
6949
maxItems: 3
@@ -72,39 +52,6 @@ properties:
7252
minItems: 1
7353
maxItems: 6
7454

75-
msi-controller:
76-
description: Identifies the node as an MSI controller.
77-
78-
msi-parent:
79-
description: MSI controller the device is capable of using.
80-
81-
interrupt-controller:
82-
type: object
83-
properties:
84-
'#address-cells':
85-
const: 0
86-
87-
'#interrupt-cells':
88-
const: 1
89-
90-
interrupt-controller: true
91-
92-
required:
93-
- '#address-cells'
94-
- '#interrupt-cells'
95-
- interrupt-controller
96-
97-
additionalProperties: false
98-
99-
required:
100-
- reg
101-
- reg-names
102-
- "#interrupt-cells"
103-
- interrupts
104-
- interrupt-map-mask
105-
- interrupt-map
106-
- msi-controller
107-
10855
unevaluatedProperties: false
10956

11057
examples:
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/pci/plda,xpressrich3-axi-common.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: PLDA XpressRICH PCIe host common properties
8+
9+
maintainers:
10+
- Daire McNamara <daire.mcnamara@microchip.com>
11+
- Kevin Xie <kevin.xie@starfivetech.com>
12+
13+
description:
14+
Generic PLDA XpressRICH PCIe host common properties.
15+
16+
allOf:
17+
- $ref: /schemas/pci/pci-host-bridge.yaml#
18+
19+
properties:
20+
reg:
21+
maxItems: 2
22+
23+
reg-names:
24+
items:
25+
- const: cfg
26+
- const: apb
27+
28+
interrupts:
29+
minItems: 1
30+
items:
31+
- description: PCIe host controller
32+
- description: builtin MSI controller
33+
34+
interrupt-names:
35+
minItems: 1
36+
items:
37+
- const: pcie
38+
- const: msi
39+
40+
msi-controller:
41+
description: Identifies the node as an MSI controller.
42+
43+
msi-parent:
44+
description: MSI controller the device is capable of using.
45+
46+
interrupt-controller:
47+
type: object
48+
properties:
49+
'#address-cells':
50+
const: 0
51+
52+
'#interrupt-cells':
53+
const: 1
54+
55+
interrupt-controller: true
56+
57+
required:
58+
- '#address-cells'
59+
- '#interrupt-cells'
60+
- interrupt-controller
61+
62+
additionalProperties: false
63+
64+
required:
65+
- reg
66+
- reg-names
67+
- interrupts
68+
- msi-controller
69+
- "#interrupt-cells"
70+
- interrupt-map-mask
71+
- interrupt-map
72+
73+
additionalProperties: true
74+
75+
...

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17219,6 +17219,12 @@ S: Maintained
1721917219
F: Documentation/devicetree/bindings/pci/layerscape-pcie-gen4.txt
1722017220
F: drivers/pci/controller/mobiveil/pcie-layerscape-gen4.c
1722117221

17222+
PCI DRIVER FOR PLDA PCIE IP
17223+
M: Daire McNamara <daire.mcnamara@microchip.com>
17224+
L: linux-pci@vger.kernel.org
17225+
S: Maintained
17226+
F: Documentation/devicetree/bindings/pci/plda,xpressrich3-axi-common.yaml
17227+
1722217228
PCI DRIVER FOR RENESAS R-CAR
1722317229
M: Marek Vasut <marek.vasut+renesas@gmail.com>
1722417230
M: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>

0 commit comments

Comments
 (0)