# MediaTek MT6370 SubPMIC

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

> Device-tree binding reference for MediaTek MT6370 SubPMIC.

<!-- SPDX-License-Identifier: (GPL-2.0-only 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;mfd&#47;mediatek&#44;mt6370&#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;ChiYuan Huang &#60;cy&#95;huang&#64;richtek&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">MT6370 is a highly-integrated smart power management IC, which includes a
single cell Li-Ion/Li-Polymer switching battery charger, a USB Type-C &amp;
Power Delivery (PD) controller, dual flash LED current sources, a RGB LED
driver, a backlight WLED driver, a display bias driver and a general LDO for
portable devices.</p>
</div>

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;mediatek&#44;mt6370&#34;</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-71421d35675d9a533ad2"><code>1</code></span>

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

### <code>wakeup&#45;source</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-b7823fb65b2f27642d26"><code>1</code></span>

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

### <code>interrupt&#45;controller</code> — required here

<code>true</code> — No constraints added by this property rule.

<a id="dt-8586fac2d9a71adf4795"></a>

### <code>&#35;interrupt&#45;cells</code> — required here

**Exact value (<code>const</code>):** <span id="dt-317bbf786489389e8233"><code>1</code></span>

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

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

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

<a id="dt-213882ca6117f6766aea"></a>

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

<code>false</code>

Not allowed by this rule.

<div id="dt-5bb8791ca8dabd8226b7">
<p style="white-space: pre-wrap">Provides 9 channels for system monitoring, including VBUSDIV5 (lower
accuracy, higher measure range), VBUSDIV2 (higher accuracy, lower
measure range), VBAT, VSYS, CHG_VDDP, TS_BAT, IBUS, IBAT, and TEMP_JC.</p>
</div>

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

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

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

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

**Exact value (<code>const</code>):** <span id="dt-11692997dcc65ce6977c"><code>&#34;mediatek&#44;mt6370&#45;adc&#34;</code></span>

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

**<code>&#35;io&#45;channel&#45;cells</code> — required here**

**Exact value (<code>const</code>):** <span id="dt-f5156cfea190e14a7040"><code>1</code></span>

**Required in this object (<code>required</code>):** <a id="dt-eff94abf7f7271ae4bf9"></a> <span id="dt-c7c5d9cb12490906c7fb"><code>&#34;compatible&#34;</code></span>, <span id="dt-fb17f0df13e9e4a6199d"><code>&#34;&#35;io&#45;channel&#45;cells&#34;</code></span>

<a id="dt-9c52371ed3bb5fc15abe"></a>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-961f3e13b2b0cc9c4a90">[<code>&#47;schemas&#47;leds&#47;backlight&#47;mediatek&#44;mt6370&#45;backlight&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-leds/backlight/mediatek-mt6370-backlight.md#dt-root>)</span>

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

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-323002f9dbafccb4f580">[<code>&#47;schemas&#47;power&#47;supply&#47;mediatek&#44;mt6370&#45;charger&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-power/supply/mediatek-mt6370-charger.md#dt-root>)</span>

<a id="dt-09e7b8afa36c08a6b2cb"></a>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-e20fa7c2a809e10e4c6c">[<code>&#47;schemas&#47;usb&#47;mediatek&#44;mt6370&#45;tcpc&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-usb/mediatek-mt6370-tcpc.md#dt-root>)</span>

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

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-0d480c40eac47eeb9a77">[<code>&#47;schemas&#47;leds&#47;mediatek&#44;mt6370&#45;indicator&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-leds/mediatek-mt6370-indicator.md#dt-root>)</span>

<a id="dt-45907d4590366e297c2f"></a>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-0de324aa72b82bfe0e65">[<code>&#47;schemas&#47;leds&#47;mediatek&#44;mt6370&#45;flashlight&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-leds/mediatek-mt6370-flashlight.md#dt-root>)</span>

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

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

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

<a id="dt-8e4e67ed0dd0ed4ae33a"></a>

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

<code>false</code>

Not allowed by this rule.

<div id="dt-21c242b401be5c67bade">
<p style="white-space: pre-wrap">List all supported regulators, which support the control for DisplayBias
voltages and one general purpose LDO which commonly used to drive the
vibrator.</p>
</div>

<a id="dt-61f1ab18943e36a1a8bc"></a>

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

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

**<code>&#94;&#40;dsvbst&#124;vibldo&#41;&#36;</code> — name matches this regular expression**

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

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

<a id="dt-871d99f1f1a2386328e3"></a>

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

<code>false</code>

Not allowed by this rule.

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

**<code>&#94;&#40;dsvpos&#124;dsvneg&#41;&#36;</code> — name matches this regular expression**

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

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

<a id="dt-6481b729599b29c0603e"></a>

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

<code>false</code>

Not allowed by this rule.

<a id="dt-0fa10403bf014f707ff7"></a>

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

<a id="dt-7931e2e0b4d30b526a87"></a>

**<code>enable&#45;gpios</code> — not listed as required here**

**Maximum number of items (<code>maxItems</code>):** <span id="dt-6f4843880b42228f3cf3"><code>1</code></span>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;interrupts&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;interrupt&#45;controller&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;&#35;interrupt&#45;cells&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;regulators&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;adc&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;backlight&#34;</code></span>, <span id="dt-727c9b818c335e022c0e"><code>&#34;indicator&#34;</code></span>, <span id="dt-1a79af41bdb7f37c802f"><code>&#34;tcpc&#34;</code></span>, <span id="dt-66579c0187208772d10e"><code>&#34;charger&#34;</code></span>, <span id="dt-2a3e79ca04f2e898c459"><code>&#34;flashlight&#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/irq.h&gt;
#include &lt;dt-bindings/leds/common.h&gt;
#include &lt;dt-bindings/iio/adc/mediatek,mt6370_adc.h&gt;
#include &lt;dt-bindings/usb/pd.h&gt;
i2c {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;

  pmic@34 {
    compatible = "mediatek,mt6370";
    reg = &lt;0x34&gt;;
    wakeup-source;
    interrupts-extended = &lt;&amp;gpio26 3 IRQ_TYPE_LEVEL_LOW&gt;;
    interrupt-controller;
    #interrupt-cells = &lt;1&gt;;

    mt6370_adc: adc {
      compatible = "mediatek,mt6370-adc";
      #io-channel-cells = &lt;1&gt;;
    };

    backlight {
      compatible = "mediatek,mt6370-backlight";
      mediatek,bled-channel-use = /bits/ 8 &lt;15&gt;;
    };

    charger {
      compatible = "mediatek,mt6370-charger";
      interrupts = &lt;68&gt;, &lt;48&gt;, &lt;6&gt;;
      interrupt-names = "uvp_d_evt", "attach_i", "mivr";
      io-channels = &lt;&amp;mt6370_adc MT6370_CHAN_IBUS&gt;;

      mt6370_otg_vbus: usb-otg-vbus-regulator {
        regulator-name = "mt6370-usb-otg-vbus";
        regulator-min-microvolt = &lt;4350000&gt;;
        regulator-max-microvolt = &lt;5800000&gt;;
        regulator-min-microamp = &lt;500000&gt;;
        regulator-max-microamp = &lt;3000000&gt;;
      };
    };

    indicator {
      compatible = "mediatek,mt6370-indicator";
      #address-cells = &lt;1&gt;;
      #size-cells = &lt;0&gt;;

      multi-led@0 {
        reg = &lt;0&gt;;
        function = LED_FUNCTION_INDICATOR;
        color = &lt;LED_COLOR_ID_RGB&gt;;
        led-max-microamp = &lt;24000&gt;;
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;
        led@0 {
          reg = &lt;0&gt;;
          color = &lt;LED_COLOR_ID_RED&gt;;
        };
        led@1 {
          reg = &lt;1&gt;;
          color = &lt;LED_COLOR_ID_GREEN&gt;;
        };
        led@2 {
          reg = &lt;2&gt;;
          color = &lt;LED_COLOR_ID_BLUE&gt;;
        };
      };
      led@3 {
        reg = &lt;3&gt;;
        function = LED_FUNCTION_INDICATOR;
        color = &lt;LED_COLOR_ID_WHITE&gt;;
        led-max-microamp = &lt;6000&gt;;
      };
    };

    flashlight {
      compatible = "mediatek,mt6370-flashlight";
      #address-cells = &lt;1&gt;;
      #size-cells = &lt;0&gt;;
      led@0 {
        reg = &lt;0&gt;;
        led-sources = &lt;0&gt;;
        function = LED_FUNCTION_FLASH;
        color = &lt;LED_COLOR_ID_WHITE&gt;;
        function-enumerator = &lt;1&gt;;
        led-max-microamp = &lt;200000&gt;;
        flash-max-microamp = &lt;500000&gt;;
        flash-max-timeout-us = &lt;1248000&gt;;
      };
      led@1 {
        reg = &lt;1&gt;;
        led-sources = &lt;1&gt;;
        function = LED_FUNCTION_FLASH;
        color = &lt;LED_COLOR_ID_WHITE&gt;;
        function-enumerator = &lt;2&gt;;
        led-max-microamp = &lt;200000&gt;;
        flash-max-microamp = &lt;500000&gt;;
        flash-max-timeout-us = &lt;1248000&gt;;
      };
    };

    tcpc {
      compatible = "mediatek,mt6370-tcpc";
      interrupts-extended = &lt;&amp;gpio26 4 IRQ_TYPE_LEVEL_LOW&gt;;

      connector {
        compatible = "usb-c-connector";
        label = "USB-C";
        vbus-supply = &lt;&amp;mt6370_otg_vbus&gt;;
        data-role = "dual";
        power-role = "dual";
        try-power-role = "sink";
        source-pdos = &lt;PDO_FIXED(5000, 1000, PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP)&gt;;
        sink-pdos = &lt;PDO_FIXED(5000, 2000, PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP)&gt;;
        op-sink-microwatt = &lt;10000000&gt;;

        ports {
          #address-cells = &lt;1&gt;;
          #size-cells = &lt;0&gt;;

          port@0 {
            reg = &lt;0&gt;;
            endpoint {
              remote-endpoint = &lt;&amp;usb_hs&gt;;
            };
          };
          port@1 {
            reg = &lt;1&gt;;
            endpoint {
              remote-endpoint = &lt;&amp;usb_ss&gt;;
            };
          };
          port@2 {
            reg = &lt;2&gt;;
            endpoint {
              remote-endpoint = &lt;&amp;dp_aux&gt;;
            };
          };
        };
      };
    };

    regulators {
      dsvbst {
        regulator-name = "mt6370-dsv-vbst";
        regulator-min-microvolt = &lt;4000000&gt;;
        regulator-max-microvolt = &lt;6200000&gt;;
      };
      dsvpos {
        regulator-name = "mt6370-dsv-vpos";
        regulator-min-microvolt = &lt;4000000&gt;;
        regulator-max-microvolt = &lt;6000000&gt;;
        regulator-boot-on;
      };
      dsvneg {
        regulator-name = "mt6370-dsv-vneg";
        regulator-min-microvolt = &lt;4000000&gt;;
        regulator-max-microvolt = &lt;6000000&gt;;
        regulator-boot-on;
      };
      vibldo {
        regulator-name = "mt6370-vib-ldo";
        regulator-min-microvolt = &lt;1600000&gt;;
        regulator-max-microvolt = &lt;4000000&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-only OR BSD-2-Clause)</span></p>

</details>
