blob: 05f983658396c7e4d37d6453bd6c27e5c9d72c36 [file] [log] [blame]
Patrick Delaunay23aee612020-01-13 11:35:13 +01001/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * This header provides constants for binding sandbox,gpio
4 *
5 */
6#ifndef _DT_BINDINGS_GPIO_SANDBOX_GPIO_H
7#define _DT_BINDINGS_GPIO_SANDBOX_GPIO_H
8
9/*
10 * Add a specific binding for sandbox gpio.
11 * The value need to be after the generic defines of
12 * dt-bindings/gpio/gpio.h
13 */
14
15/* Bit 16 express GPIO input mode */
16#define GPIO_IN 0x10000
17
18/* Bit 17 express GPIO output mode */
19#define GPIO_OUT 0x20000
20
21/* Bit 18 express GPIO output is active */
22#define GPIO_OUT_ACTIVE 0x40000
23
Patrice Chotardf69c39d2022-08-30 14:09:14 +020024/* Bit 19 express GPIO set as alternate function */
25#define GPIO_AF 0x80000
26
Patrick Delaunay23aee612020-01-13 11:35:13 +010027#endif