Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alexander Popov and committed by
Anatolij Gustschin
de03fe28 1a4bb93f

+40 -3
+21
Documentation/devicetree/bindings/powerpc/fsl/mpc512x_lpbfifo.txt
··· 1 + Freescale MPC512x LocalPlus Bus FIFO (called SCLPC in the Reference Manual) 2 + 3 + Required 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 + 12 + Example: 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 +
+9 -2
arch/powerpc/boot/dts/mpc5121.dtsi
··· 77 77 #address-cells = <2>; 78 78 #size-cells = <1>; 79 79 reg = <0x80000020 0x40>; 80 - interrupts = <7 0x8>; 81 80 ranges = <0x0 0x0 0xfc000000 0x04000000>; 82 81 }; 83 82 ··· 328 329 /* LocalPlus controller */ 329 330 lpc@10000 { 330 331 compatible = "fsl,mpc5121-lpc"; 331 - reg = <0x10000 0x200>; 332 + reg = <0x10000 0x100>; 333 + }; 334 + 335 + sclpc@10100 { 336 + compatible = "fsl,mpc512x-lpbfifo"; 337 + reg = <0x10100 0x50>; 338 + interrupts = <7 0x8>; 339 + dmas = <&dma0 26>; 340 + dma-names = "rx-tx"; 332 341 }; 333 342 334 343 pata@10200 {
+10 -1
arch/powerpc/boot/dts/mpc5125twr.dts
··· 246 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 257 // 5125 PSCs are not 52xx or 5121 PSC compatible 250 258 // PSC1 uart0 aka ttyPSC0 251 259 serial@11100 { ··· 287 279 clock-names = "ipg"; 288 280 }; 289 281 290 - dma@14000 { 282 + dma0: dma@14000 { 291 283 compatible = "fsl,mpc5121-dma"; // BSP name: "mpc512x-dma2" 292 284 reg = <0x14000 0x1800>; 293 285 interrupts = <65 0x8>; 286 + #dma-cells = <1>; 294 287 }; 295 288 }; 296 289 };