blob: af8646ffc336c0d58d16a9055a9de9853bbdc5a1 [file] [log] [blame]
Mark Brownd7810092013-03-25 00:11:27 +00001Wolfson Arizona class audio SoCs
2
3These devices are audio SoCs with extensive digital capabilites and a range
4of analogue I/O.
5
6Required properties:
7
Charles Keepax72e6e792014-03-19 10:18:54 +00008 - compatible : One of the following chip-specific strings:
9 "wlf,wm5102"
10 "wlf,wm5110"
Richard Fitzgeraldc4ac37192015-01-17 15:21:23 +000011 "wlf,wm8280"
Charles Keepax72e6e792014-03-19 10:18:54 +000012 "wlf,wm8997"
Mark Brownd7810092013-03-25 00:11:27 +000013 - reg : I2C slave address when connected using I2C, chip select number when
14 using SPI.
15
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-parent : The parent interrupt controller.
21 - #interrupt-cells: the number of cells to describe an IRQ, this should be 2.
22 The first cell is the IRQ number.
23 The second cell is the flags, encoded as the trigger masks from
24 Documentation/devicetree/bindings/interrupts.txt
25
26 - gpio-controller : Indicates this device is a GPIO controller.
27 - #gpio-cells : Must be 2. The first cell is the pin number and the
28 second cell is used to specify optional parameters (currently unused).
29
Richard Fitzgeraldc4ac37192015-01-17 15:21:23 +000030 - AVDD-supply, DBVDD1-supply, CPVDD-supply : Power supplies for the device,
31 as covered in Documentation/devicetree/bindings/regulator/regulator.txt
32
33 - DBVDD2-supply, DBVDD3-supply : Additional databus power supplies (wm5102,
34 wm5110, wm8280)
35
36 - SPKVDDL-supply, SPKVDDR-supply : Speaker driver power supplies (wm5102,
37 wm5110, wm8280)
38
39 - SPKVDD-supply : Speaker driver power supply (wm8997)
Mark Brownd7810092013-03-25 00:11:27 +000040
41Optional properties:
42
43 - wlf,reset : GPIO specifier for the GPIO controlling /RESET
44 - wlf,ldoena : GPIO specifier for the GPIO controlling LDOENA
45
Charles Keepax49010332015-02-25 15:37:13 +000046 - wlf,gpio-defaults : A list of GPIO configuration register values. Defines
47 for the appropriate values can found in <dt-bindings/mfd/arizona.txt>. If
48 absent, no configuration of these registers is performed. If any entry has
49 a value that is out of range for a 16 bit register then the chip default
50 will be used. If present exactly five values must be specified.
Mark Brownd7810092013-03-25 00:11:27 +000051
Inha Songdc5193c2014-08-30 11:27:19 +090052 - wlf,inmode : A list of INn_MODE register values, where n is the number
53 of input signals. Valid values are 0 (Differential), 1 (Single-ended) and
54 2 (Digital Microphone). If absent, INn_MODE registers set to 0 by default.
55 If present, values must be specified less than or equal to the number of
56 input singals. If values less than the number of input signals, elements
57 that has not been specifed are set to 0 by default.
58
Charles Keepax819b2dd2014-07-10 17:04:09 +010059 - DCVDD-supply, MICVDD-supply : Power supplies, only need to be specified if
60 they are being externally supplied. As covered in
Charles Keepaxa6d97c12014-07-10 17:04:08 +010061 Documentation/devicetree/bindings/regulator/regulator.txt
62
63Optional subnodes:
64 - ldo1 : Initial data for the LDO1 regulator, as covered in
65 Documentation/devicetree/bindings/regulator/regulator.txt
Charles Keepax819b2dd2014-07-10 17:04:09 +010066 - micvdd : Initial data for the MICVDD regulator, as covered in
67 Documentation/devicetree/bindings/regulator/regulator.txt
Charles Keepaxa6d97c12014-07-10 17:04:08 +010068
Mark Brownd7810092013-03-25 00:11:27 +000069Example:
70
71codec: wm5102@1a {
72 compatible = "wlf,wm5102";
73 reg = <0x1a>;
74 interrupts = <347>;
Charles Keepax72e6e792014-03-19 10:18:54 +000075 interrupt-controller;
Mark Brownd7810092013-03-25 00:11:27 +000076 #interrupt-cells = <2>;
77 interrupt-parent = <&gic>;
78
79 gpio-controller;
80 #gpio-cells = <2>;
81
82 wlf,gpio-defaults = <
Charles Keepax49010332015-02-25 15:37:13 +000083 ARIZONA_GP_FN_TXLRCLK
84 ARIZONA_GP_DEFAULT
85 ARIZONA_GP_DEFAULT
86 ARIZONA_GP_DEFAULT
87 ARIZONA_GP_DEFAULT
Mark Brownd7810092013-03-25 00:11:27 +000088 >;
89};