xref: /linux/Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml (revision a3ec59e982e08366fa755730bbe803f7ed042391)
1e22fadb1SBharat Kumar Gogada# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2e22fadb1SBharat Kumar Gogada%YAML 1.2
3e22fadb1SBharat Kumar Gogada---
4e22fadb1SBharat Kumar Gogada$id: http://devicetree.org/schemas/pci/xilinx-versal-cpm.yaml#
5e22fadb1SBharat Kumar Gogada$schema: http://devicetree.org/meta-schemas/core.yaml#
6e22fadb1SBharat Kumar Gogada
7e22fadb1SBharat Kumar Gogadatitle: CPM Host Controller device tree for Xilinx Versal SoCs
8e22fadb1SBharat Kumar Gogada
9e22fadb1SBharat Kumar Gogadamaintainers:
10d5c421d2SMichal Simek  - Bharat Kumar Gogada <bharat.kumar.gogada@amd.com>
11e22fadb1SBharat Kumar Gogada
12e22fadb1SBharat Kumar GogadaallOf:
135db62b7dSKrzysztof Kozlowski  - $ref: /schemas/pci/pci-host-bridge.yaml#
14e22fadb1SBharat Kumar Gogada
15e22fadb1SBharat Kumar Gogadaproperties:
16e22fadb1SBharat Kumar Gogada  compatible:
1749f40703SBharat Kumar Gogada    enum:
1849f40703SBharat Kumar Gogada      - xlnx,versal-cpm-host-1.00
1949f40703SBharat Kumar Gogada      - xlnx,versal-cpm5-host
20e22fadb1SBharat Kumar Gogada
21e22fadb1SBharat Kumar Gogada  reg:
22e22fadb1SBharat Kumar Gogada    items:
23e22fadb1SBharat Kumar Gogada      - description: CPM system level control and status registers.
24e2c6170aSBharat Kumar Gogada      - description: Configuration space region and bridge registers.
2549f40703SBharat Kumar Gogada      - description: CPM5 control and status registers.
2649f40703SBharat Kumar Gogada    minItems: 2
27e22fadb1SBharat Kumar Gogada
28e22fadb1SBharat Kumar Gogada  reg-names:
29e22fadb1SBharat Kumar Gogada    items:
30e22fadb1SBharat Kumar Gogada      - const: cpm_slcr
31e2c6170aSBharat Kumar Gogada      - const: cfg
3249f40703SBharat Kumar Gogada      - const: cpm_csr
3349f40703SBharat Kumar Gogada    minItems: 2
34e22fadb1SBharat Kumar Gogada
35e22fadb1SBharat Kumar Gogada  interrupts:
36e22fadb1SBharat Kumar Gogada    maxItems: 1
37e22fadb1SBharat Kumar Gogada
38e22fadb1SBharat Kumar Gogada  msi-map:
39e22fadb1SBharat Kumar Gogada    description:
40e22fadb1SBharat Kumar Gogada      Maps a Requester ID to an MSI controller and associated MSI sideband data.
41e22fadb1SBharat Kumar Gogada
42e22fadb1SBharat Kumar Gogada  ranges:
43e22fadb1SBharat Kumar Gogada    maxItems: 2
44e22fadb1SBharat Kumar Gogada
45e22fadb1SBharat Kumar Gogada  "#interrupt-cells":
46e22fadb1SBharat Kumar Gogada    const: 1
47e22fadb1SBharat Kumar Gogada
48e22fadb1SBharat Kumar Gogada  interrupt-controller:
49e22fadb1SBharat Kumar Gogada    description: Interrupt controller node for handling legacy PCI interrupts.
50e22fadb1SBharat Kumar Gogada    type: object
5115be4f7cSRob Herring (Arm)    additionalProperties: false
5215be4f7cSRob Herring (Arm)
53e22fadb1SBharat Kumar Gogada    properties:
54e22fadb1SBharat Kumar Gogada      "#address-cells":
55e22fadb1SBharat Kumar Gogada        const: 0
5615be4f7cSRob Herring (Arm)
57e22fadb1SBharat Kumar Gogada      "#interrupt-cells":
58e22fadb1SBharat Kumar Gogada        const: 1
5915be4f7cSRob Herring (Arm)
6015be4f7cSRob Herring (Arm)      interrupt-controller: true
61e22fadb1SBharat Kumar Gogada
62e22fadb1SBharat Kumar Gogadarequired:
63e22fadb1SBharat Kumar Gogada  - reg
64e22fadb1SBharat Kumar Gogada  - reg-names
65e22fadb1SBharat Kumar Gogada  - "#interrupt-cells"
66e22fadb1SBharat Kumar Gogada  - interrupts
67e22fadb1SBharat Kumar Gogada  - interrupt-map
68e22fadb1SBharat Kumar Gogada  - interrupt-map-mask
69e22fadb1SBharat Kumar Gogada  - bus-range
70e22fadb1SBharat Kumar Gogada  - msi-map
71e22fadb1SBharat Kumar Gogada  - interrupt-controller
72e22fadb1SBharat Kumar Gogada
73e22fadb1SBharat Kumar GogadaunevaluatedProperties: false
74e22fadb1SBharat Kumar Gogada
75e22fadb1SBharat Kumar Gogadaexamples:
76e22fadb1SBharat Kumar Gogada  - |
77e22fadb1SBharat Kumar Gogada
78e22fadb1SBharat Kumar Gogada    versal {
79e22fadb1SBharat Kumar Gogada               #address-cells = <2>;
80e22fadb1SBharat Kumar Gogada               #size-cells = <2>;
81e22fadb1SBharat Kumar Gogada               cpm_pcie: pcie@fca10000 {
82e22fadb1SBharat Kumar Gogada                       compatible = "xlnx,versal-cpm-host-1.00";
83e22fadb1SBharat Kumar Gogada                       device_type = "pci";
84e22fadb1SBharat Kumar Gogada                       #address-cells = <3>;
85e22fadb1SBharat Kumar Gogada                       #interrupt-cells = <1>;
86e22fadb1SBharat Kumar Gogada                       #size-cells = <2>;
87e22fadb1SBharat Kumar Gogada                       interrupts = <0 72 4>;
88e22fadb1SBharat Kumar Gogada                       interrupt-parent = <&gic>;
89e22fadb1SBharat Kumar Gogada                       interrupt-map-mask = <0 0 0 7>;
90e22fadb1SBharat Kumar Gogada                       interrupt-map = <0 0 0 1 &pcie_intc_0 0>,
91e22fadb1SBharat Kumar Gogada                                       <0 0 0 2 &pcie_intc_0 1>,
92e22fadb1SBharat Kumar Gogada                                       <0 0 0 3 &pcie_intc_0 2>,
93e22fadb1SBharat Kumar Gogada                                       <0 0 0 4 &pcie_intc_0 3>;
94e22fadb1SBharat Kumar Gogada                       bus-range = <0x00 0xff>;
95*a3ec59e9SThippeswamy Havalige                       ranges = <0x02000000 0x0 0xe0010000 0x0 0xe0010000 0x0 0x10000000>,
96e22fadb1SBharat Kumar Gogada                                <0x43000000 0x80 0x00000000 0x80 0x00000000 0x0 0x80000000>;
97e22fadb1SBharat Kumar Gogada                       msi-map = <0x0 &its_gic 0x0 0x10000>;
98e2c6170aSBharat Kumar Gogada                       reg = <0x0 0xfca10000 0x0 0x1000>,
99e2c6170aSBharat Kumar Gogada                             <0x6 0x00000000 0x0 0x10000000>;
100e2c6170aSBharat Kumar Gogada                       reg-names = "cpm_slcr", "cfg";
101e22fadb1SBharat Kumar Gogada                       pcie_intc_0: interrupt-controller {
102e22fadb1SBharat Kumar Gogada                               #address-cells = <0>;
103e22fadb1SBharat Kumar Gogada                               #interrupt-cells = <1>;
104e22fadb1SBharat Kumar Gogada                               interrupt-controller;
105e22fadb1SBharat Kumar Gogada                       };
106e22fadb1SBharat Kumar Gogada               };
10749f40703SBharat Kumar Gogada
10849f40703SBharat Kumar Gogada               cpm5_pcie: pcie@fcdd0000 {
10949f40703SBharat Kumar Gogada                       compatible = "xlnx,versal-cpm5-host";
11049f40703SBharat Kumar Gogada                       device_type = "pci";
11149f40703SBharat Kumar Gogada                       #address-cells = <3>;
11249f40703SBharat Kumar Gogada                       #interrupt-cells = <1>;
11349f40703SBharat Kumar Gogada                       #size-cells = <2>;
11449f40703SBharat Kumar Gogada                       interrupts = <0 72 4>;
11549f40703SBharat Kumar Gogada                       interrupt-parent = <&gic>;
11649f40703SBharat Kumar Gogada                       interrupt-map-mask = <0 0 0 7>;
11749f40703SBharat Kumar Gogada                       interrupt-map = <0 0 0 1 &pcie_intc_1 0>,
11849f40703SBharat Kumar Gogada                                       <0 0 0 2 &pcie_intc_1 1>,
11949f40703SBharat Kumar Gogada                                       <0 0 0 3 &pcie_intc_1 2>,
12049f40703SBharat Kumar Gogada                                       <0 0 0 4 &pcie_intc_1 3>;
12149f40703SBharat Kumar Gogada                       bus-range = <0x00 0xff>;
12249f40703SBharat Kumar Gogada                       ranges = <0x02000000 0x0 0xe0000000 0x0 0xe0000000 0x0 0x10000000>,
12349f40703SBharat Kumar Gogada                                <0x43000000 0x80 0x00000000 0x80 0x00000000 0x0 0x80000000>;
12449f40703SBharat Kumar Gogada                       msi-map = <0x0 &its_gic 0x0 0x10000>;
12549f40703SBharat Kumar Gogada                       reg = <0x00 0xfcdd0000 0x00 0x1000>,
12649f40703SBharat Kumar Gogada                             <0x06 0x00000000 0x00 0x1000000>,
12749f40703SBharat Kumar Gogada                             <0x00 0xfce20000 0x00 0x1000000>;
12849f40703SBharat Kumar Gogada                       reg-names = "cpm_slcr", "cfg", "cpm_csr";
12949f40703SBharat Kumar Gogada
13049f40703SBharat Kumar Gogada                       pcie_intc_1: interrupt-controller {
13149f40703SBharat Kumar Gogada                               #address-cells = <0>;
13249f40703SBharat Kumar Gogada                               #interrupt-cells = <1>;
13349f40703SBharat Kumar Gogada                               interrupt-controller;
13449f40703SBharat Kumar Gogada                       };
13549f40703SBharat Kumar Gogada               };
13649f40703SBharat Kumar Gogada
137e22fadb1SBharat Kumar Gogada    };
138