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