# Renesas R-Car GyroADC

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Industrial I/O bindings / adc_

> Device-tree binding reference for Renesas R-Car GyroADC.

<!-- 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;iio&#47;adc&#47;renesas&#44;rcar&#45;gyroadc&#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;Marek Vasut &#60;marek&#46;vasut&#43;renesas&#64;gmail&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The GyroADC block is a reduced SPI block with up to 8 chipselect lines,
which supports the SPI protocol of a selected few SPI ADCs. The SPI ADCs
are sampled by the GyroADC block in a round-robin fashion and the result
presented in the GyroADC registers.
The ADC bindings should match with that of the devices connected to a
full featured SPI bus.</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**

> **Allowed values (<code>enum</code>):** <a id="dt-851ace07a50c83495949"></a> <span id="dt-63b688f2ccd82724cb8f"><code>&#34;renesas&#44;r8a7791&#45;gyroadc&#34;</code></span>, <span id="dt-2d97ae0f34d14dd8e72b"><code>&#34;renesas&#44;r8a7792&#45;gyroadc&#34;</code></span>

<a id="dt-0891c69625632ea817fd"></a>

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-f1f862a3cfab3ac620c8"><code>&#34;renesas&#44;rcar&#45;gyroadc&#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> — required here

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

<a id="dt-041d7cd76b652a5de06a"></a>

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

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

<a id="dt-030bda573e8c53177f1a"></a>

### <code>power&#45;domains</code> — required here

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

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

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

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

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

### <code>&#35;address&#45;cells</code> — 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> — required here

**Exact value (<code>const</code>):** <span id="dt-793e842f88ef513a8f93"><code>0</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.

**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;clocks&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clock&#45;names&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;power&#45;domains&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;resets&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;&#35;address&#45;cells&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;&#35;size&#45;cells&#34;</code></span>

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

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

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

### <code>&#64;&#91;0&#45;7&#93;&#36;</code> — name matches this regular expression

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

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

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

<a id="dt-05d0fa1d411a8e1b3b20"></a>

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

<div id="dt-426895b2f544c9701ed0">
<pre><code>fujitsu,mb88101a
- Fujitsu MB88101A compatible mode,
  12bit sampling, up to 4 channels can be sampled in round-robin
  fashion. One Fujitsu chip supplies four GyroADC channels with
  data as it contains four ADCs on the chip and thus for 4-channel
  operation, single MB88101A is required. The Cx chipselect lines
  of the MB88101A connect directly to two CHS lines of the GyroADC,
  no demuxer is required. The data out line of each MB88101A
  connects to a shared input pin of the GyroADC.
ti,adcs7476 or ti,adc121 or adi,ad7476
- TI ADCS7476 / TI ADC121 / ADI AD7476 compatible mode, 15bit
  sampling, up to 8 channels can be sampled in round-robin
  fashion. One TI/ADI chip supplies single ADC channel with data,
  thus for 8-channel operation, 8 chips are required.
  A 3:8 chipselect demuxer is  required to connect the nCS line
  of the TI/ADI chips to the GyroADC, while MISO line of each
  TI/ADI ADC connects to a shared input pin of the GyroADC.
maxim,max1162 or maxim,max11100
- Maxim MAX1162 / Maxim MAX11100 compatible mode,  16bit sampling,
  up to 8 channels can be sampled in round-robin fashion. One
  Maxim chip supplies single ADC channel with data, thus for
  8-channel operation, 8 chips are required.
  A 3:8 chipselect demuxer is required to connect the nCS line
  of the MAX chips to the GyroADC, while MISO line of each Maxim
  ADC connects to a shared input pin of the GyroADC.</code></pre>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-5058fcb26519d38ceac2"></a> <span id="dt-82bfc5a8c284a8d9ff69"><code>&#34;adi&#44;ad7476&#34;</code></span>, <span id="dt-088c8e695e5bc1260242"><code>&#34;fujitsu&#44;mb88101a&#34;</code></span>, <span id="dt-a20aa53c67504c723b16"><code>&#34;maxim&#44;max1162&#34;</code></span>, <span id="dt-ce8c2b60a2e740a86763"><code>&#34;maxim&#44;max11100&#34;</code></span>, <span id="dt-e02c4126a008d476a7fe"><code>&#34;ti&#44;adcs7476&#34;</code></span>, <span id="dt-c20825135e4ac5695016"><code>&#34;ti&#44;adc121&#34;</code></span>

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

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

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

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

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

**<code>vref&#45;supply</code> — required here**

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

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

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

<code>false</code>

Not allowed by this rule.

**Required in this object (<code>required</code>):** <a id="dt-eb68ee86a351482c10c8"></a> <span id="dt-2e0118a3e064f9e68824"><code>&#34;compatible&#34;</code></span>, <span id="dt-a7d07d275c7c866c5756"><code>&#34;reg&#34;</code></span>, <span id="dt-aa7cd232e548ddcfd25a"><code>&#34;vref&#45;supply&#34;</code></span>

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

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/clock/r8a7791-cpg-mssr.h&gt;
#include &lt;dt-bindings/power/r8a7791-sysc.h&gt;

adc@e6e54000 {
    compatible = "renesas,r8a7791-gyroadc", "renesas,rcar-gyroadc";
    reg = &lt;0xe6e54000 64&gt;;
    clocks = &lt;&amp;cpg CPG_MOD 901&gt;;
    clock-names = "fck";
    power-domains = &lt;&amp;sysc R8A7791_PD_ALWAYS_ON&gt;;
    resets = &lt;&amp;cpg 901&gt;;

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

    adc@0 {
        reg = &lt;0&gt;;
        compatible = "maxim,max1162";
        vref-supply = &lt;&amp;vref_max1162&gt;;
    };

    adc@1 {
        reg = &lt;1&gt;;
        compatible = "maxim,max1162";
        vref-supply = &lt;&amp;vref_max1162&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>
