# Qualcomm PMIC GLINK firmware interface for battery management, USB Type-C and other things.

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Soc bindings / qcom_

> Device-tree binding reference for Qualcomm PMIC GLINK firmware interface for battery management, USB Type-C and other things..

<!-- 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;soc&#47;qcom&#47;qcom&#44;pmic&#45;glink&#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;Bjorn Andersson &#60;andersson&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The PMIC GLINK service, running on a coprocessor on some modern Qualcomm platforms and implement USB Type-C handling and battery management. This binding describes the component in the OS used to communicate with the firmware and connect it's resources to those described in the Devicetree, particularly the USB Type-C controllers relationship with USB and DisplayPort components.</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-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-3b212051dcd0fc641cd8"></a> <span id="dt-bd6e6716d05ec45653db"><code>&#34;qcom&#44;qcm6490&#45;pmic&#45;glink&#34;</code></span>, <span id="dt-3e7fb897881b12f43f81"><code>&#34;qcom&#44;sc8180x&#45;pmic&#45;glink&#34;</code></span>, <span id="dt-b7d19de74fd35364d49f"><code>&#34;qcom&#44;sc8280xp&#45;pmic&#45;glink&#34;</code></span>, <span id="dt-6cbdeefc52e7132bc62c"><code>&#34;qcom&#44;sm8350&#45;pmic&#45;glink&#34;</code></span>, <span id="dt-fd88adda17227ca32776"><code>&#34;qcom&#44;sm8450&#45;pmic&#45;glink&#34;</code></span>, <span id="dt-f0dfbb755d86acc4c265"><code>&#34;qcom&#44;sm8550&#45;pmic&#45;glink&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;qcom&#44;pmic&#45;glink&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;qcom&#44;sm7325&#45;pmic&#45;glink&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;qcom&#44;qcm6490&#45;pmic&#45;glink&#34;</code></span>
>
> <a id="dt-1655c7bc2063a21f60f8"></a>
>
> **Item 3**
>
> > **Exact value (<code>const</code>):** <span id="dt-7c57653c6bcac024338a"><code>&#34;qcom&#44;pmic&#45;glink&#34;</code></span>

<a id="dt-39cb5b72c94e12bd53ea"></a>

**Rule 3**

> <a id="dt-e626d61e9d5d76cc48f9"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-6b46935eab08de6d1f0a"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-9d5b9f6fd2f9759f6e43"></a> <span id="dt-73fb2f4b762df7b35870"><code>&#34;qcom&#44;milos&#45;pmic&#45;glink&#34;</code></span>, <span id="dt-4f2dd487e4b2e6e79827"><code>&#34;qcom&#44;sm8650&#45;pmic&#45;glink&#34;</code></span>, <span id="dt-dba59cbb664a09df0380"><code>&#34;qcom&#44;sm8750&#45;pmic&#45;glink&#34;</code></span>, <span id="dt-7337bb6973adc8f5010d"><code>&#34;qcom&#44;x1e80100&#45;pmic&#45;glink&#34;</code></span>
>
> <a id="dt-5ea82ea034747ba6da29"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-e9c55cb91230c7ee5a28"><code>&#34;qcom&#44;sm8550&#45;pmic&#45;glink&#34;</code></span>
>
> <a id="dt-3acd265d2314f4be0bd4"></a>
>
> **Item 3**
>
> > **Exact value (<code>const</code>):** <span id="dt-d09fdb468825e586f676"><code>&#34;qcom&#44;pmic&#45;glink&#34;</code></span>

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

### <code>&#35;address&#45;cells</code> — not listed as required here

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

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

### <code>&#35;size&#45;cells</code> — not listed as required here

**Exact value (<code>const</code>):** <span id="dt-793e842f88ef513a8f93"><code>0</code></span>

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

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

<div id="dt-56769c8bada1fc48bc3d">
<p style="white-space: pre-wrap">Array of input gpios for the Type-C connector orientation indication. The GPIO indication is used to detect the orientation of the Type-C connector. The array should contain a gpio entry for each PMIC Glink connector, in reg order. It is defined that GPIO active level means "CC2" or Reversed/Flipped orientation.</p>
</div>

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

### <code>nvmem&#45;cells</code> — not listed as required here

**Minimum number of items (<code>minItems</code>):** <span id="dt-4cfb7552a085c116397f"><code>3</code></span>

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

<div id="dt-6e22bea212c5f15c1ddb">
<p style="white-space: pre-wrap">The nvmem cells contain the charge control settings, including the charge control enable status, the battery state of charge (SoC) threshold for stopping charging, and the battery SoC delta required to restart charging.</p>
</div>

<a id="dt-28ee7fd676493bbd8d08"></a>

### <code>nvmem&#45;cell&#45;names</code> — not listed as required here

<a id="dt-4ee7f37f42da373ca564"></a>

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-30d2a590f6c0a447cfaa"><code>&#34;charge&#95;limit&#95;en&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-441ea0caeb43e3f23d69"><code>&#34;charge&#95;limit&#95;end&#34;</code></span>

<a id="dt-1478c4e346bdb5759589"></a>

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-61ca5da85a44a84ba8c5"><code>&#34;charge&#95;limit&#95;delta&#34;</code></span>

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

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

<a id="dt-4b520c7ba1c966adbe0b"></a>

### <code>&#94;connector&#64;&#92;d&#36;</code> — name matches this regular expression

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

**Required in this object (<code>required</code>):** <a id="dt-936febe59f51d3c069e0"></a> <span id="dt-ebeb880affac6a29583a"><code>&#34;reg&#34;</code></span>

**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">pmic-glink {
    compatible = "qcom,sc8280xp-pmic-glink", "qcom,pmic-glink";

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

    connector@0 {
        compatible = "usb-c-connector";
        reg = &lt;0&gt;;
        power-role = "dual";
        data-role = "dual";

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

            port@0 {
                reg = &lt;0&gt;;
                endpoint {
                    remote-endpoint = &lt;&amp;usb_role&gt;;
                };
            };

            port@1 {
                reg = &lt;1&gt;;
                endpoint {
                    remote-endpoint = &lt;&amp;ss_phy_out&gt;;
                };
            };

            port@2 {
                reg = &lt;2&gt;;
                endpoint {
                    remote-endpoint = &lt;&amp;sbu_mux&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>
