xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/pci/xilinx-pcie.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Xilinx AXI PCIe Root Port Bridge DT description
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- #address-cells: Address representation for root ports, set to <3>
5*4882a593Smuzhiyun- #size-cells: Size representation for root ports, set to <2>
6*4882a593Smuzhiyun- #interrupt-cells: specifies the number of cells needed to encode an
7*4882a593Smuzhiyun	interrupt source. The value must be 1.
8*4882a593Smuzhiyun- compatible: Should contain "xlnx,axi-pcie-host-1.00.a"
9*4882a593Smuzhiyun- reg: Should contain AXI PCIe registers location and length
10*4882a593Smuzhiyun- device_type: must be "pci"
11*4882a593Smuzhiyun- interrupts: Should contain AXI PCIe interrupt
12*4882a593Smuzhiyun- interrupt-map-mask,
13*4882a593Smuzhiyun  interrupt-map: standard PCI properties to define the mapping of the
14*4882a593Smuzhiyun	PCI interface to interrupt numbers.
15*4882a593Smuzhiyun- ranges: ranges for the PCI memory regions (I/O space region is not
16*4882a593Smuzhiyun	supported by hardware)
17*4882a593Smuzhiyun	Please refer to the standard PCI bus binding document for a more
18*4882a593Smuzhiyun	detailed explanation
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunOptional properties for Zynq/Microblaze:
21*4882a593Smuzhiyun- bus-range: PCI bus numbers covered
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunInterrupt controller child node
24*4882a593Smuzhiyun+++++++++++++++++++++++++++++++
25*4882a593SmuzhiyunRequired properties:
26*4882a593Smuzhiyun- interrupt-controller: identifies the node as an interrupt controller
27*4882a593Smuzhiyun- #address-cells: specifies the number of cells needed to encode an
28*4882a593Smuzhiyun	address. The value must be 0.
29*4882a593Smuzhiyun- #interrupt-cells: specifies the number of cells needed to encode an
30*4882a593Smuzhiyun	interrupt source. The value must be 1.
31*4882a593Smuzhiyun
32*4882a593SmuzhiyunNOTE:
33*4882a593SmuzhiyunThe core provides a single interrupt for both INTx/MSI messages. So,
34*4882a593Smuzhiyuncreated a interrupt controller node to support 'interrupt-map' DT
35*4882a593Smuzhiyunfunctionality.  The driver will create an IRQ domain for this map, decode
36*4882a593Smuzhiyunthe four INTx interrupts in ISR and route them to this domain.
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun
39*4882a593SmuzhiyunExample:
40*4882a593Smuzhiyun++++++++
41*4882a593SmuzhiyunZynq:
42*4882a593Smuzhiyun	pci_express: axi-pcie@50000000 {
43*4882a593Smuzhiyun		#address-cells = <3>;
44*4882a593Smuzhiyun		#size-cells = <2>;
45*4882a593Smuzhiyun		#interrupt-cells = <1>;
46*4882a593Smuzhiyun		compatible = "xlnx,axi-pcie-host-1.00.a";
47*4882a593Smuzhiyun		reg = < 0x50000000 0x1000000 >;
48*4882a593Smuzhiyun		device_type = "pci";
49*4882a593Smuzhiyun		interrupts = < 0 52 4 >;
50*4882a593Smuzhiyun		interrupt-map-mask = <0 0 0 7>;
51*4882a593Smuzhiyun		interrupt-map = <0 0 0 1 &pcie_intc 1>,
52*4882a593Smuzhiyun				<0 0 0 2 &pcie_intc 2>,
53*4882a593Smuzhiyun				<0 0 0 3 &pcie_intc 3>,
54*4882a593Smuzhiyun				<0 0 0 4 &pcie_intc 4>;
55*4882a593Smuzhiyun		ranges = < 0x02000000 0 0x60000000 0x60000000 0 0x10000000 >;
56*4882a593Smuzhiyun
57*4882a593Smuzhiyun		pcie_intc: interrupt-controller {
58*4882a593Smuzhiyun			interrupt-controller;
59*4882a593Smuzhiyun			#address-cells = <0>;
60*4882a593Smuzhiyun			#interrupt-cells = <1>;
61*4882a593Smuzhiyun		};
62*4882a593Smuzhiyun	};
63*4882a593Smuzhiyun
64*4882a593Smuzhiyun
65*4882a593SmuzhiyunMicroblaze:
66*4882a593Smuzhiyun	pci_express: axi-pcie@10000000 {
67*4882a593Smuzhiyun		#address-cells = <3>;
68*4882a593Smuzhiyun		#size-cells = <2>;
69*4882a593Smuzhiyun		#interrupt-cells = <1>;
70*4882a593Smuzhiyun		compatible = "xlnx,axi-pcie-host-1.00.a";
71*4882a593Smuzhiyun		reg = <0x10000000 0x4000000>;
72*4882a593Smuzhiyun		device_type = "pci";
73*4882a593Smuzhiyun		interrupt-parent = <&microblaze_0_intc>;
74*4882a593Smuzhiyun		interrupts = <1 2>;
75*4882a593Smuzhiyun		interrupt-map-mask = <0 0 0 7>;
76*4882a593Smuzhiyun		interrupt-map = <0 0 0 1 &pcie_intc 1>,
77*4882a593Smuzhiyun				<0 0 0 2 &pcie_intc 2>,
78*4882a593Smuzhiyun				<0 0 0 3 &pcie_intc 3>,
79*4882a593Smuzhiyun				<0 0 0 4 &pcie_intc 4>;
80*4882a593Smuzhiyun		ranges = <0x02000000 0x00000000 0x80000000 0x80000000 0x00000000 0x10000000>;
81*4882a593Smuzhiyun
82*4882a593Smuzhiyun		pcie_intc: interrupt-controller {
83*4882a593Smuzhiyun			interrupt-controller;
84*4882a593Smuzhiyun			#address-cells = <0>;
85*4882a593Smuzhiyun			#interrupt-cells = <1>;
86*4882a593Smuzhiyun		};
87*4882a593Smuzhiyun
88*4882a593Smuzhiyun	};
89