wm8903.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. Example:
  20. codec: wm8903@1a {
  21. compatible = "wlf,wm8903";
  22. reg = <0x1a>;
  23. interrupts = < 347 >;
  24. gpio-controller;
  25. #gpio-cells = <2>;
  26. micdet-cfg = <0>;
  27. micdet-delay = <100>;
  28. gpio-cfg = <
  29. 0x0600 /* DMIC_LR, output */
  30. 0x0680 /* DMIC_DAT, input */
  31. 0x0000 /* GPIO, output, low */
  32. 0x0200 /* Interrupt, output */
  33. 0x01a0 /* BCLK, input, active high */
  34. >;
  35. };