arm64: dts: renesas: rzg2lc-smarc: Enable RSPI1 on carrier board
authorBiju Das <biju.das.jz@bp.renesas.com>
Fri, 1 Apr 2022 14:57:02 +0000 (15:57 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 13 Apr 2022 11:53:42 +0000 (13:53 +0200)
RSPI1 (SPI1) interface is available on PMOD0 connector (J1) on the
carrier board.  This patch adds pinmux and spi1 nodes to the carrier
board dtsi file and drops deleting pinctl* properties from DTS file.

RSPI1 interface is tested by setting the macro SW_RSPI_CAN to 0.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/r/20220401145702.17954-1-biju.das.jz@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/r9a07g044c2-smarc.dts
arch/arm64/boot/dts/renesas/rzg2lc-smarc-pinfunction.dtsi
arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi

index 74a2f2bade10e45be7ed472861dcc9243176d4a7..fc34058002e2a529650af8390ab2d3d8af8ea757 100644 (file)
@@ -13,9 +13,3 @@
        model = "Renesas SMARC EVK based on r9a07g044c2";
        compatible = "renesas,smarc-evk", "renesas,r9a07g044c2", "renesas,r9a07g044";
 };
-
-&spi1 {
-       /delete-property/ pinctrl-0;
-       /delete-property/ pinctrl-names;
-       status = "disabled";
-};
index d275a55333e3b5bafe0850a58e42fdf5275e0e29..a78a8def363e4fa7bb3a1b38ae9922df6080e9d2 100644 (file)
                input-enable;
        };
 
+       spi1_pins: spi1 {
+               pinmux = <RZG2L_PORT_PINMUX(44, 0, 1)>, /* CK */
+                        <RZG2L_PORT_PINMUX(44, 1, 1)>, /* MOSI */
+                        <RZG2L_PORT_PINMUX(44, 2, 1)>, /* MISO */
+                        <RZG2L_PORT_PINMUX(44, 3, 1)>; /* SSL */
+       };
+
        ssi0_pins: ssi0 {
                pinmux = <RZG2L_PORT_PINMUX(45, 0, 1)>, /* BCK */
                         <RZG2L_PORT_PINMUX(45, 1, 1)>, /* RCK */
index f73b4acb8f9e562ae433a3ffb47c90a247c3e6c1..856c949796ff9d0d5185925e9161c2abb6f66032 100644 (file)
        status = "okay";
 };
 #endif
+
+#if (SW_RSPI_CAN)
+&spi1 {
+       /delete-property/ pinctrl-0;
+       /delete-property/ pinctrl-names;
+       status = "disabled";
+};
+#endif