hte: handle nvidia,gpio-controller property
authorDipen Patel <dipenp@nvidia.com>
Fri, 14 Apr 2023 00:44:54 +0000 (17:44 -0700)
committerDipen Patel <dipenp@nvidia.com>
Wed, 26 Apr 2023 22:43:42 +0000 (15:43 -0700)
commitd02b1cabc7c6fe0e237bf8a2a6a8813302cfd87c
treee9cb0560e6b00292a905f3c93e1012029bba3b36
parent0ebc475fb636df12222faa04dd989a4e3c87f31a
hte: handle nvidia,gpio-controller property

The dt binding adds nvidia,gpio-controller property from Tegra234 SoC
onwards to simplify code handling gpio chip search. The gpio chip search
is needed for the AON GPIO GTE instances to map the hardware timestamp
GPIO request (coming from the GPIO framework) to the tegra HTE
providers. The patch also adds new gpio chip match function to match
from the fwnode instead of the gpio controller label. The addition
of the property does not break ABI for the existing Tegra194 code.

Signed-off-by: Dipen Patel <dipenp@nvidia.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
drivers/hte/hte-tegra194.c