xref: /freebsd/sys/contrib/device-tree/Bindings/pci/axis,artpec6-pcie.txt (revision 354d7675fe12ace9cde344cb79c7ded792802f88)
1c66ec88fSEmmanuel Vadot* Axis ARTPEC-6 PCIe interface
2c66ec88fSEmmanuel Vadot
3c66ec88fSEmmanuel VadotThis PCIe host controller is based on the Synopsys DesignWare PCIe IP
4*354d7675SEmmanuel Vadotand thus inherits all the common properties defined in snps,dw-pcie.yaml.
5c66ec88fSEmmanuel Vadot
6c66ec88fSEmmanuel VadotRequired properties:
7c66ec88fSEmmanuel Vadot- compatible: "axis,artpec6-pcie", "snps,dw-pcie" for ARTPEC-6 in RC mode;
8c66ec88fSEmmanuel Vadot	      "axis,artpec6-pcie-ep", "snps,dw-pcie" for ARTPEC-6 in EP mode;
9c66ec88fSEmmanuel Vadot	      "axis,artpec7-pcie", "snps,dw-pcie" for ARTPEC-7 in RC mode;
10c66ec88fSEmmanuel Vadot	      "axis,artpec7-pcie-ep", "snps,dw-pcie" for ARTPEC-7 in EP mode;
11c66ec88fSEmmanuel Vadot- reg: base addresses and lengths of the PCIe controller (DBI),
12c66ec88fSEmmanuel Vadot	the PHY controller, and configuration address space.
13c66ec88fSEmmanuel Vadot- reg-names: Must include the following entries:
14c66ec88fSEmmanuel Vadot	- "dbi"
15c66ec88fSEmmanuel Vadot	- "phy"
16c66ec88fSEmmanuel Vadot	- "config"
17c66ec88fSEmmanuel Vadot- interrupts: A list of interrupt outputs of the controller. Must contain an
18c66ec88fSEmmanuel Vadot  entry for each entry in the interrupt-names property.
19c66ec88fSEmmanuel Vadot- interrupt-names: Must include the following entries:
20c66ec88fSEmmanuel Vadot	- "msi": The interrupt that is asserted when an MSI is received
21c66ec88fSEmmanuel Vadot- axis,syscon-pcie: A phandle pointing to the ARTPEC-6 system controller,
22c66ec88fSEmmanuel Vadot	used to enable and control the Synopsys IP.
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel VadotExample:
25c66ec88fSEmmanuel Vadot
26c66ec88fSEmmanuel Vadot	pcie@f8050000 {
27c66ec88fSEmmanuel Vadot		compatible = "axis,artpec6-pcie", "snps,dw-pcie";
28c66ec88fSEmmanuel Vadot		reg = <0xf8050000 0x2000
29c66ec88fSEmmanuel Vadot		       0xf8040000 0x1000
30c66ec88fSEmmanuel Vadot		       0xc0000000 0x2000>;
31c66ec88fSEmmanuel Vadot		reg-names = "dbi", "phy", "config";
32c66ec88fSEmmanuel Vadot		#address-cells = <3>;
33c66ec88fSEmmanuel Vadot		#size-cells = <2>;
34c66ec88fSEmmanuel Vadot		device_type = "pci";
35c66ec88fSEmmanuel Vadot			  /* downstream I/O */
36c66ec88fSEmmanuel Vadot		ranges = <0x81000000 0 0 0xc0002000 0 0x00010000
37c66ec88fSEmmanuel Vadot			  /* non-prefetchable memory */
38c66ec88fSEmmanuel Vadot			  0x82000000 0 0xc0012000 0xc0012000 0 0x1ffee000>;
39c66ec88fSEmmanuel Vadot		num-lanes = <2>;
40c66ec88fSEmmanuel Vadot		bus-range = <0x00 0xff>;
41c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
42c66ec88fSEmmanuel Vadot		interrupt-names = "msi";
43c66ec88fSEmmanuel Vadot		#interrupt-cells = <1>;
44c66ec88fSEmmanuel Vadot		interrupt-map-mask = <0 0 0 0x7>;
45c66ec88fSEmmanuel Vadot		interrupt-map = <0 0 0 1 &intc GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
46c66ec88fSEmmanuel Vadot		                <0 0 0 2 &intc GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
47c66ec88fSEmmanuel Vadot		                <0 0 0 3 &intc GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
48c66ec88fSEmmanuel Vadot		                <0 0 0 4 &intc GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
49c66ec88fSEmmanuel Vadot		axis,syscon-pcie = <&syscon>;
50c66ec88fSEmmanuel Vadot	};
51