1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/regulator/mediatek,mt6358-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MediaTek MT6358 Regulator
10 - Zhiyong Tao <zhiyong.tao@mediatek.com>
13 Regulator node of the PMIC. This node should under the PMIC's device node.
14 All voltage regulators provided by the PMIC are described as sub-nodes of
20 - const: mediatek,mt6358-regulator
22 - const: mediatek,mt6366-regulator
23 - const: mediatek,mt6358-regulator
26 description: Supply for LDOs vfe28, vxo22, vcn28, vaux18, vaud28, vsim1, vusb, vbif28
28 description: Supply for LDOs vldo28 (MT6358 only), vio28, vmc, vmch, vsim2
30 description: Supply for LDOs vcn33, vcama[12] (MT6358 only), vemc, vibr
32 description: Supply for buck regulator vcore
34 description: Supply for buck regulator vdram1
36 description: Supply for buck regulator vgpu
38 description: Supply for buck regulator vmodem
40 description: Supply for buck regulator vpa
42 description: Supply for buck regulator vproc11
44 description: Supply for buck regulator vproc12
46 description: Supply for buck regulator vs1
48 description: Supply for buck regulator vs2
51 Supply for LDOs vrf18, vefuse, vcn18, vcamio (MT6358 only), vio18, vm18 (MT6366 only)
53 description: Supply for LDOs vdram2, vmddr (MT6366 only)
55 description: Supply for LDOs vrf12, va12
58 Supply for LDOs vsram-core (MT6366 only), vsram-gpu, vsram-others, vsram-proc11, vsram-proc12
60 description: Supply for LDO vcamd
63 "^(buck_)?v(core|dram1|gpu|modem|pa|proc1[12]|s[12])$":
64 description: Buck regulators
68 regulator-allowed-modes:
70 Buck regulatpr operating modes allowed. Valid values below.
71 Users should use the macros from dt-bindings/regulator/mediatek,mt6397-regulator.h
72 0 (MT6397_BUCK_MODE_AUTO): Auto PFM/PWM mode
73 1 (MT6397_BUCK_MODE_FORCE_PWM): Forced PWM mode
76 unevaluatedProperties: false
79 description: LDOs with fixed 1.2V output and 0~100/10mV tuning
83 regulator-allowed-modes: false
84 unevaluatedProperties: false
86 "^(ldo_)?v((aux|cn|io|rf)18|camio)$":
88 LDOs with fixed 1.8V output and 0~100/10mV tuning (vcn18 on MT6366 has variable output)
92 regulator-allowed-modes: false
93 unevaluatedProperties: false
96 description: LDOs with fixed 2.2V output and 0~100/10mV tuning
100 regulator-allowed-modes: false
101 unevaluatedProperties: false
103 "^(ldo_)?v(aud|bif|cn|fe|io)28$":
104 description: LDOs with fixed 2.8V output and 0~100/10mV tuning
106 $ref: regulator.yaml#
108 regulator-allowed-modes: false
109 unevaluatedProperties: false
112 description: LDOs with fixed 3.0V output and 0~100/10mV tuning
114 $ref: regulator.yaml#
116 regulator-allowed-modes: false
117 unevaluatedProperties: false
119 "^(ldo_)?vsram[_-](core|gpu|others|proc1[12])$":
120 description: LDOs with variable output
122 $ref: regulator.yaml#
124 regulator-allowed-modes: false
125 unevaluatedProperties: false
127 "^(ldo_)?v(cama[12]|camd|cn33|dram2|efuse|emc|ibr|ldo28|m18|mc|mch|mddr|sim[12])$":
128 description: LDOs with variable output and 0~100/10mV tuning
130 $ref: regulator.yaml#
132 regulator-allowed-modes: false
133 unevaluatedProperties: false
138 additionalProperties: false
144 const: mediatek,mt6358-regulator
147 # Old regulator node name scheme (with prefix and underscores) only
148 # ([^y-] is used to avoid matching -supply
149 "^(?<!buck_)(?<!ldo_)v.*[^y-](?!-supply)$": false
151 # vsram_core regulator doesn't exist on MT6358
152 "^ldo_vsram[-_]core$": false
155 # vm18 and vmddr regulators don't exist on MT6358
163 const: mediatek,mt6366-regulator
166 # Prefer cleaned up regulator node names
167 "^(buck|ldo)_": false
168 # Don't allow underscores
170 # vcam* regulators don't exist on MT6366
174 # vldo28 regulator doesn't exist on MT6366
176 # vs2_ldo4 supply pin doesn't exist on MT6366
177 vs2-ldo4-supply: false
181 #include <dt-bindings/regulator/mediatek,mt6397-regulator.h>
184 compatible = "mediatek,mt6358-regulator";
187 regulator-name = "vgpu";
188 regulator-min-microvolt = <625000>;
189 regulator-max-microvolt = <900000>;
190 regulator-ramp-delay = <6250>;
191 regulator-enable-ramp-delay = <200>;
192 regulator-allowed-modes = <MT6397_BUCK_MODE_AUTO
193 MT6397_BUCK_MODE_FORCE_PWM>;
197 regulator-name = "vsram_gpu";
198 regulator-min-microvolt = <850000>;
199 regulator-max-microvolt = <1000000>;
200 regulator-ramp-delay = <6250>;
201 regulator-enable-ramp-delay = <240>;
206 #include <dt-bindings/regulator/mediatek,mt6397-regulator.h>
209 compatible = "mediatek,mt6366-regulator", "mediatek,mt6358-regulator";
212 regulator-name = "pp1125_emi_vdd2";
213 regulator-min-microvolt = <1125000>;
214 regulator-max-microvolt = <1125000>;
215 regulator-ramp-delay = <12500>;
216 regulator-enable-ramp-delay = <0>;
217 regulator-allowed-modes = <MT6397_BUCK_MODE_AUTO
218 MT6397_BUCK_MODE_FORCE_PWM>;
223 regulator-name = "ppvar_dvdd_proc_bc_mt6366";
224 regulator-min-microvolt = <600000>;
225 regulator-max-microvolt = <1200000>;
226 regulator-ramp-delay = <6250>;
227 regulator-enable-ramp-delay = <200>;
228 regulator-allowed-modes = <MT6397_BUCK_MODE_AUTO
229 MT6397_BUCK_MODE_FORCE_PWM>;
234 regulator-name = "pm0750_emi_vmddr";
235 regulator-min-microvolt = <700000>;
236 regulator-max-microvolt = <750000>;
237 regulator-enable-ramp-delay = <325>;
242 regulator-name = "pp0900_dvdd_sram_bc";
243 regulator-min-microvolt = <850000>;
244 regulator-max-microvolt = <1120000>;
245 regulator-ramp-delay = <6250>;
246 regulator-enable-ramp-delay = <240>;