Linux-libre 5.7.6-gnu
[librecmc/linux-libre.git] / Documentation / devicetree / bindings / pci / cdns,cdns-pcie-host.yaml
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
7 title: Cadence PCIe host controller
8
9 maintainers:
10   - Tom Joseph <tjoseph@cadence.com>
11
12 allOf:
13   - $ref: /schemas/pci/pci-bus.yaml#
14   - $ref: "cdns-pcie-host.yaml#"
15
16 properties:
17   compatible:
18     const: cdns,cdns-pcie-host
19
20   reg:
21     maxItems: 3
22
23   reg-names:
24     items:
25       - const: reg
26       - const: cfg
27       - const: mem
28
29   msi-parent: true
30
31 required:
32   - reg
33   - reg-names
34
35 examples:
36   - |
37     bus {
38         #address-cells = <2>;
39         #size-cells = <2>;
40
41         pcie@fb000000 {
42             compatible = "cdns,cdns-pcie-host";
43             device_type = "pci";
44             #address-cells = <3>;
45             #size-cells = <2>;
46             bus-range = <0x0 0xff>;
47             linux,pci-domain = <0>;
48             cdns,max-outbound-regions = <16>;
49             cdns,no-bar-match-nbits = <32>;
50             vendor-id = <0x17cd>;
51             device-id = <0x0200>;
52
53             reg = <0x0 0xfb000000  0x0 0x01000000>,
54                   <0x0 0x41000000  0x0 0x00001000>,
55                   <0x0 0x40000000  0x0 0x04000000>;
56             reg-names = "reg", "cfg", "mem";
57
58             ranges = <0x02000000 0x0 0x42000000  0x0 0x42000000  0x0 0x1000000>,
59                      <0x01000000 0x0 0x43000000  0x0 0x43000000  0x0 0x0010000>;
60
61             #interrupt-cells = <0x1>;
62
63             interrupt-map = <0x0 0x0 0x0  0x1  &gic  0x0 0x0 0x0 14 0x1>,
64                  <0x0 0x0 0x0  0x2  &gic  0x0 0x0 0x0 15 0x1>,
65                  <0x0 0x0 0x0  0x3  &gic  0x0 0x0 0x0 16 0x1>,
66                  <0x0 0x0 0x0  0x4  &gic  0x0 0x0 0x0 17 0x1>;
67
68             interrupt-map-mask = <0x0 0x0 0x0  0x7>;
69
70             msi-parent = <&its_pci>;
71
72             phys = <&pcie_phy0>;
73             phy-names = "pcie-phy";
74         };
75     };
76 ...