Merge tag 'nfs-for-4.19-2' of git://git.linux-nfs.org/projects/anna/linux-nfs
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / mfd / ac100.txt
1 X-Powers AC100 Codec/RTC IC Device Tree bindings
2
3 AC100 is a audio codec and RTC subsystem combo IC. The 2 parts are
4 separated, including power supplies and interrupt lines, but share
5 a common register address space and host interface.
6
7 Required properties:
8 - compatible: "x-powers,ac100"
9 - reg: The I2C slave address or RSB hardware address for the chip
10 - sub-nodes:
11   - codec
12     - compatible:               "x-powers,ac100-codec"
13     - interrupts:               SoC NMI / GPIO interrupt connected to the
14                                 IRQ_AUDIO pin
15     - #clock-cells:             Shall be 0
16     - clock-output-names:       "4M_adda"
17
18     - see clock/clock-bindings.txt for common clock bindings
19
20   - rtc
21     - compatible:               "x-powers,ac100-rtc"
22     - clocks:                   A phandle to the codec's "4M_adda" clock
23     - #clock-cells:             Shall be 1
24     - clock-output-names:       "cko1_rtc", "cko2_rtc", "cko3_rtc"
25
26     - see clock/clock-bindings.txt for common clock bindings
27
28 Example:
29
30 ac100: codec@e89 {
31         compatible = "x-powers,ac100";
32         reg = <0xe89>;
33
34         ac100_codec: codec {
35                 compatible = "x-powers,ac100-codec";
36                 interrupt-parent = <&r_pio>;
37                 interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */
38                 #clock-cells = <0>;
39                 clock-output-names = "4M_adda";
40         };
41
42         ac100_rtc: rtc {
43                 compatible = "x-powers,ac100-rtc";
44                 interrupt-parent = <&nmi_intc>;
45                 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
46                 clocks = <&ac100_codec>;
47                 #clock-cells = <1>;
48                 clock-output-names = "cko1_rtc", "cko2_rtc", "cko3_rtc";
49         };
50 };