GNU Linux-libre 4.14.266-gnu1
[releases.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 - LED
10
11 It is interfaced to host controller using SPI interface by a proprietary hardware
12 called PMIC wrapper or pwrap. MT6397/MT6323 MFD is a child device of pwrap.
13 See the following for pwarp node definitions:
14 Documentation/devicetree/bindings/soc/pwrap.txt
15
16 This document describes the binding for MFD device and its sub module.
17
18 Required properties:
19 compatible: "mediatek,mt6397" or "mediatek,mt6323"
20
21 Optional subnodes:
22
23 - rtc
24         Required properties:
25                 - compatible: "mediatek,mt6397-rtc"
26 - regulators
27         Required properties:
28                 - compatible: "mediatek,mt6397-regulator"
29         see Documentation/devicetree/bindings/regulator/mt6397-regulator.txt
30                 - compatible: "mediatek,mt6323-regulator"
31         see Documentation/devicetree/bindings/regulator/mt6323-regulator.txt
32 - codec
33         Required properties:
34                 - compatible: "mediatek,mt6397-codec"
35 - clk
36         Required properties:
37                 - compatible: "mediatek,mt6397-clk"
38 - led
39         Required properties:
40                 - compatible: "mediatek,mt6323-led"
41         see Documentation/devicetree/bindings/leds/leds-mt6323.txt
42
43 Example:
44         pwrap: pwrap@1000f000 {
45                 compatible = "mediatek,mt8135-pwrap";
46
47                 ...
48
49                 pmic {
50                         compatible = "mediatek,mt6397";
51
52                         codec: mt6397codec {
53                                 compatible = "mediatek,mt6397-codec";
54                         };
55
56                         regulators {
57                                 compatible = "mediatek,mt6397-regulator";
58
59                                 mt6397_vpca15_reg: buck_vpca15 {
60                                         regulator-compatible = "buck_vpca15";
61                                         regulator-name = "vpca15";
62                                         regulator-min-microvolt = <850000>;
63                                         regulator-max-microvolt = <1400000>;
64                                         regulator-ramp-delay = <12500>;
65                                         regulator-always-on;
66                                 };
67
68                                 mt6397_vgp4_reg: ldo_vgp4 {
69                                         regulator-compatible = "ldo_vgp4";
70                                         regulator-name = "vgp4";
71                                         regulator-min-microvolt = <1200000>;
72                                         regulator-max-microvolt = <3300000>;
73                                         regulator-enable-ramp-delay = <218>;
74                                 };
75                         };
76                 };
77         };