xref: /freebsd/sys/contrib/device-tree/Bindings/powerpc/4xx/ppc440spe-adma.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotPPC440SPe DMA/XOR (DMA Controller and XOR Accelerator)
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotDevice nodes needed for operation of the ppc440spe-adma driver
4*c66ec88fSEmmanuel Vadotare specified hereby. These are I2O/DMA, DMA and XOR nodes
5*c66ec88fSEmmanuel Vadotfor DMA engines and Memory Queue Module node. The latter is used
6*c66ec88fSEmmanuel Vadotby ADMA driver for configuration of RAID-6 H/W capabilities of
7*c66ec88fSEmmanuel Vadotthe PPC440SPe. In addition to the nodes and properties described
8*c66ec88fSEmmanuel Vadotbelow, the ranges property of PLB node must specify ranges for
9*c66ec88fSEmmanuel VadotDMA devices.
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel Vadot i) The I2O node
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel Vadot Required properties:
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel Vadot - compatible		: "ibm,i2o-440spe";
16*c66ec88fSEmmanuel Vadot - reg			: <registers mapping>
17*c66ec88fSEmmanuel Vadot - dcr-reg		: <DCR registers range>
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel Vadot Example:
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadot	I2O: i2o@400100000 {
22*c66ec88fSEmmanuel Vadot		compatible = "ibm,i2o-440spe";
23*c66ec88fSEmmanuel Vadot		reg = <0x00000004 0x00100000 0x100>;
24*c66ec88fSEmmanuel Vadot		dcr-reg = <0x060 0x020>;
25*c66ec88fSEmmanuel Vadot	};
26*c66ec88fSEmmanuel Vadot
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel Vadot ii) The DMA node
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel Vadot Required properties:
31*c66ec88fSEmmanuel Vadot
32*c66ec88fSEmmanuel Vadot - compatible		: "ibm,dma-440spe";
33*c66ec88fSEmmanuel Vadot - cell-index		: 1 cell, hardware index of the DMA engine
34*c66ec88fSEmmanuel Vadot			  (typically 0x0 and 0x1 for DMA0 and DMA1)
35*c66ec88fSEmmanuel Vadot - reg			: <registers mapping>
36*c66ec88fSEmmanuel Vadot - dcr-reg		: <DCR registers range>
37*c66ec88fSEmmanuel Vadot - interrupts		: <interrupt mapping for DMA0/1 interrupts sources:
38*c66ec88fSEmmanuel Vadot			   2 sources: DMAx CS FIFO Needs Service IRQ (on UIC0)
39*c66ec88fSEmmanuel Vadot			   and DMA Error IRQ (on UIC1). The latter is common
40*c66ec88fSEmmanuel Vadot			   for both DMA engines>.
41*c66ec88fSEmmanuel Vadot
42*c66ec88fSEmmanuel Vadot Example:
43*c66ec88fSEmmanuel Vadot
44*c66ec88fSEmmanuel Vadot	DMA0: dma0@400100100 {
45*c66ec88fSEmmanuel Vadot		compatible = "ibm,dma-440spe";
46*c66ec88fSEmmanuel Vadot		cell-index = <0>;
47*c66ec88fSEmmanuel Vadot		reg = <0x00000004 0x00100100 0x100>;
48*c66ec88fSEmmanuel Vadot		dcr-reg = <0x060 0x020>;
49*c66ec88fSEmmanuel Vadot		interrupt-parent = <&DMA0>;
50*c66ec88fSEmmanuel Vadot		interrupts = <0 1>;
51*c66ec88fSEmmanuel Vadot		#interrupt-cells = <1>;
52*c66ec88fSEmmanuel Vadot		#address-cells = <0>;
53*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
54*c66ec88fSEmmanuel Vadot		interrupt-map = <
55*c66ec88fSEmmanuel Vadot			0 &UIC0 0x14 4
56*c66ec88fSEmmanuel Vadot			1 &UIC1 0x16 4>;
57*c66ec88fSEmmanuel Vadot	};
58*c66ec88fSEmmanuel Vadot
59*c66ec88fSEmmanuel Vadot
60*c66ec88fSEmmanuel Vadot iii) XOR Accelerator node
61*c66ec88fSEmmanuel Vadot
62*c66ec88fSEmmanuel Vadot Required properties:
63*c66ec88fSEmmanuel Vadot
64*c66ec88fSEmmanuel Vadot - compatible		: "amcc,xor-accelerator";
65*c66ec88fSEmmanuel Vadot - reg			: <registers mapping>
66*c66ec88fSEmmanuel Vadot - interrupts		: <interrupt mapping for XOR interrupt source>
67*c66ec88fSEmmanuel Vadot
68*c66ec88fSEmmanuel Vadot Example:
69*c66ec88fSEmmanuel Vadot
70*c66ec88fSEmmanuel Vadot	xor-accel@400200000 {
71*c66ec88fSEmmanuel Vadot		compatible = "amcc,xor-accelerator";
72*c66ec88fSEmmanuel Vadot		reg = <0x00000004 0x00200000 0x400>;
73*c66ec88fSEmmanuel Vadot		interrupt-parent = <&UIC1>;
74*c66ec88fSEmmanuel Vadot		interrupts = <0x1f 4>;
75*c66ec88fSEmmanuel Vadot	};
76*c66ec88fSEmmanuel Vadot
77*c66ec88fSEmmanuel Vadot
78*c66ec88fSEmmanuel Vadot iv) Memory Queue Module node
79*c66ec88fSEmmanuel Vadot
80*c66ec88fSEmmanuel Vadot Required properties:
81*c66ec88fSEmmanuel Vadot
82*c66ec88fSEmmanuel Vadot - compatible		: "ibm,mq-440spe";
83*c66ec88fSEmmanuel Vadot - dcr-reg		: <DCR registers range>
84*c66ec88fSEmmanuel Vadot
85*c66ec88fSEmmanuel Vadot Example:
86*c66ec88fSEmmanuel Vadot
87*c66ec88fSEmmanuel Vadot	MQ0: mq {
88*c66ec88fSEmmanuel Vadot		compatible = "ibm,mq-440spe";
89*c66ec88fSEmmanuel Vadot		dcr-reg = <0x040 0x020>;
90*c66ec88fSEmmanuel Vadot	};
91*c66ec88fSEmmanuel Vadot
92