Commit de03fe28 authored by Alexander Popov's avatar Alexander Popov Committed by Anatolij Gustschin

powerpc/512x: add a device tree binding for LocalPlus Bus FIFO

Add a device tree binding for Freescale MPC512x LocalPlus Bus FIFO and
introduce the document describing that binding.
Signed-off-by: default avatarAlexander Popov <alex.popov@linux.com>
Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
parent 1a4bb93f
Freescale MPC512x LocalPlus Bus FIFO (called SCLPC in the Reference Manual)
Required properties:
- compatible: should be "fsl,mpc512x-lpbfifo";
- reg: should contain the offset and length of SCLPC register set;
- interrupts: should contain the interrupt specifier for SCLPC; syntax of an
interrupt client node is described in interrupt-controller/interrupts.txt;
- dmas: should contain the DMA specifier for SCLPC as described at
dma/dma.txt and dma/mpc512x-dma.txt;
- dma-names: should be "rx-tx";
Example:
sclpc@10100 {
compatible = "fsl,mpc512x-lpbfifo";
reg = <0x10100 0x50>;
interrupts = <7 0x8>;
dmas = <&dma0 26>;
dma-names = "rx-tx";
};
...@@ -77,7 +77,6 @@ localbus@80000020 { ...@@ -77,7 +77,6 @@ localbus@80000020 {
#address-cells = <2>; #address-cells = <2>;
#size-cells = <1>; #size-cells = <1>;
reg = <0x80000020 0x40>; reg = <0x80000020 0x40>;
interrupts = <7 0x8>;
ranges = <0x0 0x0 0xfc000000 0x04000000>; ranges = <0x0 0x0 0xfc000000 0x04000000>;
}; };
...@@ -329,7 +328,15 @@ ioctl@a000 { ...@@ -329,7 +328,15 @@ ioctl@a000 {
/* LocalPlus controller */ /* LocalPlus controller */
lpc@10000 { lpc@10000 {
compatible = "fsl,mpc5121-lpc"; compatible = "fsl,mpc5121-lpc";
reg = <0x10000 0x200>; reg = <0x10000 0x100>;
};
sclpc@10100 {
compatible = "fsl,mpc512x-lpbfifo";
reg = <0x10100 0x50>;
interrupts = <7 0x8>;
dmas = <&dma0 26>;
dma-names = "rx-tx";
}; };
pata@10200 { pata@10200 {
......
...@@ -246,6 +246,14 @@ usb@3000 { ...@@ -246,6 +246,14 @@ usb@3000 {
status = "disabled"; status = "disabled";
}; };
sclpc@10100 {
compatible = "fsl,mpc512x-lpbfifo";
reg = <0x10100 0x50>;
interrupts = <7 0x8>;
dmas = <&dma0 26>;
dma-names = "rx-tx";
};
// 5125 PSCs are not 52xx or 5121 PSC compatible // 5125 PSCs are not 52xx or 5121 PSC compatible
// PSC1 uart0 aka ttyPSC0 // PSC1 uart0 aka ttyPSC0
serial@11100 { serial@11100 {
...@@ -279,10 +287,11 @@ pscfifo@11f00 { ...@@ -279,10 +287,11 @@ pscfifo@11f00 {
clock-names = "ipg"; clock-names = "ipg";
}; };
dma@14000 { dma0: dma@14000 {
compatible = "fsl,mpc5121-dma"; // BSP name: "mpc512x-dma2" compatible = "fsl,mpc5121-dma"; // BSP name: "mpc512x-dma2"
reg = <0x14000 0x1800>; reg = <0x14000 0x1800>;
interrupts = <65 0x8>; interrupts = <65 0x8>;
#dma-cells = <1>;
}; };
}; };
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment