1MediaTek MT6397 Multifunction Device Driver
2
3MT6397 is a multifunction device with the following sub modules:
4- Regulator
5- RTC
6- Audio codec
7- GPIO
8- Clock
9
10It is interfaced to host controller using SPI interface by a proprietary hardware
11called PMIC wrapper or pwrap. MT6397 MFD is a child device of pwrap.
12See the following for pwarp node definitions:
13Documentation/devicetree/bindings/soc/pwrap.txt
14
15This document describes the binding for MFD device and its sub module.
16
17Required properties:
18compatible: "mediatek,mt6397"
19
20Optional 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- codec
30	Required properties:
31		- compatible: "mediatek,mt6397-codec"
32- clk
33	Required properties:
34		- compatible: "mediatek,mt6397-clk"
35
36Example:
37	pwrap: pwrap@1000f000 {
38		compatible = "mediatek,mt8135-pwrap";
39
40		...
41
42		pmic {
43			compatible = "mediatek,mt6397";
44
45			codec: mt6397codec {
46				compatible = "mediatek,mt6397-codec";
47			};
48
49			regulators {
50				compatible = "mediatek,mt6397-regulator";
51
52				mt6397_vpca15_reg: buck_vpca15 {
53					regulator-compatible = "buck_vpca15";
54					regulator-name = "vpca15";
55					regulator-min-microvolt = <850000>;
56					regulator-max-microvolt = <1400000>;
57					regulator-ramp-delay = <12500>;
58					regulator-always-on;
59				};
60
61				mt6397_vgp4_reg: ldo_vgp4 {
62					regulator-compatible = "ldo_vgp4";
63					regulator-name = "vgp4";
64					regulator-min-microvolt = <1200000>;
65					regulator-max-microvolt = <3300000>;
66					regulator-enable-ramp-delay = <218>;
67				};
68			};
69		};
70	};
71