Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+56 -4
+56 -4
Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml
··· 4 4 $id: http://devicetree.org/schemas/timestamp/nvidia,tegra194-hte.yaml# 5 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 - title: Tegra194 on chip generic hardware timestamping engine (HTE) 7 + title: Tegra on chip generic hardware timestamping engine (HTE) provider 8 8 9 9 maintainers: 10 10 - Dipen Patel <dipenp@nvidia.com> ··· 23 23 enum: 24 24 - nvidia,tegra194-gte-aon 25 25 - nvidia,tegra194-gte-lic 26 + - nvidia,tegra234-gte-aon 27 + - nvidia,tegra234-gte-lic 26 28 27 29 reg: 28 30 maxItems: 1 ··· 45 43 description: 46 44 HTE lines are arranged in 32 bit slice where each bit represents different 47 45 line/signal that it can enable/configure for the timestamp. It is u32 48 - property and depends on the HTE instance in the chip. The value 3 is for 49 - GPIO GTE and 11 for IRQ GTE. 50 - enum: [3, 11] 46 + property and the value depends on the HTE instance in the chip. 47 + enum: [3, 11, 17] 48 + 49 + nvidia,gpio-controller: 50 + $ref: /schemas/types.yaml#/definitions/phandle 51 + description: 52 + The phandle to AON gpio controller instance. This is required to handle 53 + namespace conversion between GPIO and GTE. 51 54 52 55 '#timestamp-cells': 53 56 description: ··· 68 61 - interrupts 69 62 - nvidia,slices 70 63 - "#timestamp-cells" 64 + 65 + allOf: 66 + - if: 67 + properties: 68 + compatible: 69 + contains: 70 + enum: 71 + - nvidia,tegra194-gte-aon 72 + - nvidia,tegra234-gte-aon 73 + then: 74 + properties: 75 + nvidia,slices: 76 + const: 3 77 + 78 + - if: 79 + properties: 80 + compatible: 81 + contains: 82 + enum: 83 + - nvidia,tegra194-gte-lic 84 + then: 85 + properties: 86 + nvidia,slices: 87 + const: 11 88 + 89 + - if: 90 + properties: 91 + compatible: 92 + contains: 93 + enum: 94 + - nvidia,tegra234-gte-lic 95 + then: 96 + properties: 97 + nvidia,slices: 98 + const: 17 99 + 100 + - if: 101 + properties: 102 + compatible: 103 + contains: 104 + enum: 105 + - nvidia,tegra234-gte-aon 106 + then: 107 + required: 108 + - nvidia,gpio-controller 71 109 72 110 additionalProperties: false 73 111