#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
};
};
+#if CANFD_ENABLE
+&canfd {
+ pinctrl-0 = <&can1_pins>;
+ pinctrl-names = "default";
+ status = "okay";
+
+ channel1 {
+ status = "okay";
+ };
+};
+#endif
+
#if I2C0
&i2c0 {
pinctrl-0 = <&i2c0_pins>;
};
&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:
*