tests: drivers: spi: spi_loopback: support numaker_m2l31ki
Add support for Nuvoton numaker board numaker_m2l31ki. Signed-off-by: cyliang tw <cyliang@nuvoton.com>
This commit is contained in:
parent
820a70242f
commit
fc69f25202
3 changed files with 35 additions and 1 deletions
|
@ -0,0 +1 @@
|
|||
CONFIG_SPI_ASYNC=n
|
|
@ -0,0 +1,33 @@
|
|||
/* SPDX-License-Identifier: Apache-2.0 */
|
||||
|
||||
&pinctrl {
|
||||
/* EVB's NU5: SS/CLK/MISO/MOSI */
|
||||
spi0_default: spi0_default {
|
||||
group0 {
|
||||
pinmux = <PD3MFP_SPI0_SS>,
|
||||
<PD2MFP_SPI0_CLK>,
|
||||
<PD1MFP_SPI0_MISO>,
|
||||
<PD0MFP_SPI0_MOSI>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&gpioa {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&spi0 {
|
||||
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 = <&spi0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
2
west.yml
2
west.yml
|
@ -188,7 +188,7 @@ manifest:
|
|||
groups:
|
||||
- hal
|
||||
- name: hal_nuvoton
|
||||
revision: cf24f9ebd893b349cec439ef7eaac6554a6b6d6f
|
||||
revision: 34efb92e37bd07043a2cab7fff847d8443d930f9
|
||||
path: modules/hal/nuvoton
|
||||
groups:
|
||||
- hal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue