1# SPDX-License-Identifier: GPL-2.0-only
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/pci/cdns,cdns-pcie-host.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Cadence PCIe host controller
8
9maintainers:
10  - Tom Joseph <tjoseph@cadence.com>
11
12allOf:
13  - $ref: /schemas/pci/pci-bus.yaml#
14  - $ref: "cdns-pcie-host.yaml#"
15
16properties:
17  compatible:
18    const: cdns,cdns-pcie-host
19
20  reg:
21    maxItems: 2
22
23  reg-names:
24    items:
25      - const: reg
26      - const: cfg
27
28  msi-parent: true
29
30required:
31  - reg
32  - reg-names
33
34examples:
35  - |
36    bus {
37        #address-cells = <2>;
38        #size-cells = <2>;
39
40        pcie@fb000000 {
41            compatible = "cdns,cdns-pcie-host";
42            device_type = "pci";
43            #address-cells = <3>;
44            #size-cells = <2>;
45            bus-range = <0x0 0xff>;
46            linux,pci-domain = <0>;
47            vendor-id = <0x17cd>;
48            device-id = <0x0200>;
49
50            reg = <0x0 0xfb000000  0x0 0x01000000>,
51                  <0x0 0x41000000  0x0 0x00001000>;
52            reg-names = "reg", "cfg";
53
54            ranges = <0x02000000 0x0 0x42000000  0x0 0x42000000  0x0 0x1000000>,
55                     <0x01000000 0x0 0x43000000  0x0 0x43000000  0x0 0x0010000>;
56            dma-ranges = <0x02000000 0x0 0x0 0x0 0x0 0x1 0x00000000>;
57
58            #interrupt-cells = <0x1>;
59
60            interrupt-map = <0x0 0x0 0x0  0x1  &gic  0x0 0x0 0x0 14 0x1>,
61                 <0x0 0x0 0x0  0x2  &gic  0x0 0x0 0x0 15 0x1>,
62                 <0x0 0x0 0x0  0x3  &gic  0x0 0x0 0x0 16 0x1>,
63                 <0x0 0x0 0x0  0x4  &gic  0x0 0x0 0x0 17 0x1>;
64
65            interrupt-map-mask = <0x0 0x0 0x0  0x7>;
66
67            msi-parent = <&its_pci>;
68
69            phys = <&pcie_phy0>;
70            phy-names = "pcie-phy";
71        };
72    };
73...
74