tests: drivers: can: api: support numaker_m2l31ki

Add support for Nuvoton numaker board numaker_m2l31ki.
m2l31x has 4 MPU regions and can't afford one more region
for USERSPACE, so set CONFIG_USERSPACE=n in m2l31ki_defconfig.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>
This commit is contained in:
cyliang tw 2024-05-31 20:06:28 +08:00 committed by Henrik Brix Andersen
commit a30c5731ae
2 changed files with 26 additions and 0 deletions

View file

@ -21,3 +21,6 @@ CONFIG_UART_CONSOLE=y
# Enable RMC
CONFIG_FLASH=y
# m2l31x has 4 MPU regions and can't afford to enable CONFIG_USERSPACE
CONFIG_USERSPACE=n

View file

@ -0,0 +1,23 @@
/* SPDX-License-Identifier: Apache-2.0 */
/ {
chosen {
zephyr,canbus = &canfd0;
};
};
&pinctrl {
/* CAN TX/RX --> UNO D3/D2 */
canfd0_default: canfd0_default {
group0 {
pinmux = <PC5MFP_CANFD0_TXD>,
<PC4MFP_CANFD0_RXD>;
};
};
};
&canfd0 {
pinctrl-0 = <&canfd0_default>;
pinctrl-names = "default";
status = "okay";
};