From: Javier Martinez Canillas <javier@osg.samsung.com>
To: linux-kernel@vger.kernel.org
Cc: linux-omap@vger.kernel.org, Tony Lindgren <tony@atomide.com>,
Javier Martinez Canillas <javier@osg.samsung.com>,
linux-gpio@vger.kernel.org,
Linus Walleij <linus.walleij@linaro.org>
Subject: [PATCH 01/39] pinctrl: Move am4372 and dra7 macros to the the SoC header files
Date: Fri, 13 Nov 2015 01:53:39 -0300 [thread overview]
Message-ID: <1447390457-1158-2-git-send-email-javier@osg.samsung.com> (raw)
In-Reply-To: <1447390457-1158-1-git-send-email-javier@osg.samsung.com>
The <dt-bindings/pinctrl/omap.h> header file defines a set of macros
for different SoCs families that falls under the OMAP sub-arch, that
allow to define the padconf register physical address instead of the
register offset from the padconf base.
But the am43xx and dra7xx SoCs families have their own pinctrl header
file so the DTS using these SoCs aren't able to use the AM4372_IOPAD()
and DRA7XX_CORE_IOPAD() macros since <dt-bindings/pinctrl/omap.h> is
not included.
Move the macros to the correct header files so can be used by the DTS.
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
---
include/dt-bindings/pinctrl/am43xx.h | 6 ++++++
include/dt-bindings/pinctrl/dra.h | 6 ++++++
include/dt-bindings/pinctrl/omap.h | 2 --
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/include/dt-bindings/pinctrl/am43xx.h b/include/dt-bindings/pinctrl/am43xx.h
index 774dc1e843c5..344bd1eb3386 100644
--- a/include/dt-bindings/pinctrl/am43xx.h
+++ b/include/dt-bindings/pinctrl/am43xx.h
@@ -31,5 +31,11 @@
#define PIN_INPUT_PULLUP (INPUT_EN | PULL_UP)
#define PIN_INPUT_PULLDOWN (INPUT_EN)
+/*
+ * Macro to allow using the absolute physical address instead of the
+ * padconf registers instead of the offset from padconf base.
+ */
+#define AM4372_IOPAD(pa, val) (((pa) & 0xffff) - 0x0800) (val)
+
#endif
diff --git a/include/dt-bindings/pinctrl/dra.h b/include/dt-bindings/pinctrl/dra.h
index 4379e29f0460..5c75e80915fc 100644
--- a/include/dt-bindings/pinctrl/dra.h
+++ b/include/dt-bindings/pinctrl/dra.h
@@ -67,5 +67,11 @@
#define PIN_INPUT_PULLUP (PULL_ENA | INPUT_EN | PULL_UP)
#define PIN_INPUT_PULLDOWN (PULL_ENA | INPUT_EN)
+/*
+ * Macro to allow using the absolute physical address instead of the
+ * padconf registers instead of the offset from padconf base.
+ */
+#define DRA7XX_CORE_IOPAD(pa, val) (((pa) & 0xffff) - 0x3400) (val)
+
#endif
diff --git a/include/dt-bindings/pinctrl/omap.h b/include/dt-bindings/pinctrl/omap.h
index 13949259705a..8100de13851c 100644
--- a/include/dt-bindings/pinctrl/omap.h
+++ b/include/dt-bindings/pinctrl/omap.h
@@ -63,8 +63,6 @@
#define OMAP3_WKUP_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x2a00) (val)
#define DM816X_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val)
#define AM33XX_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val)
-#define AM4372_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val)
-#define DRA7XX_CORE_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x3400) (val)
/*
* Macros to allow using the offset from the padconf physical address
--
2.4.3
next prev parent reply other threads:[~2015-11-13 4:54 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-13 4:53 [PATCH 00/39] ARM: dts: Convert OMAP boards to use IOPAD pinmux macros Javier Martinez Canillas
2015-11-13 4:53 ` Javier Martinez Canillas [this message]
2015-11-17 13:47 ` [PATCH 01/39] pinctrl: Move am4372 and dra7 macros to the the SoC header files Linus Walleij
2015-11-17 13:50 ` Javier Martinez Canillas
2015-11-19 0:23 ` Tony Lindgren
2015-11-25 18:39 ` Tony Lindgren
2015-11-30 16:46 ` Tony Lindgren
2015-12-10 16:48 ` Linus Walleij
2015-11-13 4:53 ` [PATCH 02/39] ARM: dts: am335x-baltos-ir5221: Remove leftover pinctrl lines Javier Martinez Canillas
2015-11-13 4:53 ` [PATCH 03/39] ARM: dts: am335x-baltos-ir5221: Use AM33XX_IOPAD pinmux macro Javier Martinez Canillas
2015-11-13 4:53 ` [PATCH 04/39] ARM: dts: am335x-bone-common: " Javier Martinez Canillas
2015-11-13 4:53 ` [PATCH 05/39] ARM: dts: am335x-bonegreen: " Javier Martinez Canillas
2015-11-13 4:53 ` [PATCH 06/39] ARM: dts: am335x-chiliboard: " Javier Martinez Canillas
2015-11-13 4:53 ` [PATCH 07/39] ARM: dts: am335x-chilisom: " Javier Martinez Canillas
2015-11-13 4:53 ` [PATCH 08/39] ARM: dts: am335x-evm: " Javier Martinez Canillas
2015-11-13 4:53 ` [PATCH 09/39] ARM: dts: am335x-evmsk: " Javier Martinez Canillas
2015-11-13 4:53 ` [PATCH 10/39] ARM: dts: am335x-lxm: " Javier Martinez Canillas
2015-11-13 4:53 ` [PATCH 11/39] ARM: dts: am335x-nano: " Javier Martinez Canillas
2015-11-13 4:53 ` [PATCH 12/39] ARM: dts: am335x-pepper: " Javier Martinez Canillas
2015-11-13 4:53 ` [PATCH 13/39] ARM: dts: am335x-phycore-som: " Javier Martinez Canillas
2015-11-13 4:53 ` [PATCH 14/39] ARM: dts: am335x-wega: " Javier Martinez Canillas
2015-11-13 4:53 ` [PATCH 15/39] ARM: dts: am3517-craneboard: Use OMAP3_CORE1_IOPAD " Javier Martinez Canillas
2015-11-13 4:53 ` [PATCH 16/39] ARM: dts: am437x-gp-evm: Use AM4372_IOPAD " Javier Martinez Canillas
2015-11-13 4:53 ` [PATCH 17/39] ARM: dts: am437x-idk-evm: " Javier Martinez Canillas
2015-11-13 4:53 ` [PATCH 18/39] ARM: dts: am437x-sk-evm: " Javier Martinez Canillas
2015-11-13 4:53 ` [PATCH 19/39] ARM: dts: am43x-epos-evm: " Javier Martinez Canillas
2015-11-13 4:53 ` [PATCH 20/39] ARM: dts: am57xx-beagle-x15: Use DRA7XX_CORE_IOPAD " Javier Martinez Canillas
2015-11-13 4:53 ` [PATCH 21/39] ARM: dts: dra7-evm: " Javier Martinez Canillas
2015-11-13 4:54 ` [PATCH 22/39] ARM: dts: dra72-evm: " Javier Martinez Canillas
2015-11-13 4:54 ` [PATCH 23/39] ARM: dts: omap3-beagle: Use OMAP3_*_IOPAD pinmux macros Javier Martinez Canillas
2015-11-13 4:54 ` [PATCH 24/39] ARM: dts: omap3-beagle-xm: " Javier Martinez Canillas
2015-11-13 4:54 ` [PATCH 25/39] ARM: dts: omap3-evm-37xx: " Javier Martinez Canillas
2015-11-13 4:54 ` [PATCH 26/39] ARM: dts: omap3-ldp: Use OMAP3_CORE1_IOPAD pinmux macro Javier Martinez Canillas
2015-11-13 4:54 ` [PATCH 27/39] ARM: dts: omap3-n900: " Javier Martinez Canillas
2015-11-13 4:54 ` [PATCH 28/39] ARM: dts: omap3-n9: " Javier Martinez Canillas
2015-11-13 4:54 ` [PATCH 29/39] ARM: dts: omap3-zoom3: Use OMAP3_*_IOPAD pinmux macros Javier Martinez Canillas
2015-11-13 4:54 ` [PATCH 30/39] ARM: dts: twl4030: Use OMAP3_CORE1_IOPAD pinmux macro Javier Martinez Canillas
2015-11-13 4:54 ` [PATCH 31/39] ARM: dts: omap4-panda-a4: Use OMAP4_IOPAD " Javier Martinez Canillas
2015-11-13 4:54 ` [PATCH 32/39] ARM: dts: omap4-panda-common: " Javier Martinez Canillas
2015-11-13 4:54 ` [PATCH 33/39] ARM: dts: omap4-panda-es: " Javier Martinez Canillas
2015-11-13 4:54 ` [PATCH 34/39] ARM: dts: omap4-sdp: " Javier Martinez Canillas
2015-11-13 4:54 ` [PATCH 35/39] ARM: dts: omap4-sdp-es23plus: " Javier Martinez Canillas
2015-11-13 4:54 ` [PATCH 36/39] ARM: dts: twl6030: " Javier Martinez Canillas
2015-11-13 4:54 ` [PATCH 37/39] ARM: dts: omap5-board-common: Use OMAP5_IOPAD " Javier Martinez Canillas
2015-11-13 4:54 ` [PATCH 38/39] ARM: dts: omap5-cm-t54: " Javier Martinez Canillas
2015-11-13 4:54 ` [PATCH 39/39] ARM: dts: omap5-uevm.dts: " Javier Martinez Canillas
2015-11-13 14:47 ` [PATCH 00/39] ARM: dts: Convert OMAP boards to use IOPAD pinmux macros Tony Lindgren
2015-11-16 16:38 ` Andrew F. Davis
2015-11-30 16:49 ` Tony Lindgren
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=1447390457-1158-2-git-send-email-javier@osg.samsung.com \
--to=javier@osg.samsung.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=tony@atomide.com \
/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
all inboxes | Powered by JetHome®