2016-01-27 12:47:35 +01:00
MediaTek MT6397/MT6323 Multifunction Device Driver
2015-02-22 13:15:30 +01:00
2016-01-27 12:47:35 +01:00
MT6397/MT6323 is a multifunction device with the following sub modules:
2015-02-22 13:15:30 +01:00
- Regulator
- RTC
- Audio codec
- GPIO
- Clock
2017-03-20 14:47:25 +08:00
- LED
2017-10-25 21:16:02 +08:00
- Keys
2019-08-18 15:56:01 +02:00
- Power controller
2015-02-22 13:15:30 +01:00
It is interfaced to host controller using SPI interface by a proprietary hardware
2016-01-27 12:47:35 +01:00
called PMIC wrapper or pwrap. MT6397/MT6323 MFD is a child device of pwrap.
2015-02-22 13:15:30 +01:00
See the following for pwarp node definitions:
2019-08-18 15:55:59 +02:00
../soc/mediatek/pwrap.txt
2015-02-22 13:15:30 +01:00
This document describes the binding for MFD device and its sub module.
Required properties:
2020-04-21 11:00:09 +08:00
compatible:
"mediatek,mt6323" for PMIC MT6323
"mediatek,mt6358" for PMIC MT6358
"mediatek,mt6397" for PMIC MT6397
2015-02-22 13:15:30 +01:00
Optional subnodes:
- rtc
2019-08-18 15:56:00 +02:00
Required properties: Should be one of follows
- compatible: "mediatek,mt6323-rtc"
2020-04-21 11:00:09 +08:00
- compatible: "mediatek,mt6358-rtc"
2015-02-22 13:15:30 +01:00
- compatible: "mediatek,mt6397-rtc"
2019-08-18 15:56:00 +02:00
For details, see ../rtc/rtc-mt6397.txt
2015-02-22 13:15:30 +01:00
- regulators
Required properties:
2016-01-27 12:47:35 +01:00
- compatible: "mediatek,mt6323-regulator"
2019-08-18 15:55:59 +02:00
see ../regulator/mt6323-regulator.txt
2020-04-21 11:00:09 +08:00
- compatible: "mediatek,mt6358-regulator"
see ../regulator/mt6358-regulator.txt
- compatible: "mediatek,mt6397-regulator"
see ../regulator/mt6397-regulator.txt
2015-02-22 13:15:30 +01:00
- codec
Required properties:
2020-04-21 11:00:09 +08:00
- compatible: "mediatek,mt6397-codec" or "mediatek,mt6358-sound"
2015-02-22 13:15:30 +01:00
- clk
Required properties:
- compatible: "mediatek,mt6397-clk"
2017-01-23 11:54:43 +08:00
- led
Required properties:
- compatible: "mediatek,mt6323-led"
2019-08-18 15:55:59 +02:00
see ../leds/leds-mt6323.txt
2015-02-22 13:15:30 +01:00
2017-10-25 21:16:02 +08:00
- keys
Required properties:
- compatible: "mediatek,mt6397-keys" or "mediatek,mt6323-keys"
2019-08-18 15:55:59 +02:00
see ../input/mtk-pmic-keys.txt
2017-10-25 21:16:02 +08:00
2019-08-18 15:56:01 +02:00
- power-controller
Required properties:
- compatible: "mediatek,mt6323-pwrc"
For details, see ../power/reset/mt6323-poweroff.txt
2015-02-22 13:15:30 +01:00
Example:
pwrap: pwrap@1000f000 {
compatible = "mediatek,mt8135-pwrap";
...
pmic {
compatible = "mediatek,mt6397";
codec: mt6397codec {
compatible = "mediatek,mt6397-codec";
};
regulators {
compatible = "mediatek,mt6397-regulator";
mt6397_vpca15_reg: buck_vpca15 {
regulator-compatible = "buck_vpca15";
regulator-name = "vpca15";
regulator-min-microvolt = <850000>;
regulator-max-microvolt = <1400000>;
regulator-ramp-delay = <12500>;
regulator-always-on;
};
mt6397_vgp4_reg: ldo_vgp4 {
regulator-compatible = "ldo_vgp4";
regulator-name = "vgp4";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <3300000>;
regulator-enable-ramp-delay = <218>;
};
};
};
};