aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/dt-bindings/mfd
diff options
context:
space:
mode:
authorRadu Pirea <radu.pirea@microchip.com>2018-07-13 19:47:32 +0300
committerLee Jones <lee.jones@linaro.org>2018-09-10 16:07:11 +0100
commita785ce4c6d6c1e8e120a13a100edbb31b447675a (patch)
tree62ca1b7241219efe2bed010f030c97638e8ead50 /include/dt-bindings/mfd
parentMAINTAINERS: Add AT91 USART MFD entry (diff)
downloadwireguard-linux-a785ce4c6d6c1e8e120a13a100edbb31b447675a.tar.xz
wireguard-linux-a785ce4c6d6c1e8e120a13a100edbb31b447675a.zip
dt-bindings: Add binding for atmel-usart in SPI mode
This patch moves the bindings for serial from serial/atmel-usart.txt to mfd/atmel-usart.txt and adds bindings for USART in SPI mode. Signed-off-by: Radu Pirea <radu.pirea@microchip.com> Reviewed-by: Rob Herring <robh@kernel.org> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/dt-bindings/mfd')
-rw-r--r--include/dt-bindings/mfd/at91-usart.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/dt-bindings/mfd/at91-usart.h b/include/dt-bindings/mfd/at91-usart.h
new file mode 100644
index 000000000000..2de5bc312e1e
--- /dev/null
+++ b/include/dt-bindings/mfd/at91-usart.h
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * This header provides macros for AT91 USART DT bindings.
+ *
+ * Copyright (C) 2018 Microchip Technology
+ *
+ * Author: Radu Pirea <radu.pirea@microchip.com>
+ *
+ */
+
+#ifndef __DT_BINDINGS_AT91_USART_H__
+#define __DT_BINDINGS_AT91_USART_H__
+
+#define AT91_USART_MODE_SERIAL 0
+#define AT91_USART_MODE_SPI 1
+
+#endif /* __DT_BINDINGS_AT91_USART_H__ */