Skip to content

Commit

Permalink
boards: nxp: mimxrt1180_evk: add flexcan support
Browse files Browse the repository at this point in the history
Add flexcan pin pinctrl

Test samples/subsys/canbus/isotp on B2B way
(Need to weld pin header on J35)

Signed-off-by: Lucien Zhao <[email protected]>
  • Loading branch information
lucien-nxp authored and henrikbrixandersen committed Oct 18, 2024
1 parent ef4ff8e commit c847cd5
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boards/nxp/mimxrt1180_evk/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ configuration supports the following hardware features:
+-----------+------------+-------------------------------------+
| NETC | on-chip | ethernet, mdio |
+-----------+------------+-------------------------------------+
| CAN | on-chip | can |
+-----------+------------+-------------------------------------+

The default configuration can be found in the defconfig file:
:zephyr_file:`boards/nxp/mimxrt1180_evk/mimxrt1180_evk_mimxrt1189_cm33_defconfig`
Expand Down
10 changes: 10 additions & 0 deletions boards/nxp/mimxrt1180_evk/mimxrt1180_evk-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,14 @@
slew-rate = "fast";
};
};

/* Need to weld pin header on J35 */
pinmux_flexcan3: pinmux_flexcan3 {
group0 {
pinmux = <&iomuxc_aon_gpio_aon_03_flexcan3_rx>,
<&iomuxc_aon_gpio_aon_18_flexcan3_tx>;
drive-strength = "high";
slew-rate = "fast";
};
};
};
8 changes: 8 additions & 0 deletions boards/nxp/mimxrt1180_evk/mimxrt1180_evk.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,11 @@
pinctrl-0 = <&pinmux_lpadc1>;
pinctrl-names = "default";
};

&flexcan3 {
pinctrl-0 = <&pinmux_flexcan3>;
pinctrl-names = "default";
can-transceiver {
max-bitrate = <5000000>;
};
};
5 changes: 5 additions & 0 deletions boards/nxp/mimxrt1180_evk/mimxrt1180_evk_mimxrt1189_cm33.dts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
zephyr,flash = &w25q128jw;
zephyr,console = &lpuart1;
zephyr,shell-uart = &lpuart1;
zephyr,canbus = &flexcan3;
};

hyperram0: memory@14000000 {
Expand Down Expand Up @@ -66,3 +67,7 @@
&gpt2 {
status = "okay";
};

&flexcan3 {
status = "okay";
};
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ supported:
- counter
- adc
- netif:eth
- can
vendor: nxp
5 changes: 5 additions & 0 deletions boards/nxp/mimxrt1180_evk/mimxrt1180_evk_mimxrt1189_cm7.dts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
zephyr,flash = &itcm;
zephyr,console = &lpuart1;
zephyr,shell-uart = &lpuart1;
zephyr,canbus = &flexcan3;
};
};

Expand All @@ -38,3 +39,7 @@
&gpt2 {
status = "okay";
};

&flexcan3 {
status = "okay";
};
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ supported:
- i2c
- counter
- adc
- can
vendor: nxp

0 comments on commit c847cd5

Please sign in to comment.