提交 46da6327 编写于 作者: B Biju Das 提交者: Geert Uytterhoeven

arm64: dts: renesas: rzg2lc-smarc: Enable CANFD channel 1

On RZ/G2LC SMARC EVK, CAN0 is not populated.

CAN1 is multiplexed with SCIF1 using SW1[3] or RSPI using SW1[4].

This patch adds support for the CAN1 interface on RZ/G2LC SMARC EVK.
Signed-off-by: NBiju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: NLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/r/20220203170636.7747-5-biju.das.jz@bp.renesas.comSigned-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
上级 fa00d6dc
...@@ -14,12 +14,6 @@ ...@@ -14,12 +14,6 @@
compatible = "renesas,smarc-evk", "renesas,r9a07g044c2", "renesas,r9a07g044"; compatible = "renesas,smarc-evk", "renesas,r9a07g044c2", "renesas,r9a07g044";
}; };
&canfd {
/delete-property/ pinctrl-0;
/delete-property/ pinctrl-names;
status = "disabled";
};
&ehci0 { &ehci0 {
/delete-property/ pinctrl-0; /delete-property/ pinctrl-0;
/delete-property/ pinctrl-names; /delete-property/ pinctrl-names;
......
...@@ -17,6 +17,14 @@ ...@@ -17,6 +17,14 @@
<RZG2L_PORT_PINMUX(38, 1, 1)>; /* RxD */ <RZG2L_PORT_PINMUX(38, 1, 1)>; /* RxD */
}; };
#if SW_SCIF_CAN
/* SW8 should be at position 2->1 */
can1_pins: can1 {
pinmux = <RZG2L_PORT_PINMUX(40, 0, 3)>, /* TxD */
<RZG2L_PORT_PINMUX(40, 1, 3)>; /* RxD */
};
#endif
scif1_pins: scif1 { scif1_pins: scif1 {
pinmux = <RZG2L_PORT_PINMUX(40, 0, 1)>, /* TxD */ pinmux = <RZG2L_PORT_PINMUX(40, 0, 1)>, /* TxD */
<RZG2L_PORT_PINMUX(40, 1, 1)>, /* RxD */ <RZG2L_PORT_PINMUX(40, 1, 1)>, /* RxD */
...@@ -24,6 +32,21 @@ ...@@ -24,6 +32,21 @@
<RZG2L_PORT_PINMUX(41, 1, 1)>; /* RTS# */ <RZG2L_PORT_PINMUX(41, 1, 1)>; /* RTS# */
}; };
#if SW_RSPI_CAN
/* SW8 should be at position 2->3 so that GPIO9_CAN1_STB line is activated */
can1-stb {
gpio-hog;
gpios = <RZG2L_GPIO(44, 3) GPIO_ACTIVE_HIGH>;
output-low;
line-name = "can1_stb";
};
can1_pins: can1 {
pinmux = <RZG2L_PORT_PINMUX(44, 0, 3)>, /* TxD */
<RZG2L_PORT_PINMUX(44, 1, 3)>; /* RxD */
};
#endif
sd1-pwr-en-hog { sd1-pwr-en-hog {
gpio-hog; gpio-hog;
gpios = <RZG2L_GPIO(39, 2) GPIO_ACTIVE_HIGH>; gpios = <RZG2L_GPIO(39, 2) GPIO_ACTIVE_HIGH>;
......
...@@ -44,6 +44,19 @@ ...@@ -44,6 +44,19 @@
}; };
}; };
#if (SW_SCIF_CAN || SW_RSPI_CAN)
&canfd {
pinctrl-0 = <&can1_pins>;
/delete-node/ channel@0;
};
#else
&canfd {
/delete-property/ pinctrl-0;
/delete-property/ pinctrl-names;
status = "disabled";
};
#endif
/* /*
* To enable SCIF1 (SER0) on PMOD1 (CN7), On connector board * To enable SCIF1 (SER0) on PMOD1 (CN7), On connector board
* SW1 should be at position 2->3 so that SER0_CTS# line is activated * SW1 should be at position 2->3 so that SER0_CTS# line is activated
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册