devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Mistake in p2020rdb.dts?
@ 2011-04-19  7:12 jobhunts02-YDxpq3io04c
       [not found] ` <D1C1C6B1-BA4D-401E-BC13-2681A024825A-YDxpq3io04c@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: jobhunts02-YDxpq3io04c @ 2011-04-19  7:12 UTC (permalink / raw)
  To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ


[-- Attachment #1.1: Type: text/plain, Size: 3988 bytes --]

I am running Linux 2.6.32 on a P2020 and am trying to use the kernel’s DMA code. So far, I have had no success.  Is there a mistake in linux/arch/powerc/boot/dts/p2020rdb.dts?
 
According to linux/Documentation/powerpc/dts-bindings/fsl/dma.txt, the compatible lists for DMA controllers and the DMA channel nodes should have “2 entries, first is ‘fsl,CHIP-dma’, where CHIP is the processor (mpc8349, mpc8360, etc.) and the second is ‘fsl,elo-dma.’”  In p2020rdb.dts, the compatible lists for the DMA controller and the DMA channel nodes are "fsl,eloplus-dma" and "fsl,eloplus-dma-channel," respectively.  Note that each has only one entry.
 
Should compatible = “fsl,P2020RDB-dma”, "fsl,eloplus-dma"  for the DMA controllers?, and
Should compatible = “fsl,P2020RDB-dma”, " fsl,eloplus-dma-channel"  for the DMA channel nodes?
 
The device tree source for DMA in p2020rdb.dts is:
 
            dma@c300 {
                  #address-cells = <1>;
                  #size-cells = <1>;
                  compatible = "fsl,eloplus-dma";
                  reg = <0xc300 0x4>;
                  ranges = <0x0 0xc100 0x200>;
                  cell-index = <1>;
                  dma-channel@0 {
                        compatible = "fsl,eloplus-dma-channel";
                        reg = <0x0 0x80>;
                        cell-index = <0>;
                        interrupt-parent = <&mpic>;
                        interrupts = <76 2>;
                  };
                  dma-channel@80 {
                        compatible = "fsl,eloplus-dma-channel";
                        reg = <0x80 0x80>;
                        cell-index = <1>;
                        interrupt-parent = <&mpic>;
                        interrupts = <77 2>;
                  };
                  dma-channel@100 {
                        compatible = "fsl,eloplus-dma-channel";
                        reg = <0x100 0x80>;
                        cell-index = <2>;
                        interrupt-parent = <&mpic>;
                        interrupts = <78 2>;
                  };
                  dma-channel@180 {
                        compatible = "fsl,eloplus-dma-channel";
                        reg = <0x180 0x80>;
                        cell-index = <3>;
                        interrupt-parent = <&mpic>;
                        interrupts = <79 2>;
                  };
            };
 
 
            dma@21300 {
                  #address-cells = <1>;
                  #size-cells = <1>;
                  compatible = "fsl,eloplus-dma";
                  reg = <0x21300 0x4>;
                  ranges = <0x0 0x21100 0x200>;
                  cell-index = <0>;
                  dma-channel@0 {
                        compatible = "fsl,eloplus-dma-channel";
                        reg = <0x0 0x80>;
                        cell-index = <0>;
                        interrupt-parent = <&mpic>;
                        interrupts = <20 2>;
                  };
                  dma-channel@80 {
                        compatible = "fsl,eloplus-dma-channel";
                        reg = <0x80 0x80>;
                        cell-index = <1>;
                        interrupt-parent = <&mpic>;
                        interrupts = <21 2>;
                  };
                  dma-channel@100 {
                        compatible = "fsl,eloplus-dma-channel";
                        reg = <0x100 0x80>;
                        cell-index = <2>;
                        interrupt-parent = <&mpic>;
                        interrupts = <22 2>;
                  };
                  dma-channel@180 {
                        compatible = "fsl,eloplus-dma-channel";
                        reg = <0x180 0x80>;
                        cell-index = <3>;
                        interrupt-parent = <&mpic>;
                        interrupts = <23 2>;
                  };
            };
 
 

[-- Attachment #1.2: Type: text/html, Size: 26524 bytes --]

[-- Attachment #2: Type: text/plain, Size: 192 bytes --]

_______________________________________________
devicetree-discuss mailing list
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
https://lists.ozlabs.org/listinfo/devicetree-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Mistake in p2020rdb.dts?
       [not found] ` <D1C1C6B1-BA4D-401E-BC13-2681A024825A-YDxpq3io04c@public.gmane.org>
@ 2011-04-19 16:04   ` Scott Wood
  0 siblings, 0 replies; 2+ messages in thread
From: Scott Wood @ 2011-04-19 16:04 UTC (permalink / raw)
  To: jobhunts02-YDxpq3io04c; +Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ

On Tue, 19 Apr 2011 00:12:59 -0700
<jobhunts02@aol.com> wrote:

> I am running Linux 2.6.32 on a P2020 and am trying to use the kernel’s DMA code. So far, I have had no success.  Is there a mistake in linux/arch/powerc/boot/dts/p2020rdb.dts?
>  
> According to linux/Documentation/powerpc/dts-bindings/fsl/dma.txt, the compatible lists for DMA controllers and the DMA channel nodes should have “2 entries, first is ‘fsl,CHIP-dma’, where CHIP is the processor (mpc8349, mpc8360, etc.) and the second is ‘fsl,elo-dma.’”  In p2020rdb.dts, the compatible lists for the DMA controller and the DMA channel nodes are "fsl,eloplus-dma" and "fsl,eloplus-dma-channel," respectively.  Note that each has only one entry.
>  
> Should compatible = “fsl,P2020RDB-dma”, "fsl,eloplus-dma"  for the DMA controllers?, and
> Should compatible = “fsl,P2020RDB-dma”, " fsl,eloplus-dma-channel"  for the DMA channel nodes?

P2020RDB is not a chip, it's a board.  Plus, we usually use lowercase for
this.

compatible should be "fsl,p2020-dma", "fsl,eloplus-dma", and likewise for
the channels.

-Scott

_______________________________________________
devicetree-discuss mailing list
devicetree-discuss@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/devicetree-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-19 16:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-19  7:12 Mistake in p2020rdb.dts? jobhunts02-YDxpq3io04c
     [not found] ` <D1C1C6B1-BA4D-401E-BC13-2681A024825A-YDxpq3io04c@public.gmane.org>
2011-04-19 16:04   ` Scott Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).