2018-11-10 23:15:11 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2015-01-30 01:10:49 +07:00
|
|
|
/*
|
|
|
|
* Header providing constants for bcm2835 pinctrl bindings.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2015 Stefan Wahren <stefan.wahren@i2se.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DT_BINDINGS_PINCTRL_BCM2835_H__
|
|
|
|
#define __DT_BINDINGS_PINCTRL_BCM2835_H__
|
|
|
|
|
|
|
|
/* brcm,function property */
|
|
|
|
#define BCM2835_FSEL_GPIO_IN 0
|
|
|
|
#define BCM2835_FSEL_GPIO_OUT 1
|
|
|
|
#define BCM2835_FSEL_ALT5 2
|
|
|
|
#define BCM2835_FSEL_ALT4 3
|
|
|
|
#define BCM2835_FSEL_ALT0 4
|
|
|
|
#define BCM2835_FSEL_ALT1 5
|
|
|
|
#define BCM2835_FSEL_ALT2 6
|
|
|
|
#define BCM2835_FSEL_ALT3 7
|
|
|
|
|
2016-09-19 15:43:17 +07:00
|
|
|
/* brcm,pull property */
|
|
|
|
#define BCM2835_PUD_OFF 0
|
|
|
|
#define BCM2835_PUD_DOWN 1
|
|
|
|
#define BCM2835_PUD_UP 2
|
|
|
|
|
2015-01-30 01:10:49 +07:00
|
|
|
#endif /* __DT_BINDINGS_PINCTRL_BCM2835_H__ */
|