# Xilinx Zynq Ultrascale AMS controller

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

> Device-tree binding reference for Xilinx Zynq Ultrascale AMS 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;iio&#47;adc&#47;xlnx&#44;zynqmp&#45;ams&#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;Salih Erim &#60;salih&#46;erim&#64;amd&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Conall O&#39;Griofa &#60;conall&#46;ogriofa&#64;amd&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The AMS (Analog Monitoring System) includes an ADC as well as on-chip sensors
that can be used to sample external voltages and monitor on-die operating
conditions, such as temperature and supply voltage levels.
The AMS has two SYSMON blocks which are PL (Programmable Logic) SYSMON and
PS (Processing System) SYSMON.
All designs should have AMS registers, but PS and PL are optional. The
AMS controller can work with only PS, only PL and both PS and PL
configurations. Please specify registers according to your design. Devicetree
should always have AMS module property. Providing PS &amp; PL module is optional.</p>
<pre><code>AMS Channel Details
```````````````````
Sysmon Block  |Channel|                       Details                                 |Measurement
              |Number |                                                               |Type
---------------------------------------------------------------------------------------------------------
AMS CTRL      |0      |System PLLs voltage measurement, VCC_PSPLL.                    |Voltage
              |1      |Battery voltage measurement, VCC_PSBATT.                       |Voltage
              |2      |PL Internal voltage measurement, VCCINT.                       |Voltage
              |3      |Block RAM voltage measurement, VCCBRAM.                        |Voltage
              |4      |PL Aux voltage measurement, VCCAUX.                            |Voltage
              |5      |Voltage measurement for six DDR I/O PLLs, VCC_PSDDR_PLL.       |Voltage
              |6      |VCC_PSINTFP_DDR voltage measurement.                           |Voltage
---------------------------------------------------------------------------------------------------------
PS Sysmon     |7      |LPD temperature measurement.                                   |Temperature
              |8      |FPD temperature measurement (REMOTE).                          |Temperature
              |9      |VCC PS LPD voltage measurement (supply1).                      |Voltage
              |10     |VCC PS FPD voltage measurement (supply2).                      |Voltage
              |11     |PS Aux voltage reference (supply3).                            |Voltage
              |12     |DDR I/O VCC voltage measurement.                               |Voltage
              |13     |PS IO Bank 503 voltage measurement (supply5).                  |Voltage
              |14     |PS IO Bank 500 voltage measurement (supply6).                  |Voltage
              |15     |VCCO_PSIO1 voltage measurement.                                |Voltage
              |16     |VCCO_PSIO2 voltage measurement.                                |Voltage
              |17     |VCC_PS_GTR voltage measurement (VPS_MGTRAVCC).                 |Voltage
              |18     |VTT_PS_GTR voltage measurement (VPS_MGTRAVTT).                 |Voltage
              |19     |VCC_PSADC voltage measurement.                                 |Voltage
---------------------------------------------------------------------------------------------------------
PL Sysmon     |20     |PL temperature measurement.                                    |Temperature
              |21     |PL Internal voltage measurement, VCCINT.                       |Voltage
              |22     |PL Auxiliary voltage measurement, VCCAUX.                      |Voltage
              |23     |ADC Reference P+ voltage measurement.                          |Voltage
              |24     |ADC Reference N- voltage measurement.                          |Voltage
              |25     |PL Block RAM voltage measurement, VCCBRAM.                     |Voltage
              |26     |LPD Internal voltage measurement, VCC_PSINTLP (supply4).       |Voltage
              |27     |FPD Internal voltage measurement, VCC_PSINTFP (supply5).       |Voltage
              |28     |PS Auxiliary voltage measurement (supply6).                    |Voltage
              |29     |PL VCCADC voltage measurement (vccams).                        |Voltage
              |30     |Differential analog input signal voltage measurement.          |Voltage
              |31     |VUser0 voltage measurement (supply7).                          |Voltage
              |32     |VUser1 voltage measurement (supply8).                          |Voltage
              |33     |VUser2 voltage measurement (supply9).                          |Voltage
              |34     |VUser3 voltage measurement (supply10).                         |Voltage
              |35     |Auxiliary ch 0 voltage measurement (VAux0).                    |Voltage
              |36     |Auxiliary ch 1 voltage measurement (VAux1).                    |Voltage
              |37     |Auxiliary ch 2 voltage measurement (VAux2).                    |Voltage
              |38     |Auxiliary ch 3 voltage measurement (VAux3).                    |Voltage
              |39     |Auxiliary ch 4 voltage measurement (VAux4).                    |Voltage
              |40     |Auxiliary ch 5 voltage measurement (VAux5).                    |Voltage
              |41     |Auxiliary ch 6 voltage measurement (VAux6).                    |Voltage
              |42     |Auxiliary ch 7 voltage measurement (VAux7).                    |Voltage
              |43     |Auxiliary ch 8 voltage measurement (VAux8).                    |Voltage
              |44     |Auxiliary ch 9 voltage measurement (VAux9).                    |Voltage
              |45     |Auxiliary ch 10 voltage measurement (VAux10).                  |Voltage
              |46     |Auxiliary ch 11 voltage measurement (VAux11).                  |Voltage
              |47     |Auxiliary ch 12 voltage measurement (VAux12).                  |Voltage
              |48     |Auxiliary ch 13 voltage measurement (VAux13).                  |Voltage
              |49     |Auxiliary ch 14 voltage measurement (VAux14).                  |Voltage
              |50     |Auxiliary ch 15 voltage measurement (VAux15).                  |Voltage
--------------------------------------------------------------------------------------------------------</code></pre>
</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;xlnx&#44;zynqmp&#45;ams&#34;</code></span>

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

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

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

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">AMS Controller register space</p>
</div>

**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

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

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

<a id="dt-41adf3ed8101eca13466"></a>

**Item 1**

> <div id="dt-4cfd4c1642ba13c357d6">
> <p style="white-space: pre-wrap">AMS reference clock</p>
> </div>

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

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

<div id="dt-e09d62fd28b1cb158f01">
<p style="white-space: pre-wrap">Maps the child address space for PS and/or PL.</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-7928d91ff1b85834b6df"><code>1</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>1</code></span>

<a id="dt-6971e222e0082656e9f5"></a>

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

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

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

### <code>ams&#45;ps&#64;0</code> — not listed as required here

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

<div id="dt-39ed3eec8e9bfc74913a">
<p style="white-space: pre-wrap">PS (Processing System) SYSMON is memory mapped to PS. This block has
built-in alarm generation logic that is used to interrupt the processor
based on condition set.</p>
</div>

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

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

<a id="dt-6613827fa44fe13d9d5e"></a>

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

**Allowed values (<code>enum</code>):** <a id="dt-0bec9b60e4202b301594"></a> <span id="dt-79a4bb50bf24caba3211"><code>&#34;xlnx&#44;zynqmp&#45;ams&#45;ps&#34;</code></span>

<a id="dt-3f43a3726d65c3a51a00"></a>

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

<div id="dt-cdd938e3dc1e5c4b1d4c">
<p style="white-space: pre-wrap">Register Space for PS-SYSMON</p>
</div>

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

**Required in this object (<code>required</code>):** <a id="dt-d37be2c1a6deac65eb48"></a> <span id="dt-d72e6fa5fb9233d2a7a3"><code>&#34;compatible&#34;</code></span>, <span id="dt-f38a9bb772ac7d2322d8"><code>&#34;reg&#34;</code></span>

<a id="dt-9bd5f1e91b9b8338accd"></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-7adf7985bccac46890eb"></a>

### <code>ams&#45;pl&#64;400</code> — not listed as required here

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

<a id="dt-292a6823b195702b1838"></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-4b9ae9be7f843a892edf">
<p style="white-space: pre-wrap">PL-SYSMON is capable of monitoring off chip voltage and temperature. PL-SYSMON block has DRP, JTAG and I2C interface to enable monitoring from external master. Out of this interface currently only DRP is supported. This block has alarm generation logic that is used to interrupt the processor based on condition set.</p>
</div>

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

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

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

**<code>compatible</code> — not listed as required here**

<a id="dt-436a9af4e43abaabaaa6"></a>

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

<a id="dt-38f2aee0c913c9010f6e"></a>

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-b630a9f95c3742a5a53a"></a> <span id="dt-97ad73f115143c6dc2c1"><code>&#34;xlnx&#44;zynqmp&#45;ams&#45;pl&#34;</code></span>

<a id="dt-99571dfb1d21c94a8e52"></a>

**<code>reg</code> — not listed as required here**

<div id="dt-e99f8630c1243c24d903">
<p style="white-space: pre-wrap">Register Space for PL-SYSMON.</p>
</div>

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

<a id="dt-099ad8370c7d55dd7848"></a>

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

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

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

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

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

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

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

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

**<code>&#94;channel&#64;&#40;&#91;2&#45;4&#93;&#91;0&#45;9&#93;&#124;50&#41;&#36;</code> — name matches this regular expression**

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

<div id="dt-42624a0efdd70cb2e68c">
<p style="white-space: pre-wrap">Describes the external channels connected.</p>
</div>

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

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

<a id="dt-6e02569ed4edebaea9c2"></a>

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

<div id="dt-22c15f7661eb02f31753">
<p style="white-space: pre-wrap">Pair of pins the channel is connected to. This value is same as Channel Number for a particular channel.</p>
</div>

**Minimum value (<code>minimum</code>):** <span id="dt-4ab281553bf1936fe42e"><code>20</code></span>

**Maximum value (<code>maximum</code>):** <span id="dt-53d2f7bdbaa46918fc90"><code>50</code></span>

<a id="dt-84b0217a9a1017d85c04"></a>

**<code>xlnx&#44;bipolar</code> — not listed as required here**

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

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

<div id="dt-7ee8680c57bc4a71500a">
<p style="white-space: pre-wrap">If the set channel is used in bipolar mode.</p>
</div>

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

<a id="dt-cd685613cd400ae254a8"></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;ranges&#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">
bus {
    #address-cells = &lt;2&gt;;
    #size-cells = &lt;2&gt;;

    xilinx_ams: ams@ffa50000 {
        compatible = "xlnx,zynqmp-ams";
        interrupt-parent = &lt;&amp;gic&gt;;
        interrupts = &lt;0 56 4&gt;;
        reg = &lt;0x0 0xffa50000 0x0 0x800&gt;;
        clocks = &lt;&amp;zynqmp_clk 70&gt;;
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;1&gt;;
        #io-channel-cells = &lt;1&gt;;
        ranges = &lt;0 0 0xffa50800 0x800&gt;;

        ams_ps: ams-ps@0 {
            compatible = "xlnx,zynqmp-ams-ps";
            reg = &lt;0 0x400&gt;;
        };

        ams_pl: ams-pl@400 {
            compatible = "xlnx,zynqmp-ams-pl";
            reg = &lt;0x400 0x400&gt;;
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;0&gt;;
            channel@30 {
                reg = &lt;30&gt;;
                xlnx,bipolar;
            };
            channel@31 {
                reg = &lt;31&gt;;
            };
            channel@38 {
                reg = &lt;38&gt;;
                xlnx,bipolar;
            };
        };
    };
};
</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>
