]> git.karo-electronics.de Git - linux-beck.git/commitdiff
pinctrl: single: AM437x: Add pinctrl compatibility
authorKeerthy <j-keerthy@ti.com>
Fri, 22 Aug 2014 14:01:02 +0000 (09:01 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 29 Aug 2014 07:28:35 +0000 (09:28 +0200)
AM437x pinctrl definitions now differ from traditional 16 bit OMAP pin
ctrl definitions, in that all 32 bits are used to describe a single pin

Also the location of wakeupenable and event bits have changed.

Signed-off-by: Keerthy <j-keerthy@ti.com>
[nm@ti.com: minor updates]
Signed-off-by: Nishanth Menon <nm@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/pinctrl/ti,omap-pinctrl.txt
drivers/pinctrl/pinctrl-single.c

index b7a9831e185e3764b0b5ef1e53d36d79e9acbf20..88c80273da910c0ef226313aee7acf3cfab6a2b5 100644 (file)
@@ -8,5 +8,6 @@ Required properties:
   "ti,omap4-padconf" - OMAP4 compatible pinctrl
   "ti,omap5-padconf" - OMAP5 compatible pinctrl
   "ti,dra7-padconf" - DRA7 compatible pinctrl
+  "ti,am437-padconf" - AM437x compatible pinctrl
 
 See Documentation/devicetree/bindings/pinctrl/pinctrl-single.txt for further details.
index 598d600ac7e498061f5b2122f1fac3b80d14a2af..784de13facf3b43a3cfdc052964084bf822440a6 100644 (file)
@@ -1987,6 +1987,12 @@ static const struct pcs_soc_data pinctrl_single_dra7 = {
        .irq_status_mask = (1 << 25),   /* WAKEUPEVENT */
 };
 
+static const struct pcs_soc_data pinctrl_single_am437x = {
+       .flags = PCS_QUIRK_SHARED_IRQ,
+       .irq_enable_mask = (1 << 29),   /* OMAP_WAKEUP_EN */
+       .irq_status_mask = (1 << 30),   /* OMAP_WAKEUP_EVENT */
+};
+
 static const struct pcs_soc_data pinctrl_single = {
 };
 
@@ -1999,6 +2005,7 @@ static struct of_device_id pcs_of_match[] = {
        { .compatible = "ti,omap4-padconf", .data = &pinctrl_single_omap_wkup },
        { .compatible = "ti,omap5-padconf", .data = &pinctrl_single_omap_wkup },
        { .compatible = "ti,dra7-padconf", .data = &pinctrl_single_dra7 },
+       { .compatible = "ti,am437-padconf", .data = &pinctrl_single_am437x },
        { .compatible = "pinctrl-single", .data = &pinctrl_single },
        { .compatible = "pinconf-single", .data = &pinconf_single },
        { },