diff options
author | Olof Johansson <olof@lixom.net> | 2013-06-01 03:38:04 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-06-01 03:38:04 -0400 |
commit | fc20c6ffdd9875c42c9ff0d4233ed8960165633b (patch) | |
tree | a36b423c815efc859b833338a27b45011d4ad8c0 /include | |
parent | 3c09f4daeee83b76779dec766f57e9e883402bb1 (diff) | |
parent | 028633c238f91dc113520a7ad25d37b2ba9068af (diff) |
Merge tag 'at91-dt' of git://github.com/at91linux/linux-at91 into next/dt
From Nicolas Ferre:
Big DT-centric update for AT91:
- Calao boards update, removal of one board C file and
associated defconfig, Kconfig Makefile lines
- several Acme boards updates
- addition of watchdog, uart and pinctrl descriptions for
several products
- modification of RTC compatible string for 9x5 family
* tag 'at91-dt' of git://github.com/at91linux/linux-at91: (21 commits)
ARM: at91/dt: add pinctrl definition for at91 tc blocks
ARM: at91/dts: add the watchdog nodes for at91 boards
ARM: at91/dtsi: add the watchdog nodes for at91 SoC
ARM: at91: drop non DT: Calao USB-A96x
ARM: at91: dt: add Calao USB-A9G20 low power version
ARM: at91: dt: usb-a9263: add dataflash support
ARM: at91: dt: usb-a9263: update shutdown controller
ARM: at91: dt: usb-a9260: update shutdown controller
ARM: at91: dt: sam9260: add i2c gpio pinctrl
ARM: at91: switch Fox G20 board .dts to pre-processor defines
ARM: at91: add Acme Systems Fox G20 board
ARM: at91/at91-ariag25.dts: UART0/1 nodes are disabled
ARM: at91/at91sam9x5.dtsi: add UART0/1 nodes
ARM: at91/at91-ariag25.dts: add RTC node
ARM: at91: at91sam9x5 RTC is not compatible with at91rm9200 one
ARM: at91: udpate defconfigs
ARM: at91: dt: switch to standard IRQ flag defines
ARM: at91: dt: switch to pinctrl to pre-processor
ARM: at91: dt: add pinctrl pre-processor define
ARM: at91: dt: switch to standard GPIO flag defines.
...
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/dt-bindings/pinctrl/at91.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/dt-bindings/pinctrl/at91.h b/include/dt-bindings/pinctrl/at91.h new file mode 100644 index 000000000000..d7988b4d8af9 --- /dev/null +++ b/include/dt-bindings/pinctrl/at91.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /* | ||
2 | * This header provides constants for most at91 pinctrl bindings. | ||
3 | * | ||
4 | * Copyright (C) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | ||
5 | * | ||
6 | * GPLv2 only | ||
7 | */ | ||
8 | |||
9 | #ifndef __DT_BINDINGS_AT91_PINCTRL_H__ | ||
10 | #define __DT_BINDINGS_AT91_PINCTRL_H__ | ||
11 | |||
12 | #define AT91_PINCTRL_NONE (0 << 0) | ||
13 | #define AT91_PINCTRL_PULL_UP (1 << 0) | ||
14 | #define AT91_PINCTRL_MULTI_DRIVE (1 << 1) | ||
15 | #define AT91_PINCTRL_DEGLITCH (1 << 2) | ||
16 | #define AT91_PINCTRL_PULL_DOWN (1 << 3) | ||
17 | #define AT91_PINCTRL_DIS_SCHMIT (1 << 4) | ||
18 | #define AT91_PINCTRL_DEBOUNCE (1 << 16) | ||
19 | #define AT91_PINCTRL_DEBOUNCE_VA(x) (x << 17) | ||
20 | |||
21 | #define AT91_PINCTRL_PULL_UP_DEGLITCH (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DEGLITCH) | ||
22 | |||
23 | #define AT91_PIOA 0 | ||
24 | #define AT91_PIOB 1 | ||
25 | #define AT91_PIOC 2 | ||
26 | #define AT91_PIOD 3 | ||
27 | #define AT91_PIOE 4 | ||
28 | |||
29 | #define AT91_PERIPH_GPIO 0 | ||
30 | #define AT91_PERIPH_A 1 | ||
31 | #define AT91_PERIPH_B 2 | ||
32 | #define AT91_PERIPH_C 3 | ||
33 | #define AT91_PERIPH_D 4 | ||
34 | |||
35 | #endif /* __DT_BINDINGS_AT91_PINCTRL_H__ */ | ||