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:
parent
9bb6e2d6f4
commit
a30c5731ae
2 changed files with 26 additions and 0 deletions
|
@ -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
|
||||
|
|
23
tests/drivers/can/api/boards/numaker_m2l31ki.overlay
Normal file
23
tests/drivers/can/api/boards/numaker_m2l31ki.overlay
Normal 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";
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue