]> git.ipfire.org Git - thirdparty/linux.git/commit
pinctrl-tegra: Add config property GPIO mode
authorPrathamesh Shete <pshete@nvidia.com>
Tue, 17 Dec 2024 15:32:49 +0000 (21:02 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 28 Feb 2025 08:37:25 +0000 (09:37 +0100)
commit7da6a3578ab4bcff5f6bdea5fcef08a82139c868
tree5be9e8e8ded834e8bccd6c5ef38b2b852d3795a8
parente2a9df2fe119f030f30b7dcba5c734058fd37487
pinctrl-tegra: Add config property GPIO mode

The SFIO/GPIO select bit is a crucial part of Tegra's pin multiplexing
system:
- When set to 1, the pin operates in SFIO mode, controlled by the
  pin's assigned special function.
- When set to 0, the pin operates as a general-purpose GPIO.

This SFIO/GPIO select bit that is set for a given pin is not displayed,
adding the support to retrieve this information from the
pinmux set for each pin.

Signed-off-by: Prathamesh Shete <pshete@nvidia.com>
Link: https://lore.kernel.org/20241217153249.5712-1-pshete@nvidia.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/tegra/pinctrl-tegra.c
drivers/pinctrl/tegra/pinctrl-tegra.h