Bo Shen | 099343c | 2012-11-07 11:41:41 +0800 | [diff] [blame] | 1 | * Atmel SSC driver. |
| 2 | |
| 3 | Required properties: |
| 4 | - compatible: "atmel,at91rm9200-ssc" or "atmel,at91sam9g45-ssc" |
| 5 | - atmel,at91rm9200-ssc: support pdc transfer |
| 6 | - atmel,at91sam9g45-ssc: support dma transfer |
| 7 | - reg: Should contain SSC registers location and length |
| 8 | - interrupts: Should contain SSC interrupt |
Boris BREZILLON | 725fc13 | 2013-12-17 16:01:47 +0100 | [diff] [blame^] | 9 | - clock-names: tuple listing input clock names. |
| 10 | Required elements: "pclk" |
| 11 | - clocks: phandles to input clocks. |
Bo Shen | 099343c | 2012-11-07 11:41:41 +0800 | [diff] [blame] | 12 | |
Richard Genoud | f813175 | 2013-07-30 12:32:04 +0200 | [diff] [blame] | 13 | |
| 14 | Required properties for devices compatible with "atmel,at91sam9g45-ssc": |
| 15 | - dmas: DMA specifier, consisting of a phandle to DMA controller node, |
| 16 | the memory interface and SSC DMA channel ID (for tx and rx). |
| 17 | See Documentation/devicetree/bindings/dma/atmel-dma.txt for details. |
| 18 | - dma-names: Must be "tx", "rx". |
| 19 | |
| 20 | Examples: |
| 21 | - PDC transfer: |
Bo Shen | 099343c | 2012-11-07 11:41:41 +0800 | [diff] [blame] | 22 | ssc0: ssc@fffbc000 { |
| 23 | compatible = "atmel,at91rm9200-ssc"; |
| 24 | reg = <0xfffbc000 0x4000>; |
| 25 | interrupts = <14 4 5>; |
Boris BREZILLON | 725fc13 | 2013-12-17 16:01:47 +0100 | [diff] [blame^] | 26 | clocks = <&ssc0_clk>; |
| 27 | clock-names = "pclk"; |
Bo Shen | 099343c | 2012-11-07 11:41:41 +0800 | [diff] [blame] | 28 | }; |
Richard Genoud | f813175 | 2013-07-30 12:32:04 +0200 | [diff] [blame] | 29 | |
| 30 | - DMA transfer: |
| 31 | ssc0: ssc@f0010000 { |
| 32 | compatible = "atmel,at91sam9g45-ssc"; |
| 33 | reg = <0xf0010000 0x4000>; |
| 34 | interrupts = <28 4 5>; |
| 35 | dmas = <&dma0 1 13>, |
| 36 | <&dma0 1 14>; |
| 37 | dma-names = "tx", "rx"; |
| 38 | pinctrl-names = "default"; |
| 39 | pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>; |
| 40 | status = "disabled"; |
| 41 | }; |