# GMT G761/G762/G763 PWM Fan controller

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

> Device-tree binding reference for GMT G761/G762/G763 PWM Fan controller.

<!-- 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;hwmon&#47;gmt&#44;g762&#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;Christian Marangi &#60;ansuelsmth&#64;gmail&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">GMT G761/G762/G763 PWM Fan controller.</p>
<p style="white-space: pre-wrap">G761 supports an internal-clock hence the clocks property is optional.
If not defined, internal-clock will be used. (31KHz is the clock of
the internal crystal oscillator)</p>
<p style="white-space: pre-wrap">If an optional property is not set in DT, then current value is kept
unmodified (e.g. bootloader installed value).</p>
<p style="white-space: pre-wrap">Additional information on operational parameters for the device is available
in Documentation/hwmon/g762.rst. A detailed datasheet for the device is available
at http://natisbad.org/NAS/refs/GMT_EDS-762_763-080710-0.2.pdf.</p>
</div>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;gmt&#44;g761&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;gmt&#44;g762&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;gmt&#44;g763&#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-4e9a371963ac013ad39d"></a>

### <code>clocks</code> — not listed as required here

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">a fixed clock providing input clock frequency on CLK pin of the chip.</p>
</div>

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

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

### <code>fan&#95;startv</code> — not listed as required here

<div id="dt-39a421af246c09ed16eb">
<p style="white-space: pre-wrap">Fan startup voltage step</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-c242022a0272d26ac6a7">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Allowed values (<code>enum</code>):** <a id="dt-070aa1b71a81d0add3cc"></a> <span id="dt-0bab163c471fc8716181"><code>0</code></span>, <span id="dt-b800c2bba7e6e34ccf7d"><code>1</code></span>, <span id="dt-1f0289811b872caa1813"><code>2</code></span>, <span id="dt-3259e9bed678a9a12046"><code>3</code></span>

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

### <code>pwm&#95;polarity</code> — not listed as required here

<div id="dt-1a41ccf446ca9b9f4d9b">
<p style="white-space: pre-wrap">PWM polarity (positive or negative duty)</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-53fd142aa6d3720e6014">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Allowed values (<code>enum</code>):** <a id="dt-7a8cf1ddef16ca867e8f"></a> <span id="dt-0e68b9c7ede18e139672"><code>0</code></span>, <span id="dt-ade75182dfeae02d76ad"><code>1</code></span>

<a id="dt-6518a86862956e559038"></a>

### <code>fan&#95;gear&#95;mode</code> — not listed as required here

<div id="dt-1962ef84456c2f64ce5f">
<p style="white-space: pre-wrap">FAN gear mode. Configure High speed fan setting factor</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-ab4d98dae49039bfa7b6">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Allowed values (<code>enum</code>):** <a id="dt-648ecf63ce87e9568af3"></a> <span id="dt-0833221fd89acd15ff11"><code>0</code></span>, <span id="dt-896bc4e42627b3242896"><code>1</code></span>, <span id="dt-229dfa5077d8958ad9ba"><code>2</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>

<a id="dt-158e3f6339df9dc0e448"></a>

## Condition (<code>if</code>)

> <a id="dt-0c7b6d12024f922c1b96"></a>
>
> ### Properties and child nodes (<code>properties</code>)
>
> <a id="dt-824fdc441f7c94ae56ca"></a>
>
> #### <code>compatible</code> — not listed as required here
>
> <a id="dt-8239149d6c8b0a5dabbe"></a>
>
> **Rule for matching array elements (<code>contains</code>)**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-33b6ed092215f2be8801"></a> <span id="dt-9dc9072d1f2469ee9637"><code>&#34;gmt&#44;g762&#34;</code></span>, <span id="dt-5b5b6c5b8f914dcc6d1d"><code>&#34;gmt&#44;g763&#34;</code></span>

<a id="dt-94d3067a06aec87aad7f"></a>

## When the condition matches (<code>then</code>)

> **Required in this object (<code>required</code>):** <a id="dt-824165741bab07e919e7"></a> <span id="dt-0be16f81402541b26aff"><code>&#34;clocks&#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">i2c {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    g762@3e {
        compatible = "gmt,g762";
        reg = &lt;0x3e&gt;;
        clocks = &lt;&amp;g762_clk&gt;;
        fan_gear_mode = &lt;0&gt;;
        fan_startv = &lt;1&gt;;
        pwm_polarity = &lt;0&gt;;
    };

    g761@1e {
        compatible = "gmt,g761";
        reg = &lt;0x1e&gt;;
        fan_gear_mode = &lt;0&gt;;
        fan_startv = &lt;1&gt;;
        pwm_polarity = &lt;0&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>
