[PATCH] gpio: pca953x: fix irq_domain_add_simple usage

2013-04-03 Thread Alexandre Belloni
(), pca953x_irq_unmask(), pca953x_irq_bus_lock(), pca953x_irq_bus_sync_unlock() and pca953x_irq_set_type(). Fixes regression introduced by commit 0e8f2fdacf1d44651aa7e57063c76142d1f4988b (gpio: pca953x: use simple irqdomain) Signed-off-by: Alexandre Belloni --- This would probably be good to introduce that patch

[PATCH] ARM: dts: cfa10036: Add touchscreen support to the CFA-10049

2013-04-05 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/imx28-cfa10049.dts |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/imx28-cfa10049.dts b/arch/arm/boot/dts/imx28-cfa10049.dts index b9dad4e..f16c1e2 100644 --- a/arch/arm/boot/dts/imx28-cfa10049.dts +++ b/arch

[PATCH] bq2415x_charger: fix max battery regulation voltage

2013-10-02 Thread Alexandre Belloni
As per the datasheets, maximum battery regulation voltage is 4440mV. The formula is (voltage - offset) / step, so the maximum value is: (4440 - 3500) / 20 = 47 Signed-off-by: Alexandre Belloni --- drivers/power/bq2415x_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCHv3 1/3] iio: Add Nuvoton NAU7802 ADC driver

2013-07-09 Thread Alexandre Belloni
Hi Jonathan, I don't actually see it in iio.git on kernel.org, am I doing something wrong ? On 06/07/2013 12:24, Jonathan Cameron wrote: > On 07/04/2013 10:08 AM, Lars-Peter Clausen wrote: >> On 06/24/2013 07:24 PM, Alexandre Belloni wrote: >>> The Nuvoton NAU7802 ADC is

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

2013-07-12 Thread Alexandre Belloni
Hi, On 01/07/2013 19:16, Alexandre Belloni wrote: > The mxs LRADC is able to read an internal die temperature sensor. The > temperature has to be calculated from the value read on channel 8 and channel > 9. > To be able to expose the result to hwmon, implement iio channel 8 as

Re: [PATCH 0/9] of/irq: Defer interrupt reference resolution

2013-09-17 Thread Alexandre Belloni
> up to new platform devices. This causes a similar issues as interrupt > resolution and should be fixable by extending the of_platform_probe() > function introduced in patch 7 of this series. I believe this will solve the issue I was hitting back in June where of_i2c_register_devic

Re: [PATCH v2] PWM: atmel-pwm: use request/free instead of enable/disable

2013-10-09 Thread Alexandre Belloni
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 08/10/2013 14:05, Thierry Reding wrote: > On Mon, Sep 30, 2013 at 05:22:33PM +0200, Alexandre Belloni wrote: >> I found that disabling a pwm while it is at a low level will actually put it >> back at a high level. The main sympt

Re: [PATCH v4] PWM: atmel-pwm: add PWM controller driver

2013-09-27 Thread Alexandre Belloni
RESOURCE_MEM, 0); > + if (!res) > + return -ENODEV; > + > + atmel_pwm->base = devm_ioremap_resource(&pdev->dev, res); > + > + atmel_pwm->clk = devm_clk_get(&pdev->dev, NULL); > + if (IS_ERR(atmel_pwm->clk)) > + return PTR_E

[PATCH] PWM: atmel-pwm: use request/free instead of enable/disable

2013-09-27 Thread Alexandre Belloni
using the request and free callbacks to enable and disable the pwm channels and the clock. Signed-off-by: Alexandre Belloni --- This patch applies after: [PATCH v4] PWM: atmel-pwm: add PWM controller driver drivers/pwm/pwm-atmel.c | 14 +- 1 file changed, 5 insertions(+), 9

Re: [PATCH] PWM: atmel-pwm: use request/free instead of enable/disable

2013-09-29 Thread Alexandre Belloni
On 29/09/2013 12:12, Bo Shen wrote: > Hi Alexandre, > > On 9/28/2013 04:10, Alexandre Belloni wrote: >> I found that disabling a pwm while it is at a low level will actually >> put it >> back at a high level. The main symptom is that leds-pwm is calling >> pwm_di

Re: [PATCH v4] PWM: atmel-pwm: add PWM controller driver

2013-09-29 Thread Alexandre Belloni
t same time fix this issue? I think it would be better that you fix that particular part in a v5 and I'll respin my patch for request/free based on that -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this l

[PATCH v2] PWM: atmel-pwm: use request/free instead of enable/disable

2013-09-30 Thread Alexandre Belloni
using the request and free callbacks to enable and disable the pwm channels and the clock. Signed-off-by: Alexandre Belloni --- Applies on [PATCH v5] PWM: atmel-pwm: add PWM controller driver Changes in v2: - add dummies pwm_enable and pwm_disable to be able to register the pwm chip. drivers

Re: [PATCH v5] PWM: atmel-pwm: add PWM controller driver

2013-09-30 Thread Alexandre Belloni
On 30/09/2013 11:10, Bo Shen wrote: > Add Atmel PWM controller driver based on PWM framework. > > This is the basic function implementation of Atmel PWM controller. > It can work with PWM based led and backlight. > > Signed-off-by: Bo Shen Acked-by: Alexandre Belloni >

Re: [PATCH v3 2/5] ARM: dts: add reference voltage property for MXS LRADC

2013-09-23 Thread Alexandre Belloni
> Paweł >> >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-iio" in >> the body of a message to majord...@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> -- Alexandre Belloni, Free Electrons E

[PATCH] ARM: at91: sama5d: add the PWM clock

2013-09-24 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/sama5d3.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-at91/sama5d3.c b/arch/arm/mach-at91/sama5d3.c index 4012797..8e43e8d 100644 --- a/arch/arm/mach-at91/sama5d3.c +++ b/arch/arm/mach-at91/sama5d3.c @@ -241,6

Re: [PATCH v4] PWM: atmel-pwm: add PWM controller driver

2013-09-25 Thread Alexandre Belloni
t; Signed-off-by: Bo Shen > > It seems simple and nice. > > Acked-by: Nicolas Ferre Tested on a sama5d31 board with leds-pwm. Tested-by: Alexandre Belloni > -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To

[PATCH 0/3] Add support for the Nuvoton NAU7802 ADC to the cfa10049

2013-04-18 Thread Alexandre Belloni
, Alexandre Belloni (1): iio: Add Nuvoton NAU7802 ADC driver Maxime Ripard (2): ARM: mxs: cfa10049: Switch bus i2c1 to bitbanging ARM: mxs: cfa10049: Add NAU7802 ADCs to the device tree .../bindings/iio/adc/nuvoton-nau7802.txt | 17 + arch/arm/boot/dts/imx28-cfa10049.dts

[PATCH 3/3] ARM: mxs: cfa10049: Add NAU7802 ADCs to the device tree

2013-04-18 Thread Alexandre Belloni
From: Maxime Ripard Since these ADCs share the same non-configurable address on the I2C bus, they have to be put behind a muxer. Signed-off-by: Alexandre Belloni Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/imx28-cfa10049.dts | 18 ++ 1 file changed, 18 insertions

[PATCH 1/3] iio: Add Nuvoton NAU7802 ADC driver

2013-04-18 Thread Alexandre Belloni
The Nuvoton NAU7802 ADC is a 24-bit 2-channels I2C ADC, with adjustable gain and sampling rates. Signed-off-by: Alexandre Belloni Signed-off-by: Maxime Ripard --- .../bindings/iio/adc/nuvoton-nau7802.txt | 17 + drivers/iio/adc/Kconfig|9 + drivers

[PATCH 2/3] ARM: mxs: cfa10049: Switch bus i2c1 to bitbanging

2013-04-18 Thread Alexandre Belloni
From: Maxime Ripard The ADCs connected to this bus have been experiencing some timeout issues when using the iMX28 i2c controller. Switching back to bitbanging solves this. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/imx28-cfa10049.dts | 108 -- 1 file c

Re: [PATCH 1/3] iio: Add Nuvoton NAU7802 ADC driver

2013-04-20 Thread Alexandre Belloni
of_property_read_u32(np, "nuvoton,vldo", &tmp); >> +st->vref_mv = tmp; >> + >> +data = NAU7802_PUCTRL_PUD_BIT | NAU7802_PUCTRL_PUA_BIT | >> +NAU7802_PUCTRL_CS_BIT; >> +if (tmp >= 2400) >> +data |= NAU7802_PUCTRL_AVDDS_BIT;

Re: [PATCH v3] ARM: at91: Fix link breakage when !CONFIG_PHYLIB

2013-06-04 Thread Alexandre Belloni
rks as it is always called from arch/ and is clearly not fool proofed enough. Maybe DT could help ? Arnd, do you have any input ? -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "u

Re: [PATCHv2 1/3] net: phy: prevent linking breakage

2013-06-05 Thread Alexandre Belloni
tting more platforms getting it wrong. I think it boils down to who wants to take the maintenance burden. I would believe that doing it in phylib is more future proof. But I'm fine with whatever the consensus will be. However, it is becoming urgent for Atmel to get the fix in 3.10 so that t

[PATCHv4] ARM: at91: Fix link breakage when !CONFIG_PHYLIB

2013-06-05 Thread Alexandre Belloni
ce to `mdiobus_write' arch/arm/mach-at91/built-in.o: In function `sama5_dt_device_init': :(.init.text+0x1e34): undefined reference to `phy_register_fixup_for_uid' when CONFIG_PHYLIB is not selected. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/Kconfig | 1 + arch

Re: [Arm-netbook] getting allwinner SoC support upstream (was Re: Uploading linux (3.9.4-1))

2013-06-07 Thread Alexandre Belloni
hat Allwinner will never be able to get code in the mainline after Olof and Maxime told you that they are already working, at least discussing with them. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this lis

[PATCHv2 3/3] ARM: mxs: cfa10049: Add NAU7802 ADCs to the device tree

2013-06-20 Thread Alexandre Belloni
From: Maxime Ripard Since these ADCs share the same non-configurable address on the I2C bus, they have to be put behind a muxer. Signed-off-by: Alexandre Belloni Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/imx28-cfa10049.dts | 18 ++ 1 file changed, 18 insertions

[PATCHv2 2/3] ARM: mxs: cfa10049: Switch bus i2c1 to bitbanging

2013-06-20 Thread Alexandre Belloni
From: Maxime Ripard The ADCs connected to this bus have been experiencing some timeout issues when using the iMX28 i2c controller. Switching back to bitbanging solves this. Signed-off-by: Maxime Ripard Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/imx28-cfa10049.dts | 108

[PATCHv2 1/3] iio: Add Nuvoton NAU7802 ADC driver

2013-06-20 Thread Alexandre Belloni
The Nuvoton NAU7802 ADC is a 24-bit 2-channels I2C ADC, with adjustable gain and sampling rates. Signed-off-by: Alexandre Belloni Signed-off-by: Maxime Ripard --- .../bindings/iio/adc/nuvoton-nau7802.txt | 17 + drivers/iio/adc/Kconfig| 9 + drivers/iio

[PATCHv2 0/3] Add support for the Nuvoton NAU7802 ADC to the cfa10049

2013-06-20 Thread Alexandre Belloni
ult but I don't have any hardware to test. Regards, Alexandre Belloni (1): iio: Add Nuvoton NAU7802 ADC driver Maxime Ripard (2): ARM: mxs: cfa10049: Switch bus i2c1 to bitbanging ARM: mxs: cfa10049: Add NAU7802 ADCs to the device tree .../bindings/iio/adc/nuvoton-nau7802.txt

[PATCH 2/2] fb: backlight: HX8357: Add HX8369 support

2013-06-21 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni --- drivers/video/backlight/hx8357.c | 183 +-- 1 file changed, 175 insertions(+), 8 deletions(-) diff --git a/drivers/video/backlight/hx8357.c b/drivers/video/backlight/hx8357.c index 69f5672..b1c4042 100644 --- a/drivers

[PATCH 1/2] fb: backlight: HX8357: Make IM pins optionnal

2013-06-21 Thread Alexandre Belloni
From: Maxime Ripard Signed-off-by: Alexandre Belloni Signed-off-by: Maxime Ripard --- drivers/video/backlight/hx8357.c | 53 +++- 1 file changed, 31 insertions(+), 22 deletions(-) diff --git a/drivers/video/backlight/hx8357.c b/drivers/video/backlight

Re: [PATCHv2 1/3] iio: Add Nuvoton NAU7802 ADC driver

2013-06-22 Thread Alexandre Belloni
On 22/06/2013 14:02, Lars-Peter Clausen wrote: > On 06/22/2013 01:55 PM, Jonathan Cameron wrote: >> On 06/20/2013 07:57 PM, Alexandre Belloni wrote: >>> The Nuvoton NAU7802 ADC is a 24-bit 2-channels I2C ADC, with adjustable >>> gain and sampling rates. >>> >

Re: [PATCHv2 1/3] iio: Add Nuvoton NAU7802 ADC driver

2013-06-22 Thread Alexandre Belloni
On 22/06/2013 15:20, Lars-Peter Clausen wrote: > On 06/22/2013 03:07 PM, Alexandre Belloni wrote: >> On 22/06/2013 14:02, Lars-Peter Clausen wrote: >>> On 06/22/2013 01:55 PM, Jonathan Cameron wrote: >>>> On 06/20/2013 07:57 PM, Alexandre Belloni wrote: >>>&

Re: [PATCHv2 1/3] iio: Add Nuvoton NAU7802 ADC driver

2013-06-24 Thread Alexandre Belloni
On 24/06/2013 08:41, Lars-Peter Clausen wrote: > On 06/20/2013 08:57 PM, Alexandre Belloni wrote: >> The Nuvoton NAU7802 ADC is a 24-bit 2-channels I2C ADC, with adjustable >> gain and sampling rates. >> >> Signed-off-by: Alexandre Belloni >> Signed-off-by: Maxim

[PATCHv2 0/2] HX8357 driver improvement

2013-06-24 Thread Alexandre Belloni
-10055 (hx8357) and CFA-10056 (hx8369). Alexandre Belloni (1): fb: backlight: HX8357: Add HX8369 support Maxime Ripard (1): video: hx8357: Make IM pins optional drivers/video/backlight/hx8357.c | 256 +-- 1 file changed, 219 insertions(+), 37 deletions

[PATCHv2 1/2] video: hx8357: Make IM pins optional

2013-06-24 Thread Alexandre Belloni
From: Maxime Ripard The IM pins of the HX8357 controller are used to define the interface used to feed pixel stream to the LCD panel. Most of the time, these pins are directly routed to either the ground or the VCC to set their values. Remove the need to assign GPIOs to these pins when we are i

[PATCHv2 2/2] fb: backlight: HX8357: Add HX8369 support

2013-06-24 Thread Alexandre Belloni
Add support for the Himax HX8369 controller as it is quite similar to the hx8357. Signed-off-by: Alexandre Belloni --- changes since v1: - use the data element of of_device_id to select the correct initialization function drivers/video/backlight/hx8357.c | 203

[PATCHv3 3/3] ARM: mxs: cfa10049: Add NAU7802 ADCs to the device tree

2013-06-24 Thread Alexandre Belloni
From: Maxime Ripard Since these ADCs share the same non-configurable address on the I2C bus, they have to be put behind a muxer. Signed-off-by: Alexandre Belloni Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/imx28-cfa10049.dts | 18 ++ 1 file changed, 18 insertions

[PATCHv3 1/3] iio: Add Nuvoton NAU7802 ADC driver

2013-06-24 Thread Alexandre Belloni
The Nuvoton NAU7802 ADC is a 24-bit 2-channels I2C ADC, with adjustable gain and sampling rates. Signed-off-by: Alexandre Belloni Signed-off-by: Maxime Ripard --- .../bindings/iio/adc/nuvoton-nau7802.txt | 18 + drivers/iio/adc/Kconfig| 9 + drivers/iio

[PATCHv3 0/3] Add support for the Nuvoton NAU7802 ADC to the cfa10049

2013-06-24 Thread Alexandre Belloni
n the DT as Jonathan seemed to be ok with that. If anybody is using a nau7802 with an external reference, it will still be time to add the fixed regulator. It shouldn't be difficult but I don't have any hardware to test. Regards, Alexandre Belloni (1): iio: Add Nuvoton NAU7802 ADC

[PATCHv3 2/3] ARM: mxs: cfa10049: Switch bus i2c1 to bitbanging

2013-06-24 Thread Alexandre Belloni
From: Maxime Ripard The ADCs connected to this bus have been experiencing some timeout issues when using the iMX28 i2c controller. Switching back to bitbanging solves this. Signed-off-by: Maxime Ripard Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/imx28-cfa10049.dts | 108

Re: [PATCHv2 1/3] iio: Add Nuvoton NAU7802 ADC driver

2013-06-24 Thread Alexandre Belloni
On 24/06/2013 18:41, Lars-Peter Clausen wrote: > Ah, ok, makes sense. > I just sent v3, thanks for your reviews ! -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubs

[PATCH 2/4] arm: mxs: add lradc to cfa10036

2013-06-26 Thread Alexandre Belloni
The lradc is actually available on the Crystalfontz cfa-10036. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/imx28-cfa10036.dts | 4 arch/arm/boot/dts/imx28-cfa10049.dts | 1 - arch/arm/boot/dts/imx28-cfa10055.dts | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH 1/4] arm: mxs: Add #io-channel-cells property to lradc

2013-06-26 Thread Alexandre Belloni
Adding #io-channel-cells property to lradc allows us to use the lradc as an iio provider. Signed-off-by: Alexandre Belloni --- 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 600f7cb..9a7feeb

[PATCH 0/4] Add an hwmon driver for the mxs soc internal sensor

2013-06-26 Thread Alexandre Belloni
defines the lradc as present on the cfa-10036 and thus removes it from i.mx28-cfa10049.dts and imx28-cfa10055.dts as they both include imx28-cfa10036.dts The third patch adds the driver itself. And the final patch adds the driver bindings to the cfa-10036. Alexandre Belloni (4): arm: mxs: Add #io

[PATCH 3/4] hwmon: Add a simple driver to read the MXS SoC temperature

2013-06-26 Thread Alexandre Belloni
The low resolution ADC of the mxs is able to read an internal temperature sensor, expose that using hwmon. Signed-off-by: Alexandre Belloni --- .../devicetree/bindings/hwmon/mxs-cputemp.txt | 18 +++ Documentation/hwmon/mxs-cputemp| 29 + drivers/hwmon/Kconfig

[PATCH 4/4] arm: mxs: Add mxs internal temp sensor to cfa-10036

2013-06-26 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/imx28-cfa10036.dts | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx28-cfa10036.dts b/arch/arm/boot/dts/imx28-cfa10036.dts index 802e0e9..5afb945 100644 --- a/arch/arm/boot/dts/imx28-cfa10036

[PATCH] iio: Fix iio_channel_has_info

2013-07-01 Thread Alexandre Belloni
Since the info_mask split, iio_channel_has_info() is not working correctly. info_mask_separate and info_mask_shared_by_type, it is not possible to compare them directly with the iio_chan_info_enum enum. Correct that bit using the BIT() macro. Cc: # 3.10.x Signed-off-by: Alexandre Belloni

[PATCH] iio: inkern: fix iio_convert_raw_to_processed_unlocked

2013-07-01 Thread Alexandre Belloni
When reading IIO_CHAN_INFO_OFFSET, the return value of iio_channel_read() for success will be IIO_VAL*, checking for 0 is not correct. Cc: # 3.10.x Signed-off-by: Alexandre Belloni --- drivers/iio/inkern.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/inkern.c

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

2013-07-01 Thread Alexandre Belloni
IIO_CHAN_INFO_OFFSET so that it can be processed by hwmon through the in kernel provider/consumer mechanism. Signed-off-by: Alexandre Belloni --- drivers/staging/iio/adc/mxs-lradc.c | 99 ++--- 1 file changed, 82 insertions(+), 17 deletions(-) diff --git a/drivers/staging/iio

Re: [PATCHv3 2/3] ARM: mxs: cfa10049: Switch bus i2c1 to bitbanging

2013-07-02 Thread Alexandre Belloni
>; #size-cells = <0>; adc0: nau7802@2a { compatible = "nuvoton,nau7802"; reg = <0x2a>; nuvoton,vldo = <3000>; }; }; [...] -- Alexandre

Re: [PATCHv3 2/3] ARM: mxs: cfa10049: Switch bus i2c1 to bitbanging

2013-07-02 Thread Alexandre Belloni
On 02/07/2013 13:45, Fabio Estevam wrote: > Shouldn't this be > > i2c@1 { > reg = <1>; ? > No, we have 4 devices on that mux and 2 pins to select the muxing. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Andro

Re: [PATCHv3 2/3] ARM: mxs: cfa10049: Switch bus i2c1 to bitbanging

2013-07-02 Thread Alexandre Belloni
On 02/07/2013 13:50, Alexandre Belloni wrote: > On 02/07/2013 13:45, Fabio Estevam wrote: > >> Shouldn't this be >> >> i2c@1 { >> reg = <1>; ? >> > > No, we have 4 devices on that mux and 2 pins to select the muxing.

Re: [PATCHv3 2/3] ARM: mxs: cfa10049: Switch bus i2c1 to bitbanging

2013-07-02 Thread Alexandre Belloni
On 02/07/2013 18:33, Marek Vasut wrote: > Dear Alexandre Belloni, > >> On 02/07/2013 13:50, Alexandre Belloni wrote: >>> On 02/07/2013 13:45, Fabio Estevam wrote: >>>> Shouldn't this be >>>> >>>> i2c@1 { >>>>

[PATCH] i2c: mxs: Better error handling

2013-07-03 Thread Alexandre Belloni
-ENXIO. In that case, we want to go through the MXS_I2C_CTRL1_CLR_GOT_A_NAK before returning. Signed-off-by: Alexandre Belloni --- drivers/i2c/busses/i2c-mxs.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c

Re: [PATCHv3 2/3] ARM: mxs: cfa10049: Switch bus i2c1 to bitbanging

2013-07-07 Thread Alexandre Belloni
On 06/07/2013 12:26, Jonathan Cameron wrote: > On 06/24/2013 06:24 PM, Alexandre Belloni wrote: >> From: Maxime Ripard >> >> The ADCs connected to this bus have been experiencing some timeout >> issues when using the iMX28 i2c controller. Switching back to bitbanging &

[PATCH 2/3] ARM: mxs: dt: Add Crystalfontz CFA-10056 device tree

2013-06-26 Thread Alexandre Belloni
From: Brian Lilly The CFA-10056 is a breakout board for the CFA-10036, and is basically a CFA-10037, with ai 4.3" screen. Signed-off-by: Brian Lilly Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx28-cfa10056.dts

[PATCH 3/3] ARM: mxs: dt: Add Crystalfontz CFA-10058 device tree

2013-06-26 Thread Alexandre Belloni
From: Brian Lilly The CFA-10057 is a breakout board for the CFA-10036 that has Ethernet, USB and a 5" LCD screen on it. Signed-off-by: Brian Lilly Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx28-cfa10058.dts

[PATCH 0/3] ARM: mxs: Various Crystalfontz DT additions

2013-06-26 Thread Alexandre Belloni
Hi, This patch series add DT for the Crystalfontz CFA-10056 and Crystalfontz CFA-10058. The first patch simplifies board detection in mach-mxs.c as suggested by Thomas Petazzoni in his review of the precedent DT additions. The next patches are ading the DTs. Thanks, Alexandre Alexandre

[PATCH 1/3] ARM: mxs: Simplify detection of CrystalFontz boards

2013-06-26 Thread Alexandre Belloni
As all CrystalFontz boards are compatible with "crystalfontz,cfa10036", make it easier to add future boards. Signed-off-by: Alexandre Belloni --- arch/arm/mach-mxs/mach-mxs.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm/mach-mxs/mach-mxs.c b/arch/ar

[PATCHv2 1/3] ARM: mxs: Simplify detection of CrystalFontz boards

2013-06-26 Thread Alexandre Belloni
As all CrystalFontz boards are compatible with "crystalfontz,cfa10036", make it easier to add future boards. Signed-off-by: Alexandre Belloni --- arch/arm/mach-mxs/mach-mxs.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm/mach-mxs/mach-mxs.c b/arch/ar

[PATCHv2 0/3] ARM: mxs: Various Crystalfontz DT additions

2013-06-26 Thread Alexandre Belloni
the review from Maxime Ripard Thanks, Alexandre Alexandre Belloni (1): ARM: mxs: Simplify detection of CrystalFontz boards Brian Lilly (2): ARM: mxs: dt: Add Crystalfontz CFA-10056 device tree ARM: mxs: dt: Add Crystalfontz CFA-10058 device tree arch/arm/boot/dts/Makefile | 2

[PATCHv2 2/3] ARM: mxs: dt: Add Crystalfontz CFA-10056 device tree

2013-06-26 Thread Alexandre Belloni
From: Brian Lilly The CFA-10056 is a breakout board for the CFA-10036, and is basically a CFA-10037, with a 4.3" screen. Signed-off-by: Brian Lilly Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx28-cfa10056.dts

[PATCHv2 3/3] ARM: mxs: dt: Add Crystalfontz CFA-10058 device tree

2013-06-26 Thread Alexandre Belloni
From: Brian Lilly The CFA-10057 is a breakout board for the CFA-10036 that has Ethernet, USB and a 5" LCD screen on it. Signed-off-by: Brian Lilly Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx28-cfa10058.dts

Re: [PATCH 3/4] hwmon: Add a simple driver to read the MXS SoC temperature

2013-06-27 Thread Alexandre Belloni
Hi, On 27/06/2013 16:27, Guenter Roeck wrote: > On Thu, Jun 27, 2013 at 11:17:32AM +0200, Maxime Ripard wrote: >> On Wed, Jun 26, 2013 at 07:39:27AM -0700, Guenter Roeck wrote: >>> On Wed, Jun 26, 2013 at 10:51:12AM +0200, Alexandre Belloni wrote: >>>> The low resolu

[PATCHv3 8/8] ARM: mxs: dt: cfa10057: remove hogpins

2013-06-28 Thread Alexandre Belloni
Necessary pins are now grabbed by respective drivers. Unecessary hogpins are simply removed. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/imx28-cfa10057.dts | 23 +++ 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/arch/arm/boot/dts/imx28-cfa10057

[PATCHv3 0/8] ARM: mxs: Various Crystalfontz DT additions

2013-06-28 Thread Alexandre Belloni
up the remaining boards DTs. Changes in v3 - Cleaned up all the DTs for crystalfontz boards. Changes in v2: - took into account the review from Maxime Ripard Thanks, Alexandre Belloni (6): ARM: mxs: Simplify detection of CrystalFontz boards ARM: mxs: dt: cfa10036: make hogpins grabbed by

[PATCHv3 3/8] ARM: mxs: dt: Add Crystalfontz CFA-10058 device tree

2013-06-28 Thread Alexandre Belloni
From: Brian Lilly The CFA-10058 is a breakout board for the CFA-10036 that has Ethernet, USB and a 5" LCD screen on it. Signed-off-by: Brian Lilly Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx28-cfa10058.dts

[PATCHv3 7/8] ARM: mxs: dt: cfa10055: make hogpins grabbed by respective drivers

2013-06-28 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/imx28-cfa10055.dts | 38 1 file changed, 13 insertions(+), 25 deletions(-) diff --git a/arch/arm/boot/dts/imx28-cfa10055.dts b/arch/arm/boot/dts/imx28-cfa10055.dts index 1581112..171bcbe 100644 --- a

[PATCHv3 5/8] ARM: mxs: dt: cfa10037: make hogpins grabbed by respective drivers

2013-06-28 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/imx28-cfa10037.dts | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/imx28-cfa10037.dts b/arch/arm/boot/dts/imx28-cfa10037.dts index c2ef3a3..182b99f 100644 --- a/arch/arm/boot/dts

[PATCHv3 6/8] ARM: mxs: dt: cfa10049: make hogpins grabbed by respective drivers

2013-06-28 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/imx28-cfa10049.dts | 73 +++- 1 file changed, 63 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/imx28-cfa10049.dts b/arch/arm/boot/dts/imx28-cfa10049.dts index 04b2f76..06e4cfa 100644 --- a

[PATCHv3 4/8] ARM: mxs: dt: cfa10036: make hogpins grabbed by respective drivers

2013-06-28 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/imx28-cfa10036.dts | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/imx28-cfa10036.dts b/arch/arm/boot/dts/imx28-cfa10036.dts index 94c4476..1ec8c94 100644 --- a/arch/arm/boot/dts/imx28-cfa10036

[PATCHv3 2/8] ARM: mxs: dt: Add Crystalfontz CFA-10056 device tree

2013-06-28 Thread Alexandre Belloni
From: Brian Lilly The CFA-10056 is a breakout board for the CFA-10036, and is basically a CFA-10037, with a 4.3" screen. Signed-off-by: Brian Lilly Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx28-cfa10056.dts

[PATCHv3 1/8] ARM: mxs: Simplify detection of CrystalFontz boards

2013-06-28 Thread Alexandre Belloni
As all CrystalFontz boards are compatible with "crystalfontz,cfa10036", make it easier to add future boards. Signed-off-by: Alexandre Belloni Acked-by: Maxime Ripard --- arch/arm/mach-mxs/mach-mxs.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm/mac

Re: [PATCH 3/4] hwmon: Add a simple driver to read the MXS SoC temperature

2013-06-28 Thread Alexandre Belloni
On 28/06/2013 16:18, Lars-Peter Clausen wrote: > On 06/27/2013 09:26 PM, Alexandre Belloni wrote: >> >> They are already registered as IIO_TEMP but only implement read_raw. Also, >> >> iio_hwmon_read_val() is using iio_read_channel_processed() and that will >>

Re: [PATCHv3 5/8] ARM: mxs: dt: cfa10037: make hogpins grabbed by respective drivers

2013-06-30 Thread Alexandre Belloni
red them the other way around: first the > breakout board, then the 10036. Do you want me to send a reordered serie or will you do it when applying the patches ? You can just apply patch 4/8 last. thanks, - -- Alexandre Belloni, Free Electrons Embed

Re: [PATCHv3 5/8] ARM: mxs: dt: cfa10037: make hogpins grabbed by respective drivers

2013-07-01 Thread Alexandre Belloni
On 01/07/2013 11:06, Shawn Guo wrote: > On Sun, Jun 30, 2013 at 06:11:16PM +0200, Alexandre Belloni wrote: >> Do you want me to send a reordered serie or will you do it when applying >> the patches ? You can just apply patch 4/8 last. > > Please resend, since you have some co

[PATCHv4 5/8] ARM: mxs: dt: cfa10049: make hogpins grabbed by respective drivers

2013-07-01 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni Acked-by: Maxime Ripard --- arch/arm/boot/dts/imx28-cfa10049.dts | 73 +++- 1 file changed, 63 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/imx28-cfa10049.dts b/arch/arm/boot/dts/imx28-cfa10049.dts index 04b2f76

[PATCHv4 4/8] ARM: mxs: dt: cfa10037: make hogpins grabbed by respective drivers

2013-07-01 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni Acked-by: Maxime Ripard --- arch/arm/boot/dts/imx28-cfa10037.dts | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/imx28-cfa10037.dts b/arch/arm/boot/dts/imx28-cfa10037.dts index c2ef3a3..182b99f 100644

[PATCHv4 8/8] ARM: mxs: dt: cfa10036: make hogpins grabbed by respective drivers

2013-07-01 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni Acked-by: Maxime Ripard --- arch/arm/boot/dts/imx28-cfa10036.dts | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/imx28-cfa10036.dts b/arch/arm/boot/dts/imx28-cfa10036.dts index 94c4476..1ec8c94 100644 --- a/arch/arm

[PATCHv4 0/8] ARM: mxs: Various Crystalfontz DT additions

2013-07-01 Thread Alexandre Belloni
up the remaining boards DTs. Changes in v4 - corrected comment for cfa-10056 and made it cfa-10037 compatible - reordered patches Changes in v3 - Cleaned up all the DTs for crystalfontz boards. Changes in v2: - took into account the review from Maxime Ripard Thanks, Alexandre Belloni (6

[PATCHv4 6/8] ARM: mxs: dt: cfa10055: make hogpins grabbed by respective drivers

2013-07-01 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni Acked-by: Maxime Ripard --- arch/arm/boot/dts/imx28-cfa10055.dts | 38 1 file changed, 13 insertions(+), 25 deletions(-) diff --git a/arch/arm/boot/dts/imx28-cfa10055.dts b/arch/arm/boot/dts/imx28-cfa10055.dts index 1581112

[PATCHv4 7/8] ARM: mxs: dt: cfa10057: remove hogpins

2013-07-01 Thread Alexandre Belloni
Necessary pins are now grabbed by respective drivers. Unecessary hogpins are simply removed. Signed-off-by: Alexandre Belloni Acked-by: Maxime Ripard --- arch/arm/boot/dts/imx28-cfa10057.dts | 23 +++ 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/arch/arm

[PATCHv4 1/8] ARM: mxs: Simplify detection of CrystalFontz boards

2013-07-01 Thread Alexandre Belloni
As all CrystalFontz boards are compatible with "crystalfontz,cfa10036", make it easier to add future boards. Signed-off-by: Alexandre Belloni Acked-by: Maxime Ripard --- arch/arm/mach-mxs/mach-mxs.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm/mac

[PATCHv4 3/8] ARM: mxs: dt: Add Crystalfontz CFA-10058 device tree

2013-07-01 Thread Alexandre Belloni
From: Brian Lilly The CFA-10058 is a breakout board for the CFA-10036 that has Ethernet, USB and a 5" LCD screen on it. Signed-off-by: Brian Lilly Signed-off-by: Alexandre Belloni Acked-by: Maxime Ripard --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx28-cfa1005

[PATCHv4 2/8] ARM: mxs: dt: Add Crystalfontz CFA-10056 device tree

2013-07-01 Thread Alexandre Belloni
From: Brian Lilly The CFA-10056 is a breakout board for the CFA-10036, and is basically a CFA-10037, with a 4.3" screen. Signed-off-by: Brian Lilly Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx28-cfa10056.dts

Re: [PATCH] i2c: mxs: Better error handling

2013-08-15 Thread Alexandre Belloni
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Wolfram, On 15/08/2013 12:03, Wolfram Sang wrote: > On Wed, Jul 03, 2013 at 10:59:22AM +0200, Alexandre Belloni wrote: >> This patch fixes two error handling cases in mxs_i2c_xfer_msg(): >> >> - in PIO mode, mxs_i2c_pio_se

Re: [PATCHv2 3/3] fb: backlight: HX8357: Add HX8369 support

2013-07-31 Thread Alexandre Belloni
Hi, On 26/07/2013 01:52, Jingoo Han wrote: > On Thursday, July 25, 2013 10:05 PM, Maxime Ripard wrote: >> From: Alexandre Belloni >> >> Add support for the Himax HX8369 controller as it is quite similar to the >> hx8357. >> >> Signed-off-by: Alexandre B

Re: [PATCH] pinctrl: at91: choose appropriate handler for level interrupts

2013-08-01 Thread Alexandre Belloni
this case we have to use 'handle_level_irq' which > mask the interrupt until the handle has treated it. > > Signed-off-by: Boris BREZILLON This solves the issue on my side. Tested-by: Alexandre Belloni -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering

[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

[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

Re: [PATCH v3 2/5] ARM: dts: add reference voltage property for MXS LRADC

2013-08-21 Thread Alexandre Belloni
ew, the divider that is before the mux (the by 4 divider on channel 3 on my drawing) is not part of the the ADC, it is not fixed by that IP. And indeed, that changed between the i.mx23 and i.mx28 while the IP is the same. So, the two solutions you suggest are: 1/ using a fixed-regulator phandle per cha

Re: [PATCH v3 4/5] iio: mxs-lradc: add scale_available file to channels

2013-08-07 Thread Alexandre Belloni
ou'll take this series as is ? Regards, On 26/07/2013 18:13, Jonathan Cameron wrote: > > Alexandre Belloni wrote: >> On 23/07/2013 15:25, Hector Palacios wrote: >>> Dear Lars, >>> >>> On 07/23/2013 10:46 AM, Lars-Peter Clausen wrote: &

Re: [PATCH v2 3/5] iio: mxs-lradc: add scale attribute to channels

2013-07-19 Thread Alexandre Belloni
ng those. Also, in my patch, I was passing channel->chan as an int but I don't see any drawbacks of passing a pointer to the struct iio_chan_spec. As a note, I'm waiting for your patch to get included so that we won't get any conflicts. Regards, -- Alexandre Belloni, Free Electrons Em

Re: [PATCH v2 4/5] iio: mxs-lradc: add scale_available file to channels

2013-07-19 Thread Alexandre Belloni
ctor Palacios Looks good to me: Acked-by: Alexandre Belloni And you are right, we will probably need to hide the 64bits math. I'll try to think of something. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe fro

Re: [PATCH v2 1/5] iio: mxs-lradc: change the realbits to 12

2013-07-19 Thread Alexandre Belloni
0 > and 0x3 (18 bits), instead of between 0 and 0xfff (12 bits). > > Signed-off-by: Hector Palacios > --- > Looks good to me: Acked-by: Alexandre Belloni -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To un

Re: [PATCH v2 2/5] ARM: dts: add reference voltage property for MXS LRADC

2013-07-19 Thread Alexandre Belloni
f a measured sample value. > > Signed-off-by: Hector Palacios Acked-by: Alexandre Belloni -- 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

Re: [PATCH v2 5/5] iio: mxs-lradc: add write_raw function to modify scale

2013-07-19 Thread Alexandre Belloni
On 19/07/2013 11:13, Hector Palacios wrote: > 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 Looks good to me: Acked-by: Alexandre Belloni -- Alexandre Belloni, Fr

Re: [PATCH v3 2/5] ARM: dts: add reference voltage property for MXS LRADC

2013-07-26 Thread Alexandre Belloni
f an IP block by describing heaps of registers in the DT. It may look ugly here because you have a lot of channels but I find that quite acceptable. Regards, -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this

Re: [PATCH v3 4/5] iio: mxs-lradc: add scale_available file to channels

2013-07-26 Thread Alexandre Belloni
able.dev_attr.attr, >>> +&iio_dev_attr_in_voltage14_scale_available.dev_attr.attr, >>> +&iio_dev_attr_in_voltage15_scale_available.dev_attr.attr, >>> +NULL >>> +}; >> >> This should really be using the iio_chan_spec_ext_info >>

  1   2   3   4   5   6   7   8   9   10   >