Path: blob/master/include/dt-bindings/gpio/tegra186-gpio.h
26285 views
/* SPDX-License-Identifier: GPL-2.0 */1/*2* This header provides constants for binding nvidia,tegra186-gpio*.3*4* The first cell in Tegra's GPIO specifier is the GPIO ID. The macros below5* provide names for this.6*7* The second cell contains standard flag values specified in gpio.h.8*/910#ifndef _DT_BINDINGS_GPIO_TEGRA186_GPIO_H11#define _DT_BINDINGS_GPIO_TEGRA186_GPIO_H1213#include <dt-bindings/gpio/gpio.h>1415/* GPIOs implemented by main GPIO controller */16#define TEGRA186_MAIN_GPIO_PORT_A 017#define TEGRA186_MAIN_GPIO_PORT_B 118#define TEGRA186_MAIN_GPIO_PORT_C 219#define TEGRA186_MAIN_GPIO_PORT_D 320#define TEGRA186_MAIN_GPIO_PORT_E 421#define TEGRA186_MAIN_GPIO_PORT_F 522#define TEGRA186_MAIN_GPIO_PORT_G 623#define TEGRA186_MAIN_GPIO_PORT_H 724#define TEGRA186_MAIN_GPIO_PORT_I 825#define TEGRA186_MAIN_GPIO_PORT_J 926#define TEGRA186_MAIN_GPIO_PORT_K 1027#define TEGRA186_MAIN_GPIO_PORT_L 1128#define TEGRA186_MAIN_GPIO_PORT_M 1229#define TEGRA186_MAIN_GPIO_PORT_N 1330#define TEGRA186_MAIN_GPIO_PORT_O 1431#define TEGRA186_MAIN_GPIO_PORT_P 1532#define TEGRA186_MAIN_GPIO_PORT_Q 1633#define TEGRA186_MAIN_GPIO_PORT_R 1734#define TEGRA186_MAIN_GPIO_PORT_T 1835#define TEGRA186_MAIN_GPIO_PORT_X 1936#define TEGRA186_MAIN_GPIO_PORT_Y 2037#define TEGRA186_MAIN_GPIO_PORT_BB 2138#define TEGRA186_MAIN_GPIO_PORT_CC 223940#define TEGRA186_MAIN_GPIO(port, offset) \41((TEGRA186_MAIN_GPIO_PORT_##port * 8) + offset)4243/* GPIOs implemented by AON GPIO controller */44#define TEGRA186_AON_GPIO_PORT_S 045#define TEGRA186_AON_GPIO_PORT_U 146#define TEGRA186_AON_GPIO_PORT_V 247#define TEGRA186_AON_GPIO_PORT_W 348#define TEGRA186_AON_GPIO_PORT_Z 449#define TEGRA186_AON_GPIO_PORT_AA 550#define TEGRA186_AON_GPIO_PORT_EE 651#define TEGRA186_AON_GPIO_PORT_FF 75253#define TEGRA186_AON_GPIO(port, offset) \54((TEGRA186_AON_GPIO_PORT_##port * 8) + offset)5556#endif575859