arizona.txt 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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,wm8997"
  9. - reg : I2C slave address when connected using I2C, chip select number when
  10. using SPI.
  11. - interrupts : The interrupt line the /IRQ signal for the device is
  12. connected to.
  13. - interrupt-controller : Arizona class devices contain interrupt controllers
  14. and may provide interrupt services to other devices.
  15. - interrupt-parent : The parent interrupt controller.
  16. - #interrupt-cells: the number of cells to describe an IRQ, this should be 2.
  17. The first cell is the IRQ number.
  18. The second cell is the flags, encoded as the trigger masks from
  19. Documentation/devicetree/bindings/interrupts.txt
  20. - gpio-controller : Indicates this device is a GPIO controller.
  21. - #gpio-cells : Must be 2. The first cell is the pin number and the
  22. second cell is used to specify optional parameters (currently unused).
  23. - AVDD-supply, DBVDD1-supply, DBVDD2-supply, DBVDD3-supply (wm5102, wm5110),
  24. CPVDD-supply, SPKVDDL-supply (wm5102, wm5110), SPKVDDR-supply (wm5102,
  25. wm5110), SPKVDD-supply (wm8997) : Power supplies for the device, as covered
  26. in Documentation/devicetree/bindings/regulator/regulator.txt
  27. Optional properties:
  28. - wlf,reset : GPIO specifier for the GPIO controlling /RESET
  29. - wlf,ldoena : GPIO specifier for the GPIO controlling LDOENA
  30. - wlf,gpio-defaults : A list of GPIO configuration register values. If
  31. absent, no configuration of these registers is performed. If any
  32. entry has a value that is out of range for a 16 bit register then
  33. the chip default will be used. If present exactly five values must
  34. be specified.
  35. - wlf,inmode : A list of INn_MODE register values, where n is the number
  36. of input signals. Valid values are 0 (Differential), 1 (Single-ended) and
  37. 2 (Digital Microphone). If absent, INn_MODE registers set to 0 by default.
  38. If present, values must be specified less than or equal to the number of
  39. input singals. If values less than the number of input signals, elements
  40. that has not been specifed are set to 0 by default.
  41. - DCVDD-supply, MICVDD-supply : Power supplies, only need to be specified if
  42. they are being externally supplied. As covered in
  43. Documentation/devicetree/bindings/regulator/regulator.txt
  44. Optional subnodes:
  45. - ldo1 : Initial data for the LDO1 regulator, as covered in
  46. Documentation/devicetree/bindings/regulator/regulator.txt
  47. - micvdd : Initial data for the MICVDD regulator, as covered in
  48. Documentation/devicetree/bindings/regulator/regulator.txt
  49. Example:
  50. codec: wm5102@1a {
  51. compatible = "wlf,wm5102";
  52. reg = <0x1a>;
  53. interrupts = <347>;
  54. interrupt-controller;
  55. #interrupt-cells = <2>;
  56. interrupt-parent = <&gic>;
  57. gpio-controller;
  58. #gpio-cells = <2>;
  59. wlf,gpio-defaults = <
  60. 0x00000000 /* AIF1TXLRCLK */
  61. 0xffffffff
  62. 0xffffffff
  63. 0xffffffff
  64. 0xffffffff
  65. >;
  66. };