MediaTek MT6357 PMIC
Schema identifier ($id): "http://devicetree.org/schemas/mfd/mediatek,mt6357.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Flora Fu <flora.fu@mediatek.com>", "Alexandre Mergnat <amergnat@baylibre.com>"
MT6357 is a power management system chip containing 5 buck converters and 29 LDOs. Supported features are audio codec, USB battery charging, fuel gauge, RTC
This is a multifunction device with the following sub modules: - Regulator - RTC - Keys
It is interfaced to host controller using SPI interface by a proprietary hardware called PMIC wrapper or pwrap. This MFD is a child device of pwrap. See the following for pwrap node definitions: Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "mediatek,mt6357"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
interrupt-controller — not listed as required here #
true — No constraints added by this property rule.
#interrupt-cells — not listed as required here #
Exact value (const): 2
mediatek,hp-pull-down — not listed as required here #
Earphone driver positive output stage short to the audio reference ground.
Value type (type): "boolean"
mediatek,micbias0-microvolt — not listed as required here #
Selects MIC Bias 0 output voltage.
Allowed values (enum): 1700000, 1800000, 1900000, 2000000, 2100000, 2500000, 2600000, 2700000
Default value (default): 1700000
mediatek,micbias1-microvolt — not listed as required here #
Selects MIC Bias 1 output voltage.
Allowed values (enum): 1700000, 1800000, 1900000, 2000000, 2100000, 2500000, 2600000, 2700000
Default value (default): 1700000
regulators — required here #
Value type (type): "object"
Shared schema rule ($ref): /schemas/regulator/mediatek,mt6357-regulator.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
List of MT6357 BUCKs and LDOs regulators.
rtc — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): /schemas/rtc/rtc.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
MT6357 Real Time Clock.
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "mediatek,mt6357-rtc"
start-year — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "compatible"
keys — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): /schemas/input/mediatek,pmic-keys.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
MT6357 power and home keys.
Required in this object (required): "compatible", "regulators"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
pwrap {
pmic {
compatible = "mediatek,mt6357";
interrupt-parent = <&pio>;
interrupts = <145 IRQ_TYPE_LEVEL_HIGH>;
interrupt-controller;
#interrupt-cells = <2>;
mediatek,micbias0-microvolt = <1700000>;
mediatek,micbias1-microvolt = <1700000>;
regulators {
mt6357_vproc_reg: buck-vproc {
regulator-name = "vproc";
regulator-min-microvolt = <518750>;
regulator-max-microvolt = <1312500>;
regulator-ramp-delay = <6250>;
regulator-enable-ramp-delay = <220>;
regulator-always-on;
};
// ...
mt6357_vusb33_reg: ldo-vusb33 {
regulator-name = "vusb33";
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3100000>;
regulator-enable-ramp-delay = <264>;
};
};
rtc {
compatible = "mediatek,mt6357-rtc";
};
keys {
compatible = "mediatek,mt6357-keys";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause