Skip to content

Commit 3f9c7af

Browse files
bijudasgeertu
authored andcommitted
arm64: dts: renesas: r9a08g046l48-smarc: Enable I2C{2,3} devices
Enable I2C{2,3} on the RZ/G3L SMARC EVK board. I2C3 is enabled by setting SW SYS.2 to the OFF position. Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Link: https://patch.msgid.link/20260528070239.33352-3-biju.das.jz@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 662ce0d commit 3f9c7af

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

arch/arm64/boot/dts/renesas/r9a08g046l48-smarc.dts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#define RZ_BOOT_MODE3 1
1212
#define SW_DPI_EN 0
1313
#define SW_GPIO4 1
14+
#define SW_I3C_EN 0
1415

1516
#define PMOD_GPIO4 0
1617
#define PMOD_GPIO6 0
@@ -33,10 +34,28 @@
3334
"renesas,r9a08g046l48", "renesas,r9a08g046";
3435

3536
aliases {
37+
i2c2 = &i2c2;
38+
i2c3 = &i2c3;
3639
serial3 = &scif0;
3740
};
3841
};
3942

43+
&i2c2 {
44+
pinctrl-0 = <&i2c2_pins>;
45+
pinctrl-names = "default";
46+
47+
status = "okay";
48+
};
49+
50+
#if !SW_I3C_EN
51+
&i2c3 {
52+
pinctrl-0 = <&i2c3_pins>;
53+
pinctrl-names = "default";
54+
55+
status = "okay";
56+
};
57+
#endif
58+
4059
&keys {
4160
#if !RZ_BOOT_MODE3 || !SW_GPIO4 || PMOD_GPIO4
4261
/delete-node/ key-1;
@@ -52,6 +71,16 @@
5271
};
5372

5473
&pinctrl {
74+
i2c2_pins: i2c2 {
75+
pinmux = <RZG3L_PORT_PINMUX(A, 4, 4)>, /* RIIC2_SCL */
76+
<RZG3L_PORT_PINMUX(A, 5, 4)>; /* RIIC2_SDA */
77+
};
78+
79+
i2c3_pins: i2c3 {
80+
pinmux = <RZG3L_PORT_PINMUX(2, 0, 4)>, /* RIIC3_SCL */
81+
<RZG3L_PORT_PINMUX(2, 1, 4)>; /* RIIC3_SDA */
82+
};
83+
5584
scif0_pins: scif0 {
5685
pins = "SCIF0_TXD", "SCIF0_RXD";
5786
power-source = <1800>;

arch/arm64/boot/dts/renesas/rzg3l-smarc-som.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
* Please set the below switch position on the SoM and the corresponding macro
1010
* on the board DTS:
1111
*
12+
* Switch position SYS.2, Macro SW_I3C_EN:
13+
* 0 - SMARC_I2C_GP is enabled
14+
* 1 - I3C is enabled
15+
*
1216
* Switch position SYS.5, Macro SW_DPI_EN:
1317
* 0 - Select multiple SMARC signals active
1418
* 1 - Select LCD

0 commit comments

Comments
 (0)