linux/Documentation/devicetree/bindings/spi/omap-spi.txt
<<
>>
Prefs
   1OMAP2+ McSPI device
   2
   3Required properties:
   4- compatible :
   5  - "ti,omap2-spi" for OMAP2 & OMAP3.
   6  - "ti,omap4-spi" for OMAP4+.
   7- ti,spi-num-cs : Number of chipselect supported  by the instance.
   8- ti,hwmods: Name of the hwmod associated to the McSPI
   9- ti,pindir-d0-out-d1-in: Select the D0 pin as output and D1 as
  10                          input. The default is D0 as input and
  11                          D1 as output.
  12
  13Optional properties:
  14- dmas: List of DMA specifiers with the controller specific format
  15        as described in the generic DMA client binding. A tx and rx
  16        specifier is required for each chip select.
  17- dma-names: List of DMA request names. These strings correspond
  18        1:1 with the DMA specifiers listed in dmas. The string naming
  19        is to be "rxN" and "txN" for RX and TX requests,
  20        respectively, where N equals the chip select number.
  21
  22Examples:
  23
  24[hwmod populated DMA resources]
  25
  26mcspi1: mcspi@1 {
  27    #address-cells = <1>;
  28    #size-cells = <0>;
  29    compatible = "ti,omap4-mcspi";
  30    ti,hwmods = "mcspi1";
  31    ti,spi-num-cs = <4>;
  32};
  33
  34[generic DMA request binding]
  35
  36mcspi1: mcspi@1 {
  37    #address-cells = <1>;
  38    #size-cells = <0>;
  39    compatible = "ti,omap4-mcspi";
  40    ti,hwmods = "mcspi1";
  41    ti,spi-num-cs = <2>;
  42    dmas = <&edma 42
  43            &edma 43
  44            &edma 44
  45            &edma 45>;
  46    dma-names = "tx0", "rx0", "tx1", "rx1";
  47};
  48