boards: esp32xx: Use common partition tables
* Replace copies of fixed-partitions nodes in related boards by
referencing the apropriate partition table from the available list.
* For better reference the `partitions_*.dtsi` file has boot offset,
purpose and the flash size encoded in the file name. Default flash size
is considered to be 4MB.
* Added the flash size node for the boards which are not based on the
module.
* Removed flash size registry from the esp32.*common.dtsi
Signed-off-by: Marek Matej <marek.matej@espressif.com>
(cherry picked from commit 78c1def4db53302823be34a321a2118bf08c9bd4)
diff --git a/boards/01space/esp32c3_042_oled/esp32c3_042_oled.dts b/boards/01space/esp32c3_042_oled/esp32c3_042_oled.dts
index c7680c0..219b6f1 100644
--- a/boards/01space/esp32c3_042_oled/esp32c3_042_oled.dts
+++ b/boards/01space/esp32c3_042_oled/esp32c3_042_oled.dts
@@ -9,6 +9,7 @@
#include <espressif/esp32c3/esp32c3_fx4.dtsi>
#include "esp32c3_042_oled-pinctrl.dtsi"
+#include <espressif/partitions_0x0_default.dtsi>
/ {
model = "01space ESP32C3 0.42 OLED";
@@ -104,37 +105,3 @@
&esp32_bt_hci {
status = "okay";
};
-
-&flash0 {
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- boot_partition: partition@0 {
- label = "mcuboot";
- reg = <0x00000000 0x0000F000>;
- read-only;
- };
-
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 0x00100000>;
- };
-
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 0x00100000>;
- };
-
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 0x00040000>;
- };
-
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 0x00006000>;
- };
- };
-};
diff --git a/boards/dptechnics/walter/walter_esp32s3_appcpu.dts b/boards/dptechnics/walter/walter_esp32s3_appcpu.dts
index b886a2c..d0f3dfd 100644
--- a/boards/dptechnics/walter/walter_esp32s3_appcpu.dts
+++ b/boards/dptechnics/walter/walter_esp32s3_appcpu.dts
@@ -5,7 +5,7 @@
*/
/dts-v1/;
-#include <espressif/esp32s3/esp32s3_appcpu.dtsi>
+#include <espressif/esp32s3/esp32s3_wroom_n16r2.dtsi>
#include <espressif/partitions_0x0_amp.dtsi>
/ {
diff --git a/boards/espressif/esp32s3_devkitc/esp32s3_devkitc_appcpu.dts b/boards/espressif/esp32s3_devkitc/esp32s3_devkitc_appcpu.dts
index b1ad215..f105a0f 100644
--- a/boards/espressif/esp32s3_devkitc/esp32s3_devkitc_appcpu.dts
+++ b/boards/espressif/esp32s3_devkitc/esp32s3_devkitc_appcpu.dts
@@ -5,7 +5,7 @@
*/
/dts-v1/;
-#include <espressif/esp32s3/esp32s3_appcpu.dtsi>
+#include <espressif/esp32s3/esp32s3_wroom_n8.dtsi>
#include <espressif/partitions_0x0_amp.dtsi>
#include "esp32s3_devkitc-pinctrl.dtsi"
diff --git a/boards/espressif/esp32s3_devkitm/esp32s3_devkitm_appcpu.dts b/boards/espressif/esp32s3_devkitm/esp32s3_devkitm_appcpu.dts
index a74e8f9..4946139 100644
--- a/boards/espressif/esp32s3_devkitm/esp32s3_devkitm_appcpu.dts
+++ b/boards/espressif/esp32s3_devkitm/esp32s3_devkitm_appcpu.dts
@@ -5,7 +5,7 @@
*/
/dts-v1/;
-#include <espressif/esp32s3/esp32s3_appcpu.dtsi>
+#include <espressif/esp32s3/esp32s3_mini_n8.dtsi>
#include <espressif/partitions_0x0_amp.dtsi>
#include "esp32s3_devkitm-pinctrl.dtsi"
diff --git a/boards/espressif/esp32s3_eye/esp32s3_eye_appcpu.dts b/boards/espressif/esp32s3_eye/esp32s3_eye_appcpu.dts
index f51ffac..cd14ce2 100644
--- a/boards/espressif/esp32s3_eye/esp32s3_eye_appcpu.dts
+++ b/boards/espressif/esp32s3_eye/esp32s3_eye_appcpu.dts
@@ -21,6 +21,10 @@
};
};
+&flash0 {
+ reg = <0x0 DT_SIZE_M(4)>;
+};
+
&trng0 {
status = "okay";
};
diff --git a/boards/espressif/esp32s3_eye/esp32s3_eye_procpu.dts b/boards/espressif/esp32s3_eye/esp32s3_eye_procpu.dts
index fab93cb..44d44f6 100644
--- a/boards/espressif/esp32s3_eye/esp32s3_eye_procpu.dts
+++ b/boards/espressif/esp32s3_eye/esp32s3_eye_procpu.dts
@@ -10,6 +10,7 @@
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <zephyr/dt-bindings/input/esp32-touch-sensor-input.h>
#include <zephyr/dt-bindings/mipi_dbi/mipi_dbi.h>
+#include <espressif/partitions_0x0_amp.dtsi>
/ {
model = "Espressif ESP32S3-EYE PROCPU";
@@ -200,45 +201,6 @@
status = "okay";
};
-&flash0 {
- status = "okay";
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- /* Reserve 64kB for the bootloader */
- boot_partition: partition@0 {
- label = "mcuboot";
- reg = <0x00000000 0x00010000>;
- read-only;
- };
-
- /* Reserve 1024kB for the application in slot 0 */
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 0x00100000>;
- };
-
- /* Reserve 1024kB for the application in slot 1 */
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 0x00100000>;
- };
-
- /* Reserve 256kB for the scratch partition */
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 0x00040000>;
- };
-
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 0x00006000>;
- };
- };
-};
-
&esp32_bt_hci {
status = "okay";
};
diff --git a/boards/franzininho/esp32s2_franzininho/esp32s2_franzininho.dts b/boards/franzininho/esp32s2_franzininho/esp32s2_franzininho.dts
index 74d5f76..beee681 100644
--- a/boards/franzininho/esp32s2_franzininho/esp32s2_franzininho.dts
+++ b/boards/franzininho/esp32s2_franzininho/esp32s2_franzininho.dts
@@ -8,6 +8,7 @@
#include <espressif/esp32s2/esp32s2_wroom.dtsi>
#include "esp32s2_franzininho-pinctrl.dtsi"
+#include <espressif/partitions_0x1000_default.dtsi>
/ {
model = "ESP32S2 Franzininho";
@@ -107,45 +108,6 @@
pinctrl-names = "default";
};
-&flash0 {
- status = "okay";
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- /* Reserve 60kB for the bootloader */
- boot_partition: partition@1000 {
- label = "mcuboot";
- reg = <0x00001000 0x0000F000>;
- read-only;
- };
-
- /* Reserve 1024kB for the application in slot 0 */
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 0x00100000>;
- };
-
- /* Reserve 1024kB for the application in slot 1 */
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 0x00100000>;
- };
-
- /* Reserve 256kB for the scratch partition */
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 0x00040000>;
- };
-
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 0x00006000>;
- };
- };
-};
-
&wdt0 {
status = "okay";
};
diff --git a/boards/heltec/heltec_wifi_lora32_v2/heltec_wifi_lora32_v2_appcpu.dts b/boards/heltec/heltec_wifi_lora32_v2/heltec_wifi_lora32_v2_appcpu.dts
index 1b9f7df..3cbdd5e 100644
--- a/boards/heltec/heltec_wifi_lora32_v2/heltec_wifi_lora32_v2_appcpu.dts
+++ b/boards/heltec/heltec_wifi_lora32_v2/heltec_wifi_lora32_v2_appcpu.dts
@@ -6,6 +6,7 @@
/dts-v1/;
#include <espressif/esp32/esp32_appcpu.dtsi>
+#include <espressif/partitions_0x1000_amp.dtsi>
/ {
model = "Heltec Wi-Fi Lora32 V2 APPCPU";
@@ -25,42 +26,3 @@
&trng0 {
status = "okay";
};
-
-&flash0 {
- status = "okay";
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- /* Reserve 60kB for the bootloader */
- boot_partition: partition@1000 {
- label = "mcuboot";
- reg = <0x00001000 0x0000F000>;
- read-only;
- };
-
- /* Reserve 1024kB for the application in slot 0 */
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 0x00100000>;
- };
-
- /* Reserve 1024kB for the application in slot 1 */
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 0x00100000>;
- };
-
- /* Reserve 256kB for the scratch partition */
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 0x00040000>;
- };
-
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 0x00006000>;
- };
- };
-};
diff --git a/boards/heltec/heltec_wifi_lora32_v2/heltec_wifi_lora32_v2_procpu.dts b/boards/heltec/heltec_wifi_lora32_v2/heltec_wifi_lora32_v2_procpu.dts
index 4c7cedf..3239472 100644
--- a/boards/heltec/heltec_wifi_lora32_v2/heltec_wifi_lora32_v2_procpu.dts
+++ b/boards/heltec/heltec_wifi_lora32_v2/heltec_wifi_lora32_v2_procpu.dts
@@ -8,6 +8,7 @@
#include <espressif/esp32/esp32_d0wd_v3.dtsi>
#include "heltec_wifi_lora32_v2-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
+#include <espressif/partitions_0x1000_amp.dtsi>
/ {
model = "Heltec Wi-Fi Lora32 V2 PROCPU";
@@ -59,6 +60,10 @@
};
};
+&flash0 {
+ reg = <0x0 DT_SIZE_M(4)>;
+};
+
&uart0 {
status = "okay";
current-speed = <115200>;
@@ -106,50 +111,6 @@
};
};
-&flash0 {
- /* the board is using plain d0wd SoC part without the flash
- * so any additional flash size should be defined at the board level
- */
- reg = <0x0 DT_SIZE_M(8)>;
-
- status = "okay";
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- /* Reserve 60kB for the bootloader */
- boot_partition: partition@1000 {
- label = "mcuboot";
- reg = <0x00001000 0x0000F000>;
- read-only;
- };
-
- /* Reserve 1024kB for the application in slot 0 */
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 0x00100000>;
- };
-
- /* Reserve 1024kB for the application in slot 1 */
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 0x00100000>;
- };
-
- /* Reserve 256kB for the scratch partition */
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 0x00040000>;
- };
-
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 0x00006000>;
- };
- };
-};
-
&esp32_bt_hci {
status = "okay";
};
diff --git a/boards/heltec/heltec_wireless_stick_lite_v3/heltec_wireless_stick_lite_v3_appcpu.dts b/boards/heltec/heltec_wireless_stick_lite_v3/heltec_wireless_stick_lite_v3_appcpu.dts
index 9a5e3eb..0a32e1d 100644
--- a/boards/heltec/heltec_wireless_stick_lite_v3/heltec_wireless_stick_lite_v3_appcpu.dts
+++ b/boards/heltec/heltec_wireless_stick_lite_v3/heltec_wireless_stick_lite_v3_appcpu.dts
@@ -21,6 +21,10 @@
};
};
+&flash0 {
+ reg = <0x0 DT_SIZE_M(4)>;
+};
+
&trng0 {
status = "okay";
};
diff --git a/boards/heltec/heltec_wireless_stick_lite_v3/heltec_wireless_stick_lite_v3_procpu.dts b/boards/heltec/heltec_wireless_stick_lite_v3/heltec_wireless_stick_lite_v3_procpu.dts
index d4b2f2b..e955d2b 100644
--- a/boards/heltec/heltec_wireless_stick_lite_v3/heltec_wireless_stick_lite_v3_procpu.dts
+++ b/boards/heltec/heltec_wireless_stick_lite_v3/heltec_wireless_stick_lite_v3_procpu.dts
@@ -12,6 +12,7 @@
#include <zephyr/dt-bindings/pwm/pwm.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <zephyr/dt-bindings/lora/sx126x.h>
+#include <espressif/partitions_0x0_amp.dtsi>
/ {
model = "Heltec Wireless Stick Lite V3 PROCPU";
@@ -76,6 +77,10 @@
};
};
+&flash0 {
+ reg = <0x0 DT_SIZE_M(4)>;
+};
+
&adc1 {
status ="okay";
};
@@ -168,45 +173,6 @@
pinctrl-names = "default";
};
-&flash0 {
- status = "okay";
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- /* Reserve 64kB for the bootloader */
- boot_partition: partition@0 {
- label = "mcuboot";
- reg = <0x00000000 0x00010000>;
- read-only;
- };
-
- /* Reserve 1024kB for the application in slot 0 */
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 0x00100000>;
- };
-
- /* Reserve 1024kB for the application in slot 1 */
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 0x00100000>;
- };
-
- /* Reserve 256kB for the scratch partition */
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 0x00040000>;
- };
-
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 0x00006000>;
- };
- };
-};
-
&esp32_bt_hci {
status = "okay";
};
diff --git a/boards/lilygo/ttgo_lora32/ttgo_lora32-pinctrl.dtsi b/boards/lilygo/ttgo_lora32/ttgo_lora32-pinctrl.dtsi
index 5f043dd..b8140e4 100644
--- a/boards/lilygo/ttgo_lora32/ttgo_lora32-pinctrl.dtsi
+++ b/boards/lilygo/ttgo_lora32/ttgo_lora32-pinctrl.dtsi
@@ -42,4 +42,11 @@
};
};
+ sdhc0_default: sdhc0_default {
+ group1 {
+ pinmux = <SDHC0_CD_GPIO34>;
+ bias-pull-up;
+ output-high;
+ };
+ };
};
diff --git a/boards/lilygo/ttgo_lora32/ttgo_lora32_esp32_appcpu.dts b/boards/lilygo/ttgo_lora32/ttgo_lora32_esp32_appcpu.dts
index c5eb19c..4315728 100644
--- a/boards/lilygo/ttgo_lora32/ttgo_lora32_esp32_appcpu.dts
+++ b/boards/lilygo/ttgo_lora32/ttgo_lora32_esp32_appcpu.dts
@@ -6,6 +6,7 @@
/dts-v1/;
#include <espressif/esp32/esp32_appcpu.dtsi>
+#include <espressif/partitions_0x1000_amp.dtsi>
/ {
model = "ttgo LoRa32 APPCPU";
@@ -25,42 +26,3 @@
&trng0 {
status = "okay";
};
-
-&flash0 {
- status = "okay";
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- /* Reserve 60kB for the bootloader */
- boot_partition: partition@1000 {
- label = "mcuboot";
- reg = <0x00001000 0x0000F000>;
- read-only;
- };
-
- /* Reserve 1024kB for the application in slot 0 */
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 0x00100000>;
- };
-
- /* Reserve 1024kB for the application in slot 1 */
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 0x00100000>;
- };
-
- /* Reserve 256kB for the scratch partition */
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 0x00040000>;
- };
-
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 0x00006000>;
- };
- };
-};
diff --git a/boards/lilygo/ttgo_lora32/ttgo_lora32_esp32_procpu.dts b/boards/lilygo/ttgo_lora32/ttgo_lora32_esp32_procpu.dts
index d8dfad0..de020fc 100644
--- a/boards/lilygo/ttgo_lora32/ttgo_lora32_esp32_procpu.dts
+++ b/boards/lilygo/ttgo_lora32/ttgo_lora32_esp32_procpu.dts
@@ -8,6 +8,7 @@
#include <espressif/esp32/esp32_pico_d4.dtsi>
#include "ttgo_lora32-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
+#include <espressif/partitions_0x1000_amp.dtsi>
/ {
model = "ttgo LoRa32 PROCPU";
@@ -121,41 +122,27 @@
status = "okay";
};
-&flash0 {
- status = "okay";
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
+&sdhc {
+ sdhc1: sdhc@1 {
+ status = "okay";
- /* Reserve 60kB for the bootloader */
- boot_partition: partition@1000 {
- label = "mcuboot";
- reg = <0x00001000 0x0000F000>;
- read-only;
- };
+ pinctrl-0 = <&sdhc0_default>;
+ pinctrl-names = "default";
+ power-delay-ms = <100>;
+ max-bus-freq = <52000000>;
+ bus-width = <4>;
- /* Reserve 1024kB for the application in slot 0 */
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 0x00100000>;
- };
+ clk-pin = <14>;
+ cmd-pin = <15>;
+ d0-pin = <2>;
+ d1-pin = <4>;
+ d2-pin = <12>;
+ d3-pin = <13>;
- /* Reserve 1024kB for the application in slot 1 */
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 0x00100000>;
- };
-
- /* Reserve 256kB for the scratch partition */
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 0x00040000>;
- };
-
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 0x00006000>;
+ mmc {
+ compatible = "zephyr,sdmmc-disk";
+ disk-name = "SD";
+ status = "okay";
};
};
};
diff --git a/boards/lilygo/ttgo_t8c3/ttgo_t8c3.dts b/boards/lilygo/ttgo_t8c3/ttgo_t8c3.dts
index a38f577..3e2b0ab 100644
--- a/boards/lilygo/ttgo_t8c3/ttgo_t8c3.dts
+++ b/boards/lilygo/ttgo_t8c3/ttgo_t8c3.dts
@@ -8,6 +8,7 @@
#include <espressif/esp32c3/esp32c3_common.dtsi>
#include "ttgo_t8c3-pinctrl.dtsi"
+#include <espressif/partitions_0x0_default.dtsi>
/ {
model = "Lilygo TTGO T8-C3";
@@ -38,6 +39,10 @@
};
};
+&flash0 {
+ reg = <0x0 DT_SIZE_M(4)>;
+};
+
&uart0 {
status = "okay";
current-speed = <115200>;
@@ -97,37 +102,3 @@
&esp32_bt_hci{
status = "okay";
};
-
-&flash0 {
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- boot_partition: partition@0 {
- label = "mcuboot";
- reg = <0x00000000 0x0000F000>;
- read-only;
- };
-
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 0x00100000>;
- };
-
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 0x00100000>;
- };
-
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 0x00040000>;
- };
-
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 0x00006000>;
- };
- };
-};
diff --git a/boards/luatos/esp32c3_luatos_core/esp32c3_luatos_core.dtsi b/boards/luatos/esp32c3_luatos_core/esp32c3_luatos_core.dtsi
index c7b5b62..f000b61 100644
--- a/boards/luatos/esp32c3_luatos_core/esp32c3_luatos_core.dtsi
+++ b/boards/luatos/esp32c3_luatos_core/esp32c3_luatos_core.dtsi
@@ -7,6 +7,7 @@
#include <espressif/esp32c3/esp32c3_mini_n4.dtsi>
#include "esp32c3_luatos_core-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
+#include <espressif/partitions_0x0_default.dtsi>
/ {
model = "ESP32C3 Luatos Core";
@@ -92,45 +93,6 @@
pinctrl-names = "default";
};
-&flash0 {
- status = "okay";
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- /* Reserve 60kB for the bootloader */
- boot_partition: partition@0 {
- label = "mcuboot";
- reg = <0x00000000 0x0000F000>;
- read-only;
- };
-
- /* Reserve 1024kB for the application in slot 0 */
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 0x00100000>;
- };
-
- /* Reserve 1024kB for the application in slot 1 */
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 0x00100000>;
- };
-
- /* Reserve 256kB for the scratch partition */
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 0x00040000>;
- };
-
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 0x00006000>;
- };
- };
-};
-
&esp32_bt_hci {
status = "okay";
};
diff --git a/boards/luatos/esp32s3_luatos_core/esp32s3_luatos_core_appcpu.dts b/boards/luatos/esp32s3_luatos_core/esp32s3_luatos_core_appcpu.dts
index 611a3b6..6429499 100644
--- a/boards/luatos/esp32s3_luatos_core/esp32s3_luatos_core_appcpu.dts
+++ b/boards/luatos/esp32s3_luatos_core/esp32s3_luatos_core_appcpu.dts
@@ -5,7 +5,7 @@
*/
/dts-v1/;
-#include <espressif/esp32s3/esp32s3_appcpu.dtsi>
+#include <espressif/esp32s3/esp32s3_mini_n8.dtsi>
#include <espressif/partitions_0x0_amp.dtsi>
/ {
diff --git a/boards/luatos/esp32s3_luatos_core/esp32s3_luatos_core_appcpu_usb.dts b/boards/luatos/esp32s3_luatos_core/esp32s3_luatos_core_appcpu_usb.dts
index 8a383ad..a5dc8a0 100644
--- a/boards/luatos/esp32s3_luatos_core/esp32s3_luatos_core_appcpu_usb.dts
+++ b/boards/luatos/esp32s3_luatos_core/esp32s3_luatos_core_appcpu_usb.dts
@@ -5,7 +5,7 @@
*/
/dts-v1/;
-#include <espressif/esp32s3/esp32s3_appcpu.dtsi>
+#include <espressif/esp32s3/esp32s3_mini_n8.dtsi>
#include <espressif/partitions_0x0_amp.dtsi>
/ {
diff --git a/boards/m5stack/m5stack_atom_lite/m5stack_atom_lite_appcpu.dts b/boards/m5stack/m5stack_atom_lite/m5stack_atom_lite_appcpu.dts
index f5db6e7..e9fee52 100644
--- a/boards/m5stack/m5stack_atom_lite/m5stack_atom_lite_appcpu.dts
+++ b/boards/m5stack/m5stack_atom_lite/m5stack_atom_lite_appcpu.dts
@@ -6,6 +6,7 @@
/dts-v1/;
#include <espressif/esp32/esp32_appcpu.dtsi>
+#include <espressif/partitions_0x1000_amp.dtsi>
/ {
model = "M5Stack Atom Lite APPCPU";
@@ -25,42 +26,3 @@
&trng0 {
status = "okay";
};
-
-&flash0 {
- status = "okay";
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- /* Reserve 60kB for the bootloader */
- boot_partition: partition@1000 {
- label = "mcuboot";
- reg = <0x00001000 0x0000F000>;
- read-only;
- };
-
- /* Reserve 1024kB for the application in slot 0 */
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 0x00100000>;
- };
-
- /* Reserve 1024kB for the application in slot 1 */
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 0x00100000>;
- };
-
- /* Reserve 256kB for the scratch partition */
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 0x00040000>;
- };
-
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 0x00006000>;
- };
- };
-};
diff --git a/boards/m5stack/m5stack_atom_lite/m5stack_atom_lite_procpu.dts b/boards/m5stack/m5stack_atom_lite/m5stack_atom_lite_procpu.dts
index 3a8557f..884fdf9 100644
--- a/boards/m5stack/m5stack_atom_lite/m5stack_atom_lite_procpu.dts
+++ b/boards/m5stack/m5stack_atom_lite/m5stack_atom_lite_procpu.dts
@@ -13,6 +13,7 @@
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <zephyr/dt-bindings/led/led.h>
#include <zephyr/dt-bindings/led/worldsemi_ws2812c.h>
+#include <espressif/partitions_0x1000_amp.dtsi>
/ {
model = "M5Stack ATOM Lite PROCPU";
@@ -143,45 +144,6 @@
status = "okay";
};
-&flash0 {
- status = "okay";
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- /* Reserve 60kB for the bootloader */
- boot_partition: partition@1000 {
- label = "mcuboot";
- reg = <0x00001000 0x0000F000>;
- read-only;
- };
-
- /* Reserve 1024kB for the application in slot 0 */
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 0x00100000>;
- };
-
- /* Reserve 1024kB for the application in slot 1 */
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 0x00100000>;
- };
-
- /* Reserve 256kB for the scratch partition */
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 0x00040000>;
- };
-
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 0x00006000>;
- };
- };
-};
-
&esp32_bt_hci {
status = "okay";
};
diff --git a/boards/m5stack/m5stack_atoms3/m5stack_atoms3_appcpu.dts b/boards/m5stack/m5stack_atoms3/m5stack_atoms3_appcpu.dts
index ab05fa9..83eb494 100644
--- a/boards/m5stack/m5stack_atoms3/m5stack_atoms3_appcpu.dts
+++ b/boards/m5stack/m5stack_atoms3/m5stack_atoms3_appcpu.dts
@@ -5,7 +5,7 @@
*/
/dts-v1/;
-#include <espressif/esp32s3/esp32s3_appcpu.dtsi>
+#include <espressif/esp32s3/esp32s3_fn8.dtsi>
#include <espressif/partitions_0x0_amp.dtsi>
/ {
diff --git a/boards/m5stack/m5stack_atoms3_lite/m5stack_atoms3_lite_appcpu.dts b/boards/m5stack/m5stack_atoms3_lite/m5stack_atoms3_lite_appcpu.dts
index 9eab1cb..0842908 100644
--- a/boards/m5stack/m5stack_atoms3_lite/m5stack_atoms3_lite_appcpu.dts
+++ b/boards/m5stack/m5stack_atoms3_lite/m5stack_atoms3_lite_appcpu.dts
@@ -5,7 +5,7 @@
*/
/dts-v1/;
-#include <espressif/esp32s3/esp32s3_appcpu.dtsi>
+#include <espressif/esp32s3/esp32s3_fn8.dtsi>
#include <espressif/partitions_0x0_amp.dtsi>
/ {
diff --git a/boards/m5stack/m5stack_atoms3_lite/m5stack_atoms3_lite_procpu.dts b/boards/m5stack/m5stack_atoms3_lite/m5stack_atoms3_lite_procpu.dts
index 457d4fa..e224b50 100644
--- a/boards/m5stack/m5stack_atoms3_lite/m5stack_atoms3_lite_procpu.dts
+++ b/boards/m5stack/m5stack_atoms3_lite/m5stack_atoms3_lite_procpu.dts
@@ -47,6 +47,7 @@
&usb_serial {
status = "okay";
};
+
&uart0 {
status = "okay";
current-speed = <115200>;
diff --git a/boards/m5stack/m5stack_core2/m5stack_core2_appcpu.dts b/boards/m5stack/m5stack_core2/m5stack_core2_appcpu.dts
index 875d0ea..3a50334 100644
--- a/boards/m5stack/m5stack_core2/m5stack_core2_appcpu.dts
+++ b/boards/m5stack/m5stack_core2/m5stack_core2_appcpu.dts
@@ -6,6 +6,7 @@
/dts-v1/;
#include <espressif/esp32/esp32_appcpu.dtsi>
+#include <espressif/partitions_0x1000_amp.dtsi>
/ {
model = "M5Stack Core2 APPCPU";
@@ -25,42 +26,3 @@
&trng0 {
status = "okay";
};
-
-&flash0 {
- status = "okay";
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- /* Reserve 60kB for the bootloader */
- boot_partition: partition@1000 {
- label = "mcuboot";
- reg = <0x00001000 0x0000F000>;
- read-only;
- };
-
- /* Reserve 1024kB for the application in slot 0 */
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 0x00100000>;
- };
-
- /* Reserve 1024kB for the application in slot 1 */
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 0x00100000>;
- };
-
- /* Reserve 256kB for the scratch partition */
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 0x00040000>;
- };
-
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 0x00006000>;
- };
- };
-};
diff --git a/boards/m5stack/m5stack_core2/m5stack_core2_procpu.dts b/boards/m5stack/m5stack_core2/m5stack_core2_procpu.dts
index 5ab9ad9..050f4d8 100644
--- a/boards/m5stack/m5stack_core2/m5stack_core2_procpu.dts
+++ b/boards/m5stack/m5stack_core2/m5stack_core2_procpu.dts
@@ -11,6 +11,7 @@
#include "m5stack_mbus_connectors.dtsi"
#include <zephyr/dt-bindings/display/ili9xxx.h>
#include <zephyr/dt-bindings/regulator/axp192.h>
+#include <espressif/partitions_0x1000_amp.dtsi>
/ {
model = "M5Stack Core2 PROCPU";
@@ -75,6 +76,10 @@
};
};
+&flash0 {
+ reg = <0x0 DT_SIZE_M(16)>;
+};
+
&psram0 {
reg = <0x3f800000 DT_SIZE_M(8)>;
status = "disabled";
@@ -245,48 +250,6 @@
status = "okay";
};
-&flash0 {
- status = "okay";
- reg = <0 DT_SIZE_M(16)>;
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- /* Reserve 60kB for the bootloader */
- boot_partition: partition@1000 {
- label = "mcuboot";
- reg = <0x00001000 0x0000F000>;
- read-only;
- };
-
- /* Reserve 1024kB for the application in slot 0 */
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 0x00100000>;
- };
-
- /* Reserve 1024kB for the application in slot 1 */
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 0x00100000>;
- };
-
- /* Reserve 256kB for the scratch partition */
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 0x00040000>;
- };
-
- /* 14MB storage */
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 0x00db0000>;
- };
- };
-};
-
&esp32_bt_hci {
status = "okay";
};
diff --git a/boards/m5stack/m5stack_cores3/m5stack_cores3_appcpu.dts b/boards/m5stack/m5stack_cores3/m5stack_cores3_appcpu.dts
new file mode 100644
index 0000000..1dac83c
--- /dev/null
+++ b/boards/m5stack/m5stack_cores3/m5stack_cores3_appcpu.dts
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+/dts-v1/;
+
+#include <espressif/esp32s3/esp32s3_wroom_n16r8.dtsi>
+#include <espressif/partitions_0x0_amp.dtsi>
+#include "m5stack_cores3-pinctrl.dtsi"
+
+/ {
+ model = "M5Stack CoreS3 APPCPU";
+ compatible = "espressif,esp32s3";
+
+ chosen {
+ zephyr,sram = &sram0;
+ zephyr,ipc_shm = &shm0;
+ zephyr,ipc = &ipm0;
+ zephyr,flash = &flash0;
+ zephyr,code-partition = &slot0_appcpu_partition;
+ };
+};
+
+&ipm0 {
+ status = "okay";
+};
+
+&trng0 {
+ status = "okay";
+};
diff --git a/boards/m5stack/m5stack_stamps3/m5stack_stamps3_appcpu.dts b/boards/m5stack/m5stack_stamps3/m5stack_stamps3_appcpu.dts
index d12429f..3600c76 100644
--- a/boards/m5stack/m5stack_stamps3/m5stack_stamps3_appcpu.dts
+++ b/boards/m5stack/m5stack_stamps3/m5stack_stamps3_appcpu.dts
@@ -5,7 +5,7 @@
*/
/dts-v1/;
-#include <espressif/esp32s3/esp32s3_appcpu.dtsi>
+#include <espressif/esp32s3/esp32s3_fn8.dtsi>
#include <espressif/partitions_0x0_amp.dtsi>
/ {
diff --git a/boards/m5stack/m5stickc_plus/m5stickc_plus_appcpu.dts b/boards/m5stack/m5stickc_plus/m5stickc_plus_appcpu.dts
index c2764a7..e514c55 100644
--- a/boards/m5stack/m5stickc_plus/m5stickc_plus_appcpu.dts
+++ b/boards/m5stack/m5stickc_plus/m5stickc_plus_appcpu.dts
@@ -5,7 +5,7 @@
*/
/dts-v1/;
-#include <espressif/esp32/esp32_appcpu.dtsi>
+#include <espressif/esp32/esp32_pico_d4.dtsi>
#include <espressif/partitions_0x1000_amp.dtsi>
/ {
diff --git a/boards/m5stack/m5stickc_plus/m5stickc_plus_procpu.dts b/boards/m5stack/m5stickc_plus/m5stickc_plus_procpu.dts
index 940d888..7bfbd7e 100644
--- a/boards/m5stack/m5stickc_plus/m5stickc_plus_procpu.dts
+++ b/boards/m5stack/m5stickc_plus/m5stickc_plus_procpu.dts
@@ -10,7 +10,7 @@
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <zephyr/dt-bindings/regulator/axp192.h>
#include <zephyr/dt-bindings/mipi_dbi/mipi_dbi.h>
-#include <espressif/partitions_0x0_amp.dtsi>
+#include <espressif/partitions_0x1000_amp.dtsi>
/ {
model = "M5StickC Plus PROCPU";
diff --git a/boards/m5stack/stamp_c3/stamp_c3.dts b/boards/m5stack/stamp_c3/stamp_c3.dts
index ef026e9..e4b97e5 100644
--- a/boards/m5stack/stamp_c3/stamp_c3.dts
+++ b/boards/m5stack/stamp_c3/stamp_c3.dts
@@ -9,6 +9,7 @@
#include <espressif/esp32c3/esp32c3_fx4.dtsi>
#include "stamp_c3-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
+#include <espressif/partitions_0x0_default.dtsi>
/ {
model = "M5Stack STAMP-C3";
@@ -92,45 +93,6 @@
pinctrl-names = "default";
};
-&flash0 {
- status = "okay";
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- /* Reserve 60kB for the bootloader */
- boot_partition: partition@0 {
- label = "mcuboot";
- reg = <0x00000000 0x0000F000>;
- read-only;
- };
-
- /* Reserve 1024kB for the application in slot 0 */
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 0x00100000>;
- };
-
- /* Reserve 1024kB for the application in slot 1 */
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 0x00100000>;
- };
-
- /* Reserve 256kB for the scratch partition */
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 0x00040000>;
- };
-
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 0x00006000>;
- };
- };
-};
-
&esp32_bt_hci {
status = "okay";
};
diff --git a/boards/olimex/olimex_esp32_evb/olimex_esp32_evb_appcpu.dts b/boards/olimex/olimex_esp32_evb/olimex_esp32_evb_appcpu.dts
index ae7a2e1..e86ffdb 100644
--- a/boards/olimex/olimex_esp32_evb/olimex_esp32_evb_appcpu.dts
+++ b/boards/olimex/olimex_esp32_evb/olimex_esp32_evb_appcpu.dts
@@ -6,6 +6,7 @@
/dts-v1/;
#include <espressif/esp32/esp32_appcpu.dtsi>
+#include <espressif/partitions_0x1000_amp.dtsi>
/ {
model = "Espressif ESP32-DevkitC APPCPU";
@@ -25,42 +26,3 @@
&trng0 {
status = "okay";
};
-
-&flash0 {
- status = "okay";
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- /* Reserve 60kB for the bootloader */
- boot_partition: partition@1000 {
- label = "mcuboot";
- reg = <0x00001000 0x0000F000>;
- read-only;
- };
-
- /* Reserve 1024kB for the application in slot 0 */
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 0x00100000>;
- };
-
- /* Reserve 1024kB for the application in slot 1 */
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 0x00100000>;
- };
-
- /* Reserve 256kB for the scratch partition */
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 0x00040000>;
- };
-
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 0x00006000>;
- };
- };
-};
diff --git a/boards/olimex/olimex_esp32_evb/olimex_esp32_evb_procpu.dts b/boards/olimex/olimex_esp32_evb/olimex_esp32_evb_procpu.dts
index c239263..b080d47 100644
--- a/boards/olimex/olimex_esp32_evb/olimex_esp32_evb_procpu.dts
+++ b/boards/olimex/olimex_esp32_evb/olimex_esp32_evb_procpu.dts
@@ -9,6 +9,7 @@
#include <espressif/esp32/esp32_wrover_e_n4r2.dtsi>
#include "olimex_esp32_evb-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
+#include <espressif/partitions_0x1000_amp.dtsi>
/ {
model = "Olimex ESP32-EVB";
@@ -127,45 +128,6 @@
status = "okay";
};
-&flash0 {
- status = "okay";
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- /* Reserve 60kB for the bootloader */
- boot_partition: partition@1000 {
- label = "mcuboot";
- reg = <0x00001000 DT_SIZE_K(60)>;
- read-only;
- };
-
- /* Reserve 1024kB for the application in slot 0 */
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 DT_SIZE_K(1024)>;
- };
-
- /* Reserve 1024kB for the application in slot 1 */
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 DT_SIZE_K(1024)>;
- };
-
- /* Reserve 256kB for the scratch partition */
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 DT_SIZE_K(256)>;
- };
-
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 DT_SIZE_K(24)>;
- };
- };
-};
-
&esp32_bt_hci {
status = "okay";
};
diff --git a/boards/seeed/xiao_esp32c3/xiao_esp32c3.dts b/boards/seeed/xiao_esp32c3/xiao_esp32c3.dts
index 0be67a6..5786e33 100644
--- a/boards/seeed/xiao_esp32c3/xiao_esp32c3.dts
+++ b/boards/seeed/xiao_esp32c3/xiao_esp32c3.dts
@@ -7,9 +7,9 @@
/dts-v1/;
#include <espressif/esp32c3/esp32c3_fx4.dtsi>
-#include <espressif/partitions_0x0_amp.dtsi>
#include "xiao_esp32c3-pinctrl.dtsi"
#include "seeed_xiao_connector.dtsi"
+#include <espressif/partitions_0x0_default.dtsi>
/ {
model = "Seeed XIAO ESP32C3";
diff --git a/boards/seeed/xiao_esp32s3/xiao_esp32s3_appcpu.dts b/boards/seeed/xiao_esp32s3/xiao_esp32s3_appcpu.dts
index 0f678dc..851abb5 100644
--- a/boards/seeed/xiao_esp32s3/xiao_esp32s3_appcpu.dts
+++ b/boards/seeed/xiao_esp32s3/xiao_esp32s3_appcpu.dts
@@ -5,7 +5,7 @@
*/
/dts-v1/;
-#include <espressif/esp32s3/esp32s3_appcpu.dtsi>
+#include <espressif/esp32s3/esp32s3_wroom_n8r8.dtsi>
#include <espressif/partitions_0x0_amp.dtsi>
/ {
diff --git a/boards/seeed/xiao_esp32s3/xiao_esp32s3_procpu.dts b/boards/seeed/xiao_esp32s3/xiao_esp32s3_procpu.dts
index cdf5801..ca5d919 100644
--- a/boards/seeed/xiao_esp32s3/xiao_esp32s3_procpu.dts
+++ b/boards/seeed/xiao_esp32s3/xiao_esp32s3_procpu.dts
@@ -7,6 +7,8 @@
/dts-v1/;
#include "xiao_esp32s3_procpu_common.dtsi"
+#include "xiao_esp32s3-pinctrl.dtsi"
+#include "seeed_xiao_connector.dtsi"
#include <espressif/partitions_0x0_amp.dtsi>
/ {
diff --git a/boards/vcc-gnd/yd_esp32/yd_esp32_appcpu.dts b/boards/vcc-gnd/yd_esp32/yd_esp32_appcpu.dts
index 8501714..15f7a6a 100644
--- a/boards/vcc-gnd/yd_esp32/yd_esp32_appcpu.dts
+++ b/boards/vcc-gnd/yd_esp32/yd_esp32_appcpu.dts
@@ -6,6 +6,7 @@
/dts-v1/;
#include <espressif/esp32/esp32_appcpu.dtsi>
+#include <espressif/partitions_0x1000_amp.dtsi>
/ {
model = "VCC-GND Studio YD-ESP32 APPCPU";
@@ -25,42 +26,3 @@
&trng0 {
status = "okay";
};
-
-&flash0 {
- status = "okay";
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- /* Reserve 60kB for the bootloader */
- boot_partition: partition@1000 {
- label = "mcuboot";
- reg = <0x00001000 0x0000F000>;
- read-only;
- };
-
- /* Reserve 1024kB for the application in slot 0 */
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 0x00100000>;
- };
-
- /* Reserve 1024kB for the application in slot 1 */
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 0x00100000>;
- };
-
- /* Reserve 256kB for the scratch partition */
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 0x00040000>;
- };
-
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 0x00006000>;
- };
- };
-};
diff --git a/boards/vcc-gnd/yd_esp32/yd_esp32_procpu.dts b/boards/vcc-gnd/yd_esp32/yd_esp32_procpu.dts
index a409ed6..489580a 100644
--- a/boards/vcc-gnd/yd_esp32/yd_esp32_procpu.dts
+++ b/boards/vcc-gnd/yd_esp32/yd_esp32_procpu.dts
@@ -7,6 +7,7 @@
#include <zephyr/dt-bindings/led/led.h>
#include "yd_esp32-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
+#include <espressif/partitions_0x1000_amp.dtsi>
/ {
model = "VCC-GND Studio YD-ESP32 PROCPU";
@@ -136,45 +137,6 @@
status = "okay";
};
-&flash0 {
- status = "okay";
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- /* Reserve 60kB for the bootloader */
- boot_partition: partition@1000 {
- label = "mcuboot";
- reg = <0x00001000 0x0000F000>;
- read-only;
- };
-
- /* Reserve 1024kB for the application in slot 0 */
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 0x00100000>;
- };
-
- /* Reserve 1024kB for the application in slot 1 */
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 0x00100000>;
- };
-
- /* Reserve 256kB for the scratch partition */
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 0x00040000>;
- };
-
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 0x00006000>;
- };
- };
-};
-
&esp32_bt_hci {
status = "okay";
};
diff --git a/boards/waveshare/esp32s3_touch_lcd_1_28/esp32s3_touch_lcd_1_28_esp32s3_appcpu.dts b/boards/waveshare/esp32s3_touch_lcd_1_28/esp32s3_touch_lcd_1_28_esp32s3_appcpu.dts
index 1356296..949f7a7 100644
--- a/boards/waveshare/esp32s3_touch_lcd_1_28/esp32s3_touch_lcd_1_28_esp32s3_appcpu.dts
+++ b/boards/waveshare/esp32s3_touch_lcd_1_28/esp32s3_touch_lcd_1_28_esp32s3_appcpu.dts
@@ -4,7 +4,7 @@
*/
/dts-v1/;
-#include <espressif/esp32s3/esp32s3_appcpu.dtsi>
+#include <espressif/esp32s3/esp32s3_r2.dtsi>
#include <espressif/partitions_0x0_amp.dtsi>
/ {
@@ -20,6 +20,10 @@
};
};
+&flash0 {
+ reg = <0x0 DT_SIZE_M(16)>;
+};
+
&trng0 {
status = "okay";
};
diff --git a/boards/waveshare/esp32s3_touch_lcd_1_28/esp32s3_touch_lcd_1_28_esp32s3_procpu.dts b/boards/waveshare/esp32s3_touch_lcd_1_28/esp32s3_touch_lcd_1_28_esp32s3_procpu.dts
index ced705b..18e8e90 100644
--- a/boards/waveshare/esp32s3_touch_lcd_1_28/esp32s3_touch_lcd_1_28_esp32s3_procpu.dts
+++ b/boards/waveshare/esp32s3_touch_lcd_1_28/esp32s3_touch_lcd_1_28_esp32s3_procpu.dts
@@ -9,6 +9,7 @@
#include <zephyr/dt-bindings/display/panel.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <zephyr/dt-bindings/pwm/pwm.h>
+#include <espressif/partitions_0x0_amp.dtsi>
/ {
model = "ESP32-S3-Touch-LCD-1.28 PROCPU";
@@ -82,40 +83,7 @@
};
&flash0 {
- status = "okay";
reg = <0x0 DT_SIZE_M(16)>;
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- boot_partition: partition@0 {
- label = "mcuboot";
- reg = <0x00000000 0x0000F000>;
- read-only;
- };
-
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 0x00100000>;
- };
-
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 0x00100000>;
- };
-
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 0x00040000>;
- };
-
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 0x00006000>;
- };
- };
};
&gpio0 {
diff --git a/boards/wemos/esp32s2_lolin_mini/esp32s2_lolin_mini.dts b/boards/wemos/esp32s2_lolin_mini/esp32s2_lolin_mini.dts
index 14d6fd4..6676188 100644
--- a/boards/wemos/esp32s2_lolin_mini/esp32s2_lolin_mini.dts
+++ b/boards/wemos/esp32s2_lolin_mini/esp32s2_lolin_mini.dts
@@ -9,6 +9,7 @@
#include <espressif/esp32s2/esp32s2.dtsi>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include "esp32s2_lolin_mini-pinctrl.dtsi"
+#include <espressif/partitions_0x1000_default.dtsi>
/ {
model = "Wemos ESP32S2-Lolin Mini";
@@ -46,6 +47,10 @@
};
};
+&flash0 {
+ reg = <0x0 DT_SIZE_M(4)>;
+};
+
&uart0 {
status = "okay";
current-speed = <115200>;
@@ -81,47 +86,6 @@
status = "okay";
};
-&flash0 {
- reg = <0x0 DT_SIZE_M(4)>;
-
- status = "okay";
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- /* Reserve 60kB for the bootloader */
- boot_partition: partition@1000 {
- label = "mcuboot";
- reg = <0x00001000 0x0000F000>;
- read-only;
- };
-
- /* Reserve 1024kB for the application in slot 0 */
- slot0_partition: partition@10000 {
- label = "image-0";
- reg = <0x00010000 0x00100000>;
- };
-
- /* Reserve 1024kB for the application in slot 1 */
- slot1_partition: partition@110000 {
- label = "image-1";
- reg = <0x00110000 0x00100000>;
- };
-
- /* Reserve 256kB for the scratch partition */
- scratch_partition: partition@210000 {
- label = "image-scratch";
- reg = <0x00210000 0x00040000>;
- };
-
- storage_partition: partition@250000 {
- label = "storage";
- reg = <0x00250000 0x00006000>;
- };
- };
-};
-
&wdt0 {
status = "okay";
};
diff --git a/dts/riscv/espressif/esp32c2/esp32c2_common.dtsi b/dts/riscv/espressif/esp32c2/esp32c2_common.dtsi
index 891166e..479e230 100644
--- a/dts/riscv/espressif/esp32c2/esp32c2_common.dtsi
+++ b/dts/riscv/espressif/esp32c2/esp32c2_common.dtsi
@@ -105,9 +105,9 @@
flash0: flash@0 {
compatible = "soc-nv-flash";
- reg = <0 0x400000>;
erase-block-size = <4096>;
write-block-size = <4>;
+ /* Flash size is specified in SOC/SIP dtsi */
};
};
diff --git a/dts/riscv/espressif/esp32c3/esp32c3_common.dtsi b/dts/riscv/espressif/esp32c3/esp32c3_common.dtsi
index 112cecd..35ac7d5 100644
--- a/dts/riscv/espressif/esp32c3/esp32c3_common.dtsi
+++ b/dts/riscv/espressif/esp32c3/esp32c3_common.dtsi
@@ -138,9 +138,9 @@
flash0: flash@0 {
compatible = "soc-nv-flash";
- reg = <0 0x400000>;
erase-block-size = <4096>;
write-block-size = <4>;
+ /* Flash size is specified in SOC/SIP dtsi */
};
};
diff --git a/dts/riscv/espressif/esp32c6/esp32c6_common.dtsi b/dts/riscv/espressif/esp32c6/esp32c6_common.dtsi
index 232e2bb..e52d3c5 100644
--- a/dts/riscv/espressif/esp32c6/esp32c6_common.dtsi
+++ b/dts/riscv/espressif/esp32c6/esp32c6_common.dtsi
@@ -149,6 +149,7 @@
compatible = "soc-nv-flash";
erase-block-size = <4096>;
write-block-size = <4>;
+ /* Flash size is specified in SOC/SIP dtsi */
};
};
diff --git a/dts/xtensa/espressif/esp32s3/esp32s3_common.dtsi b/dts/xtensa/espressif/esp32s3/esp32s3_common.dtsi
index 777f795..ceee864 100644
--- a/dts/xtensa/espressif/esp32s3/esp32s3_common.dtsi
+++ b/dts/xtensa/espressif/esp32s3/esp32s3_common.dtsi
@@ -169,7 +169,6 @@
flash0: flash@0 {
compatible = "soc-nv-flash";
- reg = <0 0x800000>;
erase-block-size = <4096>;
write-block-size = <4>;
/* Flash size is specified in SOC/SIP dtsi */