Re: [PATCH v3] ARM: DTS: TWL4030: fix mux and wakeup for SYS_NIRQ line
On 06/11/2013 09:30 AM, Kevin Hilman wrote: Benoit Cousson writes: On 06/11/2013 01:33 PM, Cousson, Benoit wrote: On 6/10/2013 6:40 PM, Kevin Hilman wrote: Benoit Cousson writes: Hi Kevin, On 06/07/2013 09:31 PM, Nishanth Menon wrote: On 11:31-20130607, Kevin Hilman wrote: 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 Cc: Benoit Cousson Cc: Nishanth Menon Signed-off-by: Kevin Hilman Thanks, Reviewed-by: Nishanth Menon Thanks, I've just applied it in for_3.11/dts. Thanks, Will you apply the first 2 from the series too? ARM: DTS: OMAP3: beagle/overo: mux console UART, enable wakeup ARM: DTS: OMAP3: beagle: enable user button via gpio_keys, enable wakeup Thanks for the reminder, I kind of forgot these ones :-) BTW, do you have any v2 for these ones? This version does not use the macros. Moreover I cannot apply them on top of Florian's series :-( Oops, I thought I reposted those too. All three are here: git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm.git for_3.11/dt which is based on top of your for_3.11/dts branch. Thanks, I've just applied it. Regards, Benoit -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v3] ARM: DTS: TWL4030: fix mux and wakeup for SYS_NIRQ line
Benoit Cousson writes: > On 06/11/2013 01:33 PM, Cousson, Benoit wrote: >> On 6/10/2013 6:40 PM, Kevin Hilman wrote: >>> Benoit Cousson writes: >>> Hi Kevin, On 06/07/2013 09:31 PM, Nishanth Menon wrote: > On 11:31-20130607, Kevin Hilman wrote: >> 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 >> Cc: Benoit Cousson >> Cc: Nishanth Menon >> Signed-off-by: Kevin Hilman > Thanks, > Reviewed-by: Nishanth Menon Thanks, I've just applied it in for_3.11/dts. >>> >>> Thanks, >>> >>> Will you apply the first 2 from the series too? >>> >>>ARM: DTS: OMAP3: beagle/overo: mux console UART, enable wakeup >>>ARM: DTS: OMAP3: beagle: enable user button via gpio_keys, enable >>> wakeup >> >> Thanks for the reminder, I kind of forgot these ones :-) > > BTW, do you have any v2 for these ones? This version does not use the > macros. > Moreover I cannot apply them on top of Florian's series :-( Oops, I thought I reposted those too. All three are here: git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm.git for_3.11/dt which is based on top of your for_3.11/dts branch. Kevin -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v3] ARM: DTS: TWL4030: fix mux and wakeup for SYS_NIRQ line
On 06/11/2013 01:33 PM, Cousson, Benoit wrote: > On 6/10/2013 6:40 PM, Kevin Hilman wrote: >> Benoit Cousson writes: >> >>> Hi Kevin, >>> >>> On 06/07/2013 09:31 PM, Nishanth Menon wrote: On 11:31-20130607, Kevin Hilman wrote: > 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 > Cc: Benoit Cousson > Cc: Nishanth Menon > Signed-off-by: Kevin Hilman Thanks, Reviewed-by: Nishanth Menon >>> >>> Thanks, I've just applied it in for_3.11/dts. >> >> Thanks, >> >> Will you apply the first 2 from the series too? >> >>ARM: DTS: OMAP3: beagle/overo: mux console UART, enable wakeup >>ARM: DTS: OMAP3: beagle: enable user button via gpio_keys, enable >> wakeup > > Thanks for the reminder, I kind of forgot these ones :-) BTW, do you have any v2 for these ones? This version does not use the macros. Moreover I cannot apply them on top of Florian's series :-( Regards, Benoit -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v3] ARM: DTS: TWL4030: fix mux and wakeup for SYS_NIRQ line
On 6/10/2013 6:40 PM, Kevin Hilman wrote: Benoit Cousson writes: Hi Kevin, On 06/07/2013 09:31 PM, Nishanth Menon wrote: On 11:31-20130607, Kevin Hilman wrote: 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 Cc: Benoit Cousson Cc: Nishanth Menon Signed-off-by: Kevin Hilman Thanks, Reviewed-by: Nishanth Menon Thanks, I've just applied it in for_3.11/dts. Thanks, Will you apply the first 2 from the series too? ARM: DTS: OMAP3: beagle/overo: mux console UART, enable wakeup ARM: DTS: OMAP3: beagle: enable user button via gpio_keys, enable wakeup Thanks for the reminder, I kind of forgot these ones :-) Benoit -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v3] ARM: DTS: TWL4030: fix mux and wakeup for SYS_NIRQ line
Benoit Cousson writes: > Hi Kevin, > > On 06/07/2013 09:31 PM, Nishanth Menon wrote: >> On 11:31-20130607, Kevin Hilman wrote: >>> 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 >>> Cc: Benoit Cousson >>> Cc: Nishanth Menon >>> Signed-off-by: Kevin Hilman >> Thanks, >> Reviewed-by: Nishanth Menon > > Thanks, I've just applied it in for_3.11/dts. Thanks, Will you apply the first 2 from the series too? ARM: DTS: OMAP3: beagle/overo: mux console UART, enable wakeup ARM: DTS: OMAP3: beagle: enable user button via gpio_keys, enable wakeup Thanks, Kevin -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v3] ARM: DTS: TWL4030: fix mux and wakeup for SYS_NIRQ line
Hi Kevin, On 06/07/2013 09:31 PM, Nishanth Menon wrote: > On 11:31-20130607, Kevin Hilman wrote: >> 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 >> Cc: Benoit Cousson >> Cc: Nishanth Menon >> Signed-off-by: Kevin Hilman > Thanks, > Reviewed-by: Nishanth Menon Thanks, I've just applied it in for_3.11/dts. Benoit -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v3] ARM: DTS: TWL4030: fix mux and wakeup for SYS_NIRQ line
On 11:31-20130607, Kevin Hilman wrote: > 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 > Cc: Benoit Cousson > Cc: Nishanth Menon > Signed-off-by: Kevin Hilman Thanks, Reviewed-by: Nishanth Menon > --- > v3: renamed to twl4030_omap3 (suggested by Nishanth), add GPL, fix whitespace > v2: Updated to change board files instead of twl4030 file. > > arch/arm/boot/dts/omap3-beagle-xm.dts | 1 + > arch/arm/boot/dts/omap3-beagle.dts | 1 + > arch/arm/boot/dts/omap3-devkit8000.dts | 1 + > arch/arm/boot/dts/omap3-evm.dts| 1 + > arch/arm/boot/dts/omap3-igep.dtsi | 1 + > arch/arm/boot/dts/omap3-overo.dtsi | 1 + > arch/arm/boot/dts/omap3430-sdp.dts | 1 + > arch/arm/boot/dts/twl4030_omap3.dtsi | 25 + > 8 files changed, 32 insertions(+) > create mode 100644 arch/arm/boot/dts/twl4030_omap3.dtsi > > diff --git a/arch/arm/boot/dts/omap3-beagle-xm.dts > b/arch/arm/boot/dts/omap3-beagle-xm.dts > index ad17b6b..afdb164 100644 > --- a/arch/arm/boot/dts/omap3-beagle-xm.dts > +++ b/arch/arm/boot/dts/omap3-beagle-xm.dts > @@ -96,6 +96,7 @@ > }; > > #include "twl4030.dtsi" > +#include "twl4030_omap3.dtsi" > > &i2c2 { > clock-frequency = <40>; > diff --git a/arch/arm/boot/dts/omap3-beagle.dts > b/arch/arm/boot/dts/omap3-beagle.dts > index eb7e02a..dfd8310 100644 > --- a/arch/arm/boot/dts/omap3-beagle.dts > +++ b/arch/arm/boot/dts/omap3-beagle.dts > @@ -135,6 +135,7 @@ > }; > > #include "twl4030.dtsi" > +#include "twl4030_omap3.dtsi" > > &mmc1 { > vmmc-supply = <&vmmc1>; > diff --git a/arch/arm/boot/dts/omap3-devkit8000.dts > b/arch/arm/boot/dts/omap3-devkit8000.dts > index 5be71b1..af32eff 100644 > --- a/arch/arm/boot/dts/omap3-devkit8000.dts > +++ b/arch/arm/boot/dts/omap3-devkit8000.dts > @@ -81,6 +81,7 @@ > }; > > #include "twl4030.dtsi" > +#include "twl4030_omap3.dtsi" > > &mmc1 { > vmmc-supply = <&vmmc1>; > diff --git a/arch/arm/boot/dts/omap3-evm.dts b/arch/arm/boot/dts/omap3-evm.dts > index baa24bb..7d4329d 100644 > --- a/arch/arm/boot/dts/omap3-evm.dts > +++ b/arch/arm/boot/dts/omap3-evm.dts > @@ -45,6 +45,7 @@ > }; > > #include "twl4030.dtsi" > +#include "twl4030_omap3.dtsi" > > &i2c2 { > clock-frequency = <40>; > diff --git a/arch/arm/boot/dts/omap3-igep.dtsi > b/arch/arm/boot/dts/omap3-igep.dtsi > index 5224c29..bc48b11 100644 > --- a/arch/arm/boot/dts/omap3-igep.dtsi > +++ b/arch/arm/boot/dts/omap3-igep.dtsi > @@ -87,6 +87,7 @@ > }; > > #include "twl4030.dtsi" > +#include "twl4030_omap3.dtsi" > > &i2c2 { > clock-frequency = <40>; > diff --git a/arch/arm/boot/dts/omap3-overo.dtsi > b/arch/arm/boot/dts/omap3-overo.dtsi > index 144a5a2..4bc78896 100644 > --- a/arch/arm/boot/dts/omap3-overo.dtsi > +++ b/arch/arm/boot/dts/omap3-overo.dtsi > @@ -50,6 +50,7 @@ > }; > > #include "twl4030.dtsi" > +#include "twl4030_omap3.dtsi" > > /* i2c2 pins are used for gpio */ > &i2c2 { > diff --git a/arch/arm/boot/dts/omap3430-sdp.dts > b/arch/arm/boot/dts/omap3430-sdp.dts > index 2a725a0..c4a1c0a 100644 > --- a/arch/arm/boot/dts/omap3430-sdp.dts > +++ b/arch/arm/boot/dts/omap3430-sdp.dts > @@ -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 > index 000..c353ef0 > --- /dev/null > +++ b/arch/arm/boot/dts/twl4030_omap3.dtsi > @@ -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 */ > + >; > + }; > +}; > -- > 1.8.3 > -- Regards, Nishanth Menon -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majo
[PATCH v3] ARM: DTS: TWL4030: fix mux and wakeup for SYS_NIRQ line
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 Cc: Benoit Cousson Cc: Nishanth Menon Signed-off-by: Kevin Hilman --- v3: renamed to twl4030_omap3 (suggested by Nishanth), add GPL, fix whitespace v2: Updated to change board files instead of twl4030 file. arch/arm/boot/dts/omap3-beagle-xm.dts | 1 + arch/arm/boot/dts/omap3-beagle.dts | 1 + arch/arm/boot/dts/omap3-devkit8000.dts | 1 + arch/arm/boot/dts/omap3-evm.dts| 1 + arch/arm/boot/dts/omap3-igep.dtsi | 1 + arch/arm/boot/dts/omap3-overo.dtsi | 1 + arch/arm/boot/dts/omap3430-sdp.dts | 1 + arch/arm/boot/dts/twl4030_omap3.dtsi | 25 + 8 files changed, 32 insertions(+) create mode 100644 arch/arm/boot/dts/twl4030_omap3.dtsi diff --git a/arch/arm/boot/dts/omap3-beagle-xm.dts b/arch/arm/boot/dts/omap3-beagle-xm.dts index ad17b6b..afdb164 100644 --- a/arch/arm/boot/dts/omap3-beagle-xm.dts +++ b/arch/arm/boot/dts/omap3-beagle-xm.dts @@ -96,6 +96,7 @@ }; #include "twl4030.dtsi" +#include "twl4030_omap3.dtsi" &i2c2 { clock-frequency = <40>; diff --git a/arch/arm/boot/dts/omap3-beagle.dts b/arch/arm/boot/dts/omap3-beagle.dts index eb7e02a..dfd8310 100644 --- a/arch/arm/boot/dts/omap3-beagle.dts +++ b/arch/arm/boot/dts/omap3-beagle.dts @@ -135,6 +135,7 @@ }; #include "twl4030.dtsi" +#include "twl4030_omap3.dtsi" &mmc1 { vmmc-supply = <&vmmc1>; diff --git a/arch/arm/boot/dts/omap3-devkit8000.dts b/arch/arm/boot/dts/omap3-devkit8000.dts index 5be71b1..af32eff 100644 --- a/arch/arm/boot/dts/omap3-devkit8000.dts +++ b/arch/arm/boot/dts/omap3-devkit8000.dts @@ -81,6 +81,7 @@ }; #include "twl4030.dtsi" +#include "twl4030_omap3.dtsi" &mmc1 { vmmc-supply = <&vmmc1>; diff --git a/arch/arm/boot/dts/omap3-evm.dts b/arch/arm/boot/dts/omap3-evm.dts index baa24bb..7d4329d 100644 --- a/arch/arm/boot/dts/omap3-evm.dts +++ b/arch/arm/boot/dts/omap3-evm.dts @@ -45,6 +45,7 @@ }; #include "twl4030.dtsi" +#include "twl4030_omap3.dtsi" &i2c2 { clock-frequency = <40>; diff --git a/arch/arm/boot/dts/omap3-igep.dtsi b/arch/arm/boot/dts/omap3-igep.dtsi index 5224c29..bc48b11 100644 --- a/arch/arm/boot/dts/omap3-igep.dtsi +++ b/arch/arm/boot/dts/omap3-igep.dtsi @@ -87,6 +87,7 @@ }; #include "twl4030.dtsi" +#include "twl4030_omap3.dtsi" &i2c2 { clock-frequency = <40>; diff --git a/arch/arm/boot/dts/omap3-overo.dtsi b/arch/arm/boot/dts/omap3-overo.dtsi index 144a5a2..4bc78896 100644 --- a/arch/arm/boot/dts/omap3-overo.dtsi +++ b/arch/arm/boot/dts/omap3-overo.dtsi @@ -50,6 +50,7 @@ }; #include "twl4030.dtsi" +#include "twl4030_omap3.dtsi" /* i2c2 pins are used for gpio */ &i2c2 { diff --git a/arch/arm/boot/dts/omap3430-sdp.dts b/arch/arm/boot/dts/omap3430-sdp.dts index 2a725a0..c4a1c0a 100644 --- a/arch/arm/boot/dts/omap3430-sdp.dts +++ b/arch/arm/boot/dts/omap3430-sdp.dts @@ -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 index 000..c353ef0 --- /dev/null +++ b/arch/arm/boot/dts/twl4030_omap3.dtsi @@ -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 */ + >; + }; +}; -- 1.8.3 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html