xref: /linux/Documentation/devicetree/bindings/pci/v3-v360epc-pci.txt (revision 664b0bae0b87f69bc9deb098f5e0158b9cf18e04)
1f55b2b56SLinus WalleijV3 Semiconductor V360 EPC PCI bridge
2f55b2b56SLinus Walleij
3f55b2b56SLinus WalleijThis bridge is found in the ARM Integrator/AP (Application Platform)
4f55b2b56SLinus Walleij
5*af37bed3SLinus WalleijRequired properties:
6*af37bed3SLinus Walleij- compatible: should be one of:
7*af37bed3SLinus Walleij  "v3,v360epc-pci"
8*af37bed3SLinus Walleij  "arm,integrator-ap-pci", "v3,v360epc-pci"
9*af37bed3SLinus Walleij- reg: should contain two register areas:
10*af37bed3SLinus Walleij  first the base address of the V3 host bridge controller, 64KB
11*af37bed3SLinus Walleij  second the configuration area register space, 16MB
12f55b2b56SLinus Walleij- interrupts: should contain a reference to the V3 error interrupt
13f55b2b56SLinus Walleij  as routed on the system.
14*af37bed3SLinus Walleij- bus-range: see pci.txt
15*af37bed3SLinus Walleij- ranges: this follows the standard PCI bindings in the IEEE Std
16*af37bed3SLinus Walleij  1275-1994 (see pci.txt) with the following restriction:
17*af37bed3SLinus Walleij  - The non-prefetchable and prefetchable memory windows must
18*af37bed3SLinus Walleij    each be exactly 256MB (0x10000000) in size.
19*af37bed3SLinus Walleij  - The prefetchable memory window must be immediately adjacent
20*af37bed3SLinus Walleij    to the non-prefetcable memory window
21*af37bed3SLinus Walleij- dma-ranges: three ranges for the inbound memory region. The ranges must
22*af37bed3SLinus Walleij  be aligned to a 1MB boundary, and may be 1MB, 2MB, 4MB, 8MB, 16MB, 32MB,
23*af37bed3SLinus Walleij  64MB, 128MB, 256MB, 512MB, 1GB or 2GB in size. The memory should be marked
24*af37bed3SLinus Walleij  as pre-fetchable. Two ranges are supported by the hardware.
25*af37bed3SLinus Walleij
26*af37bed3SLinus WalleijIntegrator-specific required properties:
27*af37bed3SLinus Walleij- syscon: should contain a link to the syscon device node, since
28*af37bed3SLinus Walleij  on the Integrator, some registers in the syscon are required to
29*af37bed3SLinus Walleij  operate the V3 host bridge.
30*af37bed3SLinus Walleij
31*af37bed3SLinus WalleijExample:
32*af37bed3SLinus Walleij
33*af37bed3SLinus Walleijpci: pciv3@62000000 {
34*af37bed3SLinus Walleij	compatible = "arm,integrator-ap-pci", "v3,v360epc-pci";
35*af37bed3SLinus Walleij	#interrupt-cells = <1>;
36*af37bed3SLinus Walleij	#size-cells = <2>;
37*af37bed3SLinus Walleij	#address-cells = <3>;
38*af37bed3SLinus Walleij	reg = <0x62000000 0x10000>, <0x61000000 0x01000000>;
39*af37bed3SLinus Walleij	interrupt-parent = <&pic>;
40*af37bed3SLinus Walleij	interrupts = <17>; /* Bus error IRQ */
41*af37bed3SLinus Walleij	clocks = <&pciclk>;
42*af37bed3SLinus Walleij	bus-range = <0x00 0xff>;
43*af37bed3SLinus Walleij	ranges = 0x01000000 0 0x00000000 /* I/O space @00000000 */
44*af37bed3SLinus Walleij		0x60000000 0 0x01000000 /* 16 MiB @ LB 60000000 */
45*af37bed3SLinus Walleij		0x02000000 0 0x40000000 /* non-prefectable memory @40000000 */
46*af37bed3SLinus Walleij		0x40000000 0 0x10000000 /* 256 MiB @ LB 40000000 1:1 */
47*af37bed3SLinus Walleij		0x42000000 0 0x50000000 /* prefetchable memory @50000000 */
48*af37bed3SLinus Walleij		0x50000000 0 0x10000000>; /* 256 MiB @ LB 50000000 1:1 */
49*af37bed3SLinus Walleij	dma-ranges = <0x02000000 0 0x20000000 /* EBI memory space */
50*af37bed3SLinus Walleij		0x20000000 0 0x20000000 /* 512 MB @ LB 20000000 1:1 */
51*af37bed3SLinus Walleij		0x02000000 0 0x80000000 /* Core module alias memory */
52*af37bed3SLinus Walleij		0x80000000 0 0x40000000>; /* 1GB @ LB 80000000 */
53*af37bed3SLinus Walleij	interrupt-map-mask = <0xf800 0 0 0x7>;
54*af37bed3SLinus Walleij	interrupt-map = <
55*af37bed3SLinus Walleij	/* IDSEL 9 */
56*af37bed3SLinus Walleij	0x4800 0 0 1 &pic 13 /* INT A on slot 9 is irq 13 */
57*af37bed3SLinus Walleij	0x4800 0 0 2 &pic 14 /* INT B on slot 9 is irq 14 */
58*af37bed3SLinus Walleij	0x4800 0 0 3 &pic 15 /* INT C on slot 9 is irq 15 */
59*af37bed3SLinus Walleij	0x4800 0 0 4 &pic 16 /* INT D on slot 9 is irq 16 */
60*af37bed3SLinus Walleij	/* IDSEL 10 */
61*af37bed3SLinus Walleij	0x5000 0 0 1 &pic 14 /* INT A on slot 10 is irq 14 */
62*af37bed3SLinus Walleij	0x5000 0 0 2 &pic 15 /* INT B on slot 10 is irq 15 */
63*af37bed3SLinus Walleij	0x5000 0 0 3 &pic 16 /* INT C on slot 10 is irq 16 */
64*af37bed3SLinus Walleij	0x5000 0 0 4 &pic 13 /* INT D on slot 10 is irq 13 */
65*af37bed3SLinus Walleij	/* IDSEL 11 */
66*af37bed3SLinus Walleij	0x5800 0 0 1 &pic 15 /* INT A on slot 11 is irq 15 */
67*af37bed3SLinus Walleij	0x5800 0 0 2 &pic 16 /* INT B on slot 11 is irq 16 */
68*af37bed3SLinus Walleij	0x5800 0 0 3 &pic 13 /* INT C on slot 11 is irq 13 */
69*af37bed3SLinus Walleij	0x5800 0 0 4 &pic 14 /* INT D on slot 11 is irq 14 */
70*af37bed3SLinus Walleij	/* IDSEL 12 */
71*af37bed3SLinus Walleij	0x6000 0 0 1 &pic 16 /* INT A on slot 12 is irq 16 */
72*af37bed3SLinus Walleij	0x6000 0 0 2 &pic 13 /* INT B on slot 12 is irq 13 */
73*af37bed3SLinus Walleij	0x6000 0 0 3 &pic 14 /* INT C on slot 12 is irq 14 */
74*af37bed3SLinus Walleij	0x6000 0 0 4 &pic 15 /* INT D on slot 12 is irq 15 */
75*af37bed3SLinus Walleij	>;
76*af37bed3SLinus Walleij};
77