Re: [rtc-linux] [PATCH] rtc: ds1307: fix kernel splat due to wakeup irq handling

2015-11-25 Thread Alexandre Belloni
t; > Cc: Tony Lindgren > Cc: Nishanth Menon > Signed-off-by: Felipe Balbi > --- > arch/arm/boot/dts/am57xx-beagle-x15.dts | 1 + > drivers/rtc/rtc-ds1307.c| 36 > +++------ > 2 files changed, 4 insertions(+), 33 deletions(-)

Re: [PATCH] rtc: ds1307: Fix alarm programming for mcp794xx

2015-10-27 Thread Alexandre Belloni
s") > > Signed-off-by: Tero Kristo > --- > drivers/rtc/rtc-ds1307.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Applied, thanks. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubsc

Re: [PATCH v5 0/3] ARM: AM437X: Add rtc clock handling

2015-08-26 Thread Alexandre Belloni
On 26/08/2015 at 11:01:27 -0700, Tony Lindgren wrote : > * Keerthy [150826 09:54]: > > Tony, > > > > On Saturday 22 August 2015 02:48 AM, Alexandre Belloni wrote: > > >Tony, > > > > > >On 18/08/2015 at 15:11:13 +0530, Keerthy wrote : > &g

Re: [PATCH v5 2/3] rtc: omap: Add internal clock enabling support

2015-08-21 Thread Alexandre Belloni
tc->clk); > + > rtc->type->unlock(rtc); > /* leave rtc running, but disable irqs */ Is it actually still running once the clock is disabled? > rtc_write(rtc, OMAP_RTC_INTERRUPTS_REG, 0); -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and

Re: [PATCH v5 0/3] ARM: AM437X: Add rtc clock handling

2015-08-21 Thread Alexandre Belloni
; rtc: omap: Add internal clock enabling support > rtc: omap: Add external clock enabling support > I'm wondering how you want to get those patches merged. I can let you take 2 and 3 through arm-soc but you will miss 4.3. Or I can take 2 and 3 for 4.3 but the documentation will be mis

Re: [PATCH 2/2] rtc: omap: Add external clock enabling support

2015-08-14 Thread Alexandre Belloni
/* leave rtc running, but disable irqs */ > rtc_write(rtc, OMAP_RTC_INTERRUPTS_REG, 0); > > + if (rtc->has_ext_clk) { Then you could also avoid has_ext_clk and simply test rtc->ext_clk. > + reg = rtc_read(rtc, OMAP_RTC_OSC_REG); > + reg &am

Re: [PATCH v2 2/6] rtc: omap: Add external clock enabling support

2015-08-14 Thread Alexandre Belloni
rom a hardware point of view. But since we agreed on the DT bindings, I'd say that we can still adjust the driver later. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubsc

Re: [PATCH v2 2/6] rtc: omap: Add external clock enabling support

2015-08-12 Thread Alexandre Belloni
x27;d say that I don't really care. I'd say the best would be to make a decision based on clock-accuracy but maybe that is an information you don't have yet. Anyway, this could be added at a later date. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android

Re: [PATCH v2 2/6] rtc: omap: Add external clock enabling support

2015-08-11 Thread Alexandre Belloni
suspend > + */ > + if (rtc->has_ext_clk) { > + reg = rtc_read(rtc, OMAP_RTC_OSC_REG); > + rtc_write(rtc, OMAP_RTC_OSC_REG, reg | > + OMAP_RTC_OSC_SEL_32KCLK_SRC); > + } > + You should probably prepare/enable the clock before switching to

Re: [PATCH 3/8] rtc: omap: Add external clock enabling support

2015-08-06 Thread Alexandre Belloni
;int-clk", "ext-clk"; > }; > > Driver: > 1) clk0 is mandatory, internal clock source > 2) clk1 is optional, external clock source, so > if present - RTC driver can switch to use ext clock source > Absolutely! -- Alexandre Belloni, Free Electrons Embedded Linu

Re: [PATCH 3/8] rtc: omap: Add external clock enabling support

2015-08-06 Thread Alexandre Belloni
On 06/08/2015 at 07:39:52 +0530, Keerthy wrote : > On Wednesday 05 August 2015 06:05 PM, Alexandre Belloni wrote: > >On 05/08/2015 at 17:31:22 +0530, Keerthy wrote : > >>This is a special one where in the enable bit is present in the rtc register > >>space and not in the

Re: [PATCH 3/8] rtc: omap: Add external clock enabling support

2015-08-05 Thread Alexandre Belloni
his external clock is coming internally from the SoC? Do you have a link to the datasheet? -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body

Re: [PATCH 3/8] rtc: omap: Add external clock enabling support

2015-08-05 Thread Alexandre Belloni
On 05/08/2015 at 13:41:19 +0200, Alexandre Belloni wrote : > Hi, > > On 05/08/2015 at 04:13:17 -0700, Tony Lindgren wrote : > > * Keerthy [150805 03:53]: > > > Based on the board property switch the source from internal > > > to external clock. Switching

Re: [PATCH 3/8] rtc: omap: Add external clock enabling support

2015-08-05 Thread Alexandre Belloni
. If it is present you can even get its rate if this is needed at some point in the future. You could also disable it when going to suspend. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line &q

Re: [PATCH V2 0/5] drivers/rtc/rtc-ds1307.c: Basic cleanups and support for wakeupirq

2015-07-02 Thread Alexandre Belloni
07. > > V1: https://patchwork.kernel.org/patch/4759171/ > > NOTE: Patch 5/5 of the series is meant to indicate the usage, and will > be reposted along with other wakeup sources to be enabled once the > driver changes are accepted. > I've left that one out so you can send it to the omap mai

Re: [PATCH V2 4/5] drivers/rtc/rtc-ds1307.c: Support optional wakeup interrupt source

2015-07-01 Thread Alexandre Belloni
dev_err(&client->dev, "unable to setup wakeIRQ %d!\n", > + err); > + goto exit; > } > } > > +no_irq: > if (chip->nvram_size) { > > ds1307->nvram = devm_kza

Re: drivers/rtc/rtc-ds1307.c: Support optional wakeup interrupt source

2015-05-28 Thread Alexandre Belloni
eIRQ > %d\n", > + err); > + free_irq(client->irq, client); > + goto exit; > + } > + > + /* We enable the interrupt only during suspend pa

Re: [PATCH V2] drivers/rtc/rtc-ds1307.c: Enable the mcp794xx alarm after programming time

2015-04-24 Thread Alexandre Belloni
On 22/04/2015 at 19:04:52 -0500, Nishanth Menon wrote : > > I fully agree that your patch doesn't change the behaviour for the other > > cases you presented and further clean up is to be done in a separate set > > of patches. > > > Sure, Acked-by: Alexandre

Re: [PATCH V2] drivers/rtc/rtc-ds1307.c: Enable the mcp794xx alarm after programming time

2015-04-22 Thread Alexandre Belloni
your patch doesn't change the behaviour for the other cases you presented and further clean up is to be done in a separate set of patches. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send

Re: [PATCH V2] drivers/rtc/rtc-ds1307.c: Enable the mcp794xx alarm after programming time

2015-04-21 Thread Alexandre Belloni
nting to try to not introduce another race condition. What about setting ALM0MTH to 0x1F before reading the control registers? You could also read only the first 3 registers as all the others are overwritten. And finally, you only need to write 9 bytes instead of 10 (register 0x10 is reserved).

Re: [PATCH V2] drivers/rtc/rtc-ds1307.c: Enable the mcp794xx alarm after programming time

2015-04-21 Thread Alexandre Belloni
TROL, 10, regs); > if (ret < 0) > return ret; > > - return 0; > + if (!t->enabled) > + return 0; > + regs[0] |= MCP794XX_BIT_ALM0_EN; > + return i2c_smbus_write_byte_data(client, MCP794XX_REG_CONTROL, regs[0]); > } > > static

Re: [rtc-linux] [PATCH] rtc: OMAP: Add external 32k clock feature

2015-04-10 Thread Alexandre Belloni
internal 32k to keep DT ABI backward compatibility. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org

Re: [PATCH v2 1/3] rtc: omap: Unlock and Lock rtc registers before and after register writes

2015-04-02 Thread Alexandre Belloni
Hi, On 02/04/2015 at 18:14:11 +0530, Lokesh Vutla wrote : > Here is the updated patch. > You should probably send it properly using git send-email, have a look at the --in-reply-to parameter, else, I'm not sure Andrew will be able to pick it up. Thanks! -- Alexandre Belloni, Fre

Re: [PATCH v2 1/3] rtc: omap: Unlock and Lock rtc registers before and after register writes

2015-04-02 Thread Alexandre Belloni
rtc_suspend(struct device *dev) > enable_irq_wake(rtc->irq_alarm); > else > rtc_write(rtc, OMAP_RTC_INTERRUPTS_REG, 0); > + rtc->type->lock(rtc); > > /* Disable the clock/module */ > pm_runtime_put_sync(dev); > @@ -

Re: [rtc-linux] [PATCH 3/3] rtc: omap: use module_platform_driver

2015-04-01 Thread Alexandre Belloni
On 01/04/2015 at 11:24:58 +0530, Lokesh Vutla wrote : > module_platform_driver_probe() prevents driver from requesting probe deferral. > So using module_platform_drive() to support probe deferral. > > Signed-off-by: Lokesh Vutla Acked-by: Alexandre Belloni > --- > drivers/

Re: [rtc-linux] [PATCH 1/3] rtc: omap: Unlock and Lock rtc registers before and after register writes

2015-04-01 Thread Alexandre Belloni
>type->has_kicker) { Instead of testing for has_kicker each time, I would add .lock and .unlock to omap_rtc_device_type and directly use rtc->type->lock and rtc->type->unlock. > + rtc_writel(rtc, OMAP_RTC_KICK0_REG, KICK0_VALUE); > + rtc_writel(rtc, OM

Re: [rtc-linux] [PATCH 2/3] rtc: omap: Update Kconfig for OMAP RTC

2015-04-01 Thread Alexandre Belloni
On 01/04/2015 at 11:24:57 +0530, Lokesh Vutla wrote : > RTC is present in AM43xx and DRA7xx also. Updating the Kconfig > to depend on ARCH_OMAP or ARCH_DAVINCI > > Signed-off-by: Lokesh Vutla Acked-by: Alexandre Belloni > --- > drivers/rtc/Kconfig | 6 +++--- > 1 file

Re: [PATCH v5 0/7] Enable L2 cache support on Exynos4210/4x12 SoCs

2015-01-14 Thread Alexandre Belloni
Hi, On 14/01/2015 at 16:21:50 +, Russell King - ARM Linux wrote : > On Wed, Jan 14, 2015 at 04:46:03PM +0100, Alexandre Belloni wrote: > > Hi, > > > > This patch set hasn't moved since while. We actually need patch 4 to > > properly configure prefetch on sama5

Re: [PATCH v5 0/7] Enable L2 cache support on Exynos4210/4x12 SoCs

2015-01-14 Thread Alexandre Belloni
| 3 +- > arch/arm/mach-exynos/firmware.c| 50 + > arch/arm/mach-exynos/sleep.S | 46 + > arch/arm/mm/cache-l2x0.c | 255 > - > 8 files changed, 294 insertions(+), 96 d

Re: [PATCH v4 4/7] ARM: l2c: Add support for overriding prefetch settings

2014-09-19 Thread Alexandre Belloni
On 19/09/2014 at 17:39:32 +0100, Russell King - ARM Linux wrote : > On Fri, Sep 19, 2014 at 11:50:01AM +0200, Alexandre Belloni wrote: > > On 26/08/2014 at 16:17:57 +0200, Tomasz Figa wrote : > > > Firmware on certain boards (e.g. ODROID-U3) can leave incorrect L2C > > &

Re: [PATCH v4 4/7] ARM: l2c: Add support for overriding prefetch settings

2014-09-19 Thread Alexandre Belloni
ttings to be specified from DT and necessary support in the > driver. > > Signed-off-by: Tomasz Figa Tested-by: Alexandre Belloni It is working and useful on Atmel's sama5d4 were the bootloader is not configuring the L2C prefetch. However, I'm wondering whether we

[PATCHv2 resend 00/11] improve PWM lookup support without device tree

2014-05-19 Thread Alexandre Belloni
-pwm and pwm_bl drivers get the period from the PWM Alexandre Belloni (11): pwm: add period and polarity to struct pwm_lookup ARM: shmobile: Armadillo 800 EVA: initialize all struct pwm_lookup members pwm: renesas-tpu: remove useless struct tpu_pwm_platform_data ARM: OMAP3: Beagle: ini

[PATCHv2 resend 01/11] pwm: add period and polarity to struct pwm_lookup

2014-05-19 Thread Alexandre Belloni
Adds a period and a polarity member to struct pwm_lookup so that when performing a lookup using the lookup table instead of device tree, we are able to set the period and the polarity accordingly like what is done in of_pwm_xlate_with_flags. Signed-off-by: Alexandre Belloni --- drivers/pwm

[PATCHv2 resend 11/11] backlight: pwm_bl: retrieve configured pwm period

2014-05-19 Thread Alexandre Belloni
The PWM core is now able to initialize the PWM period from platform_data. Use it and if it is not configured, use the supplied pwm_period_ns. Signed-off-by: Alexandre Belloni --- drivers/video/backlight/pwm_bl.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCHv2 resend 04/11] ARM: OMAP3: Beagle: initialize all the struct pwm_lookup members

2014-05-19 Thread Alexandre Belloni
This will allow to get rid of the .pwm_period_ns member of struct led_pwm as the period will be set by the PWM core. Signed-off-by: Alexandre Belloni --- arch/arm/mach-omap2/board-omap3beagle.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/board

[PATCHv2 resend 08/11] ARM: shmobile: Armadillo 800 EVA: use PWM_LOOKUP to initialize struct pwm_lookup

2014-05-19 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni Acked-by: Simon Horman --- arch/arm/mach-shmobile/board-armadillo800eva.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c index

[PATCHv2 resend 10/11] leds: leds-pwm: retrieve configured pwm period

2014-05-19 Thread Alexandre Belloni
The PWM core is now able to initialize the PWM period. Use it and if it is not configured, use the supplied pwm_period_ns. Signed-off-by: Alexandre Belloni --- drivers/leds/leds-pwm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/leds/leds-pwm.c b/drivers/leds

[PATCHv2 resend 09/11] ARM: pxa: hx4700: use PWM_LOOKUP to initialize struct pwm_lookup

2014-05-19 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni --- arch/arm/mach-pxa/hx4700.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c index 0788a1f171fe..c66ad4edc5e3 100644 --- a/arch/arm/mach-pxa/hx4700.c +++ b/arch/arm/mach-pxa

[PATCHv2 resend 02/11] ARM: shmobile: Armadillo 800 EVA: initialize all struct pwm_lookup members

2014-05-19 Thread Alexandre Belloni
Initializing all the struc pwm_lookup members allows to get rid of the struct tpu_pwm_platform_data as the polarity initialization will be taken care of by the PWM core. Signed-off-by: Alexandre Belloni Acked-by: Simon Horman --- arch/arm/mach-shmobile/board-armadillo800eva.c | 20

[PATCHv2 resend 06/11] pwm: modify PWM_LOOKUP to initialize all struct pwm_lookup members

2014-05-19 Thread Alexandre Belloni
Now that PWM_LOOKUP is not used anymore, modify it to initialize all the members of struct pwm_lookup. Signed-off-by: Alexandre Belloni --- Documentation/pwm.txt | 3 ++- include/linux/pwm.h | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/pwm.txt b

[PATCHv2 resend 03/11] pwm: renesas-tpu: remove useless struct tpu_pwm_platform_data

2014-05-19 Thread Alexandre Belloni
The struct is not used anymore and the polarity initialization will be taken care of by the PWM core. Signed-off-by: Alexandre Belloni --- drivers/pwm/pwm-renesas-tpu.c | 19 +++ include/linux/platform_data/pwm-renesas-tpu.h | 16 2 files changed

[PATCHv2 resend 05/11] ARM: pxa: hx4700: initialize all the struct pwm_lookup members

2014-05-19 Thread Alexandre Belloni
This will allow to get rid of the .pwm_period_ns member of struct platform_pwm_backlight_data as the period will be set by the PWM core. Signed-off-by: Alexandre Belloni --- arch/arm/mach-pxa/hx4700.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-pxa

[PATCHv2 resend 07/11] ARM: OMAP3: Beagle: use PWM_LOOKUP to initialize struct pwm_lookup

2014-05-19 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni --- arch/arm/mach-omap2/board-omap3beagle.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index f27e1ec90b5e..54c135a5b4f7 100644 --- a/arch/arm

Re: [PATCHv2 00/11] improve PWM lookup support without device tree

2014-05-12 Thread Alexandre Belloni
Hello Thierry, Do you know when you will have some time to review that patch series ? On 14/04/2014 at 23:59:42 +0200, Alexandre Belloni wrote : > Hi, > > A patch set as suggested by Thierry to make lookup with the lookup table > instead of device tree behave more like when using

[PATCHv2 02/11] ARM: shmobile: Armadillo 800 EVA: initialize all struct pwm_lookup members

2014-04-14 Thread Alexandre Belloni
Initializing all the struct pwm_lookup members allows to get rid of the struct tpu_pwm_platform_data as the polarity initialization will be taken care of by the PWM core. Signed-off-by: Alexandre Belloni --- arch/arm/mach-shmobile/board-armadillo800eva.c | 20 +--- 1 file

[PATCHv2 04/11] ARM: OMAP3: Beagle: initialize all the struct pwm_lookup members

2014-04-14 Thread Alexandre Belloni
This will allow to get rid of the .pwm_period_ns member of struct led_pwm as the period will be set by the PWM core. Signed-off-by: Alexandre Belloni --- arch/arm/mach-omap2/board-omap3beagle.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/board

[PATCHv2 00/11] improve PWM lookup support without device tree

2014-04-14 Thread Alexandre Belloni
returning. - don't change PWM_LOOKUP atomically - remove tpu_pwm_platform_data and the associated header file - make the leds-pwm and pwm_bl drivers get the period from the PWM Alexandre Belloni (11): pwm: add period and polarity to struct pwm_lookup ARM: shmobile: Armadillo 800 EVA:

[PATCHv2 03/11] pwm: renesas-tpu: remove useless struct tpu_pwm_platform_data

2014-04-14 Thread Alexandre Belloni
The struct tpu_pwm_platform_data is not used anymore and the polarity initialization will be taken care of by the PWM core. Signed-off-by: Alexandre Belloni --- drivers/pwm/pwm-renesas-tpu.c | 19 +++ include/linux/platform_data/pwm-renesas-tpu.h | 16

[PATCHv2 01/11] pwm: add period and polarity to struct pwm_lookup

2014-04-14 Thread Alexandre Belloni
the default is 0 anyway. Signed-off-by: Alexandre Belloni --- drivers/pwm/core.c | 8 +++- include/linux/pwm.h | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index a80471399c20..4b66bf09ee55 100644 --- a/drivers/pwm/core.c +++ b

[PATCHv2 10/11] leds: leds-pwm: retrieve configured pwm period

2014-04-14 Thread Alexandre Belloni
The PWM core is now able to initialize the PWM period. Use it and if it is not configured, use the supplied pwm_period_ns. Signed-off-by: Alexandre Belloni --- drivers/leds/leds-pwm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/leds/leds-pwm.c b/drivers/leds

[PATCHv2 06/11] pwm: modify PWM_LOOKUP to initialize all struct pwm_lookup members

2014-04-14 Thread Alexandre Belloni
Now that PWM_LOOKUP is not used anymore, modify it to initialize all the members of struct pwm_lookup. Signed-off-by: Alexandre Belloni --- Documentation/pwm.txt | 3 ++- include/linux/pwm.h | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/pwm.txt b

[PATCHv2 08/11] ARM: shmobile: Armadillo 800 EVA: use PWM_LOOKUP to initialize struct pwm_lookup

2014-04-14 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni --- arch/arm/mach-shmobile/board-armadillo800eva.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c index 1bf61dad9a35..ca82b1e2ebab

[PATCHv2 09/11] ARM: pxa: hx4700: use PWM_LOOKUP to initialize struct pwm_lookup

2014-04-14 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni --- arch/arm/mach-pxa/hx4700.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c index 0788a1f171fe..c66ad4edc5e3 100644 --- a/arch/arm/mach-pxa/hx4700.c +++ b/arch/arm/mach-pxa

[PATCHv2 07/11] ARM: OMAP3: Beagle: use PWM_LOOKUP to initialize struct pwm_lookup

2014-04-14 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni --- arch/arm/mach-omap2/board-omap3beagle.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index f27e1ec90b5e..54c135a5b4f7 100644 --- a/arch/arm

[PATCHv2 05/11] ARM: pxa: hx4700: initialize all the struct pwm_lookup members

2014-04-14 Thread Alexandre Belloni
This will allow to get rid of the .pwm_period_ns member of struct platform_pwm_backlight_data as the period will be set by the PWM core. Signed-off-by: Alexandre Belloni --- arch/arm/mach-pxa/hx4700.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-pxa

[PATCHv2 11/11] backlight: pwm_bl: retrieve configured pwm period

2014-04-14 Thread Alexandre Belloni
The PWM core is now able to initialize the PWM period from platform_data. Use it and if it is not configured, use the supplied pwm_period_ns. Signed-off-by: Alexandre Belloni --- drivers/video/backlight/pwm_bl.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers

Re: [PATCH 2/2] pwm: use PWM_LOOKUP to set the period and polarity

2014-04-10 Thread Alexandre Belloni
On 10/04/2014 at 08:15:49 +0900, Simon Horman wrote : > On Wed, Apr 09, 2014 at 08:04:09PM +0200, Alexandre Belloni wrote: > > Now that the PWM core is able to set the period and polarity based on > > the lookup table, add those to PWM_LOOKUP to ease their usage. > > I would

Re: [PATCH 1/2] pwm: add period and polarity to struct pwm_lookup

2014-04-09 Thread Alexandre Belloni
On 09/04/2014 at 20:37:06 +0100, Russell King - ARM Linux wrote : > On Wed, Apr 09, 2014 at 08:04:08PM +0200, Alexandre Belloni wrote: > > Adds a period and a polarity member to struct pwm_lookup so that when > > performing > > a lookup using the lookup table instead of dev

[PATCH 0/2] improve pwm lookup support without device tree

2014-04-09 Thread Alexandre Belloni
PWM_LOOKUP to set period an polarity. I was wondering about adding a new macro to d that but the number of boards using it is limited (only 3) so I guess it is ok to do that now. The final goal would be to get rid of .pwm_period_ns in leds-pwm and pwm_bl. Alexandre Belloni (2): pwm: add period and

[PATCH 2/2] pwm: use PWM_LOOKUP to set the period and polarity

2014-04-09 Thread Alexandre Belloni
Now that the PWM core is able to set the period and polarity based on the lookup table, add those to PWM_LOOKUP to ease their usage. Signed-off-by: Alexandre Belloni --- Documentation/pwm.txt | 3 ++- arch/arm/mach-omap2/board-omap3beagle.c| 3 ++- arch/arm/mach

[PATCH 1/2] pwm: add period and polarity to struct pwm_lookup

2014-04-09 Thread Alexandre Belloni
Adds a period and a polarity member to struct pwm_lookup so that when performing a lookup using the lookup table instead of device tree, we are able to set the period and the polarity accordingly like what is done in of_pwm_xlate_with_flags. Signed-off-by: Alexandre Belloni --- drivers/pwm

Re: [PATCH v4 0/8] wilink: add device tree support

2014-02-28 Thread Alexandre Belloni
il/linux-arm-kernel/2014-February/232185.html I've hit the issue, precisely using those bindings. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linux-omap"

[PATCH] ARM: DTS: SAMA5: Add PMU support

2013-08-05 Thread Alexandre Belloni
ARM Performance Monitor Units are available on the sama5d3, add the support in the dtsi. Tested with perf and oprofile on the sama5d31ek. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/sama5d3.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3.dtsi

[PATCH] ARM: DTS: AM33XX: Add PMU support

2013-08-03 Thread Alexandre Belloni
ARM Performance Monitor Units are available on the am33xx, add the support in the dtsi. Tested with perf and oprofile on a regular beaglebone. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/am33xx.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts