]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: renesas: r9a09g047e57-smarc: Enable rsci{2,4,9} nodes
authorBiju Das <biju.das.jz@bp.renesas.com>
Sat, 29 Nov 2025 18:51:58 +0000 (18:51 +0000)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 5 Jan 2026 13:37:18 +0000 (14:37 +0100)
Enable device rsci{2,4,9} nodes for the RZ/G3E SMARC EVK.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20251129185203.380002-4-biju.das.jz@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/r9a09g047e57-smarc.dts
arch/arm64/boot/dts/renesas/renesas-smarc2.dtsi
arch/arm64/boot/dts/renesas/rzg3e-smarc-som.dtsi

index 50e075745474a72e1d56fdaee22617947e0ae9a2..696903dc7a636e49a3f91fec9a85bb93db6916cc 100644 (file)
@@ -12,6 +12,8 @@
 #define SW_GPIO9_CAN1_STB      0
 #define SW_LCD_EN              0
 #define SW_PDM_EN              0
+#define SW_SER0_PMOD           1
+#define SW_SER2_EN             1
 #define SW_SD0_DEV_SEL         0
 #define SW_SDIO_M2E            0
 
@@ -37,6 +39,9 @@
 
        aliases {
                i2c0 = &i2c0;
+               serial0 = &rsci4;
+               serial1 = &rsci9;
+               serial2 = &rsci2;
                serial3 = &scif0;
                mmc1 = &sdhi1;
        };
                input-schmitt-enable;
        };
 
+       rsci2_pins: rsci2 {
+               pinmux = <RZG3E_PORT_PINMUX(1, 0, 1)>, /* RXD2 */
+                        <RZG3E_PORT_PINMUX(1, 1, 1)>, /* TXD2 */
+                        <RZG3E_PORT_PINMUX(1, 2, 6)>, /* CTS2N */
+                        <RZG3E_PORT_PINMUX(1, 3, 1)>; /* RTS2N */
+               bias-pull-up;
+       };
+
+       rsci4_pins: rsci4 {
+               pinmux = <RZG3E_PORT_PINMUX(7, 6, 5)>, /* RXD4 */
+                        <RZG3E_PORT_PINMUX(7, 7, 5)>, /* TXD4 */
+                        <RZG3E_PORT_PINMUX(8, 0, 6)>, /* CTS4N */
+                        <RZG3E_PORT_PINMUX(8, 1, 5)>; /* RTS4N */
+               bias-pull-up;
+       };
+
+       rsci9_pins: rsci9 {
+               pinmux = <RZG3E_PORT_PINMUX(8, 2, 5)>, /* RXD9 */
+                        <RZG3E_PORT_PINMUX(8, 3, 5)>; /* TXD9 */
+               bias-pull-up;
+       };
+
        scif_pins: scif {
                pins = "SCIF_TXD", "SCIF_RXD";
                renesas,output-impedance = <1>;
        };
 };
 
+#if SW_SER0_PMOD && SW_SER2_EN
+&rsci2 {
+       pinctrl-0 = <&rsci2_pins>;
+       pinctrl-names = "default";
+
+       uart-has-rtscts;
+
+       status = "okay";
+};
+#endif
+
+#if (!SW_LCD_EN) && (SW_SER0_PMOD)
+&rsci4 {
+       pinctrl-0 = <&rsci4_pins>;
+       pinctrl-names = "default";
+
+       uart-has-rtscts;
+
+       status = "okay";
+};
+#endif
+
+#if (!SW_LCD_EN)
+&rsci9 {
+       pinctrl-0 = <&rsci9_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+};
+#endif
+
 &scif0 {
        pinctrl-0 = <&scif_pins>;
        pinctrl-names = "default";
index a6e8eb7300966de25aab14e9b1094f297a79fc2e..b607b5d6c259e6becffb14fc9092ef51129925e4 100644 (file)
  *     0 - SMARC SDIO signal is connected to uSD1
  *     1 - SMARC SDIO signal is connected to M.2 Key E connector
  *
+ * Please set the switch position SW_OPT_MUX.4 on the carrier board and the
+ * corresponding macro SW_SER0_PMOD on the board DTS:
+ *
+ * SW_SER0_PMOD:
+ *     0 - SER0 signals connect to M.2 Key-E, SER2 signals are unconnected
+ *     1 - SER0 signals connect to PMOD, SER2 signals connect to M.2 Key-E
+ *
  * Please set the switch position SW_GPIO_CAN_PMOD on the carrier board and the
  * corresponding macro SW_GPIO8_CAN0_STB/SW_GPIO8_CAN0_STB on the board DTS:
  *
index 7faa44510d98833bef396e9f069c7c2a4fe3991f..eb0de21d6716c7617d29d0dc410b7f54c8b8c023 100644 (file)
  *      0 - SD0 is connected to eMMC (default)
  *      1 - SD0 is connected to uSD0 card
  *
+ * Switch position SYS.4, Macro SW_SER2_EN:
+ *      0 - Select Module DSI connector(GPIO)
+ *      1 - Select SER2
+ *
  * Switch position SYS.5, Macro SW_LCD_EN:
  *      0 - Select Misc. Signals routing
  *      1 - Select LCD