samples: esp32c3: Move config files from boards to socs

Move samples config files from 'boards' to 'socs' in order to
remove multiple files with the same configuration and render
available samples for new boards. Only changed sample files
which are not board or hardware specific.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
This commit is contained in:
Raffael Rostagno 2024-07-30 13:21:38 -03:00 committed by Anas Nashif
commit a205fe9155
56 changed files with 4 additions and 366 deletions

View file

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

View file

@ -1,21 +0,0 @@
/*
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
aliases {
/* On ESP32-C3, only GPIO0~5 can be used
* as wake-up sources
*/
wakeup-button = &sample_button;
};
gpio_keys {
compatible = "gpio-keys";
sample_button: sample_button {
gpios = <&gpio0 0 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
};
};
};

View file

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

View file

@ -1,21 +0,0 @@
/*
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
aliases {
/* On ESP32-C3, only GPIO0~5 can be used
* as wake-up sources
*/
wakeup-button = &sample_button;
};
gpio_keys {
compatible = "gpio-keys";
sample_button: sample_button {
gpios = <&gpio0 0 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
};
};
};

View file

@ -1,3 +0,0 @@
&timer0 {
status = "okay";
};

View file

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

View file

@ -1,11 +0,0 @@
/*
* Copyright (c) 2023, Hiroki Tada
*
* SPDX-License-Identifier: Apache-2.0
*
* Application overlay for creating temperature sensor device instance
*/
&coretemp {
status = "okay";
};

View file

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

View file

@ -1,11 +0,0 @@
/*
* Copyright (c) 2023, Hiroki Tada
*
* SPDX-License-Identifier: Apache-2.0
*
* Application overlay for creating temperature sensor device instance
*/
&coretemp {
status = "okay";
};

View file

@ -1 +0,0 @@
CONFIG_HEAP_MEM_POOL_SIZE=256

View file

@ -1 +0,0 @@
CONFIG_HEAP_MEM_POOL_SIZE=256

View file

@ -1,4 +0,0 @@
CONFIG_HEAP_MEM_POOL_SIZE=256
CONFIG_NVS=y
CONFIG_SETTINGS_NVS=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y

View file

@ -1,4 +0,0 @@
CONFIG_HEAP_MEM_POOL_SIZE=256
CONFIG_NVS=y
CONFIG_SETTINGS_NVS=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y

View file

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

View file

@ -1,35 +0,0 @@
/*
* Copyright (c) 2022 Wolter HV <wolterhv@gmx.de>
* Copyright (c) 2023 Benjamin Björnsson <benjamin.bjornsson@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
zephyr,user {
/* adjust channel number according to pinmux in board.dts */
io-channels = <&adc0 0>, <&adc0 1>;
};
};
&adc0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};
channel@1 {
reg = <1>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};
};

View file

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

View file

@ -1,35 +0,0 @@
/*
* Copyright (c) 2022 Wolter HV <wolterhv@gmx.de>
* Copyright (c) 2023 Benjamin Björnsson <benjamin.bjornsson@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
zephyr,user {
/* adjust channel number according to pinmux in board.dts */
io-channels = <&adc0 0>, <&adc0 1>;
};
};
&adc0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};
channel@1 {
reg = <1>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};
};

View file

@ -1,3 +0,0 @@
&timer0 {
status = "okay";
};

View file

@ -1,3 +0,0 @@
&timer0 {
status = "okay";
};

View file

@ -1,3 +0,0 @@
&timer0 {
status = "okay";
};

View file

@ -1,11 +0,0 @@
/*
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
&dma {
status = "okay";
};
tst_dma0: &dma { };

View file

@ -1,3 +0,0 @@
CONFIG_DMA_TRANSFER_CHANNEL_NR_0=5
CONFIG_DMA_TRANSFER_CHANNEL_NR_1=0
CONFIG_HEAP_MEM_POOL_SIZE=32768

View file

@ -1,11 +0,0 @@
/*
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
&dma {
status = "okay";
};
tst_dma0: &dma { };

View file

@ -1,3 +0,0 @@
CONFIG_DMA_TRANSFER_CHANNEL_NR_0=5
CONFIG_DMA_TRANSFER_CHANNEL_NR_1=0
CONFIG_HEAP_MEM_POOL_SIZE=32768

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/

View file

@ -1,2 +0,0 @@
CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR=0
CONFIG_DMA_LOOP_TRANSFER_SIZE=4094

View file

@ -1,11 +0,0 @@
/*
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
&dma {
status = "okay";
};
tst_dma0: &dma { };

View file

@ -1,2 +0,0 @@
CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR=0
CONFIG_DMA_LOOP_TRANSFER_SIZE=4094

View file

@ -1,11 +0,0 @@
/*
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
&dma {
status = "okay";
};
tst_dma0: &dma { };

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/

View file

@ -1 +0,0 @@
CONFIG_HEAP_MEM_POOL_SIZE=16384

View file

@ -1 +0,0 @@
CONFIG_HEAP_MEM_POOL_SIZE=16384

View file

@ -1,13 +0,0 @@
/*
* Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
resources {
compatible = "test-gpio-basic-api";
out-gpios = <&gpio0 4 0>;
in-gpios = <&gpio0 5 0>;
};
};

View file

@ -1,13 +0,0 @@
/*
* Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
resources {
compatible = "test-gpio-basic-api";
out-gpios = <&gpio0 4 0>;
in-gpios = <&gpio0 5 0>;
};
};

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/

View file

@ -1,34 +0,0 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
*/
#include <zephyr/dt-bindings/pwm/pwm.h>
/ {
aliases {
pwm-0 = &ledc0;
};
};
&pinctrl {
ledc0_default: ledc0_default {
group1 {
pinmux = <LEDC_CH0_GPIO2>;
output-enable;
};
};
};
&ledc0 {
pinctrl-0 = <&ledc0_default>;
pinctrl-names = "default";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
channel0@0 {
reg = <0x0>;
timer = <0>;
};
};

View file

@ -1,34 +0,0 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
*/
#include <zephyr/dt-bindings/pwm/pwm.h>
/ {
aliases {
pwm-0 = &ledc0;
};
};
&pinctrl {
ledc0_default: ledc0_default {
group1 {
pinmux = <LEDC_CH0_GPIO2>;
output-enable;
};
};
};
&ledc0 {
pinctrl-0 = <&ledc0_default>;
pinctrl-names = "default";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
channel0@0 {
reg = <0x0>;
timer = <0>;
};
};

View file

@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
*/
#include <zephyr/dt-bindings/pwm/pwm.h>

View file

@ -1,25 +0,0 @@
/*
* Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
&flash0 {
partitions {
/*
* Reduce storage_partition to make space for
* coredump_partition
*/
storage_partition: partition@250000 {
label = "storage";
reg = <0x00250000 0x00005000>;
};
coredump_partition: partition@255000 {
label = "coredump-partition";
reg = <0x255000 DT_SIZE_K(4)>;
};
};
};

View file

@ -1,25 +0,0 @@
/*
* Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
&flash0 {
partitions {
/*
* Reduce storage_partition to make space for
* coredump_partition
*/
storage_partition: partition@250000 {
label = "storage";
reg = <0x00250000 0x00005000>;
};
coredump_partition: partition@255000 {
label = "coredump-partition";
reg = <0x255000 DT_SIZE_K(4)>;
};
};
};