Skip to content

Commit a45f95d

Browse files
prabhakarladAndi Shyti
authored andcommitted
i2c: riic: Add support for R9A09G057 SoC
Extend the RIIC driver to support the RZ/V2H(P) ("R9A09G057") SoC. It accomplishes this by appending the compatible string list and passing the RZ/V2H-specific OF data. Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
1 parent 748ee3b commit a45f95d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

drivers/i2c/busses/i2c-riic.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,25 @@ static const struct riic_of_data riic_rz_a_info = {
523523
},
524524
};
525525

526+
static const struct riic_of_data riic_rz_v2h_info = {
527+
.regs = {
528+
[RIIC_ICCR1] = 0x00,
529+
[RIIC_ICCR2] = 0x01,
530+
[RIIC_ICMR1] = 0x02,
531+
[RIIC_ICMR3] = 0x04,
532+
[RIIC_ICSER] = 0x06,
533+
[RIIC_ICIER] = 0x07,
534+
[RIIC_ICSR2] = 0x09,
535+
[RIIC_ICBRL] = 0x10,
536+
[RIIC_ICBRH] = 0x11,
537+
[RIIC_ICDRT] = 0x12,
538+
[RIIC_ICDRR] = 0x13,
539+
},
540+
};
541+
526542
static const struct of_device_id riic_i2c_dt_ids[] = {
527543
{ .compatible = "renesas,riic-rz", .data = &riic_rz_a_info },
544+
{ .compatible = "renesas,riic-r9a09g057", .data = &riic_rz_v2h_info },
528545
{ /* Sentinel */ },
529546
};
530547

0 commit comments

Comments
 (0)