atmel-ssc.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. * Atmel SSC driver.
  2. Required properties:
  3. - compatible: "atmel,at91rm9200-ssc" or "atmel,at91sam9g45-ssc"
  4. - atmel,at91rm9200-ssc: support pdc transfer
  5. - atmel,at91sam9g45-ssc: support dma transfer
  6. - reg: Should contain SSC registers location and length
  7. - interrupts: Should contain SSC interrupt
  8. - clock-names: tuple listing input clock names.
  9. Required elements: "pclk"
  10. - clocks: phandles to input clocks.
  11. Required properties for devices compatible with "atmel,at91sam9g45-ssc":
  12. - dmas: DMA specifier, consisting of a phandle to DMA controller node,
  13. the memory interface and SSC DMA channel ID (for tx and rx).
  14. See Documentation/devicetree/bindings/dma/atmel-dma.txt for details.
  15. - dma-names: Must be "tx", "rx".
  16. Optional properties:
  17. - atmel,clk-from-rk-pin: bool property.
  18. - When SSC works in slave mode, according to the hardware design, the
  19. clock can get from TK pin, and also can get from RK pin. So, add
  20. this parameter to choose where the clock from.
  21. - By default the clock is from TK pin, if the clock from RK pin, this
  22. property is needed.
  23. Examples:
  24. - PDC transfer:
  25. ssc0: ssc@fffbc000 {
  26. compatible = "atmel,at91rm9200-ssc";
  27. reg = <0xfffbc000 0x4000>;
  28. interrupts = <14 4 5>;
  29. clocks = <&ssc0_clk>;
  30. clock-names = "pclk";
  31. };
  32. - DMA transfer:
  33. ssc0: ssc@f0010000 {
  34. compatible = "atmel,at91sam9g45-ssc";
  35. reg = <0xf0010000 0x4000>;
  36. interrupts = <28 4 5>;
  37. dmas = <&dma0 1 13>,
  38. <&dma0 1 14>;
  39. dma-names = "tx", "rx";
  40. pinctrl-names = "default";
  41. pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>;
  42. status = "disabled";
  43. };