Path: blob/master/include/dt-bindings/gpio/nvidia,tegra264-gpio.h
121833 views
/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */1/* Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved. */23/*4* This header provides constants for binding nvidia,tegra264-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_TEGRA264_GPIO_H13#define _DT_BINDINGS_GPIO_TEGRA264_GPIO_H1415#include <dt-bindings/gpio/gpio.h>1617/* GPIOs implemented by main GPIO controller */18#define TEGRA264_MAIN_GPIO_PORT_T 019#define TEGRA264_MAIN_GPIO_PORT_U 120#define TEGRA264_MAIN_GPIO_PORT_V 221#define TEGRA264_MAIN_GPIO_PORT_W 322#define TEGRA264_MAIN_GPIO_PORT_AL 423#define TEGRA264_MAIN_GPIO_PORT_Y 524#define TEGRA264_MAIN_GPIO_PORT_Z 625#define TEGRA264_MAIN_GPIO_PORT_X 726#define TEGRA264_MAIN_GPIO_PORT_H 827#define TEGRA264_MAIN_GPIO_PORT_J 928#define TEGRA264_MAIN_GPIO_PORT_K 1029#define TEGRA264_MAIN_GPIO_PORT_L 1130#define TEGRA264_MAIN_GPIO_PORT_M 1231#define TEGRA264_MAIN_GPIO_PORT_P 1332#define TEGRA264_MAIN_GPIO_PORT_Q 1433#define TEGRA264_MAIN_GPIO_PORT_R 1534#define TEGRA264_MAIN_GPIO_PORT_S 1635#define TEGRA264_MAIN_GPIO_PORT_F 1736#define TEGRA264_MAIN_GPIO_PORT_G 183738#define TEGRA264_MAIN_GPIO(port, offset) \39((TEGRA264_MAIN_GPIO_PORT_##port * 8) + (offset))4041/* GPIOs implemented by AON GPIO controller */42#define TEGRA264_AON_GPIO_PORT_AA 043#define TEGRA264_AON_GPIO_PORT_BB 144#define TEGRA264_AON_GPIO_PORT_CC 245#define TEGRA264_AON_GPIO_PORT_DD 346#define TEGRA264_AON_GPIO_PORT_EE 44748#define TEGRA264_AON_GPIO(port, offset) \49((TEGRA264_AON_GPIO_PORT_##port * 8) + (offset))5051#define TEGRA264_UPHY_GPIO_PORT_A 052#define TEGRA264_UPHY_GPIO_PORT_B 153#define TEGRA264_UPHY_GPIO_PORT_C 254#define TEGRA264_UPHY_GPIO_PORT_D 355#define TEGRA264_UPHY_GPIO_PORT_E 45657#define TEGRA264_UPHY_GPIO(port, offset) \58((TEGRA264_UPHY_GPIO_PORT_##port * 8) + (offset))5960#endif616263