]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: renesas: r9a08g046l48-smarc: Enable I2C{2,3} devices
authorBiju Das <biju.das.jz@bp.renesas.com>
Thu, 28 May 2026 07:02:35 +0000 (08:02 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Sun, 31 May 2026 08:52:23 +0000 (10:52 +0200)
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>
arch/arm64/boot/dts/renesas/r9a08g046l48-smarc.dts
arch/arm64/boot/dts/renesas/rzg3l-smarc-som.dtsi

index ef00e316fbde7be77e5c9e7033e9292be8a48a7d..1512b7df39bde9cf5523916740457948303adfc2 100644 (file)
@@ -11,6 +11,7 @@
 #define RZ_BOOT_MODE3          1
 #define SW_DPI_EN              0
 #define SW_GPIO4               1
+#define SW_I3C_EN              0
 
 #define PMOD_GPIO4             0
 #define PMOD_GPIO6             0
                     "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;
 };
 
 &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>;
index 06c6ccac5ad2cdf9ba61d833503af2bbf9d2131f..17bf447783988e3581733c1ca7babe49f2fdf915 100644 (file)
@@ -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