xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/pinctrl/nomadik.h (revision acb1f1269c6f4ff89a0d28ba742f6687e9ef779d)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * nomadik.h
4  *
5  * Copyright (C) ST-Ericsson SA 2013
6  * Author: Gabriel Fernandez <gabriel.fernandez@st.com> for ST-Ericsson.
7  */
8 
9 #define INPUT_NOPULL		0
10 #define INPUT_PULLUP		1
11 #define INPUT_PULLDOWN		2
12 
13 #define OUTPUT_LOW		0
14 #define OUTPUT_HIGH		1
15 #define DIR_OUTPUT		2
16 
17 #define SLPM_DISABLED		0
18 #define SLPM_ENABLED		1
19 
20 #define SLPM_INPUT_NOPULL	0
21 #define SLPM_INPUT_PULLUP	1
22 #define SLPM_INPUT_PULLDOWN	2
23 #define SLPM_DIR_INPUT		3
24 
25 #define SLPM_OUTPUT_LOW		0
26 #define SLPM_OUTPUT_HIGH	1
27 #define SLPM_DIR_OUTPUT		2
28 
29 #define SLPM_WAKEUP_DISABLE	0
30 #define SLPM_WAKEUP_ENABLE	1
31 
32 #define GPIOMODE_DISABLED	0
33 #define GPIOMODE_ENABLED	1
34 
35 #define SLPM_PDIS_DISABLED	0
36 #define SLPM_PDIS_ENABLED	1
37