1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/regulator/mediatek,mt6316c-regulator.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: MediaTek MT6316 CP/HP/KP SPMI PMIC Regulators 8 9maintainers: 10 - AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> 11 12description: 13 The MediaTek MT6316CP/HP/KP PMICs are fully controlled by SPMI interface, 14 features four step-down DC/DC (buck) converters, and provides 3+1 Phases, 15 joining Buck 1+2+4 for the first phase, and uses Buck 3 for the second. 16 17properties: 18 compatible: 19 const: mediatek,mt6316c-regulator 20 21 reg: 22 maxItems: 1 23 24patternProperties: 25 "^vbuck(124|3)$": 26 type: object 27 $ref: regulator.yaml# 28 unevaluatedProperties: false 29 properties: 30 regulator-allowed-modes: 31 description: | 32 Allowed Buck regulator operating modes allowed. Valid values below. 33 0 - Normal mode with automatic power saving, reducing the switching 34 frequency when light load conditions are detected 35 1 - Forced Continuous Conduction mode (FCCM) for improved voltage 36 regulation accuracy with constant switching frequency but lower 37 regulator efficiency 38 2 - Forced Low Power mode for improved regulator efficiency, used 39 when no heavy load is expected, will shut down unnecessary IP 40 blocks and secondary phases to reduce quiescent current. 41 This mode does not limit the maximum output current but unless 42 only a light load is applied, there will be regulation accuracy 43 and efficiency losses. 44 minItems: 1 45 maxItems: 3 46 items: 47 enum: [ 0, 1, 2 ] 48 49required: 50 - compatible 51 - reg 52 53additionalProperties: false 54 55examples: 56 - | 57 #include <dt-bindings/spmi/spmi.h> 58 59 spmi { 60 #address-cells = <2>; 61 #size-cells = <0>; 62 63 pmic@6 { 64 compatible = "mediatek,mt6316c-regulator"; 65 reg = <0x6 SPMI_USID>; 66 67 vbuck124 { 68 regulator-name = "dvdd_proc_m"; 69 regulator-min-microvolt = <450000>; 70 regulator-max-microvolt = <1277500>; 71 regulator-allowed-modes = <0 1 2>; 72 regulator-enable-ramp-delay = <256>; 73 }; 74 }; 75 }; 76... 77