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 10It is interfaced to host controller using SPI interface by a proprietary hardware 11called PMIC wrapper or pwrap. MT6397/MT6323 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" or "mediatek,mt6323" 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 - compatible: "mediatek,mt6323-regulator" 30 see Documentation/devicetree/bindings/regulator/mt6323-regulator.txt 31- codec 32 Required properties: 33 - compatible: "mediatek,mt6397-codec" 34- clk 35 Required properties: 36 - compatible: "mediatek,mt6397-clk" 37 38Example: 39 pwrap: pwrap@1000f000 { 40 compatible = "mediatek,mt8135-pwrap"; 41 42 ... 43 44 pmic { 45 compatible = "mediatek,mt6397"; 46 47 codec: mt6397codec { 48 compatible = "mediatek,mt6397-codec"; 49 }; 50 51 regulators { 52 compatible = "mediatek,mt6397-regulator"; 53 54 mt6397_vpca15_reg: buck_vpca15 { 55 regulator-compatible = "buck_vpca15"; 56 regulator-name = "vpca15"; 57 regulator-min-microvolt = <850000>; 58 regulator-max-microvolt = <1400000>; 59 regulator-ramp-delay = <12500>; 60 regulator-always-on; 61 }; 62 63 mt6397_vgp4_reg: ldo_vgp4 { 64 regulator-compatible = "ldo_vgp4"; 65 regulator-name = "vgp4"; 66 regulator-min-microvolt = <1200000>; 67 regulator-max-microvolt = <3300000>; 68 regulator-enable-ramp-delay = <218>; 69 }; 70 }; 71 }; 72 }; 73