1MediaTek MT6397/MT6323 Multifunction Device Driver 2 3MT6397/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- Power controller 12 13It is interfaced to host controller using SPI interface by a proprietary hardware 14called PMIC wrapper or pwrap. MT6397/MT6323 MFD is a child device of pwrap. 15See the following for pwarp node definitions: 16../soc/mediatek/pwrap.txt 17 18This document describes the binding for MFD device and its sub module. 19 20Required properties: 21compatible: "mediatek,mt6397" or "mediatek,mt6323" 22 23Optional subnodes: 24 25- rtc 26 Required properties: Should be one of follows 27 - compatible: "mediatek,mt6323-rtc" 28 - compatible: "mediatek,mt6397-rtc" 29 For details, see ../rtc/rtc-mt6397.txt 30- regulators 31 Required properties: 32 - compatible: "mediatek,mt6397-regulator" 33 see ../regulator/mt6397-regulator.txt 34 - compatible: "mediatek,mt6323-regulator" 35 see ../regulator/mt6323-regulator.txt 36- codec 37 Required properties: 38 - compatible: "mediatek,mt6397-codec" 39- clk 40 Required properties: 41 - compatible: "mediatek,mt6397-clk" 42- led 43 Required properties: 44 - compatible: "mediatek,mt6323-led" 45 see ../leds/leds-mt6323.txt 46 47- keys 48 Required properties: 49 - compatible: "mediatek,mt6397-keys" or "mediatek,mt6323-keys" 50 see ../input/mtk-pmic-keys.txt 51 52- power-controller 53 Required properties: 54 - compatible: "mediatek,mt6323-pwrc" 55 For details, see ../power/reset/mt6323-poweroff.txt 56 57Example: 58 pwrap: pwrap@1000f000 { 59 compatible = "mediatek,mt8135-pwrap"; 60 61 ... 62 63 pmic { 64 compatible = "mediatek,mt6397"; 65 66 codec: mt6397codec { 67 compatible = "mediatek,mt6397-codec"; 68 }; 69 70 regulators { 71 compatible = "mediatek,mt6397-regulator"; 72 73 mt6397_vpca15_reg: buck_vpca15 { 74 regulator-compatible = "buck_vpca15"; 75 regulator-name = "vpca15"; 76 regulator-min-microvolt = <850000>; 77 regulator-max-microvolt = <1400000>; 78 regulator-ramp-delay = <12500>; 79 regulator-always-on; 80 }; 81 82 mt6397_vgp4_reg: ldo_vgp4 { 83 regulator-compatible = "ldo_vgp4"; 84 regulator-name = "vgp4"; 85 regulator-min-microvolt = <1200000>; 86 regulator-max-microvolt = <3300000>; 87 regulator-enable-ramp-delay = <218>; 88 }; 89 }; 90 }; 91 }; 92