wm8994.txt 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. - power supplies for the device, as covered in
  12. Documentation/devicetree/bindings/regulator/regulator.txt, depending
  13. on compatible:
  14. - for wlf,wm1811 and wlf,wm8958:
  15. AVDD1-supply, AVDD2-supply, DBVDD1-supply, DBVDD2-supply, DBVDD3-supply,
  16. DCVDD-supply, CPVDD-supply, SPKVDD1-supply, SPKVDD2-supply
  17. - for wlf,wm8994:
  18. AVDD1-supply, AVDD2-supply, DBVDD-supply, DCVDD-supply, CPVDD-supply,
  19. SPKVDD1-supply, SPKVDD2-supply
  20. Optional properties:
  21. - interrupts : The interrupt line the IRQ signal for the device is
  22. connected to. This is optional, if it is not connected then none
  23. of the interrupt related properties should be specified.
  24. - interrupt-controller : These devices contain interrupt controllers
  25. and may provide interrupt services to other devices if they have an
  26. interrupt line connected.
  27. - #interrupt-cells: the number of cells to describe an IRQ, this should be 2.
  28. The first cell is the IRQ number.
  29. The second cell is the flags, encoded as the trigger masks from
  30. Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
  31. - clocks : A list of up to two phandle and clock specifier pairs
  32. - clock-names : A list of clock names sorted in the same order as clocks.
  33. Valid clock names are "MCLK1" and "MCLK2".
  34. - wlf,gpio-cfg : A list of GPIO configuration register values. If absent,
  35. no configuration of these registers is performed. If any value is
  36. over 0xffff then the register will be left as default. If present 11
  37. values must be supplied.
  38. - wlf,micbias-cfg : Two MICBIAS register values for WM1811 or
  39. WM8958. If absent the register defaults will be used.
  40. - wlf,ldo1ena : GPIO specifier for control of LDO1ENA input to device.
  41. - wlf,ldo2ena : GPIO specifier for control of LDO2ENA input to device.
  42. - wlf,lineout1-se : If present LINEOUT1 is in single ended mode.
  43. - wlf,lineout2-se : If present LINEOUT2 is in single ended mode.
  44. - wlf,lineout1-feedback : If present LINEOUT1 has common mode feedback
  45. connected.
  46. - wlf,lineout2-feedback : If present LINEOUT2 has common mode feedback
  47. connected.
  48. - wlf,ldoena-always-driven : If present LDOENA is always driven.
  49. - wlf,spkmode-pu : If present enable the internal pull-up resistor on
  50. the SPKMODE pin.
  51. - wlf,csnaddr-pd : If present enable the internal pull-down resistor on
  52. the CS/ADDR pin.
  53. Example:
  54. wm8994: codec@1a {
  55. compatible = "wlf,wm8994";
  56. reg = <0x1a>;
  57. gpio-controller;
  58. #gpio-cells = <2>;
  59. lineout1-se;
  60. AVDD1-supply = <&regulator>;
  61. AVDD2-supply = <&regulator>;
  62. CPVDD-supply = <&regulator>;
  63. DBVDD-supply = <&regulator>;
  64. DCVDD-supply = <&regulator>;
  65. SPKVDD1-supply = <&regulator>;
  66. SPKVDD2-supply = <&regulator>;
  67. };