blob: 18be0cbfb456c92d47d959a98bdc9d27bb8f08bc [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"
Richard Fitzgeraldb64610d2015-05-01 16:15:19 +010013 "wlf,wm8998"
14 "wlf,wm1814"
15
Mark Brownd7810092013-03-25 00:11:27 +000016 - reg : I2C slave address when connected using I2C, chip select number when
17 using SPI.
18
19 - interrupts : The interrupt line the /IRQ signal for the device is
20 connected to.
21 - interrupt-controller : Arizona class devices contain interrupt controllers
22 and may provide interrupt services to other devices.
23 - interrupt-parent : The parent interrupt controller.
24 - #interrupt-cells: the number of cells to describe an IRQ, this should be 2.
25 The first cell is the IRQ number.
26 The second cell is the flags, encoded as the trigger masks from
27 Documentation/devicetree/bindings/interrupts.txt
28
29 - gpio-controller : Indicates this device is a GPIO controller.
30 - #gpio-cells : Must be 2. The first cell is the pin number and the
31 second cell is used to specify optional parameters (currently unused).
32
Richard Fitzgeraldc4ac37192015-01-17 15:21:23 +000033 - AVDD-supply, DBVDD1-supply, CPVDD-supply : Power supplies for the device,
34 as covered in Documentation/devicetree/bindings/regulator/regulator.txt
35
36 - DBVDD2-supply, DBVDD3-supply : Additional databus power supplies (wm5102,
Richard Fitzgeraldb64610d2015-05-01 16:15:19 +010037 wm5110, wm8280, wm8998, wm1814)
Richard Fitzgeraldc4ac37192015-01-17 15:21:23 +000038
39 - SPKVDDL-supply, SPKVDDR-supply : Speaker driver power supplies (wm5102,
Richard Fitzgeraldb64610d2015-05-01 16:15:19 +010040 wm5110, wm8280, wm8998, wm1814)
Richard Fitzgeraldc4ac37192015-01-17 15:21:23 +000041
42 - SPKVDD-supply : Speaker driver power supply (wm8997)
Mark Brownd7810092013-03-25 00:11:27 +000043
44Optional properties:
45
46 - wlf,reset : GPIO specifier for the GPIO controlling /RESET
Mark Brownd7810092013-03-25 00:11:27 +000047
Charles Keepax49010332015-02-25 15:37:13 +000048 - wlf,gpio-defaults : A list of GPIO configuration register values. Defines
49 for the appropriate values can found in <dt-bindings/mfd/arizona.txt>. If
50 absent, no configuration of these registers is performed. If any entry has
51 a value that is out of range for a 16 bit register then the chip default
52 will be used. If present exactly five values must be specified.
Mark Brownd7810092013-03-25 00:11:27 +000053
Inha Songdc5193c2014-08-30 11:27:19 +090054 - wlf,inmode : A list of INn_MODE register values, where n is the number
55 of input signals. Valid values are 0 (Differential), 1 (Single-ended) and
56 2 (Digital Microphone). If absent, INn_MODE registers set to 0 by default.
57 If present, values must be specified less than or equal to the number of
Richard Fitzgeraldb64610d2015-05-01 16:15:19 +010058 input signals. If values less than the number of input signals, elements
59 that have not been specified are set to 0 by default. Entries are:
60 <IN1, IN2, IN3, IN4> (wm5102, wm5110, wm8280, wm8997)
61 <IN1A, IN2A, IN1B, IN2B> (wm8998, wm1814)
Inha Songdc5193c2014-08-30 11:27:19 +090062
Charles Keepaxccd173c2015-03-03 15:04:54 +000063 - wlf,dmic-ref : DMIC reference voltage source for each input, can be
64 selected from either MICVDD or one of the MICBIAS's, defines
65 (ARIZONA_DMIC_xxxx) are provided in <dt-bindings/mfd/arizona.txt>. If
66 present, the number of values should be less than or equal to the
67 number of inputs, unspecified inputs will use the chip default.
68
Charles Keepax819b2dd2014-07-10 17:04:09 +010069 - DCVDD-supply, MICVDD-supply : Power supplies, only need to be specified if
70 they are being externally supplied. As covered in
Charles Keepaxa6d97c12014-07-10 17:04:08 +010071 Documentation/devicetree/bindings/regulator/regulator.txt
72
Charles Keepaxf2f48a52015-10-27 16:01:58 +000073Also see child specific device properties:
74 Regulator - ../regulator/arizona-regulator.txt
75 Extcon - ../extcon/extcon-arizona.txt
Charles Keepaxa6d97c12014-07-10 17:04:08 +010076
Mark Brownd7810092013-03-25 00:11:27 +000077Example:
78
79codec: wm5102@1a {
80 compatible = "wlf,wm5102";
81 reg = <0x1a>;
82 interrupts = <347>;
Charles Keepax72e6e792014-03-19 10:18:54 +000083 interrupt-controller;
Mark Brownd7810092013-03-25 00:11:27 +000084 #interrupt-cells = <2>;
85 interrupt-parent = <&gic>;
86
87 gpio-controller;
88 #gpio-cells = <2>;
89
90 wlf,gpio-defaults = <
Charles Keepax49010332015-02-25 15:37:13 +000091 ARIZONA_GP_FN_TXLRCLK
92 ARIZONA_GP_DEFAULT
93 ARIZONA_GP_DEFAULT
94 ARIZONA_GP_DEFAULT
95 ARIZONA_GP_DEFAULT
Mark Brownd7810092013-03-25 00:11:27 +000096 >;
97};