# MediaTek MT6397 Regulator

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Regulator bindings_

> Device-tree binding reference for MediaTek MT6397 Regulator.

<!-- SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) -->


<a id="dt-root"></a>

**Schema identifier (<code>&#36;id</code>):** <span id="dt-09f478f44eb202ea573e"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;schemas&#47;regulator&#47;mediatek&#44;mt6397&#45;regulator&#46;yaml&#35;&#34;</code></span>

**Schema dialect (<code>&#36;schema</code>):** <span id="dt-dcb375baab6014763a68"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;meta&#45;schemas&#47;core&#46;yaml&#35;&#34;</code></span>

<a id="dt-e46b5a5dd81dbd751c9f"></a>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Sen Chu &#60;sen&#46;chu&#64;mediatek&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Macpaul Lin &#60;macpaul&#46;lin&#64;mediatek&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Regulator node of the PMIC. This node should under the PMIC's device node. All voltage regulators provided by the PMIC are described as sub-nodes of this node.</p>
</div>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

<a id="dt-cc3709943397035582d2"></a>

#### Array item rules (<code>items</code>)

<a id="dt-fec97e71a4359503ae6e"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-aaadfb6b044cada8472e"><code>&#34;mediatek&#44;mt6397&#45;regulator&#34;</code></span>

<a id="dt-e92215bd3c2f5373b164"></a>

## Properties matching a name pattern (<code>patternProperties</code>)

<a id="dt-7c2e4c16d1641e86253f"></a>

### <code>&#94;&#40;buck&#95;&#41;&#63;v&#40;core&#124;drm&#124;gpu&#124;io18&#124;pca&#40;7&#124;15&#41;&#124;sramca&#40;7&#124;15&#41;&#41;&#36;</code> — name matches this regular expression

<div id="dt-0b1908f67e335ef73569">
<p style="white-space: pre-wrap">Buck regulators</p>
</div>

**Value type (<code>type</code>):** <span id="dt-da497c5b966de6314ba7"><code>&#34;object&#34;</code></span>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-183b0b1a97713d44af72">[<code>regulator&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-regulator/regulator.md#dt-root>)</span>

<a id="dt-3aa1075be8b66adb149f"></a>

#### Properties and child nodes (<code>properties</code>)

<a id="dt-91eef7c012831463e578"></a>

**<code>regulator&#45;allowed&#45;modes</code> — not listed as required here**

<div id="dt-134d7f55922fc041dce2">
<p style="white-space: pre-wrap">BUCK regulators can set regulator-initial-mode and regulator-allowed-modes to
values specified in dt-bindings/regulator/mediatek,mt6397-regulator.h</p>
</div>

<a id="dt-6d4ff2128371e0df8dc1"></a>

**Array item rules (<code>items</code>)**

> **Allowed values (<code>enum</code>):** <a id="dt-6821739b97f3bd7f0231"></a> <span id="dt-0d83981638331766c5d5"><code>0</code></span>, <span id="dt-73a2addfcd7a0001ef04"><code>1</code></span>

<a id="dt-6eaf5f0138c42bb77695"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-615478b744fb3213b704"></a>

### <code>&#94;&#40;ldo&#95;&#41;&#63;v&#40;tcxo&#124;&#40;a&#124;io&#41;28&#41;&#36;</code> — name matches this regular expression

<div id="dt-64ccca43cd992b352593">
<p style="white-space: pre-wrap">LDOs with fixed 2.8V output and 0~100/10mV tuning</p>
</div>

**Value type (<code>type</code>):** <span id="dt-3ca03d975083c9978745"><code>&#34;object&#34;</code></span>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-27969328fd44217dd131">[<code>regulator&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-regulator/regulator.md#dt-root>)</span>

<a id="dt-fbf509817ac1ef2c231c"></a>

#### Properties and child nodes (<code>properties</code>)

<a id="dt-f911984c51af1142e75a"></a>

**<code>regulator&#45;allowed&#45;modes</code> — not listed as required here**

<code>false</code> — Not permitted by this property rule.

<a id="dt-f552e6fc4512affb647f"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-6b9088bcf30eeeeaec57"></a>

### <code>&#94;&#40;ldo&#95;&#41;&#63;vusb&#36;</code> — name matches this regular expression

<div id="dt-e78cc1b77715e84660d4">
<p style="white-space: pre-wrap">LDOs with fixed 3.0V output and 0~100/10mV tuning</p>
</div>

**Value type (<code>type</code>):** <span id="dt-b253e6e74b500ab4d14c"><code>&#34;object&#34;</code></span>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-76f8c396717cd81ffe14">[<code>regulator&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-regulator/regulator.md#dt-root>)</span>

<a id="dt-1b10ae044ea89b3e1f50"></a>

#### Properties and child nodes (<code>properties</code>)

<a id="dt-2b12a723f244f638d090"></a>

**<code>regulator&#45;allowed&#45;modes</code> — not listed as required here**

<code>false</code> — Not permitted by this property rule.

<a id="dt-ee311cee1bf6ef5c6319"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-0648ebf23f9b5e34460d"></a>

### <code>&#94;&#40;ldo&#95;&#41;&#63;v&#40;cama&#124;emc3v3&#124;gp&#91;123456&#93;&#124;ibr&#124;mc&#124;mch&#41;&#36;</code> — name matches this regular expression

<div id="dt-af35df7f2bcb3a2db879">
<p style="white-space: pre-wrap">LDOs with variable output and 0~100/10mV tuning</p>
</div>

**Value type (<code>type</code>):** <span id="dt-b37f29332d01765e61cb"><code>&#34;object&#34;</code></span>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-d50b6d869e16110bfbbc">[<code>regulator&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-regulator/regulator.md#dt-root>)</span>

<a id="dt-10da2c0be5bc8084ff99"></a>

#### Properties and child nodes (<code>properties</code>)

<a id="dt-1cba76c41980a65f272f"></a>

**<code>regulator&#45;allowed&#45;modes</code> — not listed as required here**

<code>false</code> — Not permitted by this property rule.

<a id="dt-bc9897f473f7aefc084b"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

## Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;

mt6397_regulators: regulators {
    compatible = "mediatek,mt6397-regulator";

    mt6397_vpca15_reg: buck_vpca15 {
        regulator-name = "vpca15";
        regulator-min-microvolt = &lt; 850000&gt;;
        regulator-max-microvolt = &lt;1350000&gt;;
        regulator-ramp-delay = &lt;12500&gt;;
        regulator-enable-ramp-delay = &lt;200&gt;;
    };

    mt6397_vpca7_reg: buck_vpca7 {
        regulator-name = "vpca7";
        regulator-min-microvolt = &lt; 850000&gt;;
        regulator-max-microvolt = &lt;1350000&gt;;
        regulator-ramp-delay = &lt;12500&gt;;
        regulator-enable-ramp-delay = &lt;115&gt;;
    };

    mt6397_vsramca15_reg: buck_vsramca15 {
        regulator-name = "vsramca15";
        regulator-min-microvolt = &lt; 850000&gt;;
        regulator-max-microvolt = &lt;1350000&gt;;
        regulator-ramp-delay = &lt;12500&gt;;
        regulator-enable-ramp-delay = &lt;115&gt;;
    };

    mt6397_vsramca7_reg: buck_vsramca7 {
        regulator-name = "vsramca7";
        regulator-min-microvolt = &lt; 850000&gt;;
        regulator-max-microvolt = &lt;1350000&gt;;
        regulator-ramp-delay = &lt;12500&gt;;
        regulator-enable-ramp-delay = &lt;115&gt;;
    };

    mt6397_vcore_reg: buck_vcore {
        regulator-name = "vcore";
        regulator-min-microvolt = &lt; 850000&gt;;
        regulator-max-microvolt = &lt;1350000&gt;;
        regulator-ramp-delay = &lt;12500&gt;;
        regulator-enable-ramp-delay = &lt;115&gt;;
    };

    mt6397_vgpu_reg: buck_vgpu {
        regulator-name = "vgpu";
        regulator-min-microvolt = &lt; 700000&gt;;
        regulator-max-microvolt = &lt;1350000&gt;;
        regulator-ramp-delay = &lt;12500&gt;;
        regulator-enable-ramp-delay = &lt;115&gt;;
    };

    mt6397_vdrm_reg: buck_vdrm {
        regulator-name = "vdrm";
        regulator-min-microvolt = &lt; 800000&gt;;
        regulator-max-microvolt = &lt;1400000&gt;;
        regulator-ramp-delay = &lt;12500&gt;;
        regulator-enable-ramp-delay = &lt;500&gt;;
    };

    mt6397_vio18_reg: buck_vio18 {
        regulator-name = "vio18";
        regulator-min-microvolt = &lt;1500000&gt;;
        regulator-max-microvolt = &lt;2120000&gt;;
        regulator-ramp-delay = &lt;12500&gt;;
        regulator-enable-ramp-delay = &lt;500&gt;;
    };

    mt6397_vtcxo_reg: ldo_vtcxo {
        regulator-name = "vtcxo";
        regulator-min-microvolt = &lt;2800000&gt;;
        regulator-max-microvolt = &lt;2800000&gt;;
        regulator-enable-ramp-delay = &lt;90&gt;;
    };

    mt6397_va28_reg: ldo_va28 {
        regulator-name = "va28";
        /* fixed output 2.8 V */
        regulator-enable-ramp-delay = &lt;218&gt;;
    };

    mt6397_vcama_reg: ldo_vcama {
        regulator-name = "vcama";
        regulator-min-microvolt = &lt;1500000&gt;;
        regulator-max-microvolt = &lt;2800000&gt;;
        regulator-enable-ramp-delay = &lt;218&gt;;
    };

    mt6397_vio28_reg: ldo_vio28 {
        regulator-name = "vio28";
        /* fixed output 2.8 V */
        regulator-enable-ramp-delay = &lt;240&gt;;
    };

    mt6397_usb_reg: ldo_vusb {
        regulator-name = "vusb";
        /* fixed output 3.3 V */
        regulator-enable-ramp-delay = &lt;218&gt;;
    };

    mt6397_vmc_reg: ldo_vmc {
        regulator-name = "vmc";
        regulator-min-microvolt = &lt;1800000&gt;;
        regulator-max-microvolt = &lt;3300000&gt;;
        regulator-enable-ramp-delay = &lt;218&gt;;
    };

    mt6397_vmch_reg: ldo_vmch {
        regulator-name = "vmch";
        regulator-min-microvolt = &lt;3000000&gt;;
        regulator-max-microvolt = &lt;3300000&gt;;
        regulator-enable-ramp-delay = &lt;218&gt;;
    };

    mt6397_vemc_3v3_reg: ldo_vemc3v3 {
        regulator-name = "vemc_3v3";
        regulator-min-microvolt = &lt;3000000&gt;;
        regulator-max-microvolt = &lt;3300000&gt;;
        regulator-enable-ramp-delay = &lt;218&gt;;
    };

    mt6397_vgp1_reg: ldo_vgp1 {
        regulator-name = "vcamd";
        regulator-min-microvolt = &lt;1220000&gt;;
        regulator-max-microvolt = &lt;3300000&gt;;
        regulator-enable-ramp-delay = &lt;240&gt;;
    };

    mt6397_vgp2_reg: ldo_vgp2 {
        regulator-name = "vcamio";
        regulator-min-microvolt = &lt;1000000&gt;;
        regulator-max-microvolt = &lt;3300000&gt;;
        regulator-enable-ramp-delay = &lt;218&gt;;
    };

    mt6397_vgp3_reg: ldo_vgp3 {
        regulator-name = "vcamaf";
        regulator-min-microvolt = &lt;1200000&gt;;
        regulator-max-microvolt = &lt;3300000&gt;;
        regulator-enable-ramp-delay = &lt;218&gt;;
    };

    mt6397_vgp4_reg: ldo_vgp4 {
        regulator-name = "vgp4";
        regulator-min-microvolt = &lt;1200000&gt;;
        regulator-max-microvolt = &lt;3300000&gt;;
        regulator-enable-ramp-delay = &lt;218&gt;;
    };

    mt6397_vgp5_reg: ldo_vgp5 {
        regulator-name = "vgp5";
        regulator-min-microvolt = &lt;1200000&gt;;
        regulator-max-microvolt = &lt;3000000&gt;;
        regulator-enable-ramp-delay = &lt;218&gt;;
    };

    mt6397_vgp6_reg: ldo_vgp6 {
        regulator-name = "vgp6";
        regulator-min-microvolt = &lt;1200000&gt;;
        regulator-max-microvolt = &lt;3300000&gt;;
        regulator-enable-ramp-delay = &lt;218&gt;;
    };

    mt6397_vibr_reg: ldo_vibr {
        regulator-name = "vibr";
        regulator-min-microvolt = &lt;1200000&gt;;
        regulator-max-microvolt = &lt;3300000&gt;;
        regulator-enable-ramp-delay = &lt;218&gt;;
    };
};
</code></pre>

## Source notes

<details>
<summary>Annotations retained from the schema source</summary>

<p id="dt-comment-0"><strong>Line 1:</strong> <span> SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)</span></p>

</details>
