From: Stefan Wahren <stefan.wahren-eS4NqCHxEME@public.gmane.org>
To: swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org,
lee-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
mark.rutland-5wv7dgnIgG8@public.gmane.org
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: [PATCH V2 RESEND 3/4] ARM: bcm2835: Add header file for pinctrl constants
Date: Thu, 29 Jan 2015 18:10:49 +0000 [thread overview]
Message-ID: <1422555050-28509-4-git-send-email-stefan.wahren@i2se.com> (raw)
In-Reply-To: <1422555050-28509-1-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org>
This new header file defines pincontrol constants to use
from bcm2835 DTS files for pincontrol properties option.
Signed-off-by: Stefan Wahren <stefan.wahren-eS4NqCHxEME@public.gmane.org>
---
include/dt-bindings/pinctrl/bcm2835.h | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 include/dt-bindings/pinctrl/bcm2835.h
diff --git a/include/dt-bindings/pinctrl/bcm2835.h b/include/dt-bindings/pinctrl/bcm2835.h
new file mode 100644
index 0000000..6f0bc37
--- /dev/null
+++ b/include/dt-bindings/pinctrl/bcm2835.h
@@ -0,0 +1,27 @@
+/*
+ * Header providing constants for bcm2835 pinctrl bindings.
+ *
+ * Copyright (C) 2015 Stefan Wahren <stefan.wahren-eS4NqCHxEME@public.gmane.org>
+ *
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+#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
+
+#endif /* __DT_BINDINGS_PINCTRL_BCM2835_H__ */
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-01-29 18:10 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-29 18:10 [PATCH V2 RESEND 0/4] ARM: bcm2835: DT improvements Stefan Wahren
[not found] ` <1422555050-28509-1-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org>
2015-01-29 18:10 ` [PATCH V2 RESEND 1/4] dt-bindings: Add vendor prefix for Raspberry Pi Stefan Wahren
[not found] ` <1422555050-28509-2-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org>
2015-02-25 14:20 ` Lee Jones
2015-01-29 18:10 ` [PATCH V2 RESEND 2/4] dt-bindings: Add root properties " Stefan Wahren
[not found] ` <1422555050-28509-3-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org>
2015-02-25 14:20 ` Lee Jones
2015-01-29 18:10 ` Stefan Wahren [this message]
[not found] ` <1422555050-28509-4-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org>
2015-02-25 14:21 ` [PATCH V2 RESEND 3/4] ARM: bcm2835: Add header file for pinctrl constants Lee Jones
2015-01-29 18:10 ` [PATCH V2 RESEND 4/4] ARM: bcm2835: Use pinctrl header Stefan Wahren
[not found] ` <1422555050-28509-5-git-send-email-stefan.wahren-eS4NqCHxEME@public.gmane.org>
2015-02-09 18:09 ` Stephen Warren
[not found] ` <54D8F7EE.2060607-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-02-21 11:39 ` Stefan Wahren
[not found] ` <570054632.932648.1424518777174.JavaMail.open-xchange-h4m1HHXQYNFuz1KIG1bTI8gmgJlYmuWJ@public.gmane.org>
2015-02-23 19:09 ` Stephen Warren
[not found] ` <54EB7AF3.7030004-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-02-25 14:17 ` Lee Jones
2015-02-25 14:22 ` Lee Jones
2015-02-04 2:47 ` [PATCH V2 RESEND 0/4] ARM: bcm2835: DT improvements Rob Herring
[not found] ` <CAL_JsqJubTomhUPbBck_cBJoiL2tuDRv++tANoLtBidmSdxUYQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-02-04 7:27 ` Stefan Wahren
2015-02-04 16:51 ` Stephen Warren
2015-04-21 23:20 ` Rob Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1422555050-28509-4-git-send-email-stefan.wahren@i2se.com \
--to=stefan.wahren-es4nqchxeme@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=lee-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).