Skip to content

Commit 28ec98a

Browse files
Declan Snyderhenrikbrixandersen
authored andcommitted
boards: frdm_mcxw71: Enable FlexCAN
Enable FlexCAN on MCXW71. Signed-off-by: Declan Snyder <[email protected]>
1 parent df95a86 commit 28ec98a

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

boards/nxp/frdm_mcxw71/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ The ``frdm_mcxw71`` board target in Zephyr currently supports the following feat
6969
+-----------+------------+-------------------------------------+
7070
| BLE | on-chip | Bluetooth |
7171
+-----------+------------+-------------------------------------+
72+
| FLEXCAN | on-chip | can |
73+
+-----------+------------+-------------------------------------+
7274

7375
Fetch Binary Blobs
7476
******************

boards/nxp/frdm_mcxw71/frdm_mcxw71-pinctrl.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,12 @@
5050
drive-strength = "low";
5151
};
5252
};
53+
54+
pinmux_flexcan: pinmux_flexcan {
55+
group0 {
56+
pinmux = <CAN0_RX_PTC5>, <CAN0_TX_PTC4>;
57+
slew-rate = "slow";
58+
drive-strength = "low";
59+
};
60+
};
5361
};

boards/nxp/frdm_mcxw71/frdm_mcxw71.dts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
zephyr,console = &lpuart1;
2727
zephyr,shell-uart = &lpuart1;
2828
zephyr,uart-pipe = &lpuart0;
29+
zephyr,canbus = &flexcan0;
2930
};
3031

3132
user_led {
@@ -116,3 +117,13 @@
116117
&lptmr0 {
117118
status = "okay";
118119
};
120+
121+
&flexcan0 {
122+
status = "okay";
123+
pinctrl-0 = <&pinmux_flexcan>;
124+
pinctrl-names = "default";
125+
126+
can-transceiver {
127+
max-bitrate = <5000000>;
128+
};
129+
};

boards/nxp/frdm_mcxw71/frdm_mcxw71.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ supported:
1818
- flash
1919
- spi
2020
- i2c
21+
- can

0 commit comments

Comments
 (0)