Skip to content

Commit 43c8dec

Browse files
marekmatejnashif
authored andcommitted
snippets: add Espressif related snippets
Introduces the flash and PSRAM variants suitable for every ESP32 related board. Signed-off-by: Marek Matej <[email protected]>
1 parent 2fef93e commit 43c8dec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+555
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. _espressif-flash-16M:
2+
3+
Espressif Flash 16MB
4+
####################
5+
6+
Overview
7+
********
8+
9+
This snippet allows users to select the 16MB SPI flash variant of the ESP32 chips.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright 2025 Espressif Systems Shanghai
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: flash-16M
6+
7+
boards:
8+
/.*/esp32/.*/:
9+
append:
10+
EXTRA_DTC_OVERLAY_FILE: soc/esp32_flash_16M.overlay
11+
/.*/esp32s2/.*/:
12+
append:
13+
EXTRA_DTC_OVERLAY_FILE: soc/esp32s2_flash_16M.overlay
14+
/.*/esp32s3/.*/:
15+
append:
16+
EXTRA_DTC_OVERLAY_FILE: soc/esp32s3_flash_16M.overlay
17+
/.*/esp32c3/.*/:
18+
append:
19+
EXTRA_DTC_OVERLAY_FILE: soc/esp32c3_flash_16M.overlay
20+
/.*/esp32c6/.*/:
21+
append:
22+
EXTRA_DTC_OVERLAY_FILE: soc/esp32c6_flash_16M.overlay
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/delete-node/ &flash0;
8+
9+
#include <espressif/esp32/esp32_common.dtsi>
10+
#include <espressif/partitions_0x1000_amp_16M.dtsi>
11+
12+
&flash0 {
13+
reg = <0x0 DT_SIZE_M(16)>;
14+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/delete-node/ &flash0;
8+
9+
#include <espressif/esp32c3/esp32c3_common.dtsi>
10+
#include <espressif/partitions_0x0_default_16M.dtsi>
11+
12+
&flash0 {
13+
reg = <0x0 DT_SIZE_M(16)>;
14+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/delete-node/ &flash0;
8+
9+
#include <espressif/esp32c6/esp32c6_common.dtsi>
10+
#include <espressif/partitions_0x0_default_16M.dtsi>
11+
12+
&flash0 {
13+
reg = <0x0 DT_SIZE_M(16)>;
14+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/delete-node/ &flash0;
8+
9+
#include <espressif/esp32s2/esp32s2_common.dtsi>
10+
#include <espressif/partitions_0x0_amp_16M.dtsi>
11+
12+
&flash0 {
13+
reg = <0x0 DT_SIZE_M(16)>;
14+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/delete-node/ &flash0;
8+
9+
#include <espressif/esp32s3/esp32s3_common.dtsi>
10+
#include <espressif/partitions_0x0_amp_16M.dtsi>
11+
12+
&flash0 {
13+
reg = <0x0 DT_SIZE_M(16)>;
14+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. _espressif-flash-32M:
2+
3+
Espressif Flash 32MB
4+
####################
5+
6+
Overview
7+
********
8+
9+
This snippet allows users to select the 32MB SPI flash variant of the ESP32 chips.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright 2025 Espressif Systems Shanghai
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: flash-32M
6+
7+
boards:
8+
/.*/esp32/.*/:
9+
append:
10+
EXTRA_DTC_OVERLAY_FILE: soc/esp32_flash_32M.overlay
11+
/.*/esp32s2/.*/:
12+
append:
13+
EXTRA_DTC_OVERLAY_FILE: soc/esp32s2_flash_32M.overlay
14+
/.*/esp32s3/.*/:
15+
append:
16+
EXTRA_DTC_OVERLAY_FILE: soc/esp32s3_flash_32M.overlay
17+
/.*/esp32c3/.*/:
18+
append:
19+
EXTRA_DTC_OVERLAY_FILE: soc/esp32c3_flash_32M.overlay
20+
/.*/esp32c6/.*/:
21+
append:
22+
EXTRA_DTC_OVERLAY_FILE: soc/esp32c6_flash_32M.overlay
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/delete-node/ &flash0;
8+
9+
#include <espressif/esp32/esp32_common.dtsi>
10+
#include <espressif/partitions_0x1000_amp_32M.dtsi>
11+
12+
&flash0 {
13+
reg = <0x0 DT_SIZE_M(32)>;
14+
};

0 commit comments

Comments
 (0)