Re: [PATCH v3 02/13] i2c: rk3x: add support for rv1108
On Fri, Aug 11, 2017 at 11:39:13AM +0800, Andy Yan wrote: > Support for the i2c controller on rv1108 soc. > > Signed-off-by: Andy Yan> Reviewed-by: Heiko Stuebner Applied to for-next, thanks! signature.asc Description: PGP signature
Re: [PATCH v3 02/13] i2c: rk3x: add support for rv1108
On Fri, Aug 11, 2017 at 11:39:13AM +0800, Andy Yan wrote: > Support for the i2c controller on rv1108 soc. > > Signed-off-by: Andy Yan > Reviewed-by: Heiko Stuebner Applied to for-next, thanks! signature.asc Description: PGP signature
Re: [PATCH v3 02/13] i2c: rk3x: add support for rv1108
> Actually, there is one I2C controller(I2C2) has a different feature with > all the other rockchip soc.The I2C2 is not used on my current board. But I > plan to add this feature later。 So I give RV1108 a new compatible string > here。 Makes sense. Thanks! signature.asc Description: PGP signature
Re: [PATCH v3 02/13] i2c: rk3x: add support for rv1108
> Actually, there is one I2C controller(I2C2) has a different feature with > all the other rockchip soc.The I2C2 is not used on my current board. But I > plan to add this feature later。 So I give RV1108 a new compatible string > here。 Makes sense. Thanks! signature.asc Description: PGP signature
Re: [PATCH v3 02/13] i2c: rk3x: add support for rv1108
Hi, > +static const struct rk3x_i2c_soc_data rv1108_soc_data = { > + .grf_offset = -1, > + .calc_timings = rk3x_i2c_v1_calc_timings, > +}; > + I don't care super much, but why don't you reuse rk3399_soc_data()? Or even use the rk3399 compatible as fallback value? Kind regards, Wolfram signature.asc Description: PGP signature
Re: [PATCH v3 02/13] i2c: rk3x: add support for rv1108
Hi, > +static const struct rk3x_i2c_soc_data rv1108_soc_data = { > + .grf_offset = -1, > + .calc_timings = rk3x_i2c_v1_calc_timings, > +}; > + I don't care super much, but why don't you reuse rk3399_soc_data()? Or even use the rk3399 compatible as fallback value? Kind regards, Wolfram signature.asc Description: PGP signature
[PATCH v3 02/13] i2c: rk3x: add support for rv1108
Support for the i2c controller on rv1108 soc. Signed-off-by: Andy YanReviewed-by: Heiko Stuebner --- Changes in v3: None Changes in v2: None drivers/i2c/busses/i2c-rk3x.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/i2c/busses/i2c-rk3x.c b/drivers/i2c/busses/i2c-rk3x.c index df22066..fe23457 100644 --- a/drivers/i2c/busses/i2c-rk3x.c +++ b/drivers/i2c/busses/i2c-rk3x.c @@ -1131,6 +1131,11 @@ static const struct i2c_algorithm rk3x_i2c_algorithm = { .functionality = rk3x_i2c_func, }; +static const struct rk3x_i2c_soc_data rv1108_soc_data = { + .grf_offset = -1, + .calc_timings = rk3x_i2c_v1_calc_timings, +}; + static const struct rk3x_i2c_soc_data rk3066_soc_data = { .grf_offset = 0x154, .calc_timings = rk3x_i2c_v0_calc_timings, @@ -1158,6 +1163,10 @@ static const struct rk3x_i2c_soc_data rk3399_soc_data = { static const struct of_device_id rk3x_i2c_match[] = { { + .compatible = "rockchip,rv1108-i2c", + .data = (void *)_soc_data + }, + { .compatible = "rockchip,rk3066-i2c", .data = (void *)_soc_data }, -- 2.7.4
[PATCH v3 02/13] i2c: rk3x: add support for rv1108
Support for the i2c controller on rv1108 soc. Signed-off-by: Andy Yan Reviewed-by: Heiko Stuebner --- Changes in v3: None Changes in v2: None drivers/i2c/busses/i2c-rk3x.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/i2c/busses/i2c-rk3x.c b/drivers/i2c/busses/i2c-rk3x.c index df22066..fe23457 100644 --- a/drivers/i2c/busses/i2c-rk3x.c +++ b/drivers/i2c/busses/i2c-rk3x.c @@ -1131,6 +1131,11 @@ static const struct i2c_algorithm rk3x_i2c_algorithm = { .functionality = rk3x_i2c_func, }; +static const struct rk3x_i2c_soc_data rv1108_soc_data = { + .grf_offset = -1, + .calc_timings = rk3x_i2c_v1_calc_timings, +}; + static const struct rk3x_i2c_soc_data rk3066_soc_data = { .grf_offset = 0x154, .calc_timings = rk3x_i2c_v0_calc_timings, @@ -1158,6 +1163,10 @@ static const struct rk3x_i2c_soc_data rk3399_soc_data = { static const struct of_device_id rk3x_i2c_match[] = { { + .compatible = "rockchip,rv1108-i2c", + .data = (void *)_soc_data + }, + { .compatible = "rockchip,rk3066-i2c", .data = (void *)_soc_data }, -- 2.7.4