Path: blob/master/include/dt-bindings/gpio/tegra234-gpio.h
25923 views
/* SPDX-License-Identifier: GPL-2.0 */1/* Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. */23/*4* This header provides constants for binding nvidia,tegra234-gpio*.5*6* The first cell in Tegra's GPIO specifier is the GPIO ID. The macros below7* provide names for this.8*9* The second cell contains standard flag values specified in gpio.h.10*/1112#ifndef _DT_BINDINGS_GPIO_TEGRA234_GPIO_H13#define _DT_BINDINGS_GPIO_TEGRA234_GPIO_H1415#include <dt-bindings/gpio/gpio.h>1617/* GPIOs implemented by main GPIO controller */18#define TEGRA234_MAIN_GPIO_PORT_A 019#define TEGRA234_MAIN_GPIO_PORT_B 120#define TEGRA234_MAIN_GPIO_PORT_C 221#define TEGRA234_MAIN_GPIO_PORT_D 322#define TEGRA234_MAIN_GPIO_PORT_E 423#define TEGRA234_MAIN_GPIO_PORT_F 524#define TEGRA234_MAIN_GPIO_PORT_G 625#define TEGRA234_MAIN_GPIO_PORT_H 726#define TEGRA234_MAIN_GPIO_PORT_I 827#define TEGRA234_MAIN_GPIO_PORT_J 928#define TEGRA234_MAIN_GPIO_PORT_K 1029#define TEGRA234_MAIN_GPIO_PORT_L 1130#define TEGRA234_MAIN_GPIO_PORT_M 1231#define TEGRA234_MAIN_GPIO_PORT_N 1332#define TEGRA234_MAIN_GPIO_PORT_P 1433#define TEGRA234_MAIN_GPIO_PORT_Q 1534#define TEGRA234_MAIN_GPIO_PORT_R 1635#define TEGRA234_MAIN_GPIO_PORT_X 1736#define TEGRA234_MAIN_GPIO_PORT_Y 1837#define TEGRA234_MAIN_GPIO_PORT_Z 1938#define TEGRA234_MAIN_GPIO_PORT_AC 2039#define TEGRA234_MAIN_GPIO_PORT_AD 2140#define TEGRA234_MAIN_GPIO_PORT_AE 2241#define TEGRA234_MAIN_GPIO_PORT_AF 2342#define TEGRA234_MAIN_GPIO_PORT_AG 244344#define TEGRA234_MAIN_GPIO(port, offset) \45((TEGRA234_MAIN_GPIO_PORT_##port * 8) + offset)4647/* GPIOs implemented by AON GPIO controller */48#define TEGRA234_AON_GPIO_PORT_AA 049#define TEGRA234_AON_GPIO_PORT_BB 150#define TEGRA234_AON_GPIO_PORT_CC 251#define TEGRA234_AON_GPIO_PORT_DD 352#define TEGRA234_AON_GPIO_PORT_EE 453#define TEGRA234_AON_GPIO_PORT_GG 55455#define TEGRA234_AON_GPIO(port, offset) \56((TEGRA234_AON_GPIO_PORT_##port * 8) + offset)5758#endif596061