Re: [PATCH v2 0/2] I2C support for NXP LPC18xx family

2015-08-19 Thread Joachim Eastwood
On 19 August 2015 at 17:18, Wolfram Sang w...@the-dreams.de wrote: On Sun, Aug 16, 2015 at 08:10:15PM +0200, Joachim Eastwood wrote: This patch set adds a I2C driver and documentation for the I2C peripheral found on many NXP LPC MCUs. The driver is a rework of an old driver by Kevin Wells

Re: [PATCH v2 1/2] i2c: add i2c-lpc2k driver

2015-08-17 Thread Joachim Eastwood
On 17 August 2015 at 22:18, Ezequiel Garcia ezequ...@vanguardiasur.com.ar wrote: On 16 Aug 08:10 PM, Joachim Eastwood wrote: [..] + +static int 2(struct lpc2k_i2c *i2c) +{ + unsigned long timeout = jiffies + msecs_to_jiffies(1000); + + /*1 + * If the transfer needs to abort

[PATCH v2 0/2] I2C support for NXP LPC18xx family

2015-08-16 Thread Joachim Eastwood
i2c_add_adapter - change return value on NACK and arb lost (I think all the others should be okay as they are) - fix 80 char warnings (involved s/reg_base/base) - rebase on i2c/for-next Joachim Eastwood (2): i2c: add i2c-lpc2k driver doc: dt: add documentation for nxp,lpc1788-i2c .../devicetree

[PATCH v2 2/2] doc: dt: add documentation for nxp,lpc1788-i2c

2015-08-16 Thread Joachim Eastwood
Add binding documentation for the nxp,lpc1788-i2c controller which also can be found on LPC2xxx, LPC178x/7x and LPC18xx/43xx devices. Signed-off-by: Joachim Eastwood manab...@gmail.com --- .../devicetree/bindings/i2c/i2c-lpc2k.txt | 33 ++ 1 file changed, 33

[PATCH v2 1/2] i2c: add i2c-lpc2k driver

2015-08-16 Thread Joachim Eastwood
, programmable clock rate, and speeds up to 1 Mbit/s. Signed-off-by: Joachim Eastwood manab...@gmail.com --- drivers/i2c/busses/Kconfig | 10 + drivers/i2c/busses/Makefile| 1 + drivers/i2c/busses/i2c-lpc2k.c | 513 + 3 files changed, 524

Re: [PATCH 1/2] i2c: add i2c-lpc2k driver

2015-08-15 Thread Joachim Eastwood
Hi Wolfram, On 15 August 2015 at 22:24, Wolfram Sang w...@the-dreams.de wrote: On Mon, Jul 13, 2015 at 12:47:21AM +0200, Joachim Eastwood wrote: Add support for the I2C controller found on several NXP devices including LPC2xxx, LPC178x/7x and LPC18xx/43xx. The controller is implemented

[PATCH 2/2] doc: dt: add documentation for i2c-lpc2k

2015-07-12 Thread Joachim Eastwood
Add binding documentation for the nxp,lpc1788-i2c controller which also can be found on LPC2xxx, LPC178x/7x and LPC18xx/43xx devices. Signed-off-by: Joachim Eastwood manab...@gmail.com --- .../devicetree/bindings/i2c/i2c-lpc2k.txt | 33 ++ 1 file changed, 33

[PATCH 1/2] i2c: add i2c-lpc2k driver

2015-07-12 Thread Joachim Eastwood
, programmable clock rate, and speeds up to 1 Mbit/s. Signed-off-by: Joachim Eastwood manab...@gmail.com --- drivers/i2c/busses/Kconfig | 10 + drivers/i2c/busses/Makefile| 1 + drivers/i2c/busses/i2c-lpc2k.c | 551 + 3 files changed, 562

Re: [PATCH] i2c: at91: add of_device_id entry for at91rm9200

2013-01-24 Thread Joachim Eastwood
On 24 January 2013 08:58, ludovic.desroches ludovic.desroc...@atmel.com wrote: Hi, On 01/24/2013 08:27 AM, Wolfram Sang wrote: On Tue, Dec 18, 2012 at 07:02:32AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 22:42 Wed 05 Dec , Joachim Eastwood wrote: Signed-off-by: Joachim

[PATCH] i2c: at91: add of_device_id entry for at91rm9200

2012-12-05 Thread Joachim Eastwood
Signed-off-by: Joachim Eastwood manab...@gmail.com --- Hi, AT91RM9200 is gaining DT support now so let's add an id to the i2c driver. Tested on custom RM9200 board. Since the driver doesn't support pinctrl muxing yet I had to add pinctrl hogs for the i2c pins in my dts for it to work. regards

Re: [PATCH v2] i2c: change the id to let the i2c-gpio work

2012-10-12 Thread Joachim Eastwood
as well. I assume we have the same problem if CONFIG_I2C_AT91 is set? See further down in at91sam9260_devices.c we have another: .id = -1, regards Joachim Eastwood 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-at91/at91sam9260_devices.c b/arch/arm/mach-at91