wm8994.txt 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. WM1811/WM8994/WM8958 audio CODEC
  2. These devices support both I2C and SPI (configured with pin strapping
  3. on the board).
  4. Required properties:
  5. - compatible : One of "wlf,wm1811", "wlf,wm8994" or "wlf,wm8958".
  6. - reg : the I2C address of the device for I2C, the chip select
  7. number for SPI.
  8. - gpio-controller : Indicates this device is a GPIO controller.
  9. - #gpio-cells : Must be 2. The first cell is the pin number and the
  10. second cell is used to specify optional parameters (currently unused).
  11. - AVDD2-supply, DBVDD1-supply, DBVDD2-supply, DBVDD3-supply, CPVDD-supply,
  12. SPKVDD1-supply, SPKVDD2-supply : power supplies for the device, as covered
  13. in Documentation/devicetree/bindings/regulator/regulator.txt
  14. Optional properties:
  15. - interrupts : The interrupt line the IRQ signal for the device is
  16. connected to. This is optional, if it is not connected then none
  17. of the interrupt related properties should be specified.
  18. - interrupt-controller : These devices contain interrupt controllers
  19. and may provide interrupt services to other devices if they have an
  20. interrupt line connected.
  21. - interrupt-parent : The parent interrupt controller.
  22. - #interrupt-cells: the number of cells to describe an IRQ, this should be 2.
  23. The first cell is the IRQ number.
  24. The second cell is the flags, encoded as the trigger masks from
  25. Documentation/devicetree/bindings/interrupts.txt
  26. - clocks : A list of up to two phandle and clock specifier pairs
  27. - clock-names : A list of clock names sorted in the same order as clocks.
  28. Valid clock names are "MCLK1" and "MCLK2".
  29. - wlf,gpio-cfg : A list of GPIO configuration register values. If absent,
  30. no configuration of these registers is performed. If any value is
  31. over 0xffff then the register will be left as default. If present 11
  32. values must be supplied.
  33. - wlf,micbias-cfg : Two MICBIAS register values for WM1811 or
  34. WM8958. If absent the register defaults will be used.
  35. - wlf,ldo1ena : GPIO specifier for control of LDO1ENA input to device.
  36. - wlf,ldo2ena : GPIO specifier for control of LDO2ENA input to device.
  37. - wlf,lineout1-se : If present LINEOUT1 is in single ended mode.
  38. - wlf,lineout2-se : If present LINEOUT2 is in single ended mode.
  39. - wlf,lineout1-feedback : If present LINEOUT1 has common mode feedback
  40. connected.
  41. - wlf,lineout2-feedback : If present LINEOUT2 has common mode feedback
  42. connected.
  43. - wlf,ldoena-always-driven : If present LDOENA is always driven.
  44. Example:
  45. codec: wm8994@1a {
  46. compatible = "wlf,wm8994";
  47. reg = <0x1a>;
  48. gpio-controller;
  49. #gpio-cells = <2>;
  50. lineout1-se;
  51. AVDD2-supply = <&regulator>;
  52. CPVDD-supply = <&regulator>;
  53. DBVDD1-supply = <&regulator>;
  54. DBVDD2-supply = <&regulator>;
  55. DBVDD3-supply = <&regulator>;
  56. SPKVDD1-supply = <&regulator>;
  57. SPKVDD2-supply = <&regulator>;
  58. };