tests: drivers: spi: spi_loopback: support numaker_pfm_m467

Add support for Nuvoton numaker board numaker_pfm_m467.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>
This commit is contained in:
cyliang tw 2023-07-25 11:38:24 +08:00 committed by Fabio Baltieri
commit 8474cdcaad
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1 @@
CONFIG_SPI_ASYNC=n

View file

@ -0,0 +1,33 @@
/* SPDX-License-Identifier: Apache-2.0 */
&pinctrl {
/* EVB's NU5: SS/CLK/MISO/MOSI */
spi2_default: spi2_default {
group0 {
pinmux = <PA11MFP_SPI2_SS>,
<PA10MFP_SPI2_CLK>,
<PA9MFP_SPI2_MISO>,
<PA8MFP_SPI2_MOSI>;
};
};
};
&gpioa {
status = "okay";
};
&spi2 {
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <500000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <16000000>;
};
status = "okay";
pinctrl-0 = <&spi2_default>;
pinctrl-names = "default";
};