Skip to content

Commit

Permalink
samples: cellular: nrf_cloud_ble_gateway: Licenses
Browse files Browse the repository at this point in the history
Add licenses.

Update apricity board files.

Address compliance failures.

Signed-off-by: Pete Skeggs <[email protected]>
  • Loading branch information
plskeggs committed Jan 11, 2025
1 parent 2c04963 commit 2de663a
Show file tree
Hide file tree
Showing 45 changed files with 239 additions and 185 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@

# Apricity
CONFIG_ENTER_52840_MCUBOOT_VIA_BUTTON=y
CONFIG_NRF_CLOUD_HOST_NAME="mqtt.beta.nrfcloud.com"
CONFIG_NRF_CLOUD_SEC_TAG=42
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Kconfig - APRICITY GATEWAY NRF9160 board configuration
#
# Copyright (c) 2020 Nordic Semiconductor ASA
# Copyright (c) 2025 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause

zephyr_library()
zephyr_library_sources(nrf52840_reset.c)
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Apricity Gateway nRF9160 board configuration
#
# Copyright (c) 2020 Nordic Semiconductor ASA
# Copyright (c) 2025 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause

module=BOARD
module-dep=LOG
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Apricity Gateway nRF9160 board configuration
#
# Copyright (c) 2020 Nordic Semiconductor ASA
# Copyright (c) 2025 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause

if SOC_NRF9160_SICA

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Apricity Gateway nRF9160 board configuration
#
# Copyright (c) 2020 Nordic Semiconductor ASA
# Copyright (c) 2025 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause

if BOARD_APRICITY_GATEWAY_NRF9160 || BOARD_APRICITY_GATEWAY_NRF9160_NS

Expand Down Expand Up @@ -34,9 +34,6 @@ endif # BUILD_WITH_TFM
# 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_APRICITY_GATEWAY_NRF9160 && TRUSTED_EXECUTION_SECURE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright (c) 2020 Nordic Semiconductor ASA
* Copyright (c) 2025 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

/dts-v1/;
Expand All @@ -10,10 +10,8 @@

/ {
chosen {
zephyr,sram = &sram0_s;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,sram-secure-partition = &sram0_s;
zephyr,sram-non-secure-partition = &sram0_ns;
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ supported:
- i2c
- pwm
- spi
- watchdog
- counter
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright (c) 2024 Nordic Semiconductor ASA
* Copyright (c) 2025 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

/ {
Expand All @@ -12,7 +12,7 @@
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,uart-mcumgr = &uart0;
zephyr,bt-uart=&uart1;
zephyr,bt-hci=&bt_hci_uart;
};

buttons {
Expand Down Expand Up @@ -266,6 +266,10 @@
pinctrl-0 = <&uart1_default>;
pinctrl-1 = <&uart1_sleep>;
pinctrl-names = "default", "sleep";
bt_hci_uart: bt_hci_uart {
compatible = "zephyr,bt-hci-uart";
status = "okay";
};
};

&flash0 {
Expand Down Expand Up @@ -294,8 +298,12 @@
slot1_ns_partition: partition@c0000 {
label = "image-1-nonsecure";
};
scratch_partition: partition@f0000 {
label = "image-scratch";
reg = <0x000f0000 0xa000>;
};
/* 0xf0000 to 0xf7fff reserved for TF-M partitions */
storage_partition: partition@f8000 {
storage_partition: partition@fa000 {
label = "storage";
reg = <0x000f8000 0x00008000>;
};
Expand All @@ -313,7 +321,7 @@
/* Secure image memory */
};

sram0_modem: image_modem@20016000 {
sram0_bsd: image_modem@20010000 {
/* Modem (shared) memory */
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ CONFIG_SERIAL=y
# Enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

# Disable entropy driver, as it's not yet implemented for nRF9160
CONFIG_ENTROPY_NRF5_RNG=n
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright (c) 2020 Nordic Semiconductor ASA
* Copyright (c) 2025 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

/dts-v1/;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
identifier: apricity_gateway_nrf9160ns
identifier: apricity_gateway_nrf9160_ns
name: APRICITY_GATEWAY-nRF9160-Non-Secure
type: mcu
arch: arm
toolchain:
- gnuarmemb
- xtools
- zephyr
ram: 128
flash: 192
flash: 256
supported:
- serial
- spi
- i2c
- pwm
- watchdog
- netif:modem
- gpio
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,12 @@ CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

# Disable entropy driver, as it's not yet implemented for nRF9160
#CONFIG_ENTROPY_NRF5_RNG=n
CONFIG_ENTROPY_NRF5_RNG=n

# Enable SPI
CONFIG_SPI=y

# Disable entropy driver, as it's not yet implemented for nRF9160
CONFIG_ENTROPY_NRF5_RNG=n

CONFIG_BOOTLOADER_MCUBOOT=y
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright (c) 2020 Nordic Semiconductor ASA
* Copyright (c) 2025 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

/*
Expand Down Expand Up @@ -51,7 +51,7 @@
reg = <0x20000000 DT_SIZE_K(88)>;
};

&sram0_modem {
&sram0_bsd {
reg = <0x20016000 DT_SIZE_K(40)>;
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
# Copyright (c) 2019 Nordic Semiconductor ASA.
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic

if(CONFIG_BOARD_APRICITY_GATEWAY_NRF9160_NS)
set(TFM_PUBLIC_KEY_FORMAT "full")
endif()
# Copyright (c) 2025 Nordic Semiconductor ASA.
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause

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

board_runner_args(jlink "--device=nRF9160_xxAA" "--speed=4000")
board_runner_args(jlink "--device=cortex-m33" "--speed=4000")
board_runner_args(nrfjprog "--softreset")
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) 2023 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2025 Nordic Semiconductor ASA
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause

# NOTE: This file is replicated in nrf9160dk_nrf9160 and nrf9160dk_nrf52840.
# Any changes should be done in both instances.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) 2021 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2025 Nordic Semiconductor ASA
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause

# NOTE: This file is replicated in nrf9160dk_nrf9160 and nrf9160dk_nrf52840.
# Any changes should be done in both instances.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) 2021 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2025 Nordic Semiconductor ASA
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause

# NOTE: This file is replicated in nrf9160dk_nrf9160 and nrf9160dk_nrf52840.
# Any changes should be done in both instances.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright (c) 2020 Nordic Semiconductor ASA.
* Copyright (c) 2025 Nordic Semiconductor ASA.
*
* SPDX-License-Identifier: Apache-2.0
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#include <zephyr/kernel.h>
Expand Down Expand Up @@ -242,4 +242,3 @@ int bt_hci_transport_setup(struct device *h4)
#else
#warning "Reset and/or boot node is missing"
#endif /* DT_NODE_HAS_STATUS(RESET_NODE, okay) && DT_NODE_HAS_STATUS(BOOT_NODE, okay) */

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) 2021 Linaro Limited
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2025 Nordic Semiconductor ASA
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause

# Suppress "unique_unit_address_if_enabled" to handle the following overlaps:
# - flash-controller@39000 & kmu@39000
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*
* Copyright (c) 2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/
/*
#include <nrf9160/nrf9160dk_uart1_on_if0_3.dtsi>
#include <nrf9160/nrf9160dk_nrf9160_common_0_14_0.dtsi>
#include <nrf9160/nrf9160dk_nrf52840_reset_on_if9.dtsi>
* #include <nrf9160/nrf9160dk_uart1_on_if0_3.dtsi>
* #include <nrf9160/nrf9160dk_nrf9160_common_0_14_0.dtsi>
* #include <nrf9160/nrf9160dk_nrf52840_reset_on_if9.dtsi>
*/
#include <nrf9160/nrf9160dk_nrf9160_common_0_14_0.dtsi>

Expand Down
Loading

0 comments on commit 2de663a

Please sign in to comment.