tests: drivers: spi: add esp32s3_luatos_core

add overlay and conf for esp32s3_luatos_core board

Signed-off-by: YuLong Yao <feilongphone@gmail.com>
This commit is contained in:
YuLong Yao 2023-09-10 12:06:56 +08:00 committed by Carles Cufí
parent c884d7f0c4
commit 676eed840c
4 changed files with 82 additions and 0 deletions

View file

@ -0,0 +1 @@
CONFIG_SPI_ESP32_INTERRUPT=y

View file

@ -0,0 +1,40 @@
/*
* Copyright (c) 2022 Kumar Gala <galak@kernel.org>
*
* SPDX-License-Identifier: Apache-2.0
*/
&pinctrl {
spim3_loopback: spim3_loopback {
group1 {
pinmux = <SPIM3_MISO_GPIO37>;
output-enable; /* Enable internal loopback */
};
group2 {
pinmux = <SPIM3_MOSI_GPIO37>;
input-enable; /* Enable internal loopback */
};
group3 {
pinmux = <SPIM3_SCLK_GPIO36>,
<SPIM3_CSEL_GPIO38>;
};
};
};
&spi3 {
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <100000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <16000000>;
};
};
&spi3 {
dma-enabled;
pinctrl-0 = <&spim3_loopback>;
};

View file

@ -0,0 +1 @@
CONFIG_SPI_ESP32_INTERRUPT=y

View file

@ -0,0 +1,40 @@
/*
* Copyright (c) 2022 Kumar Gala <galak@kernel.org>
*
* SPDX-License-Identifier: Apache-2.0
*/
&pinctrl {
spim3_loopback: spim3_loopback {
group1 {
pinmux = <SPIM3_MISO_GPIO37>;
output-enable; /* Enable internal loopback */
};
group2 {
pinmux = <SPIM3_MOSI_GPIO37>;
input-enable; /* Enable internal loopback */
};
group3 {
pinmux = <SPIM3_SCLK_GPIO36>,
<SPIM3_CSEL_GPIO38>;
};
};
};
&spi3 {
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <100000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <16000000>;
};
};
&spi3 {
dma-enabled;
pinctrl-0 = <&spim3_loopback>;
};