Skip to content

Commit fbdb222

Browse files
Marcin Kajormarkaj-nordic
authored andcommitted
CI/CD: Synchronize ncs-aliro@da57546e672b and ncs-door-lock-app
Source commit ID: @da57546e672b sync-ncs-aliro-da57546e672b Signed-off-by: Marcin Kajor <marcin.kajor@nordicsemi.com>
1 parent a36474a commit fbdb222

104 files changed

Lines changed: 12176 additions & 1347 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Kconfig

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,39 +15,42 @@ menuconfig NCS_ALIRO
1515
imply POLL
1616
# storage
1717
imply SETTINGS
18-
imply NVS
1918
imply FLASH
2019
imply FLASH_MAP
20+
imply REQUIRES_FULL_LIBCPP
21+
imply REQUIRES_FULL_LIBC
22+
imply NEWLIB_LIBC_NANO
2123
help
2224
This option enables the Aliro reader stack.
2325

2426
if NCS_ALIRO
2527

26-
rsource "lib/aliro/interfaces/logger/Kconfig"
28+
orsource "lib/aliro/interfaces/logger/Kconfig"
2729

28-
config ALIRO_BLE_TP
29-
bool "Aliro BLE transport"
30+
config ALIRO_BLE_UWB
31+
bool "Aliro Bluetooth LE (BLE) transport together with ultra wideband (UWB)"
3032
help
3133
Enable the Aliro BLE transport protocol (TP). This is the transport layer
32-
used by Reader to communicate with the User Device. It is used to send and
33-
receive packets over BLE.
34+
used by the Reader to communicate with the User Device. It is used to send and
35+
receive packets over BLE. Additionally the UWB is enabled in order to manage the
36+
ranging between the Reader and the User Device.
3437

3538
config DISABLE_ALIRO_NFC_TP
3639
bool "Disable NFC transport protocol for development purposes"
3740
help
3841
Disable the NFC transport protocol. This is useful if you want to use Aliro with BLE only.
3942

40-
if ALIRO_BLE_TP
43+
if ALIRO_BLE_UWB
4144

42-
config ALIRO_BLE_TP_MAX_SESSIONS
43-
int "Maximum number of BLE sessions"
45+
config ALIRO_BLE_UWB_MAX_SESSIONS
46+
int "Maximum number of BLE and UWB sessions"
4447
default BT_MAX_CONN
4548
help
46-
The maximum number of BLE sessions that can be established.
49+
The maximum number of BLE and UWB sessions that can be established.
4750

4851
rsource "lib/aliro/Kconfig.ble.defconfig"
4952

50-
endif # ALIRO_BLE_TP
53+
endif # ALIRO_BLE_UWB
5154

5255
rsource "lib/aliro/Kconfig.defconfig"
5356

app/Kconfig.sysbuild

Lines changed: 37 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,42 @@ config NRF_DEFAULT_IPC_RADIO
1313
config NETCORE_IPC_RADIO_BT_HCI_IPC
1414
default y if SOC_SERIES_NRF53X
1515

16+
#### Bootloader
17+
choice BOOTLOADER
18+
default BOOTLOADER_MCUBOOT if MATTER || SOC_SERIES_NRF53X
19+
endchoice
20+
21+
if BOOTLOADER_MCUBOOT
22+
23+
choice MCUBOOT_MODE
24+
default MCUBOOT_MODE_OVERWRITE_ONLY
25+
endchoice
26+
27+
choice BOOT_SIGNATURE_TYPE
28+
default BOOT_SIGNATURE_TYPE_ECDSA_P256
29+
endchoice
30+
31+
if SOC_SERIES_NRF53X
32+
33+
config MCUBOOT_UPDATEABLE_IMAGES
34+
default 2
35+
36+
config SECURE_BOOT_NETCORE
37+
default y
38+
39+
config NETCORE_APP_UPDATE
40+
default y
41+
42+
config MCUBOOT_NRF53_MULTI_IMAGE_UPDATE
43+
default y
44+
45+
config PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY
46+
default y
47+
48+
endif # SOC_SERIES_NRF53X
49+
50+
endif # BOOTLOADER_MCUBOOT
51+
1652
if MATTER
1753

1854
config WIFI_NRF70
@@ -23,11 +59,6 @@ config WIFI_NRF70
2359
config NETCORE_IPC_RADIO_IEEE802154
2460
default y if SOC_SERIES_NRF53X && !WIFI_NRF70
2561

26-
#### Bootloader
27-
choice BOOTLOADER
28-
default BOOTLOADER_MCUBOOT if !BOARD_NRF21540DK
29-
endchoice
30-
3162
if BOOTLOADER_MCUBOOT
3263

3364
#### DFU multi-image support
@@ -37,29 +68,9 @@ config DFU_MULTI_IMAGE_PACKAGE_BUILD
3768
config DFU_MULTI_IMAGE_PACKAGE_APP
3869
default y
3970

40-
config PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY
41-
default y
42-
4371
#### DFU network core configuration
4472
if SOC_SERIES_NRF53X
4573

46-
config MCUBOOT_UPDATEABLE_IMAGES
47-
default 2
48-
49-
choice MCUBOOT_MODE
50-
default MCUBOOT_MODE_OVERWRITE_ONLY
51-
endchoice
52-
53-
choice BOOT_SIGNATURE_TYPE
54-
default BOOT_SIGNATURE_TYPE_RSA
55-
endchoice
56-
57-
config SECURE_BOOT_NETCORE
58-
default y
59-
60-
config NETCORE_APP_UPDATE
61-
default y
62-
6374
config DFU_MULTI_IMAGE_PACKAGE_NET
6475
default y
6576

@@ -76,7 +87,7 @@ endif # BOOTLOADER_MCUBOOT
7687

7788
#### Enable generating factory data
7889
config MATTER_FACTORY_DATA_GENERATE
79-
default y if !BOARD_NRF21540DK
90+
default y
8091

8192
endif # MATTER
8293

app/boards/nrf52840dk_nrf52840.overlay

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,8 @@
5757
compatible = "zephyr,psa-crypto-rng";
5858
status = "okay";
5959
};
60-
};
6160

62-
/ {
63-
access_decision_indicator: access_decision_indicator{
64-
status = "okay";
65-
compatible = "access-decision-indicator";
66-
gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
61+
aliases {
62+
access-decision-indicator = &led1; // green LED2 on nRF52840DK
6763
};
6864
};

app/boards/nrf5340dk_nrf5340_cpuapp.conf

Lines changed: 0 additions & 8 deletions
This file was deleted.

app/boards/nrf5340dk_nrf5340_cpuapp.overlay

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7+
/{
8+
aliases {
9+
access-decision-indicator = &led1; // green LED2 on nRF5340DK
10+
};
11+
};
12+
713
&pinctrl {
814
spi1_default_alt: spi1_default_alt {
915
group1 {
@@ -42,9 +48,7 @@
4248
};
4349

4450
/ {
45-
access_decision_indicator: access_decision_indicator {
46-
status = "okay";
47-
compatible = "access-decision-indicator";
48-
gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
51+
chosen {
52+
nordic,pm-ext-flash = &mx25r64;
4953
};
5054
};

app/boards/nrf54l15dk_nrf54l15_cpuapp.overlay

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
/delete-property/ sw0;
1616
/delete-property/ sw3;
1717
mcuboot-button0 = &button1;
18+
access-decision-indicator = &led1; // green LED1 on nRF54L15DK
1819
};
1920
};
2021

@@ -59,12 +60,6 @@
5960
compatible = "nfc-power-control";
6061
gpios = <&gpio2 6 ( GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN )>;
6162
};
62-
63-
access_decision_indicator: access_decision_indicator{
64-
status = "okay";
65-
compatible = "access-decision-indicator";
66-
gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>;
67-
};
6863
};
6964

7065
&gpio0 {
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
&pinctrl {
8+
spi21_default: spi21_default {
9+
group1 {
10+
psels = <NRF_PSEL(SPIM_SCK, 1, 13)>,
11+
<NRF_PSEL(SPIM_MOSI, 1, 11)>,
12+
<NRF_PSEL(SPIM_MISO, 1, 12)>;
13+
};
14+
};
15+
16+
spi21_sleep: spi21_sleep {
17+
group1 {
18+
psels = <NRF_PSEL(SPIM_SCK, 1, 13)>,
19+
<NRF_PSEL(SPIM_MOSI, 1, 11)>,
20+
<NRF_PSEL(SPIM_MISO, 1, 12)>;
21+
low-power-enable;
22+
};
23+
};
24+
};
25+
26+
&spi21 {
27+
compatible = "nordic,nrf-spim";
28+
status = "okay";
29+
cs-gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
30+
31+
pinctrl-0 = <&spi21_default>;
32+
pinctrl-1 = <&spi21_sleep>;
33+
pinctrl-names = "default", "sleep";
34+
nucleo_nfc@0 {
35+
compatible = "x-nucleo-nfc";
36+
reg = <0>;
37+
spi-max-frequency = <DT_FREQ_M(4)>;
38+
irq-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
39+
};
40+
};
41+
42+
/ {
43+
nfc_power_switch: nfc_power_switch {
44+
status = "okay";
45+
compatible = "nfc-power-control";
46+
gpios = <&gpio1 22 ( GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN )>;
47+
};
48+
49+
access_decision_indicator: access_decision_indicator{
50+
status = "okay";
51+
compatible = "access-decision-indicator";
52+
gpios = <&gpio1 25 GPIO_ACTIVE_HIGH>;
53+
};
54+
55+
/* Disable led0 to avoid collision with NFC power switch. */
56+
leds {
57+
/delete-node/ led_0;
58+
};
59+
60+
aliases {
61+
/delete-property/ led0;
62+
access-decision-indicator = &led1; // green LED1 on nRF54LM20DK
63+
};
64+
};
65+
66+
&gpio0 {
67+
status = "okay";
68+
};
69+
70+
&gpio1 {
71+
status = "okay";
72+
};
File renamed without changes.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
mcuboot:
2+
address: 0x0
3+
region: flash_primary
4+
size: 0xD000
5+
mcuboot_pad:
6+
address: 0xD000
7+
region: flash_primary
8+
size: 0x800
9+
app:
10+
address: 0xD800
11+
region: flash_primary
12+
size: 0x1E2800
13+
mcuboot_primary:
14+
address: 0xD000
15+
orig_span: &id001
16+
- app
17+
- mcuboot_pad
18+
region: flash_primary
19+
size: 0x1E3000
20+
span: *id001
21+
mcuboot_primary_app:
22+
address: 0xD800
23+
orig_span: &id002
24+
- app
25+
region: flash_primary
26+
size: 0x1E2800
27+
span: *id002
28+
factory_data:
29+
address: 0x1F0000
30+
region: flash_primary
31+
size: 0x1000
32+
settings_storage:
33+
address: 0x1F1000
34+
region: flash_primary
35+
size: 0xC000
36+
mcuboot_secondary:
37+
address: 0x0
38+
orig_span: &id003
39+
- mcuboot_secondary_pad
40+
- mcuboot_secondary_app
41+
region: external_flash
42+
size: 0x1E3000
43+
span: *id003
44+
mcuboot_secondary_pad:
45+
region: external_flash
46+
address: 0x0
47+
size: 0x800
48+
mcuboot_secondary_app:
49+
region: external_flash
50+
address: 0x800
51+
size: 0x1E2800
52+
external_flash:
53+
address: 0x1E3000
54+
size: 0x5DB000
55+
device: MX25R64
56+
region: external_flash

app/prj.conf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,10 @@ CONFIG_SHELL_BACKEND_SERIAL_LOG_MESSAGE_QUEUE_SIZE=2048
5252
# RFAL worker stack size (TODO: optimize)
5353
CONFIG_RFAL_WORKER_THREAD_STACK_SIZE=8192
5454

55-
CONFIG_ACCESS_DECISION_INDICATOR=y
56-
5755
# Workaournd for Murata issue:
5856
# https://github.com/csa-access-control/aliro-actuator/issues/114
5957
CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=n
6058

61-
6259
#
6360
# Matter
6461
#
@@ -67,9 +64,6 @@ CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=n
6764
CONFIG_CHIP_DEVICE_DISCRIMINATOR=0xBBB
6865
CONFIG_CHIP_DEVICE_SPAKE2_PASSCODE=30033003
6966

70-
# Configure ZAP file name
71-
CONFIG_NCS_SAMPLE_MATTER_ZAP_FILE_PATH="${APPLICATION_CONFIG_DIR}/src/matter/default_zap/lock.zap"
72-
7367
# 32774 == 0x8006 (example lock-app)
7468
CONFIG_CHIP_DEVICE_PRODUCT_ID=32774
7569

0 commit comments

Comments
 (0)