diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2020-01-13 11:34:58 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-04-16 23:06:54 -0400 |
commit | 1bb257a9b33d499e1d9f6edad8d3396243741b81 (patch) | |
tree | f4d2dd1b7e9af76707db4c6280621f19ff755c5e /include | |
parent | e93f39213a3d614a33989878d85724cba30a9deb (diff) | |
download | u-boot-1bb257a9b33d499e1d9f6edad8d3396243741b81.tar.gz u-boot-1bb257a9b33d499e1d9f6edad8d3396243741b81.tar.bz2 u-boot-1bb257a9b33d499e1d9f6edad8d3396243741b81.zip |
dt-bindings: gpio: document the new pull-up/pull-down flags
This commit extends the flags that can be used in GPIO specifiers to
indicate if a pull-up resistor or pull-down resistor should be
enabled.
It is the backport of linux commit ede033e1e863c ('dt-bindings:
gpio: document the new pull-up/pull-down flags')
from Thomas Petazzoni <thomas.petazzoni@bootlin.com>
and integrated in v5.1-rc1
https://github.com/torvalds/linux/commit/ede033e1e863c
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/dt-bindings/gpio/gpio.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/dt-bindings/gpio/gpio.h b/include/dt-bindings/gpio/gpio.h index 2cc10ae4bb..c029467e82 100644 --- a/include/dt-bindings/gpio/gpio.h +++ b/include/dt-bindings/gpio/gpio.h @@ -33,4 +33,10 @@ #define GPIO_PERSISTENT 0 #define GPIO_TRANSITORY 8 +/* Bit 4 express pull up */ +#define GPIO_PULL_UP 16 + +/* Bit 5 express pull down */ +#define GPIO_PULL_DOWN 32 + #endif |