Merge tag 'platform-drivers-x86-v4.11-2' of git://git.infradead.org/linux-platform...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / mfd / mt6397.txt
1 MediaTek MT6397/MT6323 Multifunction Device Driver
2
3 MT6397/MT6323 is a multifunction device with the following sub modules:
4 - Regulator
5 - RTC
6 - Audio codec
7 - GPIO
8 - Clock
9
10 It is interfaced to host controller using SPI interface by a proprietary hardware
11 called PMIC wrapper or pwrap. MT6397/MT6323 MFD is a child device of pwrap.
12 See the following for pwarp node definitions:
13 Documentation/devicetree/bindings/soc/pwrap.txt
14
15 This document describes the binding for MFD device and its sub module.
16
17 Required properties:
18 compatible: "mediatek,mt6397" or "mediatek,mt6323"
19
20 Optional subnodes:
21
22 - rtc
23         Required properties:
24                 - compatible: "mediatek,mt6397-rtc"
25 - regulators
26         Required properties:
27                 - compatible: "mediatek,mt6397-regulator"
28         see Documentation/devicetree/bindings/regulator/mt6397-regulator.txt
29                 - compatible: "mediatek,mt6323-regulator"
30         see Documentation/devicetree/bindings/regulator/mt6323-regulator.txt
31 - codec
32         Required properties:
33                 - compatible: "mediatek,mt6397-codec"
34 - clk
35         Required properties:
36                 - compatible: "mediatek,mt6397-clk"
37 - led
38         Required properties:
39                 - compatible: "mediatek,mt6323-led"
40         see Documentation/devicetree/bindings/leds/leds-mt6323.txt
41
42 Example:
43         pwrap: pwrap@1000f000 {
44                 compatible = "mediatek,mt8135-pwrap";
45
46                 ...
47
48                 pmic {
49                         compatible = "mediatek,mt6397";
50
51                         codec: mt6397codec {
52                                 compatible = "mediatek,mt6397-codec";
53                         };
54
55                         regulators {
56                                 compatible = "mediatek,mt6397-regulator";
57
58                                 mt6397_vpca15_reg: buck_vpca15 {
59                                         regulator-compatible = "buck_vpca15";
60                                         regulator-name = "vpca15";
61                                         regulator-min-microvolt = <850000>;
62                                         regulator-max-microvolt = <1400000>;
63                                         regulator-ramp-delay = <12500>;
64                                         regulator-always-on;
65                                 };
66
67                                 mt6397_vgp4_reg: ldo_vgp4 {
68                                         regulator-compatible = "ldo_vgp4";
69                                         regulator-name = "vgp4";
70                                         regulator-min-microvolt = <1200000>;
71                                         regulator-max-microvolt = <3300000>;
72                                         regulator-enable-ramp-delay = <218>;
73                                 };
74                         };
75                 };
76         };