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