wm8903.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. WM8903 audio CODEC
  2. This device supports I2C only.
  3. Required properties:
  4. - compatible : "wlf,wm8903"
  5. - reg : the I2C address of the device.
  6. - gpio-controller : Indicates this device is a GPIO controller.
  7. - #gpio-cells : Should be two. The first cell is the pin number and the
  8. second cell is used to specify optional parameters (currently unused).
  9. Optional properties:
  10. - interrupts : The interrupt line the codec is connected to.
  11. - micdet-cfg : Default register value for R6 (Mic Bias). If absent, the
  12. default is 0.
  13. - micdet-delay : The debounce delay for microphone detection in mS. If
  14. absent, the default is 100.
  15. - gpio-cfg : A list of GPIO configuration register values. The list must
  16. be 5 entries long. If absent, no configuration of these registers is
  17. performed. If any entry has the value 0xffffffff, that GPIO's
  18. configuration will not be modified.
  19. Pins on the device (for linking into audio routes):
  20. * IN1L
  21. * IN1R
  22. * IN2L
  23. * IN2R
  24. * IN3L
  25. * IN3R
  26. * DMICDAT
  27. * HPOUTL
  28. * HPOUTR
  29. * LINEOUTL
  30. * LINEOUTR
  31. * LOP
  32. * LON
  33. * ROP
  34. * RON
  35. * MICBIAS
  36. Example:
  37. codec: wm8903@1a {
  38. compatible = "wlf,wm8903";
  39. reg = <0x1a>;
  40. interrupts = < 347 >;
  41. gpio-controller;
  42. #gpio-cells = <2>;
  43. micdet-cfg = <0>;
  44. micdet-delay = <100>;
  45. gpio-cfg = <
  46. 0x0600 /* DMIC_LR, output */
  47. 0x0680 /* DMIC_DAT, input */
  48. 0x0000 /* GPIO, output, low */
  49. 0x0200 /* Interrupt, output */
  50. 0x01a0 /* BCLK, input, active high */
  51. >;
  52. };