From: Wolfram Sang
Inspired from the i2c-rk3x driver (thanks guys!) but refactored and
extended. See built-in docs for further information.
Signed-off-by: Wolfram Sang
---
drivers/i2c/i2c-core.c | 47
From: Wolfram Sang
The probe function is a little bit messy, something here, something
there. Rework it so that there is some order: first init the private
structure, then the adapter, then do HW init. This also allows us to
remove the device argument of the
Here is a patch series adding better DT support for timing parameters like the
raise time or the fall time which are generic for the I2C subsystem. There is a
core function for parsing and an implementation for the RCar driver how to use
it.
I added people of the designware and rk3x driver to CC
From: Wolfram Sang
Signed-off-by: Wolfram Sang
---
arch/arm/boot/dts/r8a7794.dtsi | 6 ++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/r8a7794.dtsi b/arch/arm/boot/dts/r8a7794.dtsi
index
From: Wolfram Sang
Also, sort the properties alphabetically and make indentation
consistent. Wording largely taken from i2c-rk3x.txt, thanks guys!
Only "i2c-scl-internal-delay-ns" is new, the rest is used by two drivers
already and was documented in their
From: Wolfram Sang
Switch to the new generic functions. Plain convert, no functionality
added yet.
Signed-off-by: Wolfram Sang
---
drivers/i2c/busses/i2c-rcar.c | 16 +---
1 file changed, 9 insertions(+), 7
From: Wolfram Sang
Signed-off-by: Wolfram Sang
---
arch/arm64/boot/dts/renesas/r8a7795.dtsi | 7 +++
1 file changed, 7 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi
From: Wolfram Sang
Signed-off-by: Wolfram Sang
---
arch/arm/boot/dts/r8a7790.dtsi | 4
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi
index
From: Wolfram Sang
Signed-off-by: Wolfram Sang
---
arch/arm/boot/dts/r8a7791.dtsi | 6 ++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi
index
From: Wolfram Sang
Signed-off-by: Wolfram Sang
---
Documentation/devicetree/bindings/i2c/i2c-rcar.txt | 4
drivers/i2c/busses/i2c-rcar.c | 21 -
2 files changed, 16 insertions(+),
On Tue, 2015-12-08 at 10:37 +0100, Wolfram Sang wrote:
> From: Wolfram Sang
>
> Inspired from the i2c-rk3x driver (thanks guys!) but refactored and
> extended. See built-in docs for further information.
One style comment.
>
> Signed-off-by: Wolfram Sang
On Tue, 2015-12-08 at 12:59 +0200, Andy Shevchenko wrote:
> On Tue, 2015-12-08 at 10:37 +0100, Wolfram Sang wrote:
> > From: Wolfram Sang
> >
> > Switch to the new generic functions. Plain convert, no
> > functionality
> > added yet.
>
> One style nitpick.
Ah,
> I wonder if it makes sense to add "i2c-sda-hold-time-ns" (taken from the
> designware driver DT binding) to the timings structure? It is tHD;DAT
> parameter in the I2C bus specification.
It totally makes sense. I just didn't need it for the RCar driver and
didn't want to implement something
On Tue, Dec 08, 2015 at 01:53:07PM +0100, Wolfram Sang wrote:
>
> > I wonder if it makes sense to add "i2c-sda-hold-time-ns" (taken from the
> > designware driver DT binding) to the timings structure? It is tHD;DAT
> > parameter in the I2C bus specification.
>
> It totally makes sense. I just
On Mon, Dec 07, 2015 at 05:16:14PM -0700, Loc Ho wrote:
> Enable APM X-Gene ACPI I2C device support by adding the
> corresponding ACPI ID. The platform ACPI APD corresponding
> change is required to provide the proper clock frequency input.
>
> Signed-off-by: Loc Ho
Acked-by: Mika
> Too many && use_defaults. What about
>
> memset(t, 0, sizeof(*t));
>
> device_property_read_u32(dev, "i2c-scl-internal-delay-ns",
> >scl_int_delay_ns);
>
> if (!use_defaults)
> return;
I like this! Thanks for the input.
signature.asc
Description: Digital signature
On Tue, Dec 08, 2015 at 10:37:46AM +0100, Wolfram Sang wrote:
> From: Wolfram Sang
>
> Inspired from the i2c-rk3x driver (thanks guys!) but refactored and
> extended. See built-in docs for further information.
>
> Signed-off-by: Wolfram Sang
On Tue, 2015-12-08 at 10:37 +0100, Wolfram Sang wrote:
> From: Wolfram Sang
>
> Switch to the new generic functions. Plain convert, no functionality
> added yet.
One style nitpick.
>
> Signed-off-by: Wolfram Sang
> ---
>
During driver probe, i2c_imx_init_recovery_info() must come before
i2c_add_numbered_adapter(), because the get/set_scl() functions
are assigned in i2c_register_adapter() under the conditon that bus
recover_info are initialized. Otherwise, get/set_scl() function
pointers never get assigned.
In
Hello,
On Wed, Dec 09, 2015 at 11:08:22AM +0800, Gao Pan wrote:
> During driver probe, i2c_imx_init_recovery_info() must come before
> i2c_add_numbered_adapter(), because the get/set_scl() functions
> are assigned in i2c_register_adapter() under the conditon that bus
> recover_info are
On Tue, Dec 08, 2015 at 02:03:23PM +0100, Wolfram Sang wrote:
>
> > Too many && use_defaults. What about
> >
> > memset(t, 0, sizeof(*t));
> >
> > device_property_read_u32(dev, "i2c-scl-internal-delay-ns",
> > >scl_int_delay_ns);
> >
> > if (!use_defaults)
> > return;
>
> I like this!
21 matches
Mail list logo