st,stm32-adfsdm.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. STMicroelectronics Audio Digital Filter Sigma Delta modulators(DFSDM)
  2. The DFSDM allows PDM microphones capture through SPI interface. The Audio
  3. interface is seems as a sub block of the DFSDM device.
  4. For details on DFSDM bindings refer to ../iio/adc/st,stm32-dfsdm-adc.txt
  5. Required properties:
  6. - compatible: "st,stm32h7-dfsdm-dai".
  7. - #sound-dai-cells : Must be equal to 0
  8. - io-channels : phandle to iio dfsdm instance node.
  9. Example of a sound card using audio DFSDM node.
  10. sound_card {
  11. compatible = "audio-graph-card";
  12. dais = <&cpu_port>;
  13. };
  14. dfsdm: dfsdm@40017000 {
  15. compatible = "st,stm32h7-dfsdm";
  16. reg = <0x40017000 0x400>;
  17. clocks = <&rcc DFSDM1_CK>;
  18. clock-names = "dfsdm";
  19. #interrupt-cells = <1>;
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. dfsdm_adc0: filter@0 {
  23. compatible = "st,stm32-dfsdm-dmic";
  24. reg = <0>;
  25. interrupts = <110>;
  26. dmas = <&dmamux1 101 0x400 0x00>;
  27. dma-names = "rx";
  28. st,adc-channels = <1>;
  29. st,adc-channel-names = "dmic0";
  30. st,adc-channel-types = "SPI_R";
  31. st,adc-channel-clk-src = "CLKOUT";
  32. st,filter-order = <5>;
  33. dfsdm_dai0: dfsdm-dai {
  34. compatible = "st,stm32h7-dfsdm-dai";
  35. #sound-dai-cells = <0>;
  36. io-channels = <&dfsdm_adc0 0>;
  37. cpu_port: port {
  38. dfsdm_endpoint: endpoint {
  39. remote-endpoint = <&dmic0_endpoint>;
  40. };
  41. };
  42. };
  43. };
  44. dmic0: dmic@0 {
  45. compatible = "dmic-codec";
  46. #sound-dai-cells = <0>;
  47. port {
  48. dmic0_endpoint: endpoint {
  49. remote-endpoint = <&dfsdm_endpoint>;
  50. };
  51. };
  52. };