ARM: tegra: use DT bindings for GPIO naming

There are currently many places that define the list of all Tegra GPIOs;
the DT binding header and custom Tegra-specific header file gpio.h. Fix
the redundancy by replacing everything with the DT binding header file.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
This commit is contained in:
Stephen Warren
2016-05-12 12:07:39 -06:00
committed by Tom Warren
parent da6e2fab5d
commit 01a97a11db
20 changed files with 383 additions and 1376 deletions

View File

@@ -103,11 +103,11 @@ void pin_mux_usb(void)
pinmux_tristate_disable(PMUX_PINGRP_DTE);
/* Reset ASIX using LAN_RESET */
gpio_request(GPIO_PV4, "LAN_RESET");
gpio_direction_output(GPIO_PV4, 0);
gpio_request(TEGRA_GPIO(V, 4), "LAN_RESET");
gpio_direction_output(TEGRA_GPIO(V, 4), 0);
pinmux_tristate_disable(PMUX_PINGRP_GPV);
udelay(5);
gpio_set_value(GPIO_PV4, 1);
gpio_set_value(TEGRA_GPIO(V, 4), 1);
/* USBH_PEN: USB 1 aka Tegra USB port 3 VBus */
pinmux_tristate_disable(PMUX_PINGRP_SPIG);

View File

@@ -47,8 +47,8 @@ void pinmux_init(void)
void pin_mux_usb(void)
{
/* Reset ASIX using LAN_RESET */
gpio_request(GPIO_PDD0, "LAN_RESET");
gpio_direction_output(GPIO_PDD0, 0);
gpio_request(TEGRA_GPIO(DD, 0), "LAN_RESET");
gpio_direction_output(TEGRA_GPIO(DD, 0), 0);
udelay(5);
gpio_set_value(GPIO_PDD0, 1);
gpio_set_value(TEGRA_GPIO(DD, 0), 1);
}