Back to home page

OSCL-LXR

 
 

    


0001 MediaTek MT6397/MT6323 Multifunction Device Driver
0002 
0003 MT6397/MT6323 is a multifunction device with the following sub modules:
0004 - Regulator
0005 - RTC
0006 - Audio codec
0007 - GPIO
0008 - Clock
0009 - LED
0010 - Keys
0011 - Power controller
0012 
0013 It is interfaced to host controller using SPI interface by a proprietary hardware
0014 called PMIC wrapper or pwrap. MT6397/MT6323 MFD is a child device of pwrap.
0015 See the following for pwarp node definitions:
0016 ../soc/mediatek/pwrap.txt
0017 
0018 This document describes the binding for MFD device and its sub module.
0019 
0020 Required properties:
0021 compatible:
0022         "mediatek,mt6323" for PMIC MT6323
0023         "mediatek,mt6331" for PMIC MT6331 and MT6332
0024         "mediatek,mt6358" for PMIC MT6358 and MT6366
0025         "mediatek,mt6359" for PMIC MT6359
0026         "mediatek,mt6397" for PMIC MT6397
0027 
0028 Optional subnodes:
0029 
0030 - rtc
0031         Required properties: Should be one of follows
0032                 - compatible: "mediatek,mt6323-rtc"
0033                 - compatible: "mediatek,mt6331-rtc"
0034                 - compatible: "mediatek,mt6358-rtc"
0035                 - compatible: "mediatek,mt6397-rtc"
0036         For details, see ../rtc/rtc-mt6397.txt
0037 - regulators
0038         Required properties:
0039                 - compatible: "mediatek,mt6323-regulator"
0040         see ../regulator/mt6323-regulator.txt
0041                 - compatible: "mediatek,mt6358-regulator"
0042         see ../regulator/mt6358-regulator.txt
0043                 - compatible: "mediatek,mt6397-regulator"
0044         see ../regulator/mt6397-regulator.txt
0045 - codec
0046         Required properties:
0047                 - compatible: "mediatek,mt6397-codec" or "mediatek,mt6358-sound"
0048 - clk
0049         Required properties:
0050                 - compatible: "mediatek,mt6397-clk"
0051 - led
0052         Required properties:
0053                 - compatible: "mediatek,mt6323-led"
0054         see ../leds/leds-mt6323.txt
0055 
0056 - keys
0057         Required properties: Should be one of the following
0058                 - compatible: "mediatek,mt6323-keys"
0059                 - compatible: "mediatek,mt6331-keys"
0060                 - compatible: "mediatek,mt6397-keys"
0061         see ../input/mtk-pmic-keys.txt
0062 
0063 - power-controller
0064         Required properties:
0065                 - compatible: "mediatek,mt6323-pwrc"
0066         For details, see ../power/reset/mt6323-poweroff.txt
0067 
0068 - pin-controller
0069         Required properties:
0070                 - compatible: "mediatek,mt6397-pinctrl"
0071         For details, see ../pinctrl/pinctrl-mt65xx.txt
0072 
0073 Example:
0074         pwrap: pwrap@1000f000 {
0075                 compatible = "mediatek,mt8135-pwrap";
0076 
0077                 ...
0078 
0079                 pmic {
0080                         compatible = "mediatek,mt6397";
0081 
0082                         codec: mt6397codec {
0083                                 compatible = "mediatek,mt6397-codec";
0084                         };
0085 
0086                         regulators {
0087                                 compatible = "mediatek,mt6397-regulator";
0088 
0089                                 mt6397_vpca15_reg: buck_vpca15 {
0090                                         regulator-compatible = "buck_vpca15";
0091                                         regulator-name = "vpca15";
0092                                         regulator-min-microvolt = <850000>;
0093                                         regulator-max-microvolt = <1400000>;
0094                                         regulator-ramp-delay = <12500>;
0095                                         regulator-always-on;
0096                                 };
0097 
0098                                 mt6397_vgp4_reg: ldo_vgp4 {
0099                                         regulator-compatible = "ldo_vgp4";
0100                                         regulator-name = "vgp4";
0101                                         regulator-min-microvolt = <1200000>;
0102                                         regulator-max-microvolt = <3300000>;
0103                                         regulator-enable-ramp-delay = <218>;
0104                                 };
0105                         };
0106                 };
0107         };