Re: [PATCH] i2c: rk3x: fix divisor calculation for SCL frequency

2014-09-04 Thread Doug Anderson
Addy, On Thu, Sep 4, 2014 at 7:32 PM, Addy Ke wrote: > I2C_CLKDIV register descripted in the previous version of > RK3x chip manual is incorrect. Plus 1 is required. > > The correct formula: > - T(SCL_HIGH) = T(PCLK) * (CLKDIVH + 1) * 8 > - T(SCL_LOW) = T(PCLK) * (CLKDIVL + 1) * 8 > - (SCL Divsor

[PATCH] i2c: rk3x: fix divisor calculation for SCL frequency

2014-09-04 Thread Addy Ke
I2C_CLKDIV register descripted in the previous version of RK3x chip manual is incorrect. Plus 1 is required. The correct formula: - T(SCL_HIGH) = T(PCLK) * (CLKDIVH + 1) * 8 - T(SCL_LOW) = T(PCLK) * (CLKDIVL + 1) * 8 - (SCL Divsor) = 8 * ((CLKDIVL + 1) + (CLKDIVH + 1)) - SCL = PCLK / (CLK Divsor)

Re: [PATCH v2] Revert "i2c: rcar: remove spinlock"

2014-09-04 Thread Wolfram Sang
On Sun, Aug 24, 2014 at 12:44:09AM +0400, Sergei Shtylyov wrote: > This reverts commit 150b8be3cda54412ad7b54f5392b513b25c0aaa7. > > The I2C core's per-adapter locks can't protect from IRQs, so the driver still > needs a spinlock to protect the register accesses. > > Signed-off-by: Sergei Shtylyo

Re: [PATCH v2 3/3] gpio: add support for the Diolan DLN-2 USB GPIO driver

2014-09-04 Thread Linus Walleij
On Sat, Aug 30, 2014 at 12:00 AM, Octavian Purdila wrote: > From: Daniel Baluta > > This patch adds GPIO and IRQ support for the Diolan DLN-2 GPIO module. > > Information about the USB protocol interface can be found in the > Programmer's Reference Manual [1], see section 2.9 for the GPIO > modu

Re: [PATCH v7 1/2] i2c: imx: add DMA support for freescale i2c driver

2014-09-04 Thread Marek Vasut
On Wednesday, August 13, 2014 at 11:46:54 AM, Yuan Yao wrote: > Add dma support for i2c. This function depend on DMA driver. > You can turn on it by write both the dmas and dma-name properties in dts > node. DMA is optional, even DMA request unsuccessfully, i2c can also work > well. > > Signed-off

[PATCH v3 5/9] i2c: core: Convert to dev_pm_domain_attach|detach()

2014-09-04 Thread Ulf Hansson
Previously only the ACPI PM domain was supported by the i2c bus. Let's convert to the common attach/detach functions for PM domains, which currently means we are extending the support to include the generic PM domain as well. Cc: linux-i2c@vger.kernel.org Signed-off-by: Ulf Hansson --- drivers/

Re: [PATCH v2] i2c-designware: Add suport for AMD i2c controller

2014-09-04 Thread Mika Westerberg
On Thu, Sep 04, 2014 at 08:30:05PM +0800, Carl Peng wrote: > AMD i2c bus controller is ACPI device, its ACPI ID > is "AMD0010". This patch is used to add support for > AMD i2c bus controller in the Designware platfrom > driver. > > Signed-off-by: Carl Peng > --- > drivers/i2c/busses/i2c-designwa

[PATCH v2] i2c-designware: Add suport for AMD i2c controller

2014-09-04 Thread Carl Peng
AMD i2c bus controller is ACPI device, its ACPI ID is "AMD0010". This patch is used to add support for AMD i2c bus controller in the Designware platfrom driver. Signed-off-by: Carl Peng --- drivers/i2c/busses/i2c-designware-core.h| 1 + drivers/i2c/busses/i2c-designware-platdrv.c | 35 +

Re: [PATCH v2 5/7] mfd: cros_ec: wait for completion of commands that return IN_PROGRESS

2014-09-04 Thread Lee Jones
On Mon, 25 Aug 2014, Javier Martinez Canillas wrote: > From: Andrew Bresticker > > When an EC command returns EC_RES_IN_PROGRESS, we need to query > the state of the EC until it indicates that it is no longer busy. > Do this in cros_ec_cmd_xfer() under the EC's mutex so that other > commands (e.g

Re: [PATCH v2 6/7] mfd: cros_ec: Instantiate sub-devices from device tree

2014-09-04 Thread Lee Jones
On Mon, 25 Aug 2014, Javier Martinez Canillas wrote: > From: Todd Broch > > If the EC device tree node has sub-nodes, try to instantiate them as > MFD sub-devices. We can configure the EC features provided by the board. > > Signed-off-by: Todd Broch > Signed-off-by: Javier Martinez Canillas >