[PATCHv2] pinctrl: pinconf: remove checks on ops-pin_config_get

2013-12-12 Thread Alexandre Belloni
-ENOTSUPP instead of -EINVAL. While this doesn't have any real impact for now, this feels more right. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- Changes in v2: - fix the unused variable 'ops' warnings drivers/pinctrl/pinconf.c | 22 -- 1 file

[PATCH] pinctrl: pinconf: remove warning: unused variable 'ops'

2013-12-13 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/pinctrl/pinconf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pinctrl/pinconf.c b/drivers/pinctrl/pinconf.c index 4187fe58794d..8bfa0643e5dc 100644 --- a/drivers/pinctrl/pinconf.c +++ b/drivers

Re: [PATCHv5 RESEND 4/4] iio: mxs-lradc: convert is_divided to a bitmap

2014-01-02 Thread Alexandre Belloni
On 01/01/2014 20:31, Marek Vasut wrote: On Wednesday, January 01, 2014 at 03:31:35 PM, Jonathan Cameron wrote: On 23/12/13 17:48, Alexandre Belloni wrote: mxs_lradc.is_divided was an unsigned long array. Convert it to a bitmap to save some memory. Signed-off-by: Alexandre Belloni

[PATCHv2] iio: mxs-lradc: compute temperature from channel 8 and 9

2013-12-06 Thread Alexandre Belloni
and IIO_CHAN_INFO_OFFSET so that it can be processed by hwmon through the in kernel provider/consumer mechanism. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com Reviewed-by: Lars-Peter Clausen l...@metafoo.de --- Changes in v2

[PATCH] ARM: dts: mxs: add #io-channel-cells to mx28 lradc

2013-12-06 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/imx28.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot/dts/imx28.dtsi index cda19c8b0a47..92d9f9e33bf1 100644 --- a/arch/arm/boot/dts/imx28.dtsi +++ b

[PATCH] ARM: dts: mxs: Add iio-hwmon to crystalfontz boards

2013-12-06 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- This won't work until those patches are applied: https://lkml.org/lkml/2013/12/6/676 and http://lists.infradead.org/pipermail/linux-arm-kernel/2013-December/216963.html However, I'm wondering if it wouldn't make sense

Re: [PATCH] ARM: dts: mxs: add #io-channel-cells to mx28 lradc

2013-12-06 Thread Alexandre Belloni
Commit message should have been: Adding #io-channel-cells property to lradc allows us to use the lradc as an iio provider. On 06/12/2013 21:20, Alexandre Belloni wrote: Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/imx28.dtsi | 1 + 1 file

[PATCHv4 1/3] iio: mxs-lradc: add scale attribute to channels

2013-12-06 Thread Alexandre Belloni
(where the fixed pre-dividers apply) - allows to read the scaling attribute (computed from the Vref) Signed-off-by: Hector Palacios hector.palac...@digi.com. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/staging/iio/adc/mxs-lradc.c | 56

[PATCHv4 0/3] iio: mxs-lradc: add support to optional divider_by_two

2013-12-06 Thread Alexandre Belloni
Hello, This is v4 of the patchset that adds support to the optional divider_by_two of LRADC channels. Changes since v3: - removed DT bindings for vref_mv (was the second patch of the series) - rebased on v3.13.0-rc3 - the first patch of the previous series had been applied previously - this

[PATCHv4 2/3] iio: mxs-lradc: add scale_available file to channels

2013-12-06 Thread Alexandre Belloni
parts to build a long decimal number. Signed-off-by: Hector Palacios hector.palac...@digi.com Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/staging/iio/adc/mxs-lradc.c | 112 +++- 1 file changed, 111 insertions(+), 1 deletion

[PATCHv4 3/3] iio: mxs-lradc: add write_raw function to modify scale

2013-12-06 Thread Alexandre Belloni
From: Hector Palacios hector.palac...@digi.com Added write_raw function to manipulate the optional divider_by_two through the scaling attribute out of the available scales. Signed-off-by: Hector Palacios hector.palac...@digi.com Signed-off-by: Alexandre Belloni alexandre.bell...@free

[PATCH 2/3] pinctrl: at91: initialize config parameter to 0

2013-12-07 Thread Alexandre Belloni
When passing a not initialized config parameter, at91_pinconf_get() would return a bogus value. Fix that by initializing it to zero before using it. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/pinctrl/pinctrl-at91.c | 3 ++- 1 file changed, 2 insertions

[PATCH 3/3] pinctrl: at91: implement at91_pinconf_dbg_show

2013-12-07 Thread Alexandre Belloni
This allows to get the pin configuration by using debugfs. On my system: # cat /sys/kernel/debug/pinctrl/pinctrl.3/pinconf-pins Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/pinctrl/pinctrl-at91.c | 25 + 1 file changed, 25 insertions

[PATCH 1/3] pinctrl: at91: correct a few typos

2013-12-07 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/pinctrl/pinctrl-at91.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index a7549c4c83b4..6446dc804aa7 100644 --- a/drivers

Re: [PATCH 2/3] pinctrl: at91: initialize config parameter to 0

2013-12-09 Thread Alexandre Belloni
Hi, On 09/12/2013 09:24, Nicolas Ferre wrote: On 07/12/2013 14:08, Alexandre Belloni : When passing a not initialized config parameter, at91_pinconf_get() would return a bogus value. Fix that by initializing it to zero before using it. Signed-off-by: Alexandre Belloni alexandre.bell...@free

[PATCH] pinctrl: pinconf: remove checks on ops-pin_config_get

2013-12-09 Thread Alexandre Belloni
-ENOTSUPP instead of -EINVAL. While this doesn't have any real impact for now, this feels more right. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/pinctrl/pinconf.c | 20 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/drivers

Re: [PATCH v2 10/11] ARM: at91/dt: move at91sam9rl SoC to the new slow/main clock models

2014-03-24 Thread Alexandre Belloni
On 24/03/2014 at 09:27:22 +0100, Boris BREZILLON wrote : Move at91sam9rl SoC to the new main/slow clock model. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com Acked-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/at91sam9rl.dtsi | 47

Re: [PATCH v2 12/15] ARM: at91: remove atmel_tsadcc platform_data

2014-03-24 Thread Alexandre Belloni
On 22/03/2014 at 12:39:16 +, Jonathan Cameron wrote : On 17/03/14 13:57, Alexandre Belloni wrote: Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com See below. --- arch/arm/mach-at91/board.h | 3 --- include/linux/platform_data/atmel.h | 7 --- 2

Re: [PATCH 14/16] backlight: atmel-pwm-bl: remove obsolete driver

2014-03-24 Thread Alexandre Belloni
Hi, On 21/03/2014 at 09:51:16 +0900, Jingoo Han wrote : On Wednesday, March 19, 2014 11:23 PM, Hans-Christian Egtvedt wrote: Around Wed 19 Mar 2014 14:03:27 +0100 or thereabout, Alexandre Belloni wrote: The atmel-pwm-bl driver is now obsolete. It is not used by any mainlined boards

[PATCH v3] clk: berlin: add support for berlin plls

2014-03-25 Thread Alexandre Belloni
This drivers allows to provide DT clocks for the cpu and system PLLs found on Marvell Berlin SoCs. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- Changes in v3: - removed empty lines a the end of the files - vcodiv are now arrays filled with zeros by default - use

Re: [PATCH 00/16] move at91 and avr32 to the PWM framework, remove obsolete drivers

2014-03-27 Thread Alexandre Belloni
Hi, On 27/03/2014 at 18:43:26 +0100, Nicolas Ferre wrote : On 19/03/2014 14:03, Alexandre Belloni : Alexandre Belloni (16): ARM: at91: at91sam9g45: switch to generic PWM framework ARM: at91: sam9m10g45ek: use generic leds_pwm driver ARM: at91: at91sam9263: switch to generic PWM

[PATCHv3 0/7] Add Allwinner SoCs PWM support

2014-04-28 Thread Alexandre Belloni
the patch adding pinctrl - a few cosmetic changes (removed empty lines, PWM_PRESCAL_MASK, ...) - fixed the period register calculation (the period is actually N + 1 cycles) so write prd - 1 - properly locked accesses to PWM_CTRL_REG with a mutex Alexandre Belloni (7): pwm: Add Allwinner SoC

[PATCHv3 5/7] ARM: sun7i: dt: add pinmux configuration for the PWM

2014-04-28 Thread Alexandre Belloni
Add the pinctrl descriptions for both PWM channels of the Allwinner A20. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/sun7i-a20.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot

[PATCHv3 3/7] ARM: sun4i: dt: add pinmux configuration for the PWM

2014-04-28 Thread Alexandre Belloni
Add the pinctrl descriptions for both PWM channels of the Allwinner A10. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/sun4i-a10.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot

[PATCHv3 1/7] pwm: Add Allwinner SoC support

2014-04-28 Thread Alexandre Belloni
This adds a generic PWM framework driver for the PWM controller found on Allwinner SoCs. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/pwm/Kconfig | 9 ++ drivers/pwm/Makefile| 1 + drivers

[PATCHv3 2/7] pwm: sunxi: document OF bindings

2014-04-28 Thread Alexandre Belloni
This is the documentation for the Allwinner Socs PWM bindings. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Maxime Ripard maxime.rip...@free-electrons.com --- Documentation/devicetree/bindings/pwm/pwm-sunxi.txt | 20 1 file changed, 20

[PATCHv3 4/7] ARM: sun4i: dt: add PWM support

2014-04-28 Thread Alexandre Belloni
Add the PWM bindings for the Allwinner A10. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/sun4i-a10.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index

[PATCHv3 7/7] ARM: sunxi: dt: add PWM support for the cubietruck

2014-04-28 Thread Alexandre Belloni
Enable the PWM for both PWM channels on the cubietruck. They can be found on connector CN8. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20

[PATCHv3 6/7] ARM: sun7i: dt: add PWM support

2014-04-28 Thread Alexandre Belloni
Add the PWM bindings for the Allwinner A20. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/sun7i-a20.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index

[PATCHv4 1/2] pwm: Add Allwinner SoC support

2014-04-28 Thread Alexandre Belloni
This adds a generic PWM framework driver for the PWM controller found on Allwinner SoCs. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/pwm/Kconfig | 9 ++ drivers/pwm/Makefile| 1 + drivers

[PATCHv4 2/2] pwm: sunxi: document OF bindings

2014-04-28 Thread Alexandre Belloni
This is the documentation for the Allwinner Socs PWM bindings. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Maxime Ripard maxime.rip...@free-electrons.com --- Documentation/devicetree/bindings/pwm/pwm-sunxi.txt | 20 1 file changed, 20

[PATCHv4 0/2] Add Allwinner SoCs PWM support

2014-04-28 Thread Alexandre Belloni
lines, PWM_PRESCAL_MASK, ...) - fixed the period register calculation (the period is actually N + 1 cycles) so write prd - 1 - properly locked accesses to PWM_CTRL_REG with a mutex Alexandre Belloni (7): pwm: Add Allwinner SoC support pwm: sunxi: document OF bindings .../devicetree

[PATCH 1/2] iio: fix possible buffer overflow

2014-05-02 Thread Alexandre Belloni
as the index of the iio_chan_info_postfix array. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/iio/industrialio-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c index

[PATCH 2/2] iio: fix possible buffer overflow

2014-05-02 Thread Alexandre Belloni
serve as the index of the iio_ev_info_text array. Also, for_each_set_bit takes a number of bits as the size, not a number of bytes. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/iio/industrialio-event.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

Re: [PATCH 1/2] iio: fix possible buffer overflow

2014-05-03 Thread Alexandre Belloni
On 03/05/2014 at 11:11:50 +0100, Jonathan Cameron wrote : On 02/05/14 23:40, Alexandre Belloni wrote: Found using smatch: drivers/iio/industrialio-core.c:719 iio_device_add_info_mask_type() error: buffer overflow 'iio_chan_info_postfix' 17 = 63 It was probably never hit because

Re: [PATCH] spi: Force the registration of the spidev devices

2014-05-05 Thread Alexandre Belloni
spidev -- arch/arm/*/dts/. I'm pretty sure that doesn't work as there is no compatible matching spidev My guess would be that you added it in spidev.c -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list

[PATCH] usb: gadget: atmel_usba: always test udc-driver

2014-05-06 Thread Alexandre Belloni
Found using smatch: drivers/usb/gadget/atmel_usba_udc.c:1689 usba_udc_irq() error: we previously assumed 'udc-driver' could be null (see line 1636) Always test udc-driver before using its members. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/usb/gadget

[PATCH] mmc: atmel: don't test host-data

2014-05-06 Thread Alexandre Belloni
Found using smatch: drivers/mmc/host/atmel-mci.c:827 atmci_pdc_complete() warn: variable dereferenced before check 'host-data' (see line 807) Stop testing host-data as it is not NULL at that point. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/mmc/host/atmel

[PATCH] spi: atmel: fix incorrect comparison

2014-05-06 Thread Alexandre Belloni
Found using smatch: drivers/spi/spi-atmel.c:878 atmel_spi_pump_pio_data() warn: unsigned 'as-current_remaining_bytes' is never less than zero. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/spi/spi-atmel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions

Re: [PATCH] rtc: rtc-at91rm9200: fix infinite wait for ACKUPD irq

2014-05-06 Thread Alexandre Belloni
Hi, On 06/05/2014 at 19:06:56 +, Bryan Evenson wrote : I'd assume this patch would be backported to the longterm releases? If by longterm, you mean the linux4sam tree, 3.10 branch, it is up to Nicolas to take it. I believe it will be pretty easy to convince him ;) -- Alexandre Belloni

[PATCHv2 2/5] clk: berlin: add berlin clocks DT bindings documentation

2014-04-24 Thread Alexandre Belloni
Document the newly added berlin clock driver Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- Documentation/devicetree/bindings/clock/berlin-clock.txt | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/clock

[PATCHv2 1/5] clk: berlin: add support for clocks

2014-04-24 Thread Alexandre Belloni
Add support for clocks having their own register set. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/clk/berlin/Makefile | 2 +- drivers/clk/berlin/clk.c| 134 2 files changed, 135 insertions(+), 1 deletion

[PATCHv2 4/5] ARM: berlin/dt: add sdio clocks to BG2CD

2014-04-24 Thread Alexandre Belloni
Add sdio clocks to the berlin2cd.dtsi Also reorder the PLLs nodes by address Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/berlin2cd.dtsi | 42 ++-- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git

[PATCHv2 5/5] ARM: berlin/dt: add sdio clocks to BG2Q

2014-04-24 Thread Alexandre Belloni
Add sdio clocks to the berlin2q.dtsi Also reorder the syspll node Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/berlin2q.dtsi | 28 +--- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts

[PATCHv2 0/5] Berlin: add clock support

2014-04-24 Thread Alexandre Belloni
, they didn't get reorder. Changes in v2: - reworked berlin_clk_recalc_rate() as suggested by Sebastian - some dts tweaks, as suggested by Antoine Alexandre Belloni (5): clk: berlin: add support for clocks clk: berlin: add berlin clocks DT bindings documentation ARM: berlin/dt: add sdio

[PATCHv2 3/5] ARM: berlin/dt: add sdio clocks to BG2

2014-04-24 Thread Alexandre Belloni
Add sdio clocks to the berlin2.dtsi Also reorder the PLLs nodes by address Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/berlin2.dtsi | 42 -- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git

[RFC 0/5] berlin: add support for clocks sharing registers

2014-04-25 Thread Alexandre Belloni
was envisionning it. Alexandre Belloni (5): clk: berlin: add support for clock groups clk: berlin: add berlin clock groups DT bindings documentation ARM: berlin/dt: add support for the clock group to BG2 ARM: berlin/dt: add support for the clock group to BG2D ARM: berlin/dt: add support

[RFC 1/5] clk: berlin: add support for clock groups

2014-04-25 Thread Alexandre Belloni
Add support for clocks sharing the same register set. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/clk/berlin/Makefile | 2 +- drivers/clk/berlin/grp.c| 208 2 files changed, 209 insertions(+), 1 deletion

[RFC 5/5] ARM: berlin/dt: add support for the clock group to BG2Q

2014-04-25 Thread Alexandre Belloni
Use the newly added marvell,berlin2-clkgrp driver, add real support for cfgclk and add the nfcecc clock. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/berlin2q.dtsi | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) diff

[RFC 3/5] ARM: berlin/dt: add support for the clock group to BG2

2014-04-25 Thread Alexandre Belloni
Use the newly added marvell,berlin2-clkgrp driver, add real support for cfgclk and add the cpu0 and perif clocks. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/berlin2.dtsi | 30 -- 1 file changed, 24 insertions(+), 6

[RFC 4/5] ARM: berlin/dt: add support for the clock group to BG2D

2014-04-25 Thread Alexandre Belloni
Use the newly added marvell,berlin2-clkgrp driver, add real support for cfgclk and add the cpu0, perif and nfcecc clocks. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/berlin2cd.dtsi | 36 ++-- 1 file changed, 30

[RFC 2/5] clk: berlin: add berlin clock groups DT bindings documentation

2014-04-25 Thread Alexandre Belloni
Document the device tree for the clocks sharing a common set of registers Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- Cc: devicet...@vger.kernel.org .../devicetree/bindings/clock/berlin-clock.txt | 29 ++ 1 file changed, 29 insertions

Re: [PATCH] ARM: dts: at91-sama5d3_xplained: add the regulator device node

2014-04-21 Thread Alexandre Belloni
://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

Re: [PATCH] ARM: dts: at91-sama5d3_xplained: add the regulator device node

2014-04-21 Thread Alexandre Belloni
On 21/04/2014 at 11:54:43 +0200, Alexandre Belloni wrote : Hi, On 21/04/2014 at 12:29:07 +0800, Wenyou Yang wrote : + + vddana_reg: LDO_REG2 { + regulator-name = VDDANA

Re: [PATCH] ARM: i.MX6: Add OF configuration support for ksz9031

2014-04-22 Thread Alexandre Belloni
___ linux-arm-kernel mailing list linux-arm-ker...@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line

[PATCH 3/3] ARM: at91/dt: sam9rl: Fix PLL output range and mck divisors

2014-04-23 Thread Alexandre Belloni
Argument 3 (OUT) and 4 (ICPLL) of the atmel,pll-clk-output-ranges were missing. Also, the at91sam9rl doesn't really have a by 3 divisor. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/at91sam9rl.dtsi | 7 --- 1 file changed, 4 insertions(+), 3

[PATCH 2/3] ARM: at91/dt: sam9261: Add ssc2, SSC clocks and pcks

2014-04-23 Thread Alexandre Belloni
Add ssc2 support, ssc2 pinctrl and clocks for the three SSCs. Also add support for the programmable clocks. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/at91sam9261.dtsi | 103 + 1 file changed, 103 insertions

[PATCH 1/3] ARM: at91/dt: sam9261: Fix PLL output ranges and other clocks divisors

2014-04-23 Thread Alexandre Belloni
Argument 3 (OUT) and 4 (ICPLL) of the atmel,pll-clk-output-ranges were missing. Also, the at91sam9261 doesn't really have a by 3 divisor. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/at91sam9261.dtsi | 10 ++ 1 file changed, 6 insertions

[PATCH 3/5] ARM: berlin/dt: add sdio clocks to BG2

2014-04-23 Thread Alexandre Belloni
Add sdio clocks to the berlin2.dtsi Also reorder the PLLs nodes by address Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/berlin2.dtsi | 42 -- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git

[PATCH 2/5] clk: berlin: add berlin clocks DT bindings documentation

2014-04-23 Thread Alexandre Belloni
Document the newly added berlin clock driver Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- Cc: devicet...@vger.kernel.org Documentation/devicetree/bindings/clock/berlin-clock.txt | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Documentation

[PATCH 5/5] ARM: berlin/dt: add sdio clocks to BG2Q

2014-04-23 Thread Alexandre Belloni
Add sdio clocks to the berlin2q.dtsi Also reorder the syspll node Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/berlin2q.dtsi | 28 +--- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH 4/5] ARM: berlin/dt: add sdio clocks to BG2CD

2014-04-23 Thread Alexandre Belloni
Add sdio clocks to the berlin2cd.dtsi Also reorder the PLLs nodes by address Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/berlin2cd.dtsi | 42 ++-- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git

[PATCH 1/5] clk: berlin: add support for clocks

2014-04-23 Thread Alexandre Belloni
Add support for clocks having their own register set. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/clk/berlin/Makefile | 2 +- drivers/clk/berlin/clk.c| 132 2 files changed, 133 insertions(+), 1 deletion

[PATCH 0/5] Berlin: add clock support

2014-04-23 Thread Alexandre Belloni
, they didn't get reorder. Alexandre Belloni (5): clk: berlin: add support for clocks clk: berlin: add berlin clocks DT bindings documentation ARM: berlin/dt: add sdio clocks to BG2 ARM: berlin/dt: add sdio clocks to BG2CD ARM: berlin/dt: add sdio clocks to BG2Q .../devicetree/bindings

[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 alexandre.bell...@free-electrons.com --- drivers/video/backlight/pwm_bl.c | 8 +--- 1 file changed, 5 insertions

[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 alexandre.bell...@free-electrons.com --- 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

[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 alexandre.bell...@free-electrons.com --- 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

[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 alexandre.bell...@free-electrons.com --- 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

[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 alexandre.bell...@free-electrons.com --- drivers/leds/leds-pwm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[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 alexandre.bell...@free-electrons.com --- arch/arm/mach-pxa/hx4700.c | 9 - 1 file changed, 8 insertions(+), 1 deletion

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

2014-04-14 Thread Alexandre Belloni
as the default is 0 anyway. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- 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

[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 alexandre.bell...@free-electrons.com --- Documentation/pwm.txt | 3 ++- include/linux/pwm.h | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff

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

2014-04-14 Thread Alexandre Belloni
. - 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: initialize all

[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 alexandre.bell...@free-electrons.com --- arch/arm/mach-omap2/board-omap3beagle.c | 9 - 1 file changed, 8 insertions(+), 1 deletion

[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 alexandre.bell...@free-electrons.com --- drivers/pwm/pwm-renesas-tpu.c | 19 +++ include/linux

[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 alexandre.bell...@free-electrons.com --- arch/arm/mach-shmobile/board-armadillo800eva.c | 20

Re: Pull request ?

2014-04-14 Thread Alexandre Belloni
was released :) Sorry for the noise ! -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

[PATCHv3 09/15] ARM: at91: sam9rlek add touchscreen support through at91_adc

2014-04-15 Thread Alexandre Belloni
at91_adc now supports reading a touchscreen for ADCs without a TSMR register. Enable touchscreen support through at91_adc. This allows to use both a touchscreen and the remaining ADC channel at the same time. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach

[PATCHv3 14/15] ARM: at91: remove atmel_tsadcc platform_data

2014-04-15 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/board.h | 3 --- include/linux/platform_data/atmel.h | 7 --- 2 files changed, 10 deletions(-) diff --git a/arch/arm/mach-at91/board.h b/arch/arm/mach-at91/board.h index 6c08b341167d

[PATCHv3 15/15] ARM: at91/dt: at91-cosino_mega2560 remove useless tsadcc node

2014-04-15 Thread Alexandre Belloni
The tsadcc node is useless as it doesn't refer to anything and the touchscreen is handled by the adc0 node. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Rodolfo Giometti giome...@linux.it --- arch/arm/boot/dts/at91-cosino_mega2560.dts | 5 - 1 file changed

[PATCHv3 13/15] Input: atmel_tsadcc: remove driver

2014-04-15 Thread Alexandre Belloni
The atmel_tsadcc driver is not used anymore, it has been replaced by at91_adc so remove it. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Dmitry Torokhov dmitry.torok...@gmail.com --- MAINTAINERS | 6 - drivers/input/touchscreen

[PATCHv3 11/15] ARM: at91: sam9rl: switch from atmel_tsadcc to at91_adc

2014-04-15 Thread Alexandre Belloni
atmel_tsadcc is not allowing to use the remaining ADC channels while at91_adc does. Completely switch to at91_adc and remove the tsadcc platform_data for at91sam9rl and at91sam9rl based boards. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/configs

[PATCHv3 12/15] ARM: at91: remove atmel_tsadcc from sama5_defconfig

2014-04-15 Thread Alexandre Belloni
atmel_tsadcc has been removed, stop selecting it. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/configs/sama5_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig index dc3881e07630

[PATCHv3 01/15] ARM: at91: sam9g45: remove unused platform_data

2014-04-15 Thread Alexandre Belloni
num_channels and registers are not used anymore since they are defined inside the at91_adc driver and assigned by matching the id_table. Also, remove the mach/at91_adc.h include that is not necessary anymore. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked

[PATCHv3 08/15] ARM: at91: sam9rl: add at91_adc to support adc and touchscreen

2014-04-15 Thread Alexandre Belloni
The ADC clock needs to be defined to enable the at91_adc driver. It is defined to the same speed that is used for atmel_tsadcc. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/at91sam9rl.c | 7 +++ arch/arm/mach-at91/at91sam9rl_devices.c | 85

[PATCHv3 10/15] ARM: at91: sam9g45: switch from atmel_tsadcc to at91_adc

2014-04-15 Thread Alexandre Belloni
atmel_tsadcc is not allowing to use the remaining ADC channels while at91_adc does. Completely switch to at91_adc and remove the tsadcc platform_data for at91sam9g45 and at91sam9g45 based boards. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/configs

[PATCHv3 02/15] ARM: at91: sam9260: remove unused platform_data

2014-04-15 Thread Alexandre Belloni
num_channels and registers are not used anymore since they are defined inside the at91_adc driver and assigned by matching the id_table. Also, remove the mach/at91_adc.h include that is not necessary anymore. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked

[PATCHv3 06/15] iio: adc: at91: remove unused include from include/mach

2014-04-15 Thread Alexandre Belloni
That include file is now only used by the at91_adc driver, remove it from include/mach for better driver separation. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Jonathan Cameron ji...@kernel.org --- arch/arm/mach-at91/include/mach/at91_adc.h | 120

[PATCHv3 07/15] iio: adc: at91: add sam9rl support

2014-04-15 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Jonathan Cameron ji...@kernel.org --- drivers/iio/adc/at91_adc.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c index a51b8badbf8e

[PATCHv3 05/15] ARM: at91: sam9m10g45ek: Add touchscreen support through at91_adc

2014-04-15 Thread Alexandre Belloni
and this is the speed used by atmel_tsadcc. It lowers the maximum throughput rate from 44 samples per second to 12958 samples per second. It shouldn't be an issue as the CPU is not able to keep up reading samples at that frequency. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked

[PATCHv3 04/15] iio: adc: at91_adc: Add support for touchscreens without TSMR

2014-04-15 Thread Alexandre Belloni
Old ADCs, as present on the sam9rl and the sam9g45 don't have a TSMR register and the touchscreen support should be handled differently. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Jonathan Cameron ji...@kernel.org --- arch/arm/mach-at91/include/mach

[PATCHv3 00/15] iio: adc: at91 cleanups and atmel_tsadcc removal

2014-04-15 Thread Alexandre Belloni
handlers in patch 4 as suggested by Dmitry and Thomas - ts_bufferedmeasure is now a bool - the multiline comment is now correctly formatted - improved commit log for patch 5 Alexandre Belloni (15): ARM: at91: sam9g45: remove unused platform_data ARM: at91: sam9260: remove unused

[PATCHv3 03/15] iio: adc: at91: cleanup platform_data

2014-04-15 Thread Alexandre Belloni
num_channels and registers are not used anymore since they are defined inside the driver and assigned by matching the id_table. Also, struct at91_adc_reg_desc is now only used inside the driver. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Jonathan Cameron ji

[PATCH 0/2] Add more peripherals to the sam9rlek

2014-04-15 Thread Alexandre Belloni
Hi, this patch set adds support for SPI, LCD, i2c, ADC and touchscreen, USB gadget and PWM on the at91sam9rlek. The only missing piece is now audio/ac97 support, then the SoC will be entirely supported using DT. Alexandre Belloni (2): ARM: at91/dt: sam9rl: add lcd, adc, usb gadget and pwm

[PATCH 2/2] ARM: at91/dt: add peripherals to the at91sam9rlek board

2014-04-15 Thread Alexandre Belloni
This adds support for: - SPI - Dataflash - LCD - i2c - ADC - Touchscreen - USB gadget - PWM Also it switches the ds1 and ds2 leds to PWM control. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/at91sam9rlek.dts | 90

[PATCH 1/2] ARM: at91/dt: sam9rl: add lcd, adc, usb gadget and pwm support

2014-04-15 Thread Alexandre Belloni
This patch adds support for the ADC, LCD, USB gadget and PWM controllers to the at91sam9rl. It also reorders the pinctrl_spi0 as it was not correctly sorted. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/at91sam9rl.dtsi | 265

Re: [PATCH 2/2] ARM: dts: berlin: add GPIO nodes for the BG2Q

2014-04-15 Thread Alexandre Belloni
-zero) values. And nr-gpios will always stay as fall-back just because e.g. sunxi does not have the CONFIG registers. Shouldn't that be use nr-gpios and if not available, read the CONFIG registers? Else, what about bogus registers ? -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel

Re: [PATCH 2/4] ARM: at91/dt: define sam9x5 clocks

2014-04-17 Thread Alexandre Belloni
; + clocks = usart3_clk; + clock-names = usart; status = disabled; }; }; -- 1.8.3.2 -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http

[PATCH] ASoC: tlv320aic31xx: document that the regulators are mandatory

2014-04-17 Thread Alexandre Belloni
The driver will not probe if regulators are not provided. Move the regulator properties to the required section. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- Documentation/devicetree/bindings/sound/tlv320aic31xx.txt | 6 +++--- 1 file changed, 3 insertions(+), 3

[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

<    1   2   3   4   5   6   7   8   9   10   >