Skip to content

Commit 426a896

Browse files
sample: light_bulb experimental nRF7120 DK support
Adds experimental support for the nRF7120 DK. Currently, the Matter OTA feature is not supported. Signed-off-by: Dominik Michalczyk <dominik.michalczyk@nordicsemi.no>
1 parent 351e60e commit 426a896

6 files changed

Lines changed: 147 additions & 2 deletions

File tree

‎dts/nrf7120_cpuapp_partitions.dtsi‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/delete-node/ &boot_partition;
8+
/delete-node/ &slot0_partition;
9+
/delete-node/ &slot1_partition;
10+
/delete-node/ &storage_partition;
11+
12+
&cpuapp_mram {
13+
partitions {
14+
slot0_partition: partition@0 {
15+
compatible = "zephyr,mapped-partition";
16+
label = "image-0";
17+
reg = <0x00000000 DT_SIZE_K(4024)>;
18+
};
19+
20+
factory_data_partition: partition@3ee000 {
21+
compatible = "zephyr,mapped-partition";
22+
label = "factory-data";
23+
reg = <0x003ee000 DT_SIZE_K(4)>;
24+
};
25+
26+
storage_partition: partition@3ef000 {
27+
compatible = "zephyr,mapped-partition";
28+
label = "storage";
29+
reg = <0x003ef000 DT_SIZE_K(48)>;
30+
};
31+
};
32+
};

‎samples/light_bulb/Kconfig.sysbuild‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ config NETCORE_IPC_RADIO_IEEE802154
2121
config NETCORE_IPC_RADIO_BT_HCI_IPC
2222
default y if SOC_SERIES_NRF53
2323

24+
#### Matter OTA
25+
config MATTER_ADD_ON_OTA
26+
default n if BOARD_NRF7120DK_NRF7120_CPUAPP
27+
2428
#### Bootloader
2529
choice BOOTLOADER
26-
default BOOTLOADER_MCUBOOT if !BOARD_NRF21540DK
30+
default BOOTLOADER_MCUBOOT if !BOARD_NRF21540DK && !BOARD_NRF7120DK_NRF7120_CPUAPP
2731
endchoice
2832

2933
if BOOTLOADER_MCUBOOT
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# Lower System ON idle current: see lib_nrf71_idle_power. Keep the
8+
# default RAM_RETAIN_FULL tier; RAM_RETAIN_UNUSED_ONLY has been observed
9+
# to cause issues on Wi-Fi builds.
10+
CONFIG_NRF71_IDLE_POWER=y
11+
12+
# TODO: MCUboot is currently not supported on the nRF7120 DK.
13+
CONFIG_CHIP_BOOTLOADER_NONE=y
14+
15+
# TODO: Currently MRAM does not support clearing factory data, so we can not
16+
# migrate the DAC private key
17+
CONFIG_CHIP_CRYPTO_PSA_MIGRATE_DAC_PRIV_KEY=n
18+
19+
# TODO: Enabling low-power mode unconditionally gives BLE more radio time,
20+
# allowing the device to connect to Wi-Fi and send responses over BLE.
21+
CONFIG_NRF_WIFI_LOW_POWER=y
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include <nrf7120_cpuapp_partitions.dtsi>
8+
9+
/ {
10+
chosen {
11+
zephyr,entropy = &psa_rng;
12+
// TODO: MRAM is not chosen as the flash controller by default
13+
zephyr,flash-controller = &mram_controller;
14+
};
15+
16+
aliases {
17+
pwm-led1 = &pwm_led1;
18+
};
19+
20+
psa_rng: psa-rng {
21+
compatible = "zephyr,psa-crypto-rng";
22+
status = "okay";
23+
};
24+
};
25+
26+
// TODO: gpio4 has no gpiote instance assigned in the dtsi file
27+
&gpio4 {
28+
gpiote-instance = <&gpiote20>;
29+
};
30+
31+
&wdt31 {
32+
status = "okay";
33+
};
34+
35+
&wifi {
36+
status = "okay";
37+
};

‎samples/light_bulb/sample.yaml‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@ tests:
3030
platform_allow:
3131
- nrf54lm20dk/nrf54lm20b/cpuapp
3232
- nrf54lm20dk/nrf54lm20a/cpuapp
33+
sample.matter.light_bulb.nrf7120.debug:
34+
sysbuild: true
35+
build_only: true
36+
extra_args:
37+
- CONFIG_CHIP_WIFI=y
38+
- CONFIG_WIFI_NRF71_PATCH=y
39+
- EXTRA_DTC_OVERLAY_FILE=${ZEPHYR_NRFXLIB_MODULE_DIR}/nrf71_wifi/bins/0.1.0/nrf7120_wifi_patch.dtsi
40+
integration_platforms:
41+
- nrf7120dk/nrf7120/cpuapp
42+
platform_allow:
43+
- nrf7120dk/nrf7120/cpuapp
3344
sample.matter.light_bulb.release:
3445
sysbuild: true
3546
build_only: true
@@ -57,6 +68,18 @@ tests:
5768
platform_allow:
5869
- nrf54lm20dk/nrf54lm20b/cpuapp
5970
- nrf54lm20dk/nrf54lm20a/cpuapp
71+
sample.matter.light_bulb.nrf7120.release:
72+
sysbuild: true
73+
build_only: true
74+
extra_args:
75+
- FILE_SUFFIX=release
76+
- CONFIG_CHIP_WIFI=y
77+
- CONFIG_WIFI_NRF71_PATCH=y
78+
- EXTRA_DTC_OVERLAY_FILE=${ZEPHYR_NRFXLIB_MODULE_DIR}/nrf71_wifi/bins/0.1.0/nrf7120_wifi_patch.dtsi
79+
integration_platforms:
80+
- nrf7120dk/nrf7120/cpuapp
81+
platform_allow:
82+
- nrf7120dk/nrf7120/cpuapp
6083
sample.matter.light_bulb.ffs:
6184
sysbuild: true
6285
build_only: true
@@ -90,6 +113,20 @@ tests:
90113
platform_allow:
91114
- nrf54lm20dk/nrf54lm20b/cpuapp
92115
- nrf54lm20dk/nrf54lm20a/cpuapp
116+
sample.matter.light_bulb.nrf7120.ffs:
117+
sysbuild: true
118+
build_only: true
119+
extra_args:
120+
- CONFIG_CHIP_COMMISSIONABLE_DEVICE_TYPE=y
121+
- CONFIG_CHIP_ROTATING_DEVICE_ID=y
122+
- CONFIG_CHIP_DEVICE_TYPE=257
123+
- CONFIG_CHIP_WIFI=y
124+
- CONFIG_WIFI_NRF71_PATCH=y
125+
- EXTRA_DTC_OVERLAY_FILE=${ZEPHYR_NRFXLIB_MODULE_DIR}/nrf71_wifi/bins/0.1.0/nrf7120_wifi_patch.dtsi
126+
integration_platforms:
127+
- nrf7120dk/nrf7120/cpuapp
128+
platform_allow:
129+
- nrf7120dk/nrf7120/cpuapp
93130
sample.matter.light_bulb.debug.nrf21540ek:
94131
sysbuild: true
95132
build_only: true
@@ -140,6 +177,20 @@ tests:
140177
integration_platforms:
141178
- nrf54lm20dk/nrf54lm20b/cpuapp
142179
- nrf54lm20dk/nrf54lm20a/cpuapp
180+
sample.matter.light_bulb.nrf7120.memory_profiling:
181+
sysbuild: true
182+
build_only: true
183+
extra_args:
184+
- CONFIG_CHIP_MEMORY_PROFILING=y
185+
- CONFIG_SHELL_MINIMAL=y
186+
- CONFIG_CHIP_FACTORY_RESET_TIME_MEASUREMENT=y
187+
- CONFIG_CHIP_WIFI=y
188+
- CONFIG_WIFI_NRF71_PATCH=y
189+
- EXTRA_DTC_OVERLAY_FILE=${ZEPHYR_NRFXLIB_MODULE_DIR}/nrf71_wifi/bins/0.1.0/nrf7120_wifi_patch.dtsi
190+
integration_platforms:
191+
- nrf7120dk/nrf7120/cpuapp
192+
platform_allow:
193+
- nrf7120dk/nrf7120/cpuapp
143194
sample.matter.light_bulb.tfm:
144195
sysbuild: true
145196
build_only: true

‎west.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ manifest:
1616
remote: ncs
1717
path: modules/lib/matter
1818
repo-path: sdk-connectedhomeip
19-
revision: ncs-matter-preview-nrf7120-branch
19+
revision: 65d3380f26d5d4848179b7af5caf64e3514104c9
2020
submodules:
2121
- name: nlio
2222
path: third_party/nlio/repo

0 commit comments

Comments
 (0)