Skip to content

Commit 859d646

Browse files
openedevwsakernel
authored andcommitted
i2c: rk3x: Add rv1126 support
Add i2c support for Rockchip RV1126 SoC. Reviewed-by: Heiko Stuebner <[email protected]> Signed-off-by: David Wu <[email protected]> Signed-off-by: Jagan Teki <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent a060848 commit 859d646

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/i2c/busses/i2c-rk3x.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,11 @@ static const struct rk3x_i2c_soc_data rv1108_soc_data = {
11651165
.calc_timings = rk3x_i2c_v1_calc_timings,
11661166
};
11671167

1168+
static const struct rk3x_i2c_soc_data rv1126_soc_data = {
1169+
.grf_offset = 0x118,
1170+
.calc_timings = rk3x_i2c_v1_calc_timings,
1171+
};
1172+
11681173
static const struct rk3x_i2c_soc_data rk3066_soc_data = {
11691174
.grf_offset = 0x154,
11701175
.calc_timings = rk3x_i2c_v0_calc_timings,
@@ -1195,6 +1200,10 @@ static const struct of_device_id rk3x_i2c_match[] = {
11951200
.compatible = "rockchip,rv1108-i2c",
11961201
.data = &rv1108_soc_data
11971202
},
1203+
{
1204+
.compatible = "rockchip,rv1126-i2c",
1205+
.data = &rv1126_soc_data
1206+
},
11981207
{
11991208
.compatible = "rockchip,rk3066-i2c",
12001209
.data = &rk3066_soc_data

0 commit comments

Comments
 (0)