boards: esp32: update dts for APPCPU

Use ready made partition tables on ESP32 targets.
Add flash slot partition for APPCPU.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
This commit is contained in:
Marek Matej 2024-11-19 15:33:19 +00:00 committed by Benjamin Cabé
parent a7a05b9e7f
commit a4904cc6c5
19 changed files with 34 additions and 82 deletions

View file

@ -16,6 +16,8 @@
zephyr,sram = &sram1;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};

View file

@ -16,6 +16,8 @@
zephyr,sram = &sram1;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};

View file

@ -9,7 +9,7 @@
#include "esp32_devkitc_wrover-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <zephyr/dt-bindings/input/esp32-touch-sensor-input.h>
#include <espressif/partitions_0x1000_default.dtsi>
#include <espressif/partitions_0x1000_amp.dtsi>
/ {
model = "Espressif ESP32-DevkitC WROVER-E PROCPU";

View file

@ -16,6 +16,8 @@
zephyr,sram = &sram1;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};

View file

@ -16,6 +16,8 @@
zephyr,sram = &sram1;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};

View file

@ -7,7 +7,7 @@
#include <espressif/esp32/esp32_wrover_e_n4r8.dtsi>
#include "esp_wrover_kit-pinctrl.dtsi"
#include <espressif/partitions_0x1000_default.dtsi>
#include <espressif/partitions_0x1000_amp.dtsi>
/ {
model = "Espressif ESP32-Wrover-Kit PROCPU";

View file

@ -1,39 +0,0 @@
/*
* Copyright (c) 2024 Yannis Damigos
*
* SPDX-License-Identifier: Apache-2.0
*/
&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 2048kB for the application in slot 0 */
slot0_partition: partition@10000 {
label = "image-0";
reg = <0x00010000 0x00200000>;
};
/* Reserve 2048kB for the application in slot 1 */
slot1_partition: partition@210000 {
label = "image-1";
reg = <0x00210000 0x00200000>;
};
/* Reserve the remaining 12224kB for the storage partition */
storage_partition: partition@410000 {
label = "storage";
reg = <0x00410000 0x00BF0000>;
};
};
};

View file

@ -6,7 +6,7 @@
/dts-v1/;
#include <espressif/esp32/esp32_appcpu.dtsi>
#include "odroid_go-flash_partition_table.dtsi"
#include <espressif/partitions_0x1000_amp.dtsi>
/ {
model = "ODROID-GO Game Kit APPCPU";
@ -16,6 +16,8 @@
zephyr,sram = &sram1;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};

View file

@ -7,7 +7,7 @@
#include <espressif/esp32/esp32_wrover_e_n16r4.dtsi>
#include "odroid_go-pinctrl.dtsi"
#include "odroid_go-flash_partition_table.dtsi"
#include <espressif/partitions_0x1000_amp.dtsi>
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {

View file

@ -16,6 +16,8 @@
zephyr,sram = &sram1;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};

View file

@ -6,6 +6,7 @@
/dts-v1/;
#include <espressif/esp32/esp32_appcpu.dtsi>
#include <espressif/partitions_0x1000_amp.dtsi>
/ {
model = "Kincony KC868_A32 APPCPU";
@ -15,6 +16,8 @@
zephyr,sram = &sram1;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};
@ -25,42 +28,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>;
};
};
};

View file

@ -41,6 +41,7 @@
output-high;
};
};
sdhc0_default: sdhc0_default {
group1 {
pinmux = <SDHC0_CD_GPIO34>;

View file

@ -16,6 +16,8 @@
zephyr,sram = &sram1;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};

View file

@ -16,6 +16,8 @@
zephyr,sram = &sram0;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};

View file

@ -16,6 +16,8 @@
zephyr,sram = &sram1;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};

View file

@ -16,6 +16,8 @@
zephyr,sram = &sram1;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};

View file

@ -16,6 +16,8 @@
zephyr,sram = &sram1;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};

View file

@ -16,6 +16,8 @@
zephyr,sram = &sram1;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};

View file

@ -16,6 +16,8 @@
zephyr,sram = &sram1;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};