# Moortec Semiconductor MR75203 PVT Controller

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

> Device-tree binding reference for Moortec Semiconductor MR75203 PVT 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;moortec&#44;mr75203&#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;Rahul Tanwar &#60;rtanwar&#64;maxlinear&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">A Moortec PVT (Process, Voltage, Temperature) monitoring logic design can
include many different units.
Such a design will usually consists of several Moortec's embedded analog IPs,
and a single Moortec controller (mr75203) to configure and control the IPs.</p>
<pre><code>Some of the Moortec's analog hard IPs that can be used in a design:
*) Temperature Sensor (TS) - used to monitor core temperature (e.g. mr74137).
*) Voltage Monitor (VM) - used to monitor voltage levels (e.g. mr74138).
*) Process Detector (PD) - used to assess silicon speed (e.g. mr74139).
*) Delay Chain - ring oscillator connected to the PD, used to measure IO
   based transistors (e.g. mr76008 ring oscillator at 1.1V, mr76007 ring
   oscillator at 1.8V).
*) Pre Scaler - provides divide-by-X scaling of input voltage, which can then
   be presented for VM for measurement within its range (e.g. mr76006 -
   divide by 2 pre-scaler).</code></pre>
<p style="white-space: pre-wrap">TS, VM &amp; PD also include a digital interface, which consists of configuration
inputs and measurement outputs.</p>
<p style="white-space: pre-wrap">Some of the units have number of series, each series can have slightly
different characteristics.</p>
<p style="white-space: pre-wrap">The mr75203 binding describes configuration for the controller unit, but also
for some of the analog IPs.</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;moortec&#44;mr75203&#34;</code></span>

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

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

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

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

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

**Item 1**

> <div id="dt-e773fec0b410a1422253">
> <p style="white-space: pre-wrap">PVT common registers</p>
> </div>

<a id="dt-302751dd79bfd514b9d7"></a>

**Item 2**

> <div id="dt-b729cb065b03c20c0e01">
> <p style="white-space: pre-wrap">PVT temperature sensor registers</p>
> </div>

<a id="dt-80d36cb915ffeff5364a"></a>

**Item 3**

> <div id="dt-5151e97c331b693ee0dd">
> <p style="white-space: pre-wrap">PVT process detector registers</p>
> </div>

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

**Item 4**

> <div id="dt-e7b71b4619e949c538b1">
> <p style="white-space: pre-wrap">PVT voltage monitor registers</p>
> </div>

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

### <code>reg&#45;names</code> — required here

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-69afd9f8af3b0c5757d2"><code>&#34;common&#34;</code></span>

<a id="dt-12013039402717d72b48"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-8472c6e17fb2491b6ba3"><code>&#34;ts&#34;</code></span>

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

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-bd78c6ffbdc5ce20feb0"><code>&#34;pd&#34;</code></span>

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

**Item 4**

> **Exact value (<code>const</code>):** <span id="dt-98e4b3caabf49b98c17d"><code>&#34;vm&#34;</code></span>

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

### <code>intel&#44;vm&#45;map</code> — not listed as required here

<div id="dt-d3572d48cca8c1bbb646">
<p style="white-space: pre-wrap">PVT controller has 5 VM (voltage monitor) sensors. vm-map defines CPU core to VM instance mapping. A value of 0xff means that VM sensor is unused.</p>
</div>

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-146f3d99c2b5848833b5"><code>5</code></span>

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

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

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

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

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

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

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

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

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

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

### <code>moortec&#44;vm&#45;active&#45;channels</code> — not listed as required here

<div id="dt-9334eaa3badcae99c195">
<p style="white-space: pre-wrap">Defines the number of channels per VM that are actually used and are connected to some input source. Maximum number of items - number of VMs. Maximum value of each item - number of channels. Minimum value of each item - 0 (which means entire VM sensor is not used).</p>
</div>

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

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

### <code>moortec&#44;vm&#45;pre&#45;scaler&#45;x2</code> — not listed as required here

<div id="dt-546041318666fff071d3">
<p style="white-space: pre-wrap">Defines the channels that use a mr76006 pre-scaler to divide the input source by 2. The pre-scaler is used for input sources that exceed the VM input range. The driver uses this information to present to the user with the actual value of the voltage source. For channels that are not listed, no pre-scaler is assumed. Maximum number of items - total number of channels in all VMs. Each channel should not appear more than once.</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-326a24fdde80e472e8e9">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint8&#45;array</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-184849745c5e941c3ec5>)</span>

<a id="dt-63b86b999dc2e657d2ae"></a>

### <code>moortec&#44;ts&#45;series</code> — not listed as required here

<div id="dt-7e02bc922648d481b2db">
<p style="white-space: pre-wrap">Definition of the temperature equation and coefficients that shall be used to convert the digital output to value in milli-Celsius.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-37e64ca594ee3715a524"><code>5</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-e71a2960d1d7a6761afa"><code>6</code></span>

**Default value (<code>default</code>):** <span id="dt-eb01ab217044a3749780"><code>5</code></span>

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

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

### <code>moortec&#44;ts&#45;coeff&#45;g</code> — not listed as required here

<div id="dt-e146b03ecc32fe794c8d">
<p style="white-space: pre-wrap">G coefficient for temperature equation. Default for series 5 = 60000 Default for series 6 = 57400</p>
</div>

**Multiple of (<code>multipleOf</code>):** <span id="dt-2cf596f29c05d9ba01e5"><code>100</code></span>

**Minimum value (<code>minimum</code>):** <span id="dt-8563c0b963f4965b363a"><code>1000</code></span>

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

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

### <code>moortec&#44;ts&#45;coeff&#45;h</code> — not listed as required here

<div id="dt-ee663d2fbf116f7760a0">
<p style="white-space: pre-wrap">H coefficient for temperature equation. Default for series 5 = 200000 Default for series 6 = 249400</p>
</div>

**Multiple of (<code>multipleOf</code>):** <span id="dt-2275725fc2244b835b54"><code>100</code></span>

**Minimum value (<code>minimum</code>):** <span id="dt-0f4ad19dd10b0b7ae8c0"><code>1000</code></span>

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

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

### <code>moortec&#44;ts&#45;coeff&#45;cal5</code> — not listed as required here

<div id="dt-eaf77608119a0a9449a8">
<p style="white-space: pre-wrap">cal5 coefficient for temperature equation. Default for series 5 = 4094 Default for series 6 = 4096</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-5fe70d15d4b98a6cfa32"><code>1</code></span>

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

<a id="dt-920affc5107f89726237"></a>

### <code>moortec&#44;ts&#45;coeff&#45;j</code> — not listed as required here

<div id="dt-d2649fc61f7682e24497">
<p style="white-space: pre-wrap">J coefficient for temperature equation. Default for series 5 = -100 Default for series 6 = 0</p>
</div>

**Multiple of (<code>multipleOf</code>):** <span id="dt-5636762f958d664424a3"><code>100</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-4ebd793a71a9a29fd045"><code>0</code></span>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-9eabeb45ed4c35a98c39">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;int32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-c78c9f973ad0b0b28e5c>)</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;reg&#45;names&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clocks&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;&#35;thermal&#45;sensor&#45;cells&#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">pvt: pvt@e0680000 {
    compatible = "moortec,mr75203";
    reg = &lt;0xe0680000 0x80&gt;,
          &lt;0xe0680080 0x180&gt;,
          &lt;0xe0680200 0x200&gt;,
          &lt;0xe0680400 0xc00&gt;;
    reg-names = "common", "ts", "pd", "vm";
    intel,vm-map = [03 01 04 ff ff];
    clocks = &lt;&amp;osc0&gt;;
    resets = &lt;&amp;rcu0 0x40 7&gt;;
    moortec,vm-active-channels = /bits/ 8 &lt;0x10 0x05&gt;;
    moortec,vm-pre-scaler-x2 = /bits/ 8 &lt;5 6 20&gt;;
    moortec,ts-coeff-g = &lt;61400&gt;;
    moortec,ts-coeff-h = &lt;253700&gt;;
    #thermal-sensor-cells = &lt;1&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>
