aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Popov <alex.popov@linux.com>2015-10-11 17:08:02 -0400
committerAnatolij Gustschin <agust@denx.de>2015-10-22 09:20:47 -0400
commitde03fe287bb62e7961ea51d8a1bbae3167852252 (patch)
tree81dc4041edd796fab618d387889562734d8c8924
parent1a4bb93f795502e7e8350d4af1aa5909f15ffc28 (diff)
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: Alexander Popov <alex.popov@linux.com> Signed-off-by: Anatolij Gustschin <agust@denx.de>
-rw-r--r--Documentation/devicetree/bindings/powerpc/fsl/mpc512x_lpbfifo.txt21
-rw-r--r--arch/powerpc/boot/dts/mpc5121.dtsi11
-rw-r--r--arch/powerpc/boot/dts/mpc5125twr.dts11
3 files changed, 40 insertions, 3 deletions
diff --git a/Documentation/devicetree/bindings/powerpc/fsl/mpc512x_lpbfifo.txt b/Documentation/devicetree/bindings/powerpc/fsl/mpc512x_lpbfifo.txt
new file mode 100644
index 000000000000..b3b392fe1f61
--- /dev/null
+++ b/Documentation/devicetree/bindings/powerpc/fsl/mpc512x_lpbfifo.txt
@@ -0,0 +1,21 @@
1Freescale MPC512x LocalPlus Bus FIFO (called SCLPC in the Reference Manual)
2
3Required properties:
4- compatible: should be "fsl,mpc512x-lpbfifo";
5- reg: should contain the offset and length of SCLPC register set;
6- interrupts: should contain the interrupt specifier for SCLPC; syntax of an
7 interrupt client node is described in interrupt-controller/interrupts.txt;
8- dmas: should contain the DMA specifier for SCLPC as described at
9 dma/dma.txt and dma/mpc512x-dma.txt;
10- dma-names: should be "rx-tx";
11
12Example:
13
14 sclpc@10100 {
15 compatible = "fsl,mpc512x-lpbfifo";
16 reg = <0x10100 0x50>;
17 interrupts = <7 0x8>;
18 dmas = <&dma0 26>;
19 dma-names = "rx-tx";
20 };
21
diff --git a/arch/powerpc/boot/dts/mpc5121.dtsi b/arch/powerpc/boot/dts/mpc5121.dtsi
index 7f9d14f5c4da..a015e450437a 100644
--- a/arch/powerpc/boot/dts/mpc5121.dtsi
+++ b/arch/powerpc/boot/dts/mpc5121.dtsi
@@ -77,7 +77,6 @@
77 #address-cells = <2>; 77 #address-cells = <2>;
78 #size-cells = <1>; 78 #size-cells = <1>;
79 reg = <0x80000020 0x40>; 79 reg = <0x80000020 0x40>;
80 interrupts = <7 0x8>;
81 ranges = <0x0 0x0 0xfc000000 0x04000000>; 80 ranges = <0x0 0x0 0xfc000000 0x04000000>;
82 }; 81 };
83 82
@@ -329,7 +328,15 @@
329 /* LocalPlus controller */ 328 /* LocalPlus controller */
330 lpc@10000 { 329 lpc@10000 {
331 compatible = "fsl,mpc5121-lpc"; 330 compatible = "fsl,mpc5121-lpc";
332 reg = <0x10000 0x200>; 331 reg = <0x10000 0x100>;
332 };
333
334 sclpc@10100 {
335 compatible = "fsl,mpc512x-lpbfifo";
336 reg = <0x10100 0x50>;
337 interrupts = <7 0x8>;
338 dmas = <&dma0 26>;
339 dma-names = "rx-tx";
333 }; 340 };
334 341
335 pata@10200 { 342 pata@10200 {
diff --git a/arch/powerpc/boot/dts/mpc5125twr.dts b/arch/powerpc/boot/dts/mpc5125twr.dts
index e4f297471748..898eb58e49dd 100644
--- a/arch/powerpc/boot/dts/mpc5125twr.dts
+++ b/arch/powerpc/boot/dts/mpc5125twr.dts
@@ -246,6 +246,14 @@
246 status = "disabled"; 246 status = "disabled";
247 }; 247 };
248 248
249 sclpc@10100 {
250 compatible = "fsl,mpc512x-lpbfifo";
251 reg = <0x10100 0x50>;
252 interrupts = <7 0x8>;
253 dmas = <&dma0 26>;
254 dma-names = "rx-tx";
255 };
256
249 // 5125 PSCs are not 52xx or 5121 PSC compatible 257 // 5125 PSCs are not 52xx or 5121 PSC compatible
250 // PSC1 uart0 aka ttyPSC0 258 // PSC1 uart0 aka ttyPSC0
251 serial@11100 { 259 serial@11100 {
@@ -279,10 +287,11 @@
279 clock-names = "ipg"; 287 clock-names = "ipg";
280 }; 288 };
281 289
282 dma@14000 { 290 dma0: dma@14000 {
283 compatible = "fsl,mpc5121-dma"; // BSP name: "mpc512x-dma2" 291 compatible = "fsl,mpc5121-dma"; // BSP name: "mpc512x-dma2"
284 reg = <0x14000 0x1800>; 292 reg = <0x14000 0x1800>;
285 interrupts = <65 0x8>; 293 interrupts = <65 0x8>;
294 #dma-cells = <1>;
286 }; 295 };
287 }; 296 };
288}; 297};