]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/512x: add a device tree binding for LocalPlus Bus FIFO
authorAlexander Popov <alex.popov@linux.com>
Sun, 11 Oct 2015 21:08:02 +0000 (00:08 +0300)
committerAnatolij Gustschin <agust@denx.de>
Thu, 22 Oct 2015 13:20:47 +0000 (15:20 +0200)
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>
Documentation/devicetree/bindings/powerpc/fsl/mpc512x_lpbfifo.txt [new file with mode: 0644]
arch/powerpc/boot/dts/mpc5121.dtsi
arch/powerpc/boot/dts/mpc5125twr.dts

diff --git a/Documentation/devicetree/bindings/powerpc/fsl/mpc512x_lpbfifo.txt b/Documentation/devicetree/bindings/powerpc/fsl/mpc512x_lpbfifo.txt
new file mode 100644 (file)
index 0000000..b3b392f
--- /dev/null
@@ -0,0 +1,21 @@
+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";
+       };
+
index 7f9d14f5c4daae8e93f4686849b4357e8fe098d4..a015e450437a548a51baea770cceec39cbef8edb 100644 (file)
@@ -77,7 +77,6 @@
                #address-cells = <2>;
                #size-cells = <1>;
                reg = <0x80000020 0x40>;
                #address-cells = <2>;
                #size-cells = <1>;
                reg = <0x80000020 0x40>;
-               interrupts = <7 0x8>;
                ranges = <0x0 0x0 0xfc000000 0x04000000>;
        };
 
                ranges = <0x0 0x0 0xfc000000 0x04000000>;
        };
 
                /* LocalPlus controller */
                lpc@10000 {
                        compatible = "fsl,mpc5121-lpc";
                /* LocalPlus controller */
                lpc@10000 {
                        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 {
index e4f297471748ecce14a3759a6dd5b77e2e8f3db8..898eb58e49ddcd2bfc93745ccd5d37fa48a133e4 100644 (file)
                        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
                // PSC1 uart0 aka ttyPSC0
                serial@11100 {
                // 5125 PSCs are not 52xx or 5121 PSC compatible
                // PSC1 uart0 aka ttyPSC0
                serial@11100 {
                        clock-names = "ipg";
                };
 
                        clock-names = "ipg";
                };
 
-               dma@14000 {
+               dma0: dma@14000 {
                        compatible = "fsl,mpc5121-dma"; // BSP name: "mpc512x-dma2"
                        reg = <0x14000 0x1800>;
                        interrupts = <65 0x8>;
                        compatible = "fsl,mpc5121-dma"; // BSP name: "mpc512x-dma2"
                        reg = <0x14000 0x1800>;
                        interrupts = <65 0x8>;
+                       #dma-cells = <1>;
                };
        };
 };
                };
        };
 };