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: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
This commit is contained in:
Khoa Nguyen 2024-11-13 11:51:55 +07:00 committed by Benjamin Cabé
parent f8325413dc
commit d95f82c36a
4 changed files with 68 additions and 0 deletions

View file

@ -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";
};
};
};

View file

@ -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";
};
};

View file

@ -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";
};
};
};

View file

@ -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>;
};
};
};