![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 /* 0003 * This header provides constants for most GPIO bindings. 0004 * 0005 * Most GPIO bindings include a flags cell as part of the GPIO specifier. 0006 * In most cases, the format of the flags cell uses the standard values 0007 * defined in this header. 0008 */ 0009 0010 #ifndef _DT_BINDINGS_GPIO_GPIO_H 0011 #define _DT_BINDINGS_GPIO_GPIO_H 0012 0013 /* Bit 0 express polarity */ 0014 #define GPIO_ACTIVE_HIGH 0 0015 #define GPIO_ACTIVE_LOW 1 0016 0017 /* Bit 1 express single-endedness */ 0018 #define GPIO_PUSH_PULL 0 0019 #define GPIO_SINGLE_ENDED 2 0020 0021 /* Bit 2 express Open drain or open source */ 0022 #define GPIO_LINE_OPEN_SOURCE 0 0023 #define GPIO_LINE_OPEN_DRAIN 4 0024 0025 /* 0026 * Open Drain/Collector is the combination of single-ended open drain interface. 0027 * Open Source/Emitter is the combination of single-ended open source interface. 0028 */ 0029 #define GPIO_OPEN_DRAIN (GPIO_SINGLE_ENDED | GPIO_LINE_OPEN_DRAIN) 0030 #define GPIO_OPEN_SOURCE (GPIO_SINGLE_ENDED | GPIO_LINE_OPEN_SOURCE) 0031 0032 /* Bit 3 express GPIO suspend/resume and reset persistence */ 0033 #define GPIO_PERSISTENT 0 0034 #define GPIO_TRANSITORY 8 0035 0036 /* Bit 4 express pull up */ 0037 #define GPIO_PULL_UP 16 0038 0039 /* Bit 5 express pull down */ 0040 #define GPIO_PULL_DOWN 32 0041 0042 /* Bit 6 express pull disable */ 0043 #define GPIO_PULL_DISABLE 64 0044 0045 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |