Skip to content

Commit 2034733

Browse files
seov-nordicrlubos
authored andcommitted
samples: pmic: update npm1300_one_button sample to support nPM1304
Added possibility to choose the nPM1300 or the nPM1304 EK shield to build for. Adapted code and DTS overlays to accomodate both PMICs. Signed-off-by: Sergei Ovchinnikov <[email protected]>
1 parent ae32455 commit 2034733

27 files changed

+288
-302
lines changed

doc/_utils/redirects.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@
442442
("samples/samples_zigbee", "samples/zigbee"), # Zigbee samples (landing)
443443
("samples/samples_other", "samples/other"), # Other samples (landing)
444444
("samples/pmic/native/npm1300_fuel_gauge/README", "samples/pmic/native/npm13xx_fuel_gauge/README"),
445+
("samples/pmic/native/npm1300_one_button/README", "samples/pmic/native/npm13xx_one_button/README"),
445446
("libraries/bluetooth_services/index", "libraries/bluetooth/index"), # Changed the folder name libraries/bluetooth_services to libraries/bluetooth to better match the include folder structure
446447
("libraries/bluetooth_services/adv_prov", "libraries/bluetooth/adv_prov"),
447448
("libraries/bluetooth_services/conn_ctx", "libraries/bluetooth/conn_ctx"),

doc/nrf/app_dev/device_guides/pmic/npm1300.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Connecting the development kit to nPM1300
122122
=========================================
123123

124124
If you are using the nRF5340 DK, follow the steps in `Use the nPM1300 EK with an nRF5340 DK`_ in the `nPM1300 EK User Guide`_.
125-
For other Nordic Semiconductor kits, use the wiring steps in the documentation for :ref:`pmic_samples` as reference (:ref:`wiring for the Fuel gauge sample <npm13xx_fuel_gauge_wiring>` and :ref:`wiring for the One button sample <npm1300_one_button_wiring>`, respectively).
125+
For other Nordic Semiconductor kits, use the wiring steps in the documentation for :ref:`pmic_samples` as reference (:ref:`wiring for the Fuel gauge sample <npm13xx_fuel_gauge_wiring>` and :ref:`wiring for the One button sample <npm13xx_one_button_wiring>`, respectively).
126126

127127
If you are using custom hardware, the wiring process is similar to the `one for the nRF5340 DK <Use the nPM1300 EK with an nRF5340 DK_>`_, but board-specific steps will be different.
128128

doc/nrf/releases_and_maturity/releases/release-notes-2.6.0.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Added the following features as supported:
4444

4545
* Power Management (nPM1300):
4646

47-
* New :ref:`npm1300_one_button` sample that demonstrates how to support wake-up, shutdown, and user interactions through a single button connected to the nPM1300.
47+
* New :ref:`nPM1300: One button <npm13xx_one_button>` sample that demonstrates how to support wake-up, shutdown, and user interactions through a single button connected to the nPM1300.
4848
* LDO and load-switches soft start configuration to limit voltage fluctuations, and PFM mode configuration for added user flexibility.
4949

5050
* Amazon Sidewalk:
@@ -926,7 +926,7 @@ Peripheral samples
926926
PMIC samples
927927
------------
928928

929-
* Added :ref:`npm1300_one_button` sample that demonstrates how to support wake-up, shutdown, and user interactions through a single button connected to the nPM1300.
929+
* Added the :ref:`nPM1300: One button <npm13xx_one_button>` sample that demonstrates how to support wake-up, shutdown, and user interactions through a single button connected to the nPM1300.
930930

931931
* :ref:`nPM1300: Fuel gauge <npm13xx_fuel_gauge>` sample:
932932

samples/pmic/native/npm1300_one_button/README.rst

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

samples/pmic/native/npm1300_one_button/boards/nrf52840dk_nrf52840.overlay

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

samples/pmic/native/npm1300_one_button/boards/nrf52dk_nrf52832.overlay

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

samples/pmic/native/npm1300_one_button/boards/nrf54l15dk_nrf54l15_cpuapp.overlay

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

samples/pmic/native/npm1300_one_button/boards/nrf9160dk_nrf9160.overlay

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

samples/pmic/native/npm1300_one_button/CMakeLists.txt renamed to samples/pmic/native/npm13xx_one_button/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ cmake_minimum_required(VERSION 3.20.0)
55

66
list(APPEND BOARD_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
77

8-
set(SHIELD npm1300_ek)
9-
108
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
119

12-
project(npm1300_one_button)
10+
project(npm13xx_one_button)
1311

1412
add_subdirectory(src)

0 commit comments

Comments
 (0)