18c2ecf20Sopenharmony_ci* Atmel SSC driver.
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciRequired properties:
48c2ecf20Sopenharmony_ci- compatible: "atmel,at91rm9200-ssc" or "atmel,at91sam9g45-ssc"
58c2ecf20Sopenharmony_ci	- atmel,at91rm9200-ssc: support pdc transfer
68c2ecf20Sopenharmony_ci	- atmel,at91sam9g45-ssc: support dma transfer
78c2ecf20Sopenharmony_ci- reg: Should contain SSC registers location and length
88c2ecf20Sopenharmony_ci- interrupts: Should contain SSC interrupt
98c2ecf20Sopenharmony_ci- clock-names: tuple listing input clock names.
108c2ecf20Sopenharmony_ci	Required elements: "pclk"
118c2ecf20Sopenharmony_ci- clocks: phandles to input clocks.
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciRequired properties for devices compatible with "atmel,at91sam9g45-ssc":
158c2ecf20Sopenharmony_ci- dmas: DMA specifier, consisting of a phandle to DMA controller node,
168c2ecf20Sopenharmony_ci  the memory interface and SSC DMA channel ID (for tx and rx).
178c2ecf20Sopenharmony_ci  See Documentation/devicetree/bindings/dma/atmel-dma.txt for details.
188c2ecf20Sopenharmony_ci- dma-names: Must be "tx", "rx".
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ciOptional properties:
218c2ecf20Sopenharmony_ci  - atmel,clk-from-rk-pin: bool property.
228c2ecf20Sopenharmony_ci     - When SSC works in slave mode, according to the hardware design, the
238c2ecf20Sopenharmony_ci       clock can get from TK pin, and also can get from RK pin. So, add
248c2ecf20Sopenharmony_ci       this parameter to choose where the clock from.
258c2ecf20Sopenharmony_ci     - By default the clock is from TK pin, if the clock from RK pin, this
268c2ecf20Sopenharmony_ci       property is needed.
278c2ecf20Sopenharmony_ci  - #sound-dai-cells: Should contain <0>.
288c2ecf20Sopenharmony_ci     - This property makes the SSC into an automatically registered DAI.
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ciExamples:
318c2ecf20Sopenharmony_ci- PDC transfer:
328c2ecf20Sopenharmony_cissc0: ssc@fffbc000 {
338c2ecf20Sopenharmony_ci	compatible = "atmel,at91rm9200-ssc";
348c2ecf20Sopenharmony_ci	reg = <0xfffbc000 0x4000>;
358c2ecf20Sopenharmony_ci	interrupts = <14 4 5>;
368c2ecf20Sopenharmony_ci	clocks = <&ssc0_clk>;
378c2ecf20Sopenharmony_ci	clock-names = "pclk";
388c2ecf20Sopenharmony_ci};
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci- DMA transfer:
418c2ecf20Sopenharmony_cissc0: ssc@f0010000 {
428c2ecf20Sopenharmony_ci      compatible = "atmel,at91sam9g45-ssc";
438c2ecf20Sopenharmony_ci      reg = <0xf0010000 0x4000>;
448c2ecf20Sopenharmony_ci      interrupts = <28 4 5>;
458c2ecf20Sopenharmony_ci      dmas = <&dma0 1 13>,
468c2ecf20Sopenharmony_ci	     <&dma0 1 14>;
478c2ecf20Sopenharmony_ci      dma-names = "tx", "rx";
488c2ecf20Sopenharmony_ci      pinctrl-names = "default";
498c2ecf20Sopenharmony_ci      pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>;
508c2ecf20Sopenharmony_ci};
51