Skip to content

pinctrl: tegra: Support SFIO/GPIO programming

Thierry Reding linux-gpio linux-tegra oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9gpio: Support GPIO controllers without pin-rangesdrivers/gpio/gpiolib.c+4 -13 replies
2/9gpio: tegra186: Add support for pin rangesdrivers/gpio/gpio-tegra186.c+56 -03 replies
3/9gpio: tegra186: Add Tegra194 pin ranges for GG.0 and GG.1drivers/gpio/gpio-tegra186.c+8 -02 replies
4/9pinctrl: tegra: Fix whitespace issues for improved readabilitydrivers/pinctrl/tegra/pinctrl-tegra194.c+17 -162 replies
5/9pinctrl: tegra: Fix "Scmitt" -> "Schmitt" typodrivers/pinctrl/tegra/pinctrl-tegra.h+1 -12 replies
6/9pinctrl: tegra: Pass struct tegra_pmx for pin range checkdrivers/pinctrl/tegra/pinctrl-tegra.c+3 -32 replies
7/9pinctrl: tegra: Do not add default pin range on Tegra194drivers/pinctrl/tegra/pinctrl-tegra.c drivers/pinctrl/tegra/pinctrl-tegra194.c+1 -22 replies
8/9pinctrl: tegra: Renumber the GG.0 and GG.1 pinsdrivers/pinctrl/tegra/pinctrl-tegra194.c+4 -72 replies
9/9pinctrl: tegra: Add SFIO/GPIO programming on Tegra194drivers/pinctrl/tegra/pinctrl-tegra.c drivers/pinctrl/tegra/pinctrl-tegra.h drivers/pinctrl/tegra/pinctrl-tegra194.c+51 -02 replies

Reviews trailers per patch

None of the 9 patches has a Reviewed-by or Acked-by.

PatchVidya Sagar
SeriesT-b
1/9T-b
2/9T-b
3/9T-b
4/9T-b
5/9T-b
6/9T-b
7/9T-b
8/9T-b
9/9T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] pinctrl: tegra: Support SFIO/GPIO programming

From: Thierry Reding <[email protected]>

Hi,

NVIDIA Tegra186 and later have a bit in the pin controller that defines whether a pin is used in special function (SFIO) mode or in general purpose (GPIO) mode. On early Tegra SoC generations, this bit was part of the GPIO controller.

The pin configuration on Tegra186 and later (and partially on Tegra210) is typically static, so there is little need to reconfigure these pins. However, there's a special case on Tegra194 where the PCIe CLKREQ and RST pins for controller 5 may need to be reprogrammed in the kernel, depending on whether the controller runs in endpoint mode or in root port mode.

This series of patches establishes the mapping of these two pins to their GPIO equivalents and implements the code necessary to switch between SFIO and GPIO modes when the kernel requests or releases the GPIOs, respectively.

Thierry

Thierry Reding (9):
gpio: Support GPIO controllers without pin-ranges
gpio: tegra186: Add support for pin ranges
gpio: tegra186: Add Tegra194 pin ranges for GG.0 and GG.1
pinctrl: tegra: Fix whitespace issues for improved readability
pinctrl: tegra: Fix "Scmitt" -> "Schmitt" typo
pinctrl: tegra: Pass struct tegra_pmx for pin range check
pinctrl: tegra: Do not add default pin range on Tegra194
pinctrl: tegra: Renumber the GG.0 and GG.1 pins
pinctrl: tegra: Add SFIO/GPIO programming on Tegra194

 drivers/gpio/gpio-tegra186.c             | 64 ++++++++++++++++++++++++
 drivers/gpio/gpiolib.c                   |  5 +-
 drivers/pinctrl/tegra/pinctrl-tegra.c    | 52 +++++++++++++++++--
 drivers/pinctrl/tegra/pinctrl-tegra.h    |  5 +-
 drivers/pinctrl/tegra/pinctrl-tegra194.c | 47 +++++++++--------
 5 files changed, 144 insertions(+), 29 deletions(-)
Signature · 1 line
2.24.1