1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/timestamp/nvidia,tegra194-hte.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Tegra on chip generic hardware timestamping engine (HTE) provider
10 - Dipen Patel <dipenp@nvidia.com>
13 Tegra SoC has two instances of generic hardware timestamping engines (GTE)
14 known as GTE GPIO and GTE IRQ, which can monitor subset of GPIO and on chip
15 IRQ lines for the state change respectively, upon detection it will record
16 timestamp (taken from system counter) in its internal hardware FIFO. It has
17 a bitmap array arranged in 32bit slices where each bit represent signal/line
18 to enable or disable for the hardware timestamping. The GTE GPIO monitors
19 GPIO lines from the AON (always on) GPIO controller.
24 - nvidia,tegra194-gte-aon
25 - nvidia,tegra194-gte-lic
26 - nvidia,tegra234-gte-aon
27 - nvidia,tegra234-gte-lic
36 $ref: /schemas/types.yaml#/definitions/uint32
38 HTE device generates its interrupt based on this u32 FIFO threshold
39 value. The recommended value is 1.
44 $ref: /schemas/types.yaml#/definitions/uint32
47 HTE lines are arranged in 32 bit slice where each bit represents different
48 line/signal that it can enable/configure for the timestamp. It is u32
49 property and the value depends on the HTE instance in the chip. The AON
50 GTE instances for both Tegra194 and Tegra234 has 3 slices. The Tegra194
51 LIC instance has 11 slices and Tegra234 LIC has 17 slices.
54 nvidia,gpio-controller:
55 $ref: /schemas/types.yaml#/definitions/phandle
57 The phandle to AON gpio controller instance. This is required to handle
58 namespace conversion between GPIO and GTE.
62 This represents number of line id arguments as specified by the
63 consumers. For the GTE IRQ, this is IRQ number as mentioned in the
64 SoC technical reference manual. For the GTE GPIO, its value is same as
65 mentioned in the nvidia GPIO device tree binding document.
80 - nvidia,tegra194-gte-aon
81 - nvidia,tegra234-gte-aon
92 - nvidia,tegra194-gte-lic
103 - nvidia,tegra234-gte-lic
114 - nvidia,tegra234-gte-aon
117 - nvidia,gpio-controller
119 additionalProperties: false
123 tegra_hte_aon: timestamp@c1e0000 {
124 compatible = "nvidia,tegra194-gte-aon";
125 reg = <0xc1e0000 0x10000>;
126 interrupts = <0 13 0x4>;
127 nvidia,int-threshold = <1>;
128 #timestamp-cells = <1>;
132 tegra_hte_lic: timestamp@3aa0000 {
133 compatible = "nvidia,tegra194-gte-lic";
134 reg = <0x3aa0000 0x10000>;
135 interrupts = <0 11 0x4>;
136 nvidia,int-threshold = <1>;
137 #timestamp-cells = <1>;