* [PATCH 0/2] ARM: dts: omap3-overo: Add pwm-leds and audio support @ 2013-01-23 17:56 Florian Vaussard 2013-01-23 17:56 ` [PATCH 1/2] ARM: dts: omap3-overo: Add support for pwm-leds Florian Vaussard ` (2 more replies) 0 siblings, 3 replies; 21+ messages in thread From: Florian Vaussard @ 2013-01-23 17:56 UTC (permalink / raw) To: Benoit Cousson, Tony Lindgren Cc: devicetree-discuss, linux-omap, linux-arm-kernel, Florian Vaussard Hello Benoit, This patchset adds some new DT supports to the Overo products. The first patch converts the PMIC LEDB output to use the pwm-leds, newly merged in your branch for_3.9/dts. The second patch adds the audio support. Best regards, Florian Florian Vaussard (2): ARM: dts: omap3-overo: Add support for pwm-leds ARM: dts: omap3-overo: Add audio support arch/arm/boot/dts/omap3-overo.dtsi | 23 +++++++++++++++++++---- 1 files changed, 19 insertions(+), 4 deletions(-) -- 1.7.5.4 ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 1/2] ARM: dts: omap3-overo: Add support for pwm-leds 2013-01-23 17:56 [PATCH 0/2] ARM: dts: omap3-overo: Add pwm-leds and audio support Florian Vaussard @ 2013-01-23 17:56 ` Florian Vaussard [not found] ` <1358963812-19947-2-git-send-email-florian.vaussard-p8DiymsW2f8@public.gmane.org> 2013-01-23 17:56 ` [PATCH 2/2] ARM: dts: omap3-overo: Add audio support Florian Vaussard 2013-01-24 12:21 ` [PATCH 0/2] ARM: dts: omap3-overo: Add pwm-leds and " Benoit Cousson 2 siblings, 1 reply; 21+ messages in thread From: Florian Vaussard @ 2013-01-23 17:56 UTC (permalink / raw) To: Benoit Cousson, Tony Lindgren Cc: devicetree-discuss, linux-omap, linux-arm-kernel, Florian Vaussard Convert the on-board LED connected to the TWL4030 (LEDB) to use pwm-leds. Signed-off-by: Florian Vaussard <florian.vaussard@epfl.ch> --- arch/arm/boot/dts/omap3-overo.dtsi | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/omap3-overo.dtsi b/arch/arm/boot/dts/omap3-overo.dtsi index 89808ce..800be29 100644 --- a/arch/arm/boot/dts/omap3-overo.dtsi +++ b/arch/arm/boot/dts/omap3-overo.dtsi @@ -14,12 +14,13 @@ /include/ "omap3.dtsi" / { - leds { - compatible = "gpio-leds"; + pwmleds { + compatible = "pwm-leds"; + overo { label = "overo:blue:COM"; - gpios = <&twl_gpio 19 0>; - linux,default-trigger = "mmc0"; + pwms = <&twl_pwmled 1 7812500>; + max-brightness = <127>; }; }; }; -- 1.7.5.4 ^ permalink raw reply related [flat|nested] 21+ messages in thread
[parent not found: <1358963812-19947-2-git-send-email-florian.vaussard-p8DiymsW2f8@public.gmane.org>]
* Re: [PATCH 1/2] ARM: dts: omap3-overo: Add support for pwm-leds [not found] ` <1358963812-19947-2-git-send-email-florian.vaussard-p8DiymsW2f8@public.gmane.org> @ 2013-01-24 15:19 ` Peter Ujfalusi 2013-01-24 15:42 ` Florian Vaussard 0 siblings, 1 reply; 21+ messages in thread From: Peter Ujfalusi @ 2013-01-24 15:19 UTC (permalink / raw) To: Florian Vaussard Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Hi, On 01/23/2013 06:56 PM, Florian Vaussard wrote: > Convert the on-board LED connected to the TWL4030 (LEDB) to use > pwm-leds. > > Signed-off-by: Florian Vaussard <florian.vaussard-p8DiymsW2f8@public.gmane.org> > --- > arch/arm/boot/dts/omap3-overo.dtsi | 9 +++++---- > 1 files changed, 5 insertions(+), 4 deletions(-) > > diff --git a/arch/arm/boot/dts/omap3-overo.dtsi b/arch/arm/boot/dts/omap3-overo.dtsi > index 89808ce..800be29 100644 > --- a/arch/arm/boot/dts/omap3-overo.dtsi > +++ b/arch/arm/boot/dts/omap3-overo.dtsi > @@ -14,12 +14,13 @@ > /include/ "omap3.dtsi" > > / { > - leds { > - compatible = "gpio-leds"; > + pwmleds { > + compatible = "pwm-leds"; > + > overo { > label = "overo:blue:COM"; > - gpios = <&twl_gpio 19 0>; > - linux,default-trigger = "mmc0"; You can keep the default trigger for the pwm-leds as well. The best way to test this is on top of linux-next which already have the leds-pwm DT bindings. > + pwms = <&twl_pwmled 1 7812500>; > + max-brightness = <127>; > }; > }; > }; > -- Péter ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 1/2] ARM: dts: omap3-overo: Add support for pwm-leds 2013-01-24 15:19 ` Peter Ujfalusi @ 2013-01-24 15:42 ` Florian Vaussard 2013-01-24 15:45 ` Peter Ujfalusi 0 siblings, 1 reply; 21+ messages in thread From: Florian Vaussard @ 2013-01-24 15:42 UTC (permalink / raw) To: Peter Ujfalusi Cc: Benoit Cousson, Tony Lindgren, devicetree-discuss, linux-omap, linux-arm-kernel Hi Peter, >> >> diff --git a/arch/arm/boot/dts/omap3-overo.dtsi b/arch/arm/boot/dts/omap3-overo.dtsi >> index 89808ce..800be29 100644 >> --- a/arch/arm/boot/dts/omap3-overo.dtsi >> +++ b/arch/arm/boot/dts/omap3-overo.dtsi >> @@ -14,12 +14,13 @@ >> /include/ "omap3.dtsi" >> >> / { >> - leds { >> - compatible = "gpio-leds"; >> + pwmleds { >> + compatible = "pwm-leds"; >> + >> overo { >> label = "overo:blue:COM"; >> - gpios = <&twl_gpio 19 0>; >> - linux,default-trigger = "mmc0"; > > You can keep the default trigger for the pwm-leds as well. > The best way to test this is on top of linux-next which already have the > leds-pwm DT bindings. > I did it at first, but the led API executes in atomic context, where the pwm-twl-led driver uses i2c communication. Setting a trigger will result in a kernel panic. I am working on a patch for pwm-twl-led to defer using a workqueue right now. Cheers, Florian ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 1/2] ARM: dts: omap3-overo: Add support for pwm-leds 2013-01-24 15:42 ` Florian Vaussard @ 2013-01-24 15:45 ` Peter Ujfalusi 2013-01-24 16:50 ` Florian Vaussard 0 siblings, 1 reply; 21+ messages in thread From: Peter Ujfalusi @ 2013-01-24 15:45 UTC (permalink / raw) To: florian.vaussard Cc: Benoit Cousson, Tony Lindgren, devicetree-discuss, linux-omap, linux-arm-kernel On 01/24/2013 04:42 PM, Florian Vaussard wrote: > I did it at first, but the led API executes in atomic context, where the > pwm-twl-led driver uses i2c communication. Setting a trigger will result in a > kernel panic. Now that you mentioned it, this might be true. > I am working on a patch for pwm-twl-led to defer using a workqueue right now. Great! The only thing I worry about is the latency we are going to get with the workqueue. -- Péter -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 1/2] ARM: dts: omap3-overo: Add support for pwm-leds 2013-01-24 15:45 ` Peter Ujfalusi @ 2013-01-24 16:50 ` Florian Vaussard 2013-01-24 17:08 ` Peter Ujfalusi 0 siblings, 1 reply; 21+ messages in thread From: Florian Vaussard @ 2013-01-24 16:50 UTC (permalink / raw) To: Peter Ujfalusi Cc: Benoit Cousson, Tony Lindgren, devicetree-discuss, linux-omap, linux-arm-kernel >> I did it at first, but the led API executes in atomic context, where the >> pwm-twl-led driver uses i2c communication. Setting a trigger will result in a >> kernel panic. > > Now that you mentioned it, this might be true. > [<c0013204>] (unwind_backtrace+0x0/0xec) from [<c00348ac>] (warn_slowpath_common+0x4c/0x64) [<c00348ac>] (warn_slowpath_common+0x4c/0x64) from [<c00348e0>] (warn_slowpath_null+0x1c/0x24) [<c00348e0>] (warn_slowpath_null+0x1c/0x24) from [<c054d384>] (__mutex_lock_slowpath+0x6c/0x26c) [<c054d384>] (__mutex_lock_slowpath+0x6c/0x26c) from [<c054d590>] (mutex_lock+0xc/0x20) [<c054d590>] (mutex_lock+0xc/0x20) from [<c02d740c>] (regmap_bulk_write+0x48/0x138) [<c02d740c>] (regmap_bulk_write+0x48/0x138) from [<c02de2c0>] (twl_i2c_write+0xa4/0xf0) [<c02de2c0>] (twl_i2c_write+0xa4/0xf0) from [<c0299e34>] (twl4030_pwmled_config+0x70/0x9c) [<c0299e34>] (twl4030_pwmled_config+0x70/0x9c) from [<c029875c>] (pwm_config+0x5c/0x6c) [<c029875c>] (pwm_config+0x5c/0x6c) from [<c039dc04>] (led_pwm_set+0x28/0x64) [<c039dc04>] (led_pwm_set+0x28/0x64) from [<c039e27c>] (led_heartbeat_function+0x10c/0x134) [<c039e27c>] (led_heartbeat_function+0x10c/0x134) from [<c004359c>] (call_timer_fn+0x90/0x178) [<c004359c>] (call_timer_fn+0x90/0x178) from [<c0043994>] (run_timer_softirq+0x250/0x2c8) [<c0043994>] (run_timer_softirq+0x250/0x2c8) from [<c003cf78>] (__do_softirq+0xf8/0x248) [<c003cf78>] (__do_softirq+0xf8/0x248) from [<c003d154>] (irq_exit+0x44/0x98) [<c003d154>] (irq_exit+0x44/0x98) from [<c000e338>] (handle_IRQ+0x68/0x8c) [<c000e338>] (handle_IRQ+0x68/0x8c) from [<c000870c>] (omap3_intc_handle_irq+0x58/0x70) [<c000870c>] (omap3_intc_handle_irq+0x58/0x70) from [<c054f8c0>] (__irq_svc+0x40/0x70) Exception stack(0xc077df60 to 0xc077dfa8) :-) >> I am working on a patch for pwm-twl-led to defer using a workqueue right now. > > Great! > The only thing I worry about is the latency we are going to get with the > workqueue. > If the latency becomes critical, we can create our own workqueue. Do we merge anyway this patchset, or do we wait until the trigger has been fixed? Florian ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 1/2] ARM: dts: omap3-overo: Add support for pwm-leds 2013-01-24 16:50 ` Florian Vaussard @ 2013-01-24 17:08 ` Peter Ujfalusi [not found] ` <51016A84.20703-l0cyMroinI0@public.gmane.org> 0 siblings, 1 reply; 21+ messages in thread From: Peter Ujfalusi @ 2013-01-24 17:08 UTC (permalink / raw) To: florian.vaussard Cc: Benoit Cousson, Tony Lindgren, devicetree-discuss, linux-omap, linux-arm-kernel On 01/24/2013 05:50 PM, Florian Vaussard wrote: >>> I did it at first, but the led API executes in atomic context, where the >>> pwm-twl-led driver uses i2c communication. Setting a trigger will result in a >>> kernel panic. >> >> Now that you mentioned it, this might be true. >> > > [<c0013204>] (unwind_backtrace+0x0/0xec) from [<c00348ac>] > (warn_slowpath_common+0x4c/0x64) > [<c00348ac>] (warn_slowpath_common+0x4c/0x64) from [<c00348e0>] > (warn_slowpath_null+0x1c/0x24) > [<c00348e0>] (warn_slowpath_null+0x1c/0x24) from [<c054d384>] > (__mutex_lock_slowpath+0x6c/0x26c) > [<c054d384>] (__mutex_lock_slowpath+0x6c/0x26c) from [<c054d590>] > (mutex_lock+0xc/0x20) > [<c054d590>] (mutex_lock+0xc/0x20) from [<c02d740c>] > (regmap_bulk_write+0x48/0x138) > [<c02d740c>] (regmap_bulk_write+0x48/0x138) from [<c02de2c0>] > (twl_i2c_write+0xa4/0xf0) > [<c02de2c0>] (twl_i2c_write+0xa4/0xf0) from [<c0299e34>] > (twl4030_pwmled_config+0x70/0x9c) > [<c0299e34>] (twl4030_pwmled_config+0x70/0x9c) from [<c029875c>] > (pwm_config+0x5c/0x6c) > [<c029875c>] (pwm_config+0x5c/0x6c) from [<c039dc04>] (led_pwm_set+0x28/0x64) > [<c039dc04>] (led_pwm_set+0x28/0x64) from [<c039e27c>] > (led_heartbeat_function+0x10c/0x134) > [<c039e27c>] (led_heartbeat_function+0x10c/0x134) from [<c004359c>] > (call_timer_fn+0x90/0x178) > [<c004359c>] (call_timer_fn+0x90/0x178) from [<c0043994>] > (run_timer_softirq+0x250/0x2c8) > [<c0043994>] (run_timer_softirq+0x250/0x2c8) from [<c003cf78>] > (__do_softirq+0xf8/0x248) > [<c003cf78>] (__do_softirq+0xf8/0x248) from [<c003d154>] (irq_exit+0x44/0x98) > [<c003d154>] (irq_exit+0x44/0x98) from [<c000e338>] (handle_IRQ+0x68/0x8c) > [<c000e338>] (handle_IRQ+0x68/0x8c) from [<c000870c>] > (omap3_intc_handle_irq+0x58/0x70) > [<c000870c>] (omap3_intc_handle_irq+0x58/0x70) from [<c054f8c0>] > (__irq_svc+0x40/0x70) > Exception stack(0xc077df60 to 0xc077dfa8) > > :-) > >>> I am working on a patch for pwm-twl-led to defer using a workqueue right now. >> >> Great! >> The only thing I worry about is the latency we are going to get with the >> workqueue. >> > > If the latency becomes critical, we can create our own workqueue. Hrm, when we handled the led via gpio-leds it was also going through the same path at the end, via i2c to twl4030. I think the fix for this is going to be needed in the pwm core level. Just need to look at the gpio code to have similar handling of might_sleep interfaces. > Do we merge anyway this patchset, or do we wait until the trigger has been fixed? I think it can go and later when we have the fix for the slow path you can add the default trigger. Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com> ^ permalink raw reply [flat|nested] 21+ messages in thread
[parent not found: <51016A84.20703-l0cyMroinI0@public.gmane.org>]
* Re: [PATCH 1/2] ARM: dts: omap3-overo: Add support for pwm-leds [not found] ` <51016A84.20703-l0cyMroinI0@public.gmane.org> @ 2013-01-24 21:14 ` Florian Vaussard 2013-01-25 8:29 ` Peter Ujfalusi 0 siblings, 1 reply; 21+ messages in thread From: Florian Vaussard @ 2013-01-24 21:14 UTC (permalink / raw) To: Peter Ujfalusi Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, linux-omap-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Hi >> >>>> I am working on a patch for pwm-twl-led to defer using a workqueue right now. >>> >>> Great! >>> The only thing I worry about is the latency we are going to get with the >>> workqueue. >>> >> >> If the latency becomes critical, we can create our own workqueue. > > Hrm, when we handled the led via gpio-leds it was also going through the same > path at the end, via i2c to twl4030. > I think the fix for this is going to be needed in the pwm core level. Just > need to look at the gpio code to have similar handling of might_sleep interfaces. > You are right. But then the pwm core must provide a way to know if the pwm access function are callable from atomic context or not (the gpio framework provides gpio_cansleep()). This implies a good amount of changes to the pwm framework, and currently we are the only driver using non-atomic access. I will take a closer look to the complexity of this solution tomorrow. Florian ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 1/2] ARM: dts: omap3-overo: Add support for pwm-leds 2013-01-24 21:14 ` Florian Vaussard @ 2013-01-25 8:29 ` Peter Ujfalusi 2013-01-25 12:07 ` Peter Ujfalusi 0 siblings, 1 reply; 21+ messages in thread From: Peter Ujfalusi @ 2013-01-25 8:29 UTC (permalink / raw) To: florian.vaussard Cc: Benoit Cousson, Tony Lindgren, devicetree-discuss, linux-omap, linux-arm-kernel On 01/24/2013 10:14 PM, Florian Vaussard wrote: > You are right. But then the pwm core must provide a way to know if the pwm > access function are callable > from atomic context or not (the gpio framework provides gpio_cansleep()). > This implies a good amount of changes to the pwm framework, and currently we > are the only driver using non-atomic access. We have two drivers at the moment: pwm-twl and pwm-twl-led. However new out of SoC PWM drivers might come (for example for palmas). So it worth take a look at some generic implementation. -- Péter -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 1/2] ARM: dts: omap3-overo: Add support for pwm-leds 2013-01-25 8:29 ` Peter Ujfalusi @ 2013-01-25 12:07 ` Peter Ujfalusi 2013-01-25 12:21 ` Florian Vaussard 0 siblings, 1 reply; 21+ messages in thread From: Peter Ujfalusi @ 2013-01-25 12:07 UTC (permalink / raw) To: florian.vaussard Cc: Tony Lindgren, devicetree-discuss, linux-omap, Benoit Cousson, linux-arm-kernel On 01/25/2013 09:29 AM, Peter Ujfalusi wrote: > On 01/24/2013 10:14 PM, Florian Vaussard wrote: >> You are right. But then the pwm core must provide a way to know if the pwm >> access function are callable >> from atomic context or not (the gpio framework provides gpio_cansleep()). >> This implies a good amount of changes to the pwm framework, and currently we >> are the only driver using non-atomic access. > > We have two drivers at the moment: pwm-twl and pwm-twl-led. However new out of > SoC PWM drivers might come (for example for palmas). So it worth take a look > at some generic implementation. OK. So I have the series. I need to add few more things but pwm-leds on BeagleBoard works fine when I put the default_trigger for the pmustat LED to be mmc0. It is blinking happily ;) I'll CC you with the patches when I send them. -- Péter -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 1/2] ARM: dts: omap3-overo: Add support for pwm-leds 2013-01-25 12:07 ` Peter Ujfalusi @ 2013-01-25 12:21 ` Florian Vaussard 2013-01-25 12:30 ` Peter Ujfalusi 0 siblings, 1 reply; 21+ messages in thread From: Florian Vaussard @ 2013-01-25 12:21 UTC (permalink / raw) To: Peter Ujfalusi Cc: Tony Lindgren, devicetree-discuss, linux-omap, Benoit Cousson, linux-arm-kernel >> >> We have two drivers at the moment: pwm-twl and pwm-twl-led. However new out of >> SoC PWM drivers might come (for example for palmas). So it worth take a look >> at some generic implementation. > > OK. So I have the series. I need to add few more things but pwm-leds on > BeagleBoard works fine when I put the default_trigger for the pmustat LED to > be mmc0. It is blinking happily ;) > I'll CC you with the patches when I send them. > I sent a patchset 2 hours ago with you in CC, you haven't received them? Cheers, Florian ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 1/2] ARM: dts: omap3-overo: Add support for pwm-leds 2013-01-25 12:21 ` Florian Vaussard @ 2013-01-25 12:30 ` Peter Ujfalusi 0 siblings, 0 replies; 21+ messages in thread From: Peter Ujfalusi @ 2013-01-25 12:30 UTC (permalink / raw) To: florian.vaussard Cc: Tony Lindgren, devicetree-discuss, linux-omap, Benoit Cousson, linux-arm-kernel On 01/25/2013 01:21 PM, Florian Vaussard wrote: >>> >>> We have two drivers at the moment: pwm-twl and pwm-twl-led. However new out of >>> SoC PWM drivers might come (for example for palmas). So it worth take a look >>> at some generic implementation. >> >> OK. So I have the series. I need to add few more things but pwm-leds on >> BeagleBoard works fine when I put the default_trigger for the pmustat LED to >> be mmc0. It is blinking happily ;) >> I'll CC you with the patches when I send them. >> > > I sent a patchset 2 hours ago with you in CC, you haven't received them? I have not noticed them. Going through them right now. -- Péter -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 2/2] ARM: dts: omap3-overo: Add audio support 2013-01-23 17:56 [PATCH 0/2] ARM: dts: omap3-overo: Add pwm-leds and audio support Florian Vaussard 2013-01-23 17:56 ` [PATCH 1/2] ARM: dts: omap3-overo: Add support for pwm-leds Florian Vaussard @ 2013-01-23 17:56 ` Florian Vaussard 2013-01-24 15:21 ` Peter Ujfalusi 2013-01-24 12:21 ` [PATCH 0/2] ARM: dts: omap3-overo: Add pwm-leds and " Benoit Cousson 2 siblings, 1 reply; 21+ messages in thread From: Florian Vaussard @ 2013-01-23 17:56 UTC (permalink / raw) To: Benoit Cousson, Tony Lindgren Cc: devicetree-discuss, linux-omap, linux-arm-kernel, Florian Vaussard Add the needed sections to enable audio support on Overo. Signed-off-by: Florian Vaussard <florian.vaussard@epfl.ch> --- arch/arm/boot/dts/omap3-overo.dtsi | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap3-overo.dtsi b/arch/arm/boot/dts/omap3-overo.dtsi index 800be29..81341fa 100644 --- a/arch/arm/boot/dts/omap3-overo.dtsi +++ b/arch/arm/boot/dts/omap3-overo.dtsi @@ -23,6 +23,14 @@ max-brightness = <127>; }; }; + + sound { + compatible = "ti,omap-twl4030"; + ti,model = "overo"; + + ti,mcbsp = <&mcbsp2>; + ti,codec = <&twl_audio>; + }; }; &i2c1 { @@ -32,6 +40,12 @@ reg = <0x48>; interrupts = <7>; /* SYS_NIRQ cascaded to intc */ interrupt-parent = <&intc>; + + twl_audio: audio { + compatible = "ti,twl4030-audio"; + codec { + }; + }; }; }; -- 1.7.5.4 ^ permalink raw reply related [flat|nested] 21+ messages in thread
* Re: [PATCH 2/2] ARM: dts: omap3-overo: Add audio support 2013-01-23 17:56 ` [PATCH 2/2] ARM: dts: omap3-overo: Add audio support Florian Vaussard @ 2013-01-24 15:21 ` Peter Ujfalusi 0 siblings, 0 replies; 21+ messages in thread From: Peter Ujfalusi @ 2013-01-24 15:21 UTC (permalink / raw) To: Florian Vaussard Cc: Benoit Cousson, Tony Lindgren, devicetree-discuss, linux-omap, linux-arm-kernel Hi, On 01/23/2013 06:56 PM, Florian Vaussard wrote: > Add the needed sections to enable audio support on Overo. Looks fine for me. Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com> > > Signed-off-by: Florian Vaussard <florian.vaussard@epfl.ch> > --- > arch/arm/boot/dts/omap3-overo.dtsi | 14 ++++++++++++++ > 1 files changed, 14 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/boot/dts/omap3-overo.dtsi b/arch/arm/boot/dts/omap3-overo.dtsi > index 800be29..81341fa 100644 > --- a/arch/arm/boot/dts/omap3-overo.dtsi > +++ b/arch/arm/boot/dts/omap3-overo.dtsi > @@ -23,6 +23,14 @@ > max-brightness = <127>; > }; > }; > + > + sound { > + compatible = "ti,omap-twl4030"; > + ti,model = "overo"; > + > + ti,mcbsp = <&mcbsp2>; > + ti,codec = <&twl_audio>; > + }; > }; > > &i2c1 { > @@ -32,6 +40,12 @@ > reg = <0x48>; > interrupts = <7>; /* SYS_NIRQ cascaded to intc */ > interrupt-parent = <&intc>; > + > + twl_audio: audio { > + compatible = "ti,twl4030-audio"; > + codec { > + }; > + }; > }; > }; > > -- Péter -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 0/2] ARM: dts: omap3-overo: Add pwm-leds and audio support 2013-01-23 17:56 [PATCH 0/2] ARM: dts: omap3-overo: Add pwm-leds and audio support Florian Vaussard 2013-01-23 17:56 ` [PATCH 1/2] ARM: dts: omap3-overo: Add support for pwm-leds Florian Vaussard 2013-01-23 17:56 ` [PATCH 2/2] ARM: dts: omap3-overo: Add audio support Florian Vaussard @ 2013-01-24 12:21 ` Benoit Cousson 2013-02-04 9:14 ` Florian Vaussard 2 siblings, 1 reply; 21+ messages in thread From: Benoit Cousson @ 2013-01-24 12:21 UTC (permalink / raw) To: Florian Vaussard, Ujfalusi, Peter Cc: Tony Lindgren, linux-omap, devicetree-discuss, linux-arm-kernel + Peter who did the original PWM Hi Florian, On 01/23/2013 06:56 PM, Florian Vaussard wrote: > Hello Benoit, > > This patchset adds some new DT supports to the Overo products. > The first patch converts the PMIC LEDB output to use the pwm-leds, > newly merged in your branch for_3.9/dts. The second patch > adds the audio support. Excellent, that looks very good to me, but I'd like to get the feedback from Peter before merging it. Thanks, Benoit ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 0/2] ARM: dts: omap3-overo: Add pwm-leds and audio support 2013-01-24 12:21 ` [PATCH 0/2] ARM: dts: omap3-overo: Add pwm-leds and " Benoit Cousson @ 2013-02-04 9:14 ` Florian Vaussard 2013-02-06 13:30 ` Benoit Cousson 0 siblings, 1 reply; 21+ messages in thread From: Florian Vaussard @ 2013-02-04 9:14 UTC (permalink / raw) To: Benoit Cousson Cc: Ujfalusi, Peter, Tony Lindgren, linux-omap, devicetree-discuss, linux-arm-kernel Hello Benoit, On 01/24/2013 01:21 PM, Benoit Cousson wrote: > + Peter who did the original PWM > > Hi Florian, > > On 01/23/2013 06:56 PM, Florian Vaussard wrote: >> Hello Benoit, >> >> This patchset adds some new DT supports to the Overo products. The >> first patch converts the PMIC LEDB output to use the pwm-leds, >> newly merged in your branch for_3.9/dts. The second patch adds the >> audio support. > > Excellent, that looks very good to me, but I'd like to get the > feedback from Peter before merging it. > So a patch is being merged to handle triggers in the case of pwm leds [1]. When done, we will be able to add back the default trigger. Do you want to wait on it to merge this series? Regards, Florian [1] https://patchwork.kernel.org/patch/2056191/ ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 0/2] ARM: dts: omap3-overo: Add pwm-leds and audio support 2013-02-04 9:14 ` Florian Vaussard @ 2013-02-06 13:30 ` Benoit Cousson 2013-02-06 14:26 ` Philippe Rétornaz 2013-02-07 7:58 ` Peter Ujfalusi 0 siblings, 2 replies; 21+ messages in thread From: Benoit Cousson @ 2013-02-06 13:30 UTC (permalink / raw) To: florian.vaussard Cc: Ujfalusi, Peter, Tony Lindgren, linux-omap, devicetree-discuss, linux-arm-kernel Salut Florian, On 02/04/2013 10:14 AM, Florian Vaussard wrote: > Hello Benoit, > > On 01/24/2013 01:21 PM, Benoit Cousson wrote: >> + Peter who did the original PWM >> >> Hi Florian, >> >> On 01/23/2013 06:56 PM, Florian Vaussard wrote: >>> Hello Benoit, >>> >>> This patchset adds some new DT supports to the Overo products. The >>> first patch converts the PMIC LEDB output to use the pwm-leds, >>> newly merged in your branch for_3.9/dts. The second patch adds the >>> audio support. >> >> Excellent, that looks very good to me, but I'd like to get the >> feedback from Peter before merging it. >> > > So a patch is being merged to handle triggers in the case of pwm leds [1]. > When done, we will be able to add back the default trigger. Do you want > to wait on it to merge this series? What kind of dependency do we have between these two series? I mean what will happen if the DTS is merged before the pwm subsystem? If that does not generate any regression / crash, then it is OK, if not, we should take care of the order. Thanks, Benoit ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 0/2] ARM: dts: omap3-overo: Add pwm-leds and audio support 2013-02-06 13:30 ` Benoit Cousson @ 2013-02-06 14:26 ` Philippe Rétornaz 2013-02-07 7:58 ` Peter Ujfalusi 1 sibling, 0 replies; 21+ messages in thread From: Philippe Rétornaz @ 2013-02-06 14:26 UTC (permalink / raw) To: Benoit Cousson Cc: Tony Lindgren, devicetree-discuss, Ujfalusi, Peter, florian.vaussard, linux-omap, linux-arm-kernel Hi all ! Le 06/02/2013 14:30, Benoit Cousson a écrit : > Salut Florian, > > On 02/04/2013 10:14 AM, Florian Vaussard wrote: >> Hello Benoit, >> >> On 01/24/2013 01:21 PM, Benoit Cousson wrote: >>> + Peter who did the original PWM >>> >>> Hi Florian, >>> >>> On 01/23/2013 06:56 PM, Florian Vaussard wrote: >>>> Hello Benoit, >>>> >>>> This patchset adds some new DT supports to the Overo products. >>>> The first patch converts the PMIC LEDB output to use the >>>> pwm-leds, newly merged in your branch for_3.9/dts. The second >>>> patch adds the audio support. >>> >>> Excellent, that looks very good to me, but I'd like to get the >>> feedback from Peter before merging it. >>> >> >> So a patch is being merged to handle triggers in the case of pwm >> leds [1]. When done, we will be able to add back the default >> trigger. Do you want to wait on it to merge this series? > > What kind of dependency do we have between these two series? I mean > what will happen if the DTS is merged before the pwm subsystem? > > If that does not generate any regression / crash, then it is OK, if > not, we should take care of the order. Florian is on holiday the next two weeks. AFAIK if the PWM/leds subsystem patches are not merged before this one then the kernel will panic if a trigger is used to change the led status. Regards, Philippe ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 0/2] ARM: dts: omap3-overo: Add pwm-leds and audio support 2013-02-06 13:30 ` Benoit Cousson 2013-02-06 14:26 ` Philippe Rétornaz @ 2013-02-07 7:58 ` Peter Ujfalusi 2013-02-26 16:07 ` Florian Vaussard 1 sibling, 1 reply; 21+ messages in thread From: Peter Ujfalusi @ 2013-02-07 7:58 UTC (permalink / raw) To: Benoit Cousson Cc: florian.vaussard, Tony Lindgren, linux-omap, devicetree-discuss, linux-arm-kernel Hi, On 02/06/2013 02:30 PM, Benoit Cousson wrote: >> So a patch is being merged to handle triggers in the case of pwm leds [1]. >> When done, we will be able to add back the default trigger. Do you want >> to wait on it to merge this series? > > What kind of dependency do we have between these two series? I mean what > will happen if the DTS is merged before the pwm subsystem? > > If that does not generate any regression / crash, then it is OK, if not, > we should take care of the order. In this series the 'linux,default-trigger' property is not added to the pwm-leds node, so it is safe to take this series. I'm sure Florian will send the update to add this flag back for 3.10 or for 3.9-rc (the needed patches for PWM and leds-pwm will be in 3.9). I'm also waiting for 3.9-rc1 so I can finish up some of the pending things regarding to PWMs. -- Péter -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 0/2] ARM: dts: omap3-overo: Add pwm-leds and audio support 2013-02-07 7:58 ` Peter Ujfalusi @ 2013-02-26 16:07 ` Florian Vaussard 2013-02-26 16:19 ` Benoit Cousson 0 siblings, 1 reply; 21+ messages in thread From: Florian Vaussard @ 2013-02-26 16:07 UTC (permalink / raw) To: Peter Ujfalusi Cc: Benoit Cousson, Tony Lindgren, linux-omap, devicetree-discuss, linux-arm-kernel Hi, On 02/07/2013 08:58 AM, Peter Ujfalusi wrote: > Hi, > > On 02/06/2013 02:30 PM, Benoit Cousson wrote: >>> So a patch is being merged to handle triggers in the case of pwm leds [1]. >>> When done, we will be able to add back the default trigger. Do you want >>> to wait on it to merge this series? >> >> What kind of dependency do we have between these two series? I mean what >> will happen if the DTS is merged before the pwm subsystem? >> >> If that does not generate any regression / crash, then it is OK, if not, >> we should take care of the order. > > In this series the 'linux,default-trigger' property is not added to the > pwm-leds node, so it is safe to take this series. > I'm sure Florian will send the update to add this flag back for 3.10 or for > 3.9-rc (the needed patches for PWM and leds-pwm will be in 3.9). > Yes, it is safe to take this series. I will provide a patch to add back the trigger when it is safe to. Regards, Florian ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 0/2] ARM: dts: omap3-overo: Add pwm-leds and audio support 2013-02-26 16:07 ` Florian Vaussard @ 2013-02-26 16:19 ` Benoit Cousson 0 siblings, 0 replies; 21+ messages in thread From: Benoit Cousson @ 2013-02-26 16:19 UTC (permalink / raw) To: florian.vaussard Cc: Peter Ujfalusi, Tony Lindgren, linux-omap, devicetree-discuss, linux-arm-kernel Hi Florian, On 02/26/2013 05:07 PM, Florian Vaussard wrote: > Hi, > > On 02/07/2013 08:58 AM, Peter Ujfalusi wrote: >> Hi, >> >> On 02/06/2013 02:30 PM, Benoit Cousson wrote: >>>> So a patch is being merged to handle triggers in the case of pwm >>>> leds [1]. >>>> When done, we will be able to add back the default trigger. Do you want >>>> to wait on it to merge this series? >>> >>> What kind of dependency do we have between these two series? I mean what >>> will happen if the DTS is merged before the pwm subsystem? >>> >>> If that does not generate any regression / crash, then it is OK, if not, >>> we should take care of the order. >> >> In this series the 'linux,default-trigger' property is not added to the >> pwm-leds node, so it is safe to take this series. >> I'm sure Florian will send the update to add this flag back for 3.10 >> or for >> 3.9-rc (the needed patches for PWM and leds-pwm will be in 3.9). >> > > Yes, it is safe to take this series. I will provide a patch to add back > the trigger when it is safe to. OK, great, I'll take the series then. Thanks, Benoit ^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~2013-02-26 16:19 UTC | newest] Thread overview: 21+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-01-23 17:56 [PATCH 0/2] ARM: dts: omap3-overo: Add pwm-leds and audio support Florian Vaussard 2013-01-23 17:56 ` [PATCH 1/2] ARM: dts: omap3-overo: Add support for pwm-leds Florian Vaussard [not found] ` <1358963812-19947-2-git-send-email-florian.vaussard-p8DiymsW2f8@public.gmane.org> 2013-01-24 15:19 ` Peter Ujfalusi 2013-01-24 15:42 ` Florian Vaussard 2013-01-24 15:45 ` Peter Ujfalusi 2013-01-24 16:50 ` Florian Vaussard 2013-01-24 17:08 ` Peter Ujfalusi [not found] ` <51016A84.20703-l0cyMroinI0@public.gmane.org> 2013-01-24 21:14 ` Florian Vaussard 2013-01-25 8:29 ` Peter Ujfalusi 2013-01-25 12:07 ` Peter Ujfalusi 2013-01-25 12:21 ` Florian Vaussard 2013-01-25 12:30 ` Peter Ujfalusi 2013-01-23 17:56 ` [PATCH 2/2] ARM: dts: omap3-overo: Add audio support Florian Vaussard 2013-01-24 15:21 ` Peter Ujfalusi 2013-01-24 12:21 ` [PATCH 0/2] ARM: dts: omap3-overo: Add pwm-leds and " Benoit Cousson 2013-02-04 9:14 ` Florian Vaussard 2013-02-06 13:30 ` Benoit Cousson 2013-02-06 14:26 ` Philippe Rétornaz 2013-02-07 7:58 ` Peter Ujfalusi 2013-02-26 16:07 ` Florian Vaussard 2013-02-26 16:19 ` Benoit Cousson
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).