# PPC440SPe DMA/XOR (DMA Controller and XOR Accelerator)

_Peios Kernel / Hardware and drivers / Device tree / bindings/powerpc/4xx_

> Device-tree binding reference for PPC440SPe DMA/XOR (DMA Controller and XOR Accelerator).

Device nodes needed for operation of the ppc440spe-adma driver
are specified hereby. These are I2O/DMA, DMA and XOR nodes
for DMA engines and Memory Queue Module node. The latter is used
by ADMA driver for configuration of RAID-6 H/W capabilities of
the PPC440SPe. In addition to the nodes and properties described
below, the ranges property of PLB node must specify ranges for
DMA devices.

```text
 i) The I2O node
```

## Required properties:

- compatible		: "ibm,i2o-440spe";
- reg			: &lt;registers mapping&gt;
- dcr-reg		: &lt;DCR registers range&gt;

## Example:

```dts
	I2O: i2o@400100000 {
		compatible = "ibm,i2o-440spe";
		reg = <0x00000004 0x00100000 0x100>;
		dcr-reg = <0x060 0x020>;
	};
```

```text
 ii) The DMA node
```

## Required properties:

- compatible		: "ibm,dma-440spe";
- cell-index		: 1 cell, hardware index of the DMA engine
  (typically 0x0 and 0x1 for DMA0 and DMA1)
- reg			: &lt;registers mapping&gt;
- dcr-reg		: &lt;DCR registers range&gt;
- interrupts		: &lt;interrupt mapping for DMA0/1 interrupts sources:
  2 sources: DMAx CS FIFO Needs Service IRQ (on UIC0)
  and DMA Error IRQ (on UIC1). The latter is common
  for both DMA engines&gt;.

## Example:

```dts
	DMA0: dma0@400100100 {
		compatible = "ibm,dma-440spe";
		cell-index = <0>;
		reg = <0x00000004 0x00100100 0x100>;
		dcr-reg = <0x060 0x020>;
		interrupt-parent = <&DMA0>;
		interrupts = <0 1>;
		#interrupt-cells = <1>;
		#address-cells = <0>;
		#size-cells = <0>;
		interrupt-map = <
			0 &UIC0 0x14 4
			1 &UIC1 0x16 4>;
	};
```

```text
 iii) XOR Accelerator node
```

## Required properties:

- compatible		: "amcc,xor-accelerator";
- reg			: &lt;registers mapping&gt;
- interrupts		: &lt;interrupt mapping for XOR interrupt source&gt;

## Example:

```dts
	xor-accel@400200000 {
		compatible = "amcc,xor-accelerator";
		reg = <0x00000004 0x00200000 0x400>;
		interrupt-parent = <&UIC1>;
		interrupts = <0x1f 4>;
	};
```

```text
 iv) Memory Queue Module node
```

## Required properties:

- compatible		: "ibm,mq-440spe";
- dcr-reg		: &lt;DCR registers range&gt;

## Example:

```dts
	MQ0: mq {
		compatible = "ibm,mq-440spe";
		dcr-reg = <0x040 0x020>;
	};
```
