arizona.txt 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. Wolfson Arizona class audio SoCs
  2. These devices are audio SoCs with extensive digital capabilites and a range
  3. of analogue I/O.
  4. Required properties:
  5. - compatible : One of the following chip-specific strings:
  6. "wlf,wm5102"
  7. "wlf,wm5110"
  8. "wlf,wm8280"
  9. "wlf,wm8997"
  10. "wlf,wm8998"
  11. "wlf,wm1814"
  12. - reg : I2C slave address when connected using I2C, chip select number when
  13. using SPI.
  14. - interrupts : The interrupt line the /IRQ signal for the device is
  15. connected to.
  16. - interrupt-controller : Arizona class devices contain interrupt controllers
  17. and may provide interrupt services to other devices.
  18. - interrupt-parent : The parent interrupt controller.
  19. - #interrupt-cells: the number of cells to describe an IRQ, this should be 2.
  20. The first cell is the IRQ number.
  21. The second cell is the flags, encoded as the trigger masks from
  22. Documentation/devicetree/bindings/interrupts.txt
  23. - gpio-controller : Indicates this device is a GPIO controller.
  24. - #gpio-cells : Must be 2. The first cell is the pin number and the
  25. second cell is used to specify optional parameters (currently unused).
  26. - AVDD-supply, DBVDD1-supply, CPVDD-supply : Power supplies for the device,
  27. as covered in Documentation/devicetree/bindings/regulator/regulator.txt
  28. - DBVDD2-supply, DBVDD3-supply : Additional databus power supplies (wm5102,
  29. wm5110, wm8280, wm8998, wm1814)
  30. - SPKVDDL-supply, SPKVDDR-supply : Speaker driver power supplies (wm5102,
  31. wm5110, wm8280, wm8998, wm1814)
  32. - SPKVDD-supply : Speaker driver power supply (wm8997)
  33. Optional properties:
  34. - wlf,reset : GPIO specifier for the GPIO controlling /RESET
  35. - wlf,gpio-defaults : A list of GPIO configuration register values. Defines
  36. for the appropriate values can found in <dt-bindings/mfd/arizona.txt>. If
  37. absent, no configuration of these registers is performed. If any entry has
  38. a value that is out of range for a 16 bit register then the chip default
  39. will be used. If present exactly five values must be specified.
  40. - wlf,inmode : A list of INn_MODE register values, where n is the number
  41. of input signals. Valid values are 0 (Differential), 1 (Single-ended) and
  42. 2 (Digital Microphone). If absent, INn_MODE registers set to 0 by default.
  43. If present, values must be specified less than or equal to the number of
  44. input signals. If values less than the number of input signals, elements
  45. that have not been specified are set to 0 by default. Entries are:
  46. <IN1, IN2, IN3, IN4> (wm5102, wm5110, wm8280, wm8997)
  47. <IN1A, IN2A, IN1B, IN2B> (wm8998, wm1814)
  48. - wlf,dmic-ref : DMIC reference voltage source for each input, can be
  49. selected from either MICVDD or one of the MICBIAS's, defines
  50. (ARIZONA_DMIC_xxxx) are provided in <dt-bindings/mfd/arizona.txt>. If
  51. present, the number of values should be less than or equal to the
  52. number of inputs, unspecified inputs will use the chip default.
  53. - DCVDD-supply, MICVDD-supply : Power supplies, only need to be specified if
  54. they are being externally supplied. As covered in
  55. Documentation/devicetree/bindings/regulator/regulator.txt
  56. Also see child specific device properties:
  57. Regulator - ../regulator/arizona-regulator.txt
  58. Extcon - ../extcon/extcon-arizona.txt
  59. Example:
  60. codec: wm5102@1a {
  61. compatible = "wlf,wm5102";
  62. reg = <0x1a>;
  63. interrupts = <347>;
  64. interrupt-controller;
  65. #interrupt-cells = <2>;
  66. interrupt-parent = <&gic>;
  67. gpio-controller;
  68. #gpio-cells = <2>;
  69. wlf,gpio-defaults = <
  70. ARIZONA_GP_FN_TXLRCLK
  71. ARIZONA_GP_DEFAULT
  72. ARIZONA_GP_DEFAULT
  73. ARIZONA_GP_DEFAULT
  74. ARIZONA_GP_DEFAULT
  75. >;
  76. };