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:
parent
5148c98e83
commit
8474cdcaad
2 changed files with 34 additions and 0 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 */
|
||||
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";
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue