1 /* $NetBSD: bcm2835.h,v 1.1.1.1 2017/06/15 20:14:23 jmcneill Exp $ */ 2 3 /* 4 * Header providing constants for bcm2835 pinctrl bindings. 5 * 6 * Copyright (C) 2015 Stefan Wahren <stefan.wahren (at) i2se.com> 7 * 8 * The code contained herein is licensed under the GNU General Public 9 * License. You may obtain a copy of the GNU General Public License 10 * Version 2 at the following locations: 11 * 12 * http://www.opensource.org/licenses/gpl-license.html 13 * http://www.gnu.org/copyleft/gpl.html 14 */ 15 16 #ifndef __DT_BINDINGS_PINCTRL_BCM2835_H__ 17 #define __DT_BINDINGS_PINCTRL_BCM2835_H__ 18 19 /* brcm,function property */ 20 #define BCM2835_FSEL_GPIO_IN 0 21 #define BCM2835_FSEL_GPIO_OUT 1 22 #define BCM2835_FSEL_ALT5 2 23 #define BCM2835_FSEL_ALT4 3 24 #define BCM2835_FSEL_ALT0 4 25 #define BCM2835_FSEL_ALT1 5 26 #define BCM2835_FSEL_ALT2 6 27 #define BCM2835_FSEL_ALT3 7 28 29 /* brcm,pull property */ 30 #define BCM2835_PUD_OFF 0 31 #define BCM2835_PUD_DOWN 1 32 #define BCM2835_PUD_UP 2 33 34 #endif /* __DT_BINDINGS_PINCTRL_BCM2835_H__ */ 35