Heinrich Schuchardt | 143256b | 2019-04-28 06:46:57 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Fabian Vogt | 715dad6 | 2016-09-26 14:26:46 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Header providing constants for bcm2835 pinctrl bindings. |
| 4 | * |
| 5 | * Copyright (C) 2015 Stefan Wahren <stefan.wahren@i2se.com> |
Fabian Vogt | 715dad6 | 2016-09-26 14:26:46 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __DT_BINDINGS_PINCTRL_BCM2835_H__ |
| 9 | #define __DT_BINDINGS_PINCTRL_BCM2835_H__ |
| 10 | |
| 11 | /* brcm,function property */ |
| 12 | #define BCM2835_FSEL_GPIO_IN 0 |
| 13 | #define BCM2835_FSEL_GPIO_OUT 1 |
| 14 | #define BCM2835_FSEL_ALT5 2 |
| 15 | #define BCM2835_FSEL_ALT4 3 |
| 16 | #define BCM2835_FSEL_ALT0 4 |
| 17 | #define BCM2835_FSEL_ALT1 5 |
| 18 | #define BCM2835_FSEL_ALT2 6 |
| 19 | #define BCM2835_FSEL_ALT3 7 |
| 20 | |
Alexander Graf | 409f05f | 2017-10-04 14:39:16 +0200 | [diff] [blame] | 21 | /* brcm,pull property */ |
| 22 | #define BCM2835_PUD_OFF 0 |
| 23 | #define BCM2835_PUD_DOWN 1 |
| 24 | #define BCM2835_PUD_UP 2 |
| 25 | |
Fabian Vogt | 715dad6 | 2016-09-26 14:26:46 +0200 | [diff] [blame] | 26 | #endif /* __DT_BINDINGS_PINCTRL_BCM2835_H__ */ |