diff --git a/samples/matter/light_switch/sample.yaml b/samples/matter/light_switch/sample.yaml index 70488a1e5f9e..40379e147621 100644 --- a/samples/matter/light_switch/sample.yaml +++ b/samples/matter/light_switch/sample.yaml @@ -95,3 +95,17 @@ tests: tags: - sysbuild - ci_samples_matter + sample.matter.light_switch.release.power_consumption: + sysbuild: true + build_only: true + extra_args: + - FILE_SUFFIX=release + - light_switch_SNIPPET=power_consumption_tests + integration_platforms: + - nrf52840dk/nrf52840 + - nrf5340dk/nrf5340/cpuapp + - nrf54l15dk/nrf54l15/cpuapp + platform_allow: + - nrf52840dk/nrf52840 + - nrf5340dk/nrf5340/cpuapp + - nrf54l15dk/nrf54l15/cpuapp diff --git a/samples/matter/lock/sample.yaml b/samples/matter/lock/sample.yaml index 20e67543939e..7b7d23fb24d1 100644 --- a/samples/matter/lock/sample.yaml +++ b/samples/matter/lock/sample.yaml @@ -132,17 +132,20 @@ tests: tags: - sysbuild - ci_samples_matter - sample.matter.lock.release.nrf54l15.power_consumption: + sample.matter.lock.release.power_consumption: sysbuild: true build_only: true extra_args: - FILE_SUFFIX=release - - CONFIG_NCS_SAMPLE_MATTER_LEDS=n - - CONFIG_CHIP_ENABLE_PAIRING_AUTOSTART=y - - CONFIG_NCS_SAMPLE_MATTER_WATCHDOG=n + - lock_SNIPPET=power_consumption_tests integration_platforms: + - nrf52840dk/nrf52840 + - nrf5340dk/nrf5340/cpuapp + - nrf54l15dk/nrf54l15/cpuapp + platform_allow: + - nrf52840dk/nrf52840 + - nrf5340dk/nrf5340/cpuapp - nrf54l15dk/nrf54l15/cpuapp - platform_allow: nrf54l15dk/nrf54l15/cpuapp tags: - sysbuild - ci_samples_matter diff --git a/samples/matter/smoke_co_alarm/sample.yaml b/samples/matter/smoke_co_alarm/sample.yaml index 5da30ee5fc03..beda0c3de26b 100644 --- a/samples/matter/smoke_co_alarm/sample.yaml +++ b/samples/matter/smoke_co_alarm/sample.yaml @@ -57,22 +57,22 @@ tests: tags: - sysbuild - ci_samples_matter - sample.matter.smoke_co_alarm.release.nrf54l15.power_consumption: + sample.matter.smoke_co_alarm.release.power_consumption: sysbuild: true build_only: true extra_args: - FILE_SUFFIX=release - - CONFIG_NCS_SAMPLE_MATTER_LEDS=n - - CONFIG_NCS_SAMPLE_MATTER_WATCHDOG=n + - smoke_co_alarm_SNIPPET=power_consumption_tests integration_platforms: + - nrf52840dk/nrf52840 + - nrf5340dk/nrf5340/cpuapp - nrf54l15dk/nrf54l15/cpuapp - nrf54l15dk/nrf54l10/cpuapp platform_allow: + - nrf52840dk/nrf52840 + - nrf5340dk/nrf5340/cpuapp - nrf54l15dk/nrf54l15/cpuapp - nrf54l15dk/nrf54l10/cpuapp - tags: - - sysbuild - - ci_samples_matter sample.matter.smoke_co_alarm.debug.reference: sysbuild: true build_only: true diff --git a/samples/matter/window_covering/sample.yaml b/samples/matter/window_covering/sample.yaml index ac810eb62398..17988ef3831a 100644 --- a/samples/matter/window_covering/sample.yaml +++ b/samples/matter/window_covering/sample.yaml @@ -53,16 +53,17 @@ tests: tags: - sysbuild - ci_samples_matter - sample.matter.window_cover.release.nrf54l15.power_consumption: + sample.matter.window_cover.release.power_consumption: sysbuild: true build_only: true extra_args: - FILE_SUFFIX=release - - CONFIG_NCS_SAMPLE_MATTER_LEDS=n - - CONFIG_NCS_SAMPLE_MATTER_WATCHDOG=n + - window_covering_SNIPPET=power_consumption_tests integration_platforms: + - nrf52840dk/nrf52840 + - nrf5340dk/nrf5340/cpuapp + - nrf54l15dk/nrf54l15/cpuapp + platform_allow: + - nrf52840dk/nrf52840 + - nrf5340dk/nrf5340/cpuapp - nrf54l15dk/nrf54l15/cpuapp - platform_allow: nrf54l15dk/nrf54l15/cpuapp - tags: - - sysbuild - - ci_samples_matter diff --git a/snippets/matter-power-consumption-tests/boards/nrf54l15dk_nrf54l10_cpuapp.conf b/snippets/matter-power-consumption-tests/boards/nrf54l15dk_nrf54l10_cpuapp.conf new file mode 100644 index 000000000000..2f6b93c3409b --- /dev/null +++ b/snippets/matter-power-consumption-tests/boards/nrf54l15dk_nrf54l10_cpuapp.conf @@ -0,0 +1,14 @@ +# +# Copyright (c) 2025 Nordic Semiconductor ASA +# +# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause +# + +# Disable LEDs that lead to the current leakages +CONFIG_NCS_SAMPLE_MATTER_LEDS=n + +# Disable watchdog that increases the sleep current +CONFIG_NCS_SAMPLE_MATTER_WATCHDOG=n + +# Increase MPSL calibration period to prevent too often CPU wake-ups. +CONFIG_MPSL_CALIBRATION_PERIOD=60000 diff --git a/snippets/matter-power-consumption-tests/boards/nrf54l15dk_nrf54l15_cpuapp.conf b/snippets/matter-power-consumption-tests/boards/nrf54l15dk_nrf54l15_cpuapp.conf new file mode 100644 index 000000000000..2f6b93c3409b --- /dev/null +++ b/snippets/matter-power-consumption-tests/boards/nrf54l15dk_nrf54l15_cpuapp.conf @@ -0,0 +1,14 @@ +# +# Copyright (c) 2025 Nordic Semiconductor ASA +# +# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause +# + +# Disable LEDs that lead to the current leakages +CONFIG_NCS_SAMPLE_MATTER_LEDS=n + +# Disable watchdog that increases the sleep current +CONFIG_NCS_SAMPLE_MATTER_WATCHDOG=n + +# Increase MPSL calibration period to prevent too often CPU wake-ups. +CONFIG_MPSL_CALIBRATION_PERIOD=60000 diff --git a/snippets/matter-power-consumption-tests/power_consumption_tests.conf b/snippets/matter-power-consumption-tests/power_consumption_tests.conf new file mode 100644 index 000000000000..c2384ff4aae3 --- /dev/null +++ b/snippets/matter-power-consumption-tests/power_consumption_tests.conf @@ -0,0 +1,13 @@ +# +# Copyright (c) 2025 Nordic Semiconductor ASA +# +# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause +# + +# This is the configuration file used only for the purpose of Matter power consumption tests. + +# Enable pairing autostart to avoid issues with IO adapter +CONFIG_CHIP_ENABLE_PAIRING_AUTOSTART=y + +# Enable persistent subscriptions to automatically recover connection after reboot. +CONFIG_CHIP_PERSISTENT_SUBSCRIPTIONS=y diff --git a/snippets/matter-power-consumption-tests/snippet.yml b/snippets/matter-power-consumption-tests/snippet.yml new file mode 100644 index 000000000000..8a735022d2b2 --- /dev/null +++ b/snippets/matter-power-consumption-tests/snippet.yml @@ -0,0 +1,11 @@ +name: power-consumption-tests +append: + EXTRA_CONF_FILE: power_consumption_tests.conf + +boards: + nrf54l15dk/nrf54l15/cpuapp: + append: + EXTRA_CONF_FILE: boards/nrf54l15dk_nrf54l15_cpuapp.conf + nrf54l15dk/nrf54l10/cpuapp: + append: + EXTRA_CONF_FILE: boards/nrf54l15dk_nrf54l10_cpuapp.conf