mfd: arizona: Update DT bindings to add CS47L24 and WM1831
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / mfd / arizona.txt
1 Cirrus Logic/Wolfson Microelectronics Arizona class audio SoCs
2
3 These devices are audio SoCs with extensive digital capabilites and a range
4 of analogue I/O.
5
6 Required properties:
7
8   - compatible : One of the following chip-specific strings:
9         "cirrus,cs47l24"
10         "wlf,wm5102"
11         "wlf,wm5110"
12         "wlf,wm8280"
13         "wlf,wm8997"
14         "wlf,wm8998"
15         "wlf,wm1814"
16         "wlf,wm1831"
17
18   - reg : I2C slave address when connected using I2C, chip select number when
19     using SPI.
20
21   - interrupts : The interrupt line the /IRQ signal for the device is
22     connected to.
23   - interrupt-controller : Arizona class devices contain interrupt controllers
24     and may provide interrupt services to other devices.
25   - interrupt-parent : The parent interrupt controller.
26   - #interrupt-cells: the number of cells to describe an IRQ, this should be 2.
27     The first cell is the IRQ number.
28     The second cell is the flags, encoded as the trigger masks from
29     Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
30
31   - gpio-controller : Indicates this device is a GPIO controller.
32   - #gpio-cells : Must be 2. The first cell is the pin number and the
33     second cell is used to specify optional parameters (currently unused).
34
35   - AVDD-supply, DBVDD1-supply, CPVDD-supply : Power supplies for the device,
36     as covered in Documentation/devicetree/bindings/regulator/regulator.txt
37
38   - DBVDD2-supply, DBVDD3-supply : Additional databus power supplies (wm5102,
39     wm5110, wm8280, wm8998, wm1814)
40
41   - SPKVDDL-supply, SPKVDDR-supply : Speaker driver power supplies (wm5102,
42     wm5110, wm8280, wm8998, wm1814)
43
44   - SPKVDD-supply : Speaker driver power supply (wm8997)
45
46   - DCVDD-supply : Main power supply (cs47l24, wm1831)
47
48   - MICVDD-supply : Microphone power supply (cs47l24, wm1831)
49
50 Optional properties:
51
52   - wlf,reset : GPIO specifier for the GPIO controlling /RESET
53
54   - wlf,gpio-defaults : A list of GPIO configuration register values. Defines
55     for the appropriate values can found in <dt-bindings/mfd/arizona.txt>. If
56     absent, no configuration of these registers is performed. If any entry has
57     a value that is out of range for a 16 bit register then the chip default
58     will be used. If present exactly five values must be specified.
59
60   - wlf,inmode : A list of INn_MODE register values, where n is the number
61     of input signals. Valid values are 0 (Differential), 1 (Single-ended) and
62     2 (Digital Microphone). If absent, INn_MODE registers set to 0 by default.
63     If present, values must be specified less than or equal to the number of
64     input signals. If values less than the number of input signals, elements
65     that have not been specified are set to 0 by default. Entries are:
66     <IN1, IN2, IN3, IN4> (wm5102, wm5110, wm8280, wm8997)
67     <IN1A, IN2A, IN1B, IN2B> (wm8998, wm1814)
68
69   - wlf,dmic-ref : DMIC reference voltage source for each input, can be
70     selected from either MICVDD or one of the MICBIAS's, defines
71     (ARIZONA_DMIC_xxxx) are provided in <dt-bindings/mfd/arizona.txt>. If
72     present, the number of values should be less than or equal to the
73     number of inputs, unspecified inputs will use the chip default.
74
75   - DCVDD-supply, MICVDD-supply : Power supplies, only need to be specified if
76     they are being externally supplied. As covered in
77     Documentation/devicetree/bindings/regulator/regulator.txt
78     (wm5102, wm5110, wm8280, wm8997, wm8998, wm1814)
79
80 Also see child specific device properties:
81   Regulator - ../regulator/arizona-regulator.txt
82   Extcon    - ../extcon/extcon-arizona.txt
83
84 Example:
85
86 codec: wm5102@1a {
87         compatible = "wlf,wm5102";
88         reg = <0x1a>;
89         interrupts = <347>;
90         interrupt-controller;
91         #interrupt-cells = <2>;
92         interrupt-parent = <&gic>;
93
94         gpio-controller;
95         #gpio-cells = <2>;
96
97         wlf,gpio-defaults = <
98                 ARIZONA_GP_FN_TXLRCLK
99                 ARIZONA_GP_DEFAULT
100                 ARIZONA_GP_DEFAULT
101                 ARIZONA_GP_DEFAULT
102                 ARIZONA_GP_DEFAULT
103         >;
104 };