lkml.org 
[lkml]   [2026]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 4/4] arm64: dts: renesas: r9a08g046l48-smarc: Enable I2C{2,3} devices
Date
From: Biju Das <biju.das.jz@bp.renesas.com>

Enable I2C{2,3} on RZ/G3L SMARC EVK board. The I2C3 is enabled by
setting SW SYS.2 to OFF position.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
---
.../boot/dts/renesas/r9a08g046l48-smarc.dts | 29 +++++++++++++++++++
.../boot/dts/renesas/rzg3l-smarc-som.dtsi | 4 +++
2 files changed, 33 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r9a08g046l48-smarc.dts b/arch/arm64/boot/dts/renesas/r9a08g046l48-smarc.dts
index 8384cec7f056..9752d9d6a59c 100644
--- a/arch/arm64/boot/dts/renesas/r9a08g046l48-smarc.dts
+++ b/arch/arm64/boot/dts/renesas/r9a08g046l48-smarc.dts
@@ -11,6 +11,7 @@
#define RZ_BOOT_MODE3 0
#define SW_DPI_EN 0
#define SW_GPIO4 0
+#define SW_I3C_EN 0

#define PMOD_GPIO4 0
#define PMOD_GPIO6 0
@@ -33,10 +34,28 @@ / {
"renesas,r9a08g046l48", "renesas,r9a08g046";

aliases {
+ i2c2 = &i2c2;
+ i2c3 = &i2c3;
serial3 = &scif0;
};
};

+&i2c2 {
+ pinctrl-0 = <&i2c2_pins>;
+ pinctrl-names = "default";
+
+ status = "okay";
+};
+
+#if !SW_I3C_EN
+&i2c3 {
+ pinctrl-0 = <&i2c3_pins>;
+ pinctrl-names = "default";
+
+ status = "okay";
+};
+#endif
+
&keys {
#if RZ_BOOT_MODE3 || SW_GPIO4 || PMOD_GPIO4
/delete-node/ key-1;
@@ -52,6 +71,16 @@ &keys {
};

&pinctrl {
+ i2c2_pins: i2c2 {
+ pinmux = <RZG3L_PORT_PINMUX(A, 4, 4)>, /* RIIC2_SCL */
+ <RZG3L_PORT_PINMUX(A, 5, 4)>; /* RIIC2_SDA */
+ };
+
+ i2c3_pins: i2c3 {
+ pinmux = <RZG3L_PORT_PINMUX(2, 0, 4)>, /* RIIC3_SCL */
+ <RZG3L_PORT_PINMUX(2, 1, 4)>; /* RIIC3_SDA */
+ };
+
scif0_pins: scif0 {
pins = "SCIF0_TXD", "SCIF0_RXD";
power-source = <1800>;
diff --git a/arch/arm64/boot/dts/renesas/rzg3l-smarc-som.dtsi b/arch/arm64/boot/dts/renesas/rzg3l-smarc-som.dtsi
index bc1178c7484a..fb868ea99b7f 100644
--- a/arch/arm64/boot/dts/renesas/rzg3l-smarc-som.dtsi
+++ b/arch/arm64/boot/dts/renesas/rzg3l-smarc-som.dtsi
@@ -9,6 +9,10 @@
* Please set the below switch position on the SoM and the corresponding macro
* on the board DTS:
*
+ * Switch position SYS.2, Macro SW_I3C_EN:
+ * 0 - SMARC_I2C_GP is enabled
+ * 1 - I3C is enabled
+ *
* Switch position SYS.5, Macro SW_DPI_EN:
* 0 - Select multiple SMARC signals active
* 1 - Select LCD
--
2.43.0

\
 
 \ /
  Last update: 2026-05-05 09:12    [W:0.124 / U:0.450 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog