blob: 979dc7b6cfe85c5db4de3ff007e18e17d65457b9 [file] [log] [blame]
Niklas Cassel3f3f67c2016-05-09 13:48:27 +02001* Axis ARTPEC-6 PCIe interface
2
3This PCIe host controller is based on the Synopsys DesignWare PCIe IP
4and thus inherits all the common properties defined in designware-pcie.txt.
5
6Required properties:
Niklas Casseldff9cba2017-12-20 00:29:34 +01007- compatible: "axis,artpec6-pcie", "snps,dw-pcie" for ARTPEC-6 in RC mode;
8 "axis,artpec6-pcie-ep", "snps,dw-pcie" for ARTPEC-6 in EP mode;
Niklas Cassel4c3f9e92017-12-20 00:29:38 +01009 "axis,artpec7-pcie", "snps,dw-pcie" for ARTPEC-7 in RC mode;
10 "axis,artpec7-pcie-ep", "snps,dw-pcie" for ARTPEC-7 in EP mode;
Niklas Cassel3f3f67c2016-05-09 13:48:27 +020011- reg: base addresses and lengths of the PCIe controller (DBI),
Bjorn Helgaas96291d52017-09-01 16:35:50 -050012 the PHY controller, and configuration address space.
Niklas Cassel3f3f67c2016-05-09 13:48:27 +020013- reg-names: Must include the following entries:
14 - "dbi"
15 - "phy"
16 - "config"
17- interrupts: A list of interrupt outputs of the controller. Must contain an
18 entry for each entry in the interrupt-names property.
19- interrupt-names: Must include the following entries:
20 - "msi": The interrupt that is asserted when an MSI is received
21- axis,syscon-pcie: A phandle pointing to the ARTPEC-6 system controller,
22 used to enable and control the Synopsys IP.
23
24Example:
25
26 pcie@f8050000 {
27 compatible = "axis,artpec6-pcie", "snps,dw-pcie";
28 reg = <0xf8050000 0x2000
29 0xf8040000 0x1000
Niklas Cassel610e1282016-08-26 00:01:56 +020030 0xc0000000 0x2000>;
Niklas Cassel3f3f67c2016-05-09 13:48:27 +020031 reg-names = "dbi", "phy", "config";
32 #address-cells = <3>;
33 #size-cells = <2>;
34 device_type = "pci";
35 /* downstream I/O */
Niklas Cassel610e1282016-08-26 00:01:56 +020036 ranges = <0x81000000 0 0 0xc0002000 0 0x00010000
Niklas Cassel3f3f67c2016-05-09 13:48:27 +020037 /* non-prefetchable memory */
Niklas Cassel610e1282016-08-26 00:01:56 +020038 0x82000000 0 0xc0012000 0xc0012000 0 0x1ffee000>;
Niklas Cassel3f3f67c2016-05-09 13:48:27 +020039 num-lanes = <2>;
Niklas Cassel610e1282016-08-26 00:01:56 +020040 bus-range = <0x00 0xff>;
Niklas Cassel3f3f67c2016-05-09 13:48:27 +020041 interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
42 interrupt-names = "msi";
43 #interrupt-cells = <1>;
44 interrupt-map-mask = <0 0 0 0x7>;
45 interrupt-map = <0 0 0 1 &intc GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
46 <0 0 0 2 &intc GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
47 <0 0 0 3 &intc GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
48 <0 0 0 4 &intc GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
49 axis,syscon-pcie = <&syscon>;
50 };