-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
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
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
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
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
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
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
(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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
,
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
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
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
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
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
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
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
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
://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
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
___
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
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
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
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
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
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
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
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
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
,
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
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
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
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
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
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
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
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
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
.
- 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
;
+ clocks = usart3_clk;
+ clock-names = usart;
status = disabled;
};
};
--
1.8.3.2
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http
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
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
401 - 500 of 10184 matches
Mail list logo