# Timestamp bindings

---

# Hardware timestamp providers

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

> Device-tree binding reference for Hardware timestamp providers.

<!-- 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;timestamp&#47;hardware&#45;timestamps&#45;common&#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;Dipen Patel &#60;dipenp&#64;nvidia&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Some devices/SoCs have hardware timestamp engines (HTE) which can use hardware means to timestamp entity in realtime. The entity could be anything from GPIOs, IRQs, Bus and so on. The hardware timestamp engine present itself as a provider with the bindings described in this document.</p>
</div>

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

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

<a id="dt-5155525ecd924660ec0a"></a>

### <code>&#36;nodename</code> — not listed as required here

**String pattern (<code>pattern</code>):** <span id="dt-0b2111a24a010949ece7"><code>&#34;&#94;timestamp&#40;&#64;&#46;&#42;&#124;&#45;&#40;&#91;0&#45;9&#93;&#124;&#91;1&#45;9&#93;&#91;0&#45;9&#93;&#43;&#41;&#41;&#63;&#36;&#34;</code></span>

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

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

<div id="dt-12cf368b36d27e9e8a37">
<p style="white-space: pre-wrap">Number of cells in a HTE specifier.</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;&#35;timestamp&#45;cells&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

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

<code>true</code>

Allowed by this rule.

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

---

# HTE Consumer

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

> Device-tree binding reference for HTE Consumer.

<!-- 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;timestamp&#47;hte&#45;consumer&#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;Dipen Patel &#60;dipenp&#64;nvidia&#46;com&#62;&#34;</code></span>

<a id="dt-865ef19e891fb9fe7b15"></a>

## Automatic schema selection (<code>select</code>)

<code>true</code>

This selection rule always matches.

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

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

<a id="dt-81f6848e3ab8952fe787"></a>

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

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

<div id="dt-b5cae71f3269095b3f04">
<p style="white-space: pre-wrap">The list of HTE provider phandle. The first cell must represent the provider phandle followed by the line identifiers. The meaning of the line identifier and exact number of arguments must be specified in the HTE provider device tree binding document.</p>
</div>

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

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

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

<div id="dt-f903dd2951c58e9a273b">
<p style="white-space: pre-wrap">An optional string property to label each line specifier present in the timestamp property.</p>
</div>

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

## Property dependencies (<code>dependencies</code>)

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

### <code>timestamp&#45;names</code> — applies when this property is present

Also requires: <span id="dt-03157d4fa28424390f19"><code>&#34;timestamps&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

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

<code>true</code>

Allowed by this rule.

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

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

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">hte_tegra_consumer {
          timestamps = &lt;&amp;tegra_hte_aon 0x9&gt;, &lt;&amp;tegra_hte_lic 0x19&gt;;
          timestamp-names = "hte-gpio", "hte-i2c";
};
</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>

---

# Tegra on chip generic hardware timestamping engine (HTE) provider

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

> Device-tree binding reference for Tegra on chip generic hardware timestamping engine (HTE) provider.

<!-- 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;timestamp&#47;nvidia&#44;tegra194&#45;hte&#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;Dipen Patel &#60;dipenp&#64;nvidia&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Tegra SoC has two instances of generic hardware timestamping engines (GTE) known as GTE GPIO and GTE IRQ, which can monitor subset of GPIO and on chip IRQ lines for the state change respectively, upon detection it will record timestamp (taken from system counter) in its internal hardware FIFO. It has a bitmap array arranged in 32bit slices where each bit represent signal/line to enable or disable for the hardware timestamping. The GTE GPIO monitors GPIO lines from the AON (always on) GPIO controller.</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;nvidia&#44;tegra194&#45;gte&#45;aon&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;nvidia&#44;tegra194&#45;gte&#45;lic&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;nvidia&#44;tegra234&#45;gte&#45;aon&#34;</code></span>, <span id="dt-76b67e65b51f033b1109"><code>&#34;nvidia&#44;tegra234&#45;gte&#45;lic&#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-c2de09e7f7fd211b679d"></a>

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

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

<a id="dt-20b1a407d88d051fb92b"></a>

### <code>nvidia&#44;int&#45;threshold</code> — not listed as required here

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

<div id="dt-5355487b427a4005fbb7">
<p style="white-space: pre-wrap">HTE device generates its interrupt based on this u32 FIFO threshold value. The recommended value is 1.</p>
</div>

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

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

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

### <code>nvidia&#44;slices</code> — not listed as required here

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

**Deprecated (<code>deprecated</code>):** <span id="dt-7a22d4ef8d0fa6050dac"><code>true</code></span>

<div id="dt-bc32ca841086bbcf60f6">
<p style="white-space: pre-wrap">HTE lines are arranged in 32 bit slice where each bit represents different line/signal that it can enable/configure for the timestamp. It is u32 property and the value depends on the HTE instance in the chip. The AON GTE instances for both Tegra194 and Tegra234 has 3 slices. The Tegra194 LIC instance has 11 slices and Tegra234 LIC has 17 slices.</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-65d28f0c947511413581"></a> <span id="dt-dc502fad2c53353c5c54"><code>3</code></span>, <span id="dt-869e6d9a2960c6f83d88"><code>11</code></span>, <span id="dt-517c1e1d06309bf17067"><code>17</code></span>

<a id="dt-16d58c495bade95027dc"></a>

### <code>nvidia&#44;gpio&#45;controller</code> — not listed as required here

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

<div id="dt-ed07016a2de94013144f">
<p style="white-space: pre-wrap">The phandle to AON gpio controller instance. This is required to handle namespace conversion between GPIO and GTE.</p>
</div>

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

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

<div id="dt-12cf368b36d27e9e8a37">
<p style="white-space: pre-wrap">This represents number of line id arguments as specified by the consumers. For the GTE IRQ, this is IRQ number as mentioned in the SoC technical reference manual. For the GTE GPIO, its value is same as mentioned in the nvidia GPIO device tree binding document.</p>
</div>

**Exact value (<code>const</code>):** <span id="dt-66dff0ee925a1b3805bf"><code>1</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>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;interrupts&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;&#35;timestamp&#45;cells&#34;</code></span>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

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

### Rule 1

> <a id="dt-3bbb54dfa1f05dfb4d25"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-97f47e9dc804c839f86d"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-bbadeeb73dfaefabae79"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-ebe43a424f4497a78746"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-b5c9dbe70762f9ad7bb5"></a> <span id="dt-d017b1b1b5a0bb01c549"><code>&#34;nvidia&#44;tegra194&#45;gte&#45;aon&#34;</code></span>, <span id="dt-b1891799a94ae03bda89"><code>&#34;nvidia&#44;tegra234&#45;gte&#45;aon&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-b212c2ef78c22fab2e20"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-fca0d4d6b4f3371460be"></a>
> >
> > **<code>nvidia&#44;slices</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-18bde24e61c3ff426579"><code>3</code></span>

<a id="dt-22ca5ec5b89308748ecc"></a>

### Rule 2

> <a id="dt-ffbf5afb799d5f07b3e1"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-05d9c37a1275e72a170e"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-e9866824361c1aee7933"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-d1402748b5f4caf0b18a"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-61039da0155527cc02ba"></a> <span id="dt-20f8a813aab744ff239a"><code>&#34;nvidia&#44;tegra194&#45;gte&#45;lic&#34;</code></span>
>
> <a id="dt-0971d01a730acc20e97a"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-26d1c84fcc55a7d91dea"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-b18b18ab9e9febfca06b"></a>
> >
> > **<code>nvidia&#44;slices</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-d605c47ed6393ad09772"><code>11</code></span>

<a id="dt-317510ea5c8bf789ca60"></a>

### Rule 3

> <a id="dt-15ef78abba37234c7e3a"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-81c13bb46c56768b42c8"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-676f6e45d3a322ea7096"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-c8f14712d9ed2dde9441"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-7838023cb1ac8ba1fc13"></a> <span id="dt-2698b34438b1aced3e06"><code>&#34;nvidia&#44;tegra234&#45;gte&#45;lic&#34;</code></span>
>
> <a id="dt-86c371e5831ff1f84ce5"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-4b2e0558620eefde94e1"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-8929b01b62d8561cbcbd"></a>
> >
> > **<code>nvidia&#44;slices</code> — not listed as required here**
> >
> > **Exact value (<code>const</code>):** <span id="dt-3f0d3c4905fbaf5430b7"><code>17</code></span>

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

### Rule 4

> <a id="dt-5d622c5a2672c1e49b35"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-8d84f7bba76b4e26221f"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-11dc65c5cf7abc0317bb"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-3de4a4db25c09109abf4"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Allowed values (<code>enum</code>):** <a id="dt-2f146490cc52d0a82c19"></a> <span id="dt-b1038ed41acf3cc462f9"><code>&#34;nvidia&#44;tegra234&#45;gte&#45;aon&#34;</code></span>
>
> <a id="dt-889ceb40bc531bf0dc1d"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-e8e2f7d7ecdebb81c712"></a> <span id="dt-1a51fa9eec7d4fe91130"><code>&#34;nvidia&#44;gpio&#45;controller&#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">tegra_hte_aon: timestamp@c1e0000 {
          compatible = "nvidia,tegra194-gte-aon";
          reg = &lt;0xc1e0000 0x10000&gt;;
          interrupts = &lt;0 13 0x4&gt;;
          nvidia,int-threshold = &lt;1&gt;;
          #timestamp-cells = &lt;1&gt;;
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">tegra_hte_lic: timestamp@3aa0000 {
          compatible = "nvidia,tegra194-gte-lic";
          reg = &lt;0x3aa0000 0x10000&gt;;
          interrupts = &lt;0 11 0x4&gt;;
          nvidia,int-threshold = &lt;1&gt;;
          #timestamp-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>
