2015-10-23 18:27:12 +08:00
|
|
|
* Altera PCIe controller
|
|
|
|
|
|
|
|
Required properties:
|
2019-02-28 18:52:52 +08:00
|
|
|
- compatible : should contain "altr,pcie-root-port-1.0" or "altr,pcie-root-port-2.0"
|
2015-10-23 18:27:12 +08:00
|
|
|
- reg: a list of physical base address and length for TXS and CRA.
|
2019-02-28 18:52:52 +08:00
|
|
|
For "altr,pcie-root-port-2.0", additional HIP base address and length.
|
2015-10-23 18:27:12 +08:00
|
|
|
- reg-names: must include the following entries:
|
|
|
|
"Txs": TX slave port region
|
|
|
|
"Cra": Control register access region
|
2019-02-28 18:52:52 +08:00
|
|
|
"Hip": Hard IP region (if "altr,pcie-root-port-2.0")
|
2017-09-02 05:35:50 +08:00
|
|
|
- interrupts: specifies the interrupt source of the parent interrupt
|
|
|
|
controller. The format of the interrupt specifier depends
|
|
|
|
on the parent interrupt controller.
|
2015-10-23 18:27:12 +08:00
|
|
|
- device_type: must be "pci"
|
|
|
|
- #address-cells: set to <3>
|
2017-09-02 05:35:50 +08:00
|
|
|
- #size-cells: set to <2>
|
2015-10-23 18:27:12 +08:00
|
|
|
- #interrupt-cells: set to <1>
|
2017-09-02 05:35:50 +08:00
|
|
|
- ranges: describes the translation of addresses for root ports and
|
|
|
|
standard PCI regions.
|
2015-10-23 18:27:12 +08:00
|
|
|
- interrupt-map-mask and interrupt-map: standard PCI properties to define the
|
|
|
|
mapping of the PCIe interface to interrupt numbers.
|
|
|
|
|
|
|
|
Optional properties:
|
2017-09-02 05:35:50 +08:00
|
|
|
- msi-parent: Link to the hardware entity that serves as the MSI controller
|
|
|
|
for this PCIe controller.
|
2015-10-23 18:27:12 +08:00
|
|
|
- bus-range: PCI bus numbers covered
|
|
|
|
|
|
|
|
Example
|
2017-11-30 04:55:15 +08:00
|
|
|
pcie_0: pcie@c00000000 {
|
2015-10-23 18:27:12 +08:00
|
|
|
compatible = "altr,pcie-root-port-1.0";
|
|
|
|
reg = <0xc0000000 0x20000000>,
|
|
|
|
<0xff220000 0x00004000>;
|
|
|
|
reg-names = "Txs", "Cra";
|
|
|
|
interrupt-parent = <&hps_0_arm_gic_0>;
|
|
|
|
interrupts = <0 40 4>;
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <1>;
|
|
|
|
bus-range = <0x0 0xFF>;
|
|
|
|
device_type = "pci";
|
|
|
|
msi-parent = <&msi_to_gic_gen_0>;
|
|
|
|
#address-cells = <3>;
|
|
|
|
#size-cells = <2>;
|
|
|
|
interrupt-map-mask = <0 0 0 7>;
|
|
|
|
interrupt-map = <0 0 0 1 &pcie_0 1>,
|
|
|
|
<0 0 0 2 &pcie_0 2>,
|
|
|
|
<0 0 0 3 &pcie_0 3>,
|
|
|
|
<0 0 0 4 &pcie_0 4>;
|
|
|
|
ranges = <0x82000000 0x00000000 0x00000000 0xc0000000 0x00000000 0x10000000
|
2017-09-02 05:35:50 +08:00
|
|
|
0x82000000 0x00000000 0x10000000 0xd0000000 0x00000000 0x10000000>;
|
2015-10-23 18:27:12 +08:00
|
|
|
};
|