Commit d95f82c3 authored by Khoa Nguyen's avatar Khoa Nguyen Committed by Benjamin Cabé
Browse files

boards: renesas: Add support CAN-FD for Renesas RA6, RA4



- Add support CAN-FD for EK-RA6E2, EK-RA4E2
- Enable ioport for can-transceiver on EK-RA6E2, EK-RA4E2

Signed-off-by: default avatarKhoa Nguyen <khoa.nguyen.xh@renesas.com>
parent f8325413
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -21,4 +21,13 @@
			<RA_PSEL(RA_PSEL_SPI, 3, 1)>;
		};
	};

	canfd0_default: canfd0_default {
		group1 {
			/* CRX0 CTX0 */
			psels = <RA_PSEL(RA_PSEL_CANFD, 4, 2)>,
			<RA_PSEL(RA_PSEL_CANFD, 4, 1)>;
			drive-strength = "high";
		};
	};
};
+29 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@
		zephyr,flash = &flash0;
		zephyr,console = &uart0;
		zephyr,shell-uart = &uart0;
		zephyr,canbus = &canfd0;
	};

	leds {
@@ -39,6 +40,13 @@
	aliases {
		led0 = &led1;
	};

	transceiver0: can-phy0 {
		compatible = "nxp,tja1043t", "can-transceiver-gpio";
		standby-gpios = <&ioport4 0 GPIO_ACTIVE_LOW>;
		max-bitrate = <5000000>;
		#phy-cells = <0>;
	};
};

&xtal {
@@ -82,3 +90,24 @@
	pinctrl-names = "default";
	status = "okay";
};

&ioport4 {
	status = "okay";
};

&canfdclk {
	clocks = <&pll>;
	div = <8>;
	status = "okay";
};

&canfd_global {
	status = "okay";
	canfd0 {
		pinctrl-0 = <&canfd0_default>;
		pinctrl-names = "default";
		phys = <&transceiver0>;
		rx-max-filters = <16>;
		status = "okay";
	};
};
+9 −0
Original line number Diff line number Diff line
@@ -21,4 +21,13 @@
			<RA_PSEL(RA_PSEL_SPI, 3, 1)>;
		};
	};

	canfd0_default: canfd0_default {
		group1 {
			/* CRX0 CTX0 */
			psels = <RA_PSEL(RA_PSEL_CANFD, 4, 2)>,
			<RA_PSEL(RA_PSEL_CANFD, 4, 1)>;
			drive-strength = "high";
		};
	};
};
+21 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@
		zephyr,flash = &flash0;
		zephyr,console = &uart0;
		zephyr,shell-uart = &uart0;
		zephyr,canbus = &canfd0;
	};

	leds {
@@ -105,3 +106,23 @@
	mul = <10 0>;
	status = "okay";
};

&canfdclk {
	clocks = <&pll>;
	div = <8>;
	status = "okay";
};

&canfd_global {
	status = "okay";
	canfd0 {
		pinctrl-0 = <&canfd0_default>;
		pinctrl-names = "default";
		rx-max-filters = <16>;
		status = "okay";

		can-transceiver {
			max-bitrate = <5000000>;
		};
	};
};