Commit 386b6580 authored by Maximilian Deubel's avatar Maximilian Deubel Committed by Carles Cufi
Browse files

boards: arm: add nrf9131ek_nrf9131



This patch adds the nRF9131-EK board.

Signed-off-by: default avatarMaximilian Deubel <maximilian.deubel@nordicsemi.no>
parent 8bec2d7b
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
# nRF9131-EK board configuration

# Copyright (c) 2023 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

if SOC_NRF9131_LACA

config BOARD_NRF9131EK_NRF9131
	bool "nRF9131 EK NRF9131"

config BOARD_NRF9131EK_NRF9131_NS
	bool "nRF9131 EK NRF9131 non-secure"

endif # SOC_NRF9131_LACA
+38 −0
Original line number Diff line number Diff line
# nRF9131 EK NRF9131 board configuration

# Copyright (c) 2023 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

if BOARD_NRF9131EK_NRF9131 || BOARD_NRF9131EK_NRF9131_NS

config BOARD
	default "nrf9131ek_nrf9131"

# For the secure version of the board the firmware is linked at the beginning
# of the flash, or into the code-partition defined in DT if it is intended to
# be loaded by MCUboot. If the secure firmware is to be combined with a non-
# secure image (TRUSTED_EXECUTION_SECURE=y), the secure FW image shall always
# be restricted to the size of its code partition.
# For the non-secure version of the board, the firmware
# must be linked into the code-partition (non-secure) defined in DT, regardless.
# Apply this configuration below by setting the Kconfig symbols used by
# the linker according to the information extracted from DT partitions.

# Workaround for not being able to have commas in macro arguments
DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition

config FLASH_LOAD_SIZE
	default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
	depends on BOARD_NRF9131EK_NRF9131 && TRUSTED_EXECUTION_SECURE

if BOARD_NRF9131EK_NRF9131_NS

config FLASH_LOAD_OFFSET
	default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_CODE_PARTITION))

config FLASH_LOAD_SIZE
	default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION))

endif # BOARD_NRF9131EK_NRF9131_NS

endif # BOARD_NRF9131EK_NRF9131 || BOARD_NRF9131EK_NRF9131_NS
+14 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: Apache-2.0

if(CONFIG_BOARD_NRF9131EK_NRF9131_NS)
  set(TFM_PUBLIC_KEY_FORMAT "full")
endif()

if(CONFIG_TFM_FLASH_MERGED_BINARY)
  set_property(TARGET runners_yaml_props_target PROPERTY hex_file tfm_merged.hex)
endif()

# TODO: change to nRF9131_xxAA when such device is available in JLink
board_runner_args(jlink "--device=nRF9160_xxAA" "--speed=4000")
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
+19 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2023 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/dts-v1/;
#include <nordic/nrf9131_laca.dtsi>
#include "nrf9131ek_nrf9131_common.dtsi"

/ {
	chosen {
		zephyr,sram = &sram0_s;
		zephyr,flash = &flash0;
		zephyr,code-partition = &slot0_partition;
		zephyr,sram-secure-partition = &sram0_s;
		zephyr,sram-non-secure-partition = &sram0_ns;
	};
};
+17 −0
Original line number Diff line number Diff line
identifier: nrf9131ek_nrf9131
name: nRF9131-EK-NRF9131
type: mcu
arch: arm
toolchain:
  - gnuarmemb
  - xtools
  - zephyr
ram: 88
flash: 1024
supported:
  - gpio
  - i2c
  - pwm
  - spi
  - watchdog
  - counter
Loading