diff options
author | Chen-Yu Tsai <wens@csie.org> | 2016-07-08 10:33:36 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-08-08 07:53:11 -0400 |
commit | 44fb25d031065fc846c0f97e37456a792312a7d1 (patch) | |
tree | 95ccf9db55baa7cdfb7ec54416f469a12aba5392 | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) |
mfd: ac100: Add device tree bindings for X-Powers AC100 codec/RTC combo IC
The AC100 is a multifunction device with an audio codec subsystem and
an RTC subsystem. These two subsystems share a common register space
and host interface.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | Documentation/devicetree/bindings/mfd/ac100.txt | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/mfd/ac100.txt b/Documentation/devicetree/bindings/mfd/ac100.txt new file mode 100644 index 000000000000..b8ef00667599 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/ac100.txt | |||
@@ -0,0 +1,54 @@ | |||
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 | - interrupt-parent: The parent interrupt controller | ||
14 | - interrupts: SoC NMI / GPIO interrupt connected to the | ||
15 | IRQ_AUDIO pin | ||
16 | - #clock-cells: Shall be 0 | ||
17 | - clock-output-names: "4M_adda" | ||
18 | |||
19 | - see clock/clock-bindings.txt for common clock bindings | ||
20 | |||
21 | - rtc | ||
22 | - compatible: "x-powers,ac100-rtc" | ||
23 | - interrupt-parent: The parent interrupt controller | ||
24 | - interrupts: SoC NMI / GPIO interrupt connected to the | ||
25 | IRQ_RTC pin | ||
26 | - clocks: A phandle to the codec's "4M_adda" clock | ||
27 | - #clock-cells: Shall be 1 | ||
28 | - clock-output-names: "cko1_rtc", "cko2_rtc", "cko3_rtc" | ||
29 | |||
30 | - see clock/clock-bindings.txt for common clock bindings | ||
31 | |||
32 | Example: | ||
33 | |||
34 | ac100: codec@e89 { | ||
35 | compatible = "x-powers,ac100"; | ||
36 | reg = <0xe89>; | ||
37 | |||
38 | ac100_codec: codec { | ||
39 | compatible = "x-powers,ac100-codec"; | ||
40 | interrupt-parent = <&r_pio>; | ||
41 | interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */ | ||
42 | #clock-cells = <0>; | ||
43 | clock-output-names = "4M_adda"; | ||
44 | }; | ||
45 | |||
46 | ac100_rtc: rtc { | ||
47 | compatible = "x-powers,ac100-rtc"; | ||
48 | interrupt-parent = <&nmi_intc>; | ||
49 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; | ||
50 | clocks = <&ac100_codec>; | ||
51 | #clock-cells = <1>; | ||
52 | clock-output-names = "cko1_rtc", "cko2_rtc", "cko3_rtc"; | ||
53 | }; | ||
54 | }; | ||