Skip to content

Commit ca0f5f6

Browse files
cyliangtwkartben
authored andcommitted
tests: drivers: spi: spi_loopback: support numaker_m55m1
Add support for Nuvoton numaker board numaker_m55m1. Signed-off-by: cyliang tw <cyliang@nuvoton.com>
1 parent 30be9da commit ca0f5f6

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_SPI_ASYNC=n
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
&pinctrl {
4+
/* EVB's NU5: SS/CLK/MISO/MOSI */
5+
spi2_default: spi2_default {
6+
group0 {
7+
pinmux = <PA11MFP_SPI2_SS>,
8+
<PA10MFP_SPI2_CLK>,
9+
<PA9MFP_SPI2_MISO>,
10+
<PA8MFP_SPI2_MOSI>;
11+
};
12+
};
13+
};
14+
15+
&spi2 {
16+
slow@0 {
17+
compatible = "test-spi-loopback-slow";
18+
reg = <0>;
19+
spi-max-frequency = <DT_FREQ_K(500)>;
20+
};
21+
fast@0 {
22+
compatible = "test-spi-loopback-fast";
23+
reg = <0>;
24+
spi-max-frequency = <DT_FREQ_M(16)>;
25+
};
26+
status = "okay";
27+
pinctrl-0 = <&spi2_default>;
28+
pinctrl-names = "default";
29+
};

0 commit comments

Comments
 (0)