arizona.txt 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. Cirrus Logic/Wolfson Microelectronics Arizona class audio SoCs
  2. These devices are audio SoCs with extensive digital capabilities and a range
  3. of analogue I/O.
  4. Required properties:
  5. - compatible : One of the following chip-specific strings:
  6. "cirrus,cs47l24"
  7. "wlf,wm5102"
  8. "wlf,wm5110"
  9. "wlf,wm8280"
  10. "wlf,wm8997"
  11. "wlf,wm8998"
  12. "wlf,wm1814"
  13. "wlf,wm1831"
  14. - reg : I2C slave address when connected using I2C, chip select number when
  15. using SPI.
  16. - interrupts : The interrupt line the /IRQ signal for the device is
  17. connected to.
  18. - interrupt-controller : Arizona class devices contain interrupt controllers
  19. and may provide interrupt services to other devices.
  20. - #interrupt-cells: the number of cells to describe an IRQ, this should be 2.
  21. The first cell is the IRQ number.
  22. The second cell is the flags, encoded as the trigger masks from
  23. Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
  24. - gpio-controller : Indicates this device is a GPIO controller.
  25. - #gpio-cells : Must be 2. The first cell is the pin number and the
  26. second cell is used to specify optional parameters, see ../gpio/gpio.txt
  27. for details.
  28. - AVDD-supply, DBVDD1-supply, CPVDD-supply : Power supplies for the device,
  29. as covered in Documentation/devicetree/bindings/regulator/regulator.txt
  30. - DBVDD2-supply, DBVDD3-supply : Additional databus power supplies (wm5102,
  31. wm5110, wm8280, wm8998, wm1814)
  32. - SPKVDDL-supply, SPKVDDR-supply : Speaker driver power supplies (wm5102,
  33. wm5110, wm8280, wm8998, wm1814)
  34. - SPKVDD-supply : Speaker driver power supply (wm8997)
  35. - DCVDD-supply : Main power supply (cs47l24, wm1831)
  36. - MICVDD-supply : Microphone power supply (cs47l24, wm1831)
  37. Optional properties:
  38. - reset-gpios : GPIO specifier for the GPIO controlling /RESET
  39. - clocks: Should reference the clocks supplied on MCLK1 and MCLK2
  40. - clock-names: Should contains two strings:
  41. "mclk1" for the clock supplied on MCLK1, recommended to be a high
  42. quality audio reference clock
  43. "mclk2" for the clock supplied on MCLK2, recommended to be an always on
  44. 32k clock
  45. - wlf,gpio-defaults : A list of GPIO configuration register values. Defines
  46. for the appropriate values can found in <dt-bindings/mfd/arizona.txt>. If
  47. absent, no configuration of these registers is performed. If any entry has
  48. a value that is out of range for a 16 bit register then the chip default
  49. will be used. If present exactly five values must be specified.
  50. - DCVDD-supply, MICVDD-supply : Power supplies, only need to be specified if
  51. they are being externally supplied. As covered in
  52. Documentation/devicetree/bindings/regulator/regulator.txt
  53. (wm5102, wm5110, wm8280, wm8997, wm8998, wm1814)
  54. Deprecated properties:
  55. - wlf,reset : GPIO specifier for the GPIO controlling /RESET
  56. Also see child specific device properties:
  57. Regulator - ../regulator/arizona-regulator.txt
  58. Extcon - ../extcon/extcon-arizona.txt
  59. Sound - ../sound/arizona.txt
  60. Example:
  61. codec: wm5102@1a {
  62. compatible = "wlf,wm5102";
  63. reg = <0x1a>;
  64. interrupts = <347>;
  65. interrupt-controller;
  66. #interrupt-cells = <2>;
  67. interrupt-parent = <&gic>;
  68. gpio-controller;
  69. #gpio-cells = <2>;
  70. wlf,gpio-defaults = <
  71. ARIZONA_GP_FN_TXLRCLK
  72. ARIZONA_GP_DEFAULT
  73. ARIZONA_GP_DEFAULT
  74. ARIZONA_GP_DEFAULT
  75. ARIZONA_GP_DEFAULT
  76. >;
  77. };