diff options
author | Jagan Teki <jagan@edgeble.ai> | 2022-09-15 22:09:42 +0530 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2022-09-16 20:27:30 +0100 |
commit | 859d64685d6c868db62b86064769b053db8bf834 (patch) | |
tree | 2498b1e4393f8e704cda8a8d8ab4c6f178ad02a0 | |
parent | a060848b988347e5a4c48cbf99a6f50cd1410d98 (diff) | |
download | linux-stable-859d64685d6c868db62b86064769b053db8bf834.tar.gz linux-stable-859d64685d6c868db62b86064769b053db8bf834.tar.bz2 linux-stable-859d64685d6c868db62b86064769b053db8bf834.zip |
i2c: rk3x: Add rv1126 support
Add i2c support for Rockchip RV1126 SoC.
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: David Wu <david.wu@rock-chips.com>
Signed-off-by: Jagan Teki <jagan@edgeble.ai>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
-rw-r--r-- | drivers/i2c/busses/i2c-rk3x.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-rk3x.c b/drivers/i2c/busses/i2c-rk3x.c index 2e98e7793bba..d1658ed76562 100644 --- a/drivers/i2c/busses/i2c-rk3x.c +++ b/drivers/i2c/busses/i2c-rk3x.c @@ -1165,6 +1165,11 @@ static const struct rk3x_i2c_soc_data rv1108_soc_data = { .calc_timings = rk3x_i2c_v1_calc_timings, }; +static const struct rk3x_i2c_soc_data rv1126_soc_data = { + .grf_offset = 0x118, + .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, @@ -1196,6 +1201,10 @@ static const struct of_device_id rk3x_i2c_match[] = { .data = &rv1108_soc_data }, { + .compatible = "rockchip,rv1126-i2c", + .data = &rv1126_soc_data + }, + { .compatible = "rockchip,rk3066-i2c", .data = &rk3066_soc_data }, |