Is there a binding for IORESOURCE_DMA population?
Shawn Guo
shawn.guo at freescale.com
Sun Jul 17 17:41:59 EST 2011
On Sat, Jul 16, 2011 at 10:43:31PM +0800, Tabi Timur-B04825 wrote:
> Shawn Guo wrote:
> > ssi at 83fcc000 { /* SSI1 */
> > compatible = "fsl,imx51-ssi", "fsl,imx1-ssi";
> > reg =<0x83fcc000 0x4000>;
> > interrupts =<29>;
> > fsl,dma-events =<29 28 27 26>; /* TX0 RX0 TX1 RX1 */
> > fsl,ssi-uses-dma;
> > };
>
> This is similar to what we do on PowerPC:
>
> ssi at 15000 {
> compatible = "fsl,mpc8610-ssi";
> cell-index = <0>;
> reg = <0x15000 0x100>;
> interrupts = <75 2 0 0>;
> fsl,mode = "i2s-slave";
> codec-handle = <&wm8776>;
> fsl,playback-dma = <&dma00>;
> fsl,capture-dma = <&dma01>;
> fsl,fifo-depth = <15>;
> fsl,ssi-asynchronous;
> };
>
> Keep in mind that there already is a device-tree enabled SSI driver, so
> you need to find a way to use that driver, instead of adding device-tree
> support to the non-DT driver that's already there.
>
Between a) making DT enabled SSI driver (mpc version) work for i.mx
and b) adding DT probe support for imx-ssi driver, I would absolutely
go for b). Apparently it's much easier.
--
Regards,
Shawn
More information about the devicetree-discuss
mailing list