Skip to content

Commit d0672fa

Browse files
dt-bindings: timestamp: Add Tegra234 support
Added timestamp provider support for the Tegra234 in devicetree bindings. From Tegra234 SoC onwards, the nvidia,gpio-controller property is required. This is needed as the tegra always-on (AON) GPIO HTE/GTE provider depends on the AON GPIO controller where it needs to do namespace conversion between GPIO line number (belonging to AON GPIO controller instance) and the GTE slice bits. Signed-off-by: Dipen Patel <dipenp@nvidia.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent fdd1e34 commit d0672fa

1 file changed

Lines changed: 56 additions & 4 deletions

File tree

Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$id: http://devicetree.org/schemas/timestamp/nvidia,tegra194-hte.yaml#
55
$schema: http://devicetree.org/meta-schemas/core.yaml#
66

7-
title: Tegra194 on chip generic hardware timestamping engine (HTE)
7+
title: Tegra on chip generic hardware timestamping engine (HTE) provider
88

99
maintainers:
1010
- Dipen Patel <dipenp@nvidia.com>
@@ -23,6 +23,8 @@ properties:
2323
enum:
2424
- nvidia,tegra194-gte-aon
2525
- nvidia,tegra194-gte-lic
26+
- nvidia,tegra234-gte-aon
27+
- nvidia,tegra234-gte-lic
2628

2729
reg:
2830
maxItems: 1
@@ -43,9 +45,14 @@ properties:
4345
description:
4446
HTE lines are arranged in 32 bit slice where each bit represents different
4547
line/signal that it can enable/configure for the timestamp. It is u32
46-
property and depends on the HTE instance in the chip. The value 3 is for
47-
GPIO GTE and 11 for IRQ GTE.
48-
enum: [3, 11]
48+
property and the value depends on the HTE instance in the chip.
49+
enum: [3, 11, 17]
50+
51+
nvidia,gpio-controller:
52+
$ref: /schemas/types.yaml#/definitions/phandle
53+
description:
54+
The phandle to AON gpio controller instance. This is required to handle
55+
namespace conversion between GPIO and GTE.
4956

5057
'#timestamp-cells':
5158
description:
@@ -62,6 +69,51 @@ required:
6269
- nvidia,slices
6370
- "#timestamp-cells"
6471

72+
allOf:
73+
- if:
74+
properties:
75+
compatible:
76+
contains:
77+
enum:
78+
- nvidia,tegra194-gte-aon
79+
- nvidia,tegra234-gte-aon
80+
then:
81+
properties:
82+
nvidia,slices:
83+
const: 3
84+
85+
- if:
86+
properties:
87+
compatible:
88+
contains:
89+
enum:
90+
- nvidia,tegra194-gte-lic
91+
then:
92+
properties:
93+
nvidia,slices:
94+
const: 11
95+
96+
- if:
97+
properties:
98+
compatible:
99+
contains:
100+
enum:
101+
- nvidia,tegra234-gte-lic
102+
then:
103+
properties:
104+
nvidia,slices:
105+
const: 17
106+
107+
- if:
108+
properties:
109+
compatible:
110+
contains:
111+
enum:
112+
- nvidia,tegra234-gte-aon
113+
then:
114+
required:
115+
- nvidia,gpio-controller
116+
65117
additionalProperties: false
66118

67119
examples:

0 commit comments

Comments
 (0)