linux/include/dt-bindings/gpio/tegra241-gpio.h

/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. */

/*
 * This header provides constants for the nvidia,tegra241-gpio DT binding.
 *
 * The first cell in Tegra's GPIO specifier is the GPIO ID. The macros below
 * provide names for this.
 *
 * The second cell contains standard flag values specified in gpio.h.
 */

#ifndef _DT_BINDINGS_GPIO_TEGRA241_GPIO_H
#define _DT_BINDINGS_GPIO_TEGRA241_GPIO_H

#include <dt-bindings/gpio/gpio.h>

/* GPIOs implemented by main GPIO controller */
#define TEGRA241_MAIN_GPIO_PORT_A
#define TEGRA241_MAIN_GPIO_PORT_B
#define TEGRA241_MAIN_GPIO_PORT_C
#define TEGRA241_MAIN_GPIO_PORT_D
#define TEGRA241_MAIN_GPIO_PORT_E
#define TEGRA241_MAIN_GPIO_PORT_F
#define TEGRA241_MAIN_GPIO_PORT_G
#define TEGRA241_MAIN_GPIO_PORT_H
#define TEGRA241_MAIN_GPIO_PORT_I
#define TEGRA241_MAIN_GPIO_PORT_J
#define TEGRA241_MAIN_GPIO_PORT_K
#define TEGRA241_MAIN_GPIO_PORT_L

#define TEGRA241_MAIN_GPIO(port, offset)

/* GPIOs implemented by AON GPIO controller */
#define TEGRA241_AON_GPIO_PORT_AA
#define TEGRA241_AON_GPIO_PORT_BB

#define TEGRA241_AON_GPIO(port, offset)

#endif