]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: dts: TWL4030: fix mux and wakeup for SYS_NIRQ line
authorKevin Hilman <khilman@linaro.org>
Fri, 31 May 2013 21:09:34 +0000 (14:09 -0700)
committerBenoit Cousson <benoit.cousson@linaro.org>
Tue, 18 Jun 2013 23:53:45 +0000 (18:53 -0500)
On most OMAP3 platforms, the twl4030 IRQ line is connected to the
SYS_NIRQ line on OMAP.  Add another DTS include file
(twl4030_omap3.dtsi) for boards that hook up the twl4030 this way
to include.

This allows RTC wake from off-mode to work again on OMAP3-based
platforms with twl4030.  Tested on 3530/Beagle, 3730/Beagle-xM,
3530/Overo, 3730/Overo-STORM.

Special thanks to Florian Vaussard for suggesting use of preprocessor
feature.

Cc: Florian Vaussard <florian.vaussard@epfl.ch>
Cc: Benoit Cousson <b-cousson@ti.com>
Cc: Nishanth Menon <nm@ti.com>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Benoit Cousson <benoit.cousson@linaro.org>
arch/arm/boot/dts/omap3-beagle-xm.dts
arch/arm/boot/dts/omap3-beagle.dts
arch/arm/boot/dts/omap3-devkit8000.dts
arch/arm/boot/dts/omap3-evm.dts
arch/arm/boot/dts/omap3-igep.dtsi
arch/arm/boot/dts/omap3-overo.dtsi
arch/arm/boot/dts/omap3430-sdp.dts
arch/arm/boot/dts/twl4030_omap3.dtsi [new file with mode: 0644]

index ad17b6bdc87a5dc40b17e7ebebf9a29048101069..afdb16417d4e894bc2df369cd7c229a5b7161043 100644 (file)
@@ -96,6 +96,7 @@
 };
 
 #include "twl4030.dtsi"
+#include "twl4030_omap3.dtsi"
 
 &i2c2 {
        clock-frequency = <400000>;
index eb7e02a01a0b9405102a12656eaf51c028bdd617..dfd83103657aa85669499f747428e9449c1854ff 100644 (file)
 };
 
 #include "twl4030.dtsi"
+#include "twl4030_omap3.dtsi"
 
 &mmc1 {
        vmmc-supply = <&vmmc1>;
index 5be71b1b2bdc0caa06fa8571e68725a6a37ce760..af32eff9f4b78c00ada0a776fd5f7519e7122c9a 100644 (file)
@@ -81,6 +81,7 @@
 };
 
 #include "twl4030.dtsi"
+#include "twl4030_omap3.dtsi"
 
 &mmc1 {
        vmmc-supply = <&vmmc1>;
index baa24bbbcf5733701c829d7a83ddb41a02d531b7..7d4329d179c43e24cae9bfaddb4c5b1fbc626535 100644 (file)
@@ -45,6 +45,7 @@
 };
 
 #include "twl4030.dtsi"
+#include "twl4030_omap3.dtsi"
 
 &i2c2 {
        clock-frequency = <400000>;
index 5224c291461fce94afacde3d6fe471f9db8b6a0b..bc48b114eae6404cf0e12ff08113f0bfd6002cf5 100644 (file)
@@ -87,6 +87,7 @@
 };
 
 #include "twl4030.dtsi"
+#include "twl4030_omap3.dtsi"
 
 &i2c2 {
        clock-frequency = <400000>;
index 144a5a2fcad82a660f84404305b56b52f1f4435b..4bc7889650358e6b2d3c2622cb1fc865afccf1c2 100644 (file)
@@ -50,6 +50,7 @@
 };
 
 #include "twl4030.dtsi"
+#include "twl4030_omap3.dtsi"
 
 /* i2c2 pins are used for gpio */
 &i2c2 {
index 2a725a0416681e499a1469954b9b729f302a3e11..c4a1c0a977283c01f500052c3d06b259f2601947 100644 (file)
@@ -29,6 +29,7 @@
 };
 
 #include "twl4030.dtsi"
+#include "twl4030_omap3.dtsi"
 
 &mmc1 {
        vmmc-supply = <&vmmc1>;
diff --git a/arch/arm/boot/dts/twl4030_omap3.dtsi b/arch/arm/boot/dts/twl4030_omap3.dtsi
new file mode 100644 (file)
index 0000000..c353ef0
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2013 Linaro, Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+&twl {
+       pinctrl-names = "default";
+       pinctrl-0 = <&twl4030_pins>;
+};
+
+&omap3_pmx_core {
+       /*
+        * On most OMAP3 platforms, the twl4030 IRQ line is connected
+        * to the SYS_NIRQ line on OMAP.  Therefore, configure the
+        * defaults for the SYS_NIRQ pin here.
+        */
+       twl4030_pins: pinmux_twl4030_pins {
+               pinctrl-single,pins = <
+                       0x1b0 (PIN_INPUT_PULLUP | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* sys_nirq.sys_nirq */
+               >;
+       };
+};