st,stm32-i2s.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. STMicroelectronics STM32 SPI/I2S Controller
  2. The SPI/I2S block supports I2S/PCM protocols when configured on I2S mode.
  3. Only some SPI instances support I2S.
  4. Required properties:
  5. - compatible: Must be "st,stm32h7-i2s"
  6. - reg: Offset and length of the device's register set.
  7. - interrupts: Must contain the interrupt line id.
  8. - clocks: Must contain phandle and clock specifier pairs for each entry
  9. in clock-names.
  10. - clock-names: Must contain "i2sclk", "pclk", "x8k" and "x11k".
  11. "i2sclk": clock which feeds the internal clock generator
  12. "pclk": clock which feeds the peripheral bus interface
  13. "x8k": I2S parent clock for sampling rates multiple of 8kHz.
  14. "x11k": I2S parent clock for sampling rates multiple of 11.025kHz.
  15. - dmas: DMA specifiers for tx and rx dma.
  16. See Documentation/devicetree/bindings/dma/stm32-dma.txt.
  17. - dma-names: Identifier for each DMA request line. Must be "tx" and "rx".
  18. - pinctrl-names: should contain only value "default"
  19. - pinctrl-0: see Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt
  20. Optional properties:
  21. - resets: Reference to a reset controller asserting the reset controller
  22. The device node should contain one 'port' child node with one child 'endpoint'
  23. node, according to the bindings defined in Documentation/devicetree/bindings/
  24. graph.txt.
  25. Example:
  26. sound_card {
  27. compatible = "audio-graph-card";
  28. dais = <&i2s2_port>;
  29. };
  30. i2s2: audio-controller@40003800 {
  31. compatible = "st,stm32h7-i2s";
  32. reg = <0x40003800 0x400>;
  33. interrupts = <36>;
  34. clocks = <&rcc PCLK1>, <&rcc SPI2_CK>, <&rcc PLL1_Q>, <&rcc PLL2_P>;
  35. clock-names = "pclk", "i2sclk", "x8k", "x11k";
  36. dmas = <&dmamux2 2 39 0x400 0x1>,
  37. <&dmamux2 3 40 0x400 0x1>;
  38. dma-names = "rx", "tx";
  39. pinctrl-names = "default";
  40. pinctrl-0 = <&pinctrl_i2s2>;
  41. i2s2_port: port@0 {
  42. cpu_endpoint: endpoint {
  43. remote-endpoint = <&codec_endpoint>;
  44. format = "i2s";
  45. };
  46. };
  47. };
  48. audio-codec {
  49. codec_port: port@0 {
  50. codec_endpoint: endpoint {
  51. remote-endpoint = <&cpu_endpoint>;
  52. };
  53. };
  54. };