Commit | Line | Data |
---|---|---|
099343c6 BS |
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 | |
725fc136 BB |
9 | - clock-names: tuple listing input clock names. |
10 | Required elements: "pclk" | |
11 | - clocks: phandles to input clocks. | |
099343c6 | 12 | |
f813175a RG |
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 | ||
a69d0009 BS |
20 | Optional properties: |
21 | - atmel,clk-from-rk-pin: bool property. | |
22 | - When SSC works in slave mode, according to the hardware design, the | |
23 | clock can get from TK pin, and also can get from RK pin. So, add | |
24 | this parameter to choose where the clock from. | |
25 | - By default the clock is from TK pin, if the clock from RK pin, this | |
26 | property is needed. | |
27 | ||
f813175a RG |
28 | Examples: |
29 | - PDC transfer: | |
099343c6 BS |
30 | ssc0: ssc@fffbc000 { |
31 | compatible = "atmel,at91rm9200-ssc"; | |
32 | reg = <0xfffbc000 0x4000>; | |
33 | interrupts = <14 4 5>; | |
725fc136 BB |
34 | clocks = <&ssc0_clk>; |
35 | clock-names = "pclk"; | |
099343c6 | 36 | }; |
f813175a RG |
37 | |
38 | - DMA transfer: | |
39 | ssc0: ssc@f0010000 { | |
40 | compatible = "atmel,at91sam9g45-ssc"; | |
41 | reg = <0xf0010000 0x4000>; | |
42 | interrupts = <28 4 5>; | |
43 | dmas = <&dma0 1 13>, | |
44 | <&dma0 1 14>; | |
45 | dma-names = "tx", "rx"; | |
46 | pinctrl-names = "default"; | |
47 | pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>; | |
48 | status = "disabled"; | |
49 | }; |