da7213.txt 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Dialog Semiconductor DA7213 Audio Codec bindings
  2. ======
  3. Required properties:
  4. - compatible : Should be "dlg,da7213"
  5. - reg: Specifies the I2C slave address
  6. Optional properties:
  7. - clocks : phandle and clock specifier for codec MCLK.
  8. - clock-names : Clock name string for 'clocks' attribute, should be "mclk".
  9. - dlg,micbias1-lvl : Voltage (mV) for Mic Bias 1
  10. [<1600>, <2200>, <2500>, <3000>]
  11. - dlg,micbias2-lvl : Voltage (mV) for Mic Bias 2
  12. [<1600>, <2200>, <2500>, <3000>]
  13. - dlg,dmic-data-sel : DMIC channel select based on clock edge.
  14. ["lrise_rfall", "lfall_rrise"]
  15. - dlg,dmic-samplephase : When to sample audio from DMIC.
  16. ["on_clkedge", "between_clkedge"]
  17. - dlg,dmic-clkrate : DMIC clock frequency (Hz).
  18. [<1500000>, <3000000>]
  19. ======
  20. Example:
  21. codec_i2c: da7213@1a {
  22. compatible = "dlg,da7213";
  23. reg = <0x1a>;
  24. clocks = <&clks 201>;
  25. clock-names = "mclk";
  26. dlg,micbias1-lvl = <2500>;
  27. dlg,micbias2-lvl = <2500>;
  28. dlg,dmic-data-sel = "lrise_rfall";
  29. dlg,dmic-samplephase = "between_clkedge";
  30. dlg,dmic-clkrate = <3000000>;
  31. };