arm64: dts: renesas: r9a09g087m44-rzn2h-evk: Enable CANFD

Enable CANFD channel 1, which is available on the CN35 connector.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20251224175204.3400062-5-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
master
Lad Prabhakar 2025-12-24 17:52:02 +00:00 committed by Geert Uytterhoeven
parent d3112a820c
commit 3e6c313f4f
1 changed files with 29 additions and 0 deletions

View File

@ -29,6 +29,13 @@
#define SD0_EMMC 1
#define SD0_SD (!SD0_EMMC)
/*
* To enable CANFD interface disable both eMMC and SD card on SDHI0 by
* setting SD0_EMMC and SD0_SD macros to 0 as pins P12_0 and P12_1
* will be used for CANFD interface.
*/
#define CANFD_ENABLE (!SD0_EMMC && !SD0_SD)
/*
* P17_4 = SD1_CD; DSW5[3] = ON; DSW19[1] = OFF; DSW19[2] = ON
* P08_6 = SD1_IOVS; DSW5[3] = ON
@ -203,6 +210,18 @@
};
};
#if CANFD_ENABLE
&canfd {
pinctrl-0 = <&can1_pins>;
pinctrl-names = "default";
status = "okay";
channel1 {
status = "okay";
};
};
#endif
#if I2C0
&i2c0 {
pinctrl-0 = <&i2c0_pins>;
@ -239,6 +258,16 @@
};
&pinctrl {
/*
* CAN1 Pin Configuration:
*
* DSW5[1] ON; DSW5[2] OFF - Use P12_0 and P12_1 for CAN1 interface.
*/
can1_pins: can1-pins {
pinmux = <RZT2H_PORT_PINMUX(12, 0, 0x19)>, /* CANRX1 */
<RZT2H_PORT_PINMUX(12, 1, 0x19)>; /* CANTX1 */
};
/*
* GMAC2 Pin Configuration:
*