arizona.txt 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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,ldoena : GPIO specifier for the GPIO controlling LDOENA
  36. - wlf,gpio-defaults : A list of GPIO configuration register values. Defines
  37. for the appropriate values can found in <dt-bindings/mfd/arizona.txt>. If
  38. absent, no configuration of these registers is performed. If any entry has
  39. a value that is out of range for a 16 bit register then the chip default
  40. will be used. If present exactly five values must be specified.
  41. - wlf,inmode : A list of INn_MODE register values, where n is the number
  42. of input signals. Valid values are 0 (Differential), 1 (Single-ended) and
  43. 2 (Digital Microphone). If absent, INn_MODE registers set to 0 by default.
  44. If present, values must be specified less than or equal to the number of
  45. input signals. If values less than the number of input signals, elements
  46. that have not been specified are set to 0 by default. Entries are:
  47. <IN1, IN2, IN3, IN4> (wm5102, wm5110, wm8280, wm8997)
  48. <IN1A, IN2A, IN1B, IN2B> (wm8998, wm1814)
  49. - wlf,dmic-ref : DMIC reference voltage source for each input, can be
  50. selected from either MICVDD or one of the MICBIAS's, defines
  51. (ARIZONA_DMIC_xxxx) are provided in <dt-bindings/mfd/arizona.txt>. If
  52. present, the number of values should be less than or equal to the
  53. number of inputs, unspecified inputs will use the chip default.
  54. - wlf,hpdet-channel : Headphone detection channel.
  55. ARIZONA_ACCDET_MODE_HPL or 1 - Headphone detect mode is set to HPDETL
  56. ARIZONA_ACCDET_MODE_HPR or 2 - Headphone detect mode is set to HPDETR
  57. If this node is not mentioned or if the value is unknown, then
  58. headphone detection mode is set to HPDETL.
  59. - DCVDD-supply, MICVDD-supply : Power supplies, only need to be specified if
  60. they are being externally supplied. As covered in
  61. Documentation/devicetree/bindings/regulator/regulator.txt
  62. Optional subnodes:
  63. - ldo1 : Initial data for the LDO1 regulator, as covered in
  64. Documentation/devicetree/bindings/regulator/regulator.txt
  65. - micvdd : Initial data for the MICVDD regulator, as covered in
  66. Documentation/devicetree/bindings/regulator/regulator.txt
  67. Example:
  68. codec: wm5102@1a {
  69. compatible = "wlf,wm5102";
  70. reg = <0x1a>;
  71. interrupts = <347>;
  72. interrupt-controller;
  73. #interrupt-cells = <2>;
  74. interrupt-parent = <&gic>;
  75. gpio-controller;
  76. #gpio-cells = <2>;
  77. wlf,gpio-defaults = <
  78. ARIZONA_GP_FN_TXLRCLK
  79. ARIZONA_GP_DEFAULT
  80. ARIZONA_GP_DEFAULT
  81. ARIZONA_GP_DEFAULT
  82. ARIZONA_GP_DEFAULT
  83. >;
  84. };