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: 10*d5c421d2SMichal Simek - Bharat Kumar Gogada <bharat.kumar.gogada@amd.com> 11e22fadb1SBharat Kumar Gogada 12e22fadb1SBharat Kumar GogadaallOf: 13e22fadb1SBharat Kumar Gogada - $ref: /schemas/pci/pci-bus.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 51e22fadb1SBharat Kumar Gogada properties: 52e22fadb1SBharat Kumar Gogada "#address-cells": 53e22fadb1SBharat Kumar Gogada const: 0 54e22fadb1SBharat Kumar Gogada "#interrupt-cells": 55e22fadb1SBharat Kumar Gogada const: 1 56e22fadb1SBharat Kumar Gogada "interrupt-controller": true 57e22fadb1SBharat Kumar Gogada additionalProperties: false 58e22fadb1SBharat Kumar Gogada 59e22fadb1SBharat Kumar Gogadarequired: 60e22fadb1SBharat Kumar Gogada - reg 61e22fadb1SBharat Kumar Gogada - reg-names 62e22fadb1SBharat Kumar Gogada - "#interrupt-cells" 63e22fadb1SBharat Kumar Gogada - interrupts 64e22fadb1SBharat Kumar Gogada - interrupt-map 65e22fadb1SBharat Kumar Gogada - interrupt-map-mask 66e22fadb1SBharat Kumar Gogada - bus-range 67e22fadb1SBharat Kumar Gogada - msi-map 68e22fadb1SBharat Kumar Gogada - interrupt-controller 69e22fadb1SBharat Kumar Gogada 70e22fadb1SBharat Kumar GogadaunevaluatedProperties: false 71e22fadb1SBharat Kumar Gogada 72e22fadb1SBharat Kumar Gogadaexamples: 73e22fadb1SBharat Kumar Gogada - | 74e22fadb1SBharat Kumar Gogada 75e22fadb1SBharat Kumar Gogada versal { 76e22fadb1SBharat Kumar Gogada #address-cells = <2>; 77e22fadb1SBharat Kumar Gogada #size-cells = <2>; 78e22fadb1SBharat Kumar Gogada cpm_pcie: pcie@fca10000 { 79e22fadb1SBharat Kumar Gogada compatible = "xlnx,versal-cpm-host-1.00"; 80e22fadb1SBharat Kumar Gogada device_type = "pci"; 81e22fadb1SBharat Kumar Gogada #address-cells = <3>; 82e22fadb1SBharat Kumar Gogada #interrupt-cells = <1>; 83e22fadb1SBharat Kumar Gogada #size-cells = <2>; 84e22fadb1SBharat Kumar Gogada interrupts = <0 72 4>; 85e22fadb1SBharat Kumar Gogada interrupt-parent = <&gic>; 86e22fadb1SBharat Kumar Gogada interrupt-map-mask = <0 0 0 7>; 87e22fadb1SBharat Kumar Gogada interrupt-map = <0 0 0 1 &pcie_intc_0 0>, 88e22fadb1SBharat Kumar Gogada <0 0 0 2 &pcie_intc_0 1>, 89e22fadb1SBharat Kumar Gogada <0 0 0 3 &pcie_intc_0 2>, 90e22fadb1SBharat Kumar Gogada <0 0 0 4 &pcie_intc_0 3>; 91e22fadb1SBharat Kumar Gogada bus-range = <0x00 0xff>; 92e22fadb1SBharat Kumar Gogada ranges = <0x02000000 0x0 0xe0000000 0x0 0xe0000000 0x0 0x10000000>, 93e22fadb1SBharat Kumar Gogada <0x43000000 0x80 0x00000000 0x80 0x00000000 0x0 0x80000000>; 94e22fadb1SBharat Kumar Gogada msi-map = <0x0 &its_gic 0x0 0x10000>; 95e2c6170aSBharat Kumar Gogada reg = <0x0 0xfca10000 0x0 0x1000>, 96e2c6170aSBharat Kumar Gogada <0x6 0x00000000 0x0 0x10000000>; 97e2c6170aSBharat Kumar Gogada reg-names = "cpm_slcr", "cfg"; 98e22fadb1SBharat Kumar Gogada pcie_intc_0: interrupt-controller { 99e22fadb1SBharat Kumar Gogada #address-cells = <0>; 100e22fadb1SBharat Kumar Gogada #interrupt-cells = <1>; 101e22fadb1SBharat Kumar Gogada interrupt-controller; 102e22fadb1SBharat Kumar Gogada }; 103e22fadb1SBharat Kumar Gogada }; 10449f40703SBharat Kumar Gogada 10549f40703SBharat Kumar Gogada cpm5_pcie: pcie@fcdd0000 { 10649f40703SBharat Kumar Gogada compatible = "xlnx,versal-cpm5-host"; 10749f40703SBharat Kumar Gogada device_type = "pci"; 10849f40703SBharat Kumar Gogada #address-cells = <3>; 10949f40703SBharat Kumar Gogada #interrupt-cells = <1>; 11049f40703SBharat Kumar Gogada #size-cells = <2>; 11149f40703SBharat Kumar Gogada interrupts = <0 72 4>; 11249f40703SBharat Kumar Gogada interrupt-parent = <&gic>; 11349f40703SBharat Kumar Gogada interrupt-map-mask = <0 0 0 7>; 11449f40703SBharat Kumar Gogada interrupt-map = <0 0 0 1 &pcie_intc_1 0>, 11549f40703SBharat Kumar Gogada <0 0 0 2 &pcie_intc_1 1>, 11649f40703SBharat Kumar Gogada <0 0 0 3 &pcie_intc_1 2>, 11749f40703SBharat Kumar Gogada <0 0 0 4 &pcie_intc_1 3>; 11849f40703SBharat Kumar Gogada bus-range = <0x00 0xff>; 11949f40703SBharat Kumar Gogada ranges = <0x02000000 0x0 0xe0000000 0x0 0xe0000000 0x0 0x10000000>, 12049f40703SBharat Kumar Gogada <0x43000000 0x80 0x00000000 0x80 0x00000000 0x0 0x80000000>; 12149f40703SBharat Kumar Gogada msi-map = <0x0 &its_gic 0x0 0x10000>; 12249f40703SBharat Kumar Gogada reg = <0x00 0xfcdd0000 0x00 0x1000>, 12349f40703SBharat Kumar Gogada <0x06 0x00000000 0x00 0x1000000>, 12449f40703SBharat Kumar Gogada <0x00 0xfce20000 0x00 0x1000000>; 12549f40703SBharat Kumar Gogada reg-names = "cpm_slcr", "cfg", "cpm_csr"; 12649f40703SBharat Kumar Gogada 12749f40703SBharat Kumar Gogada pcie_intc_1: interrupt-controller { 12849f40703SBharat Kumar Gogada #address-cells = <0>; 12949f40703SBharat Kumar Gogada #interrupt-cells = <1>; 13049f40703SBharat Kumar Gogada interrupt-controller; 13149f40703SBharat Kumar Gogada }; 13249f40703SBharat Kumar Gogada }; 13349f40703SBharat Kumar Gogada 134e22fadb1SBharat Kumar Gogada }; 135