Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPM fix for esp32s3 targets #80887

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions boards/dptechnics/walter/walter_esp32s3_appcpu.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
zephyr,sram = &sram0;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};

Expand Down
11 changes: 11 additions & 0 deletions boards/espressif/esp32s3_devkitc/esp32s3_devkitc-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@
};
};

uart1_default: uart1_default {
group1 {
pinmux = <UART1_TX_GPIO17>;
output-high;
};
group2 {
pinmux = <UART1_RX_GPIO18>;
bias-pull-up;
};
};

i2c0_default: i2c0_default {
group1 {
pinmux = <I2C0_SDA_GPIO1>,
Expand Down
3 changes: 3 additions & 0 deletions boards/espressif/esp32s3_devkitc/esp32s3_devkitc_appcpu.dts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <espressif/esp32s3/esp32s3_appcpu.dtsi>
#include <espressif/partitions_0x0_amp.dtsi>
#include "esp32s3_devkitc-pinctrl.dtsi"

/ {
model = "Espressif ESP32S3-DevkitC APPCPU";
Expand All @@ -16,6 +17,8 @@
zephyr,sram = &sram0;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};

Expand Down
4 changes: 2 additions & 2 deletions boards/espressif/esp32s3_devkitc/esp32s3_devkitc_procpu.dts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
*/
/dts-v1/;

#include "espressif/esp32s3/esp32s3_wroom_n8.dtsi"
#include "esp32s3_devkitc-pinctrl.dtsi"
#include <espressif/esp32s3/esp32s3_wroom_n8.dtsi>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <zephyr/dt-bindings/input/esp32-touch-sensor-input.h>
#include <espressif/partitions_0x0_amp.dtsi>
#include "esp32s3_devkitc-pinctrl.dtsi"

/ {
model = "Espressif ESP32S3-DevkitC PROCPU";
Expand Down
11 changes: 11 additions & 0 deletions boards/espressif/esp32s3_devkitm/esp32s3_devkitm-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@
};
};

uart1_default: uart1_default {
group1 {
pinmux = <UART1_TX_GPIO17>;
output-high;
};
group2 {
pinmux = <UART1_RX_GPIO18>;
bias-pull-up;
};
};

i2c0_default: i2c0_default {
group1 {
pinmux = <I2C0_SDA_GPIO1>,
Expand Down
3 changes: 3 additions & 0 deletions boards/espressif/esp32s3_devkitm/esp32s3_devkitm_appcpu.dts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <espressif/esp32s3/esp32s3_appcpu.dtsi>
#include <espressif/partitions_0x0_amp.dtsi>
#include "esp32s3_devkitm-pinctrl.dtsi"

/ {
model = "Espressif ESP32S3-DevkitM APPCPU";
Expand All @@ -16,6 +17,8 @@
zephyr,sram = &sram0;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_MAIN_STACK_SIZE=2048
CONFIG_CLOCK_CONTROL=y
CONFIG_MAIN_STACK_SIZE=4096
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
/dts-v1/;

#include <espressif/esp32s3/esp32s3_mini_n8.dtsi>
#include "esp32s3_devkitm-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <zephyr/dt-bindings/input/esp32-touch-sensor-input.h>
#include <espressif/partitions_0x0_amp.dtsi>
#include "esp32s3_devkitm-pinctrl.dtsi"

/ {
model = "Espressif ESP32S3-DevkitM PROCPU";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_MAIN_STACK_SIZE=2048
CONFIG_MAIN_STACK_SIZE=4096

CONFIG_CONSOLE=y
CONFIG_SERIAL=y
Expand Down
43 changes: 4 additions & 39 deletions boards/espressif/esp32s3_eye/esp32s3_eye_appcpu.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
/dts-v1/;

#include <espressif/esp32s3/esp32s3_appcpu.dtsi>
#include <espressif/partitions_0x0_amp.dtsi>

/ {
model = "Espressif ESP32S3-EYE APPCPU";
compatible = "espressif,esp32s3";
Expand All @@ -14,6 +16,8 @@
zephyr,sram = &sram0;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};

Expand All @@ -24,42 +28,3 @@
&ipm0 {
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>;
};
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
/dts-v1/;

#include <espressif/esp32s3/esp32s3_appcpu.dtsi>
#include <espressif/partitions_0x0_amp.dtsi>

/ {
model = "Heltec Wireless Stick Lite V3 APPCPU";
compatible = "espressif,esp32s3";
Expand All @@ -14,6 +16,8 @@
zephyr,sram = &sram0;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};

Expand All @@ -24,42 +28,3 @@
&ipm0 {
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>;
};
};
};
40 changes: 1 addition & 39 deletions boards/luatos/esp32s3_luatos_core/esp32s3_luatos_core.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <espressif/esp32s3/esp32s3_mini_n8.dtsi>
#include "esp32s3_luatos_core-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <espressif/partitions_0x0_amp.dtsi>

/ {
leds {
Expand Down Expand Up @@ -103,45 +104,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";
};
43 changes: 4 additions & 39 deletions boards/luatos/esp32s3_luatos_core/esp32s3_luatos_core_appcpu.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
/dts-v1/;

#include <espressif/esp32s3/esp32s3_appcpu.dtsi>
#include <espressif/partitions_0x0_amp.dtsi>

/ {
model = "ESP32S3 Luatos Core APPCPU";
compatible = "espressif,esp32s3";
Expand All @@ -14,6 +16,8 @@
zephyr,sram = &sram0;
zephyr,ipc_shm = &shm0;
zephyr,ipc = &ipm0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_appcpu_partition;
};
};

Expand All @@ -24,42 +28,3 @@
&ipm0 {
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>;
};
};
};
Loading
Loading