Skip to content
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
6 changes: 6 additions & 0 deletions ports/zephyr-cp/boards/analog/apard32690/board.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Optionally use RAMDISK driver for testing
# without flash wear
# CONFIG_DISK_DRIVER_RAM=y

# Default: Use flash partition
CONFIG_DISK_DRIVER_FLASH=y
57 changes: 57 additions & 0 deletions ports/zephyr-cp/boards/analog/apard32690/board.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
&trng {
status = "okay";
};

// MAX32690's internal flash has no partition table by default and no
// external flash chip is wired up on this board
// PARTITIONS
// - Code
// - Zephyr settings storage (needed by CONFIG_SETTINGS/CONFIG_BT_SETTINGS),
// - CIRCUITPY filesystem (supervisor/flash.c looks for a partition labeled
// `circuitpy_partition`)
&flash0 {
partitions {
#address-cells = <1>;
#size-cells = <1>;
ranges;

code_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "image";
reg = <0x0 (DT_SIZE_M(1) + DT_SIZE_K(512))>;
};

circuitpy_partition: partition@190000 {
compatible = "zephyr,mapped-partition";
label = "circuitpy";
reg = <0x190000 (DT_SIZE_M(3) - DT_SIZE_M(1) - DT_SIZE_K(512) - DT_SIZE_K(64))>;
};
};
};

/ {
soc {
// MAX32690's 1 MiB SRAM is split into 8 by default
// Use one combined node spanning the whole SRAM
m4_sram: memory@20000000 {
compatible = "mmio-sram";
reg = <0x20000000 DT_SIZE_M(1)>;
};
};

chosen {
zephyr,sram = &m4_sram;
zephyr,code-partition = &code_partition;
};

// RAM disk, enabled via CONFIG_DISK_DRIVER_RAM in board.conf
// For use if flash wear is not desired when testing
ramdisk0: ramdisk0 {
compatible = "zephyr,ram-disk";
disk-name = "RAM";
sector-size = <512>;
sector-count = <128>;
};
};

#include "../../../app.overlay"
6 changes: 6 additions & 0 deletions ports/zephyr-cp/boards/analog/max32690evkit/board.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Optionally use RAMDISK driver for testing
# without flash wear
# CONFIG_DISK_DRIVER_RAM=y

# Default: Use flash partition
CONFIG_DISK_DRIVER_FLASH=y
57 changes: 57 additions & 0 deletions ports/zephyr-cp/boards/analog/max32690evkit/board.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
&trng {
status = "okay";
};

// MAX32690's internal flash has no partition table by default and no
// external flash chip is wired up on this board
// PARTITIONS
// - Code
// - Zephyr settings storage (needed by CONFIG_SETTINGS/CONFIG_BT_SETTINGS),
// - CIRCUITPY filesystem (supervisor/flash.c looks for a partition labeled
// `circuitpy_partition`)
&flash0 {
partitions {
#address-cells = <1>;
#size-cells = <1>;
ranges;

code_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "image";
reg = <0x0 (DT_SIZE_M(1) + DT_SIZE_K(512))>;
};

circuitpy_partition: partition@190000 {
compatible = "zephyr,mapped-partition";
label = "circuitpy";
reg = <0x190000 (DT_SIZE_M(3) - DT_SIZE_M(1) - DT_SIZE_K(512) - DT_SIZE_K(64))>;
};
};
};

/ {
soc {
// MAX32690's 1 MiB SRAM is split into 8 by default
// Use one combined node spanning the whole SRAM
m4_sram: memory@20000000 {
compatible = "mmio-sram";
reg = <0x20000000 DT_SIZE_M(1)>;
};
};

chosen {
zephyr,sram = &m4_sram;
zephyr,code-partition = &code_partition;
};

// RAM disk, enabled via CONFIG_DISK_DRIVER_RAM in board.conf
// For use if flash wear is not desired when testing
ramdisk0: ramdisk0 {
compatible = "zephyr,ram-disk";
disk-name = "RAM";
sector-size = <512>;
sector-count = <128>;
};
};

#include "../../../app.overlay"
6 changes: 6 additions & 0 deletions ports/zephyr-cp/boards/analog/max32690fthr/board.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Optionally use RAMDISK driver for testing
# without flash wear
# CONFIG_DISK_DRIVER_RAM=y

# Default: Use flash partition
CONFIG_DISK_DRIVER_FLASH=y
63 changes: 63 additions & 0 deletions ports/zephyr-cp/boards/analog/max32690fthr/board.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
&trng {
status = "okay";
};

// MAX32690's internal flash has no partition table by default and no
// external flash chip is wired up on this board
// PARTITIONS
// - Code
// - Zephyr settings storage (needed by CONFIG_SETTINGS/CONFIG_BT_SETTINGS),
// - CIRCUITPY filesystem (supervisor/flash.c looks for a partition labeled
// `circuitpy_partition`)
&flash0 {
partitions {
#address-cells = <1>;
#size-cells = <1>;
ranges;

code_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "image";
reg = <0x0 (DT_SIZE_M(1) + DT_SIZE_K(512))>;
};

storage_partition: partition@180000 {
compatible = "zephyr,mapped-partition";
label = "storage";
reg = <0x180000 DT_SIZE_K(64)>;
};

circuitpy_partition: partition@190000 {
compatible = "zephyr,mapped-partition";
label = "circuitpy";
reg = <0x190000 (DT_SIZE_M(3) - DT_SIZE_M(1) - DT_SIZE_K(512) - DT_SIZE_K(64))>;
};
};
};

/ {
soc {
// MAX32690's 1 MiB SRAM is split into 8 by default
// Use one combined node spanning the whole SRAM
m4_sram: memory@20000000 {
compatible = "mmio-sram";
reg = <0x20000000 DT_SIZE_M(1)>;
};
};

chosen {
zephyr,sram = &m4_sram;
zephyr,code-partition = &code_partition;
};

// RAM disk, enabled via CONFIG_DISK_DRIVER_RAM in board.conf
// For use if flash wear is not desired when testing
ramdisk0: ramdisk0 {
compatible = "zephyr,ram-disk";
disk-name = "RAM";
sector-size = <512>;
sector-count = <128>;
};
};

#include "../../../app.overlay"
3 changes: 3 additions & 0 deletions ports/zephyr-cp/boards/board_aliases.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ cp_board_alias(raspberrypi_rpi_pico2_zephyr rpi_pico2/rp2350a/m33)
cp_board_alias(raspberrypi_rpi_pico2_w_zephyr rpi_pico2/rp2350a/m33/w)
cp_board_alias(st_nucleo_n657x0_q nucleo_n657x0_q/stm32n657xx)
cp_board_alias(silabs_siwx917_dk2605a siwx917_dk2605a)
cp_board_alias(analog_max32690fthr max32690fthr/max32690/m4)
cp_board_alias(analog_apard32690 apard32690/max32690/m4)
cp_board_alias(analog_max32690evkit max32690evkit/max32690/m4)
Loading