Skip to content

Commit f1fd516

Browse files
seov-nordicrlubos
authored andcommitted
samples: pmic: update npm1300_fuel_gauge 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 738c362 commit f1fd516

34 files changed

+146
-103
lines changed

doc/_utils/redirects.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@
441441
("samples/wifi/sr_coex/README", "samples/wifi/ble_coex/README"), # Wi-Fi: Bluetooth LE coexistence
442442
("samples/samples_zigbee", "samples/zigbee"), # Zigbee samples (landing)
443443
("samples/samples_other", "samples/other"), # Other samples (landing)
444+
("samples/pmic/native/npm1300_fuel_gauge/README", "samples/pmic/native/npm13xx_fuel_gauge/README"),
444445
("libraries/bluetooth_services/index", "libraries/bluetooth/index"), # Changed the folder name libraries/bluetooth_services to libraries/bluetooth to better match the include folder structure
445446
("libraries/bluetooth_services/adv_prov", "libraries/bluetooth/adv_prov"),
446447
("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 <npm1300_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 <npm1300_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/links.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,8 @@
350350
.. _`nPM1300 EK product page`: https://www.nordicsemi.com/Products/Development-hardware/nPM1300-EK
351351
.. _`nPM1300 EK get started`: https://www.nordicsemi.com/Products/Development-hardware/nPM1300-EK/Get-started?lang=en#infotabs
352352

353+
.. _`nPM1304 product website`: https://www.nordicsemi.com/products/npm1304
354+
353355
.. _`nPM2100 product website`: https://www.nordicsemi.com/Products/nPM2100
354356
.. _`nRF Desktop reference design page`: https://www.nordicsemi.com/Products/Reference-designs/nRF-Desktop
355357
.. _`Nordic Semiconductor's IoT cloud platform`: https://www.nordicsemi.com/Products/Cloud-services

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The following list includes the summary of the most relevant changes introduced
5656
* PMIC: nPM1300 PMIC and nPM1300 EK:
5757

5858
* Charger, BUCKs, LDOs, Load Switches, and GPIOs.
59-
* :ref:`Sample showing fuel gauge functionality <npm1300_fuel_gauge>`.
59+
* :ref:`Sample showing fuel gauge functionality <npm13xx_fuel_gauge>`.
6060
The sample calculates battery state of charge, time to empty, time to full and provides updates of these over the terminal once every second.
6161
* The nPM1300 EK sample that supports PMIC features: regulators (BUCKs, LDO) and GPIOs.
6262

@@ -622,7 +622,7 @@ nRF9160 samples
622622
PMIC samples
623623
------------
624624

625-
* Added :ref:`npm1300_fuel_gauge` sample that demonstrates how to calculate the battery state of charge using the :ref:`nrfxlib:nrf_fuel_gauge`.
625+
* Added the :ref:`nPM1300: Fuel gauge <npm13xx_fuel_gauge>` sample that demonstrates how to calculate the battery state of charge using the :ref:`nrfxlib:nrf_fuel_gauge`.
626626

627627
Trusted Firmware-M (TF-M) samples
628628
---------------------------------

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ PMIC samples
928928

929929
* 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.
930930

931-
* :ref:`npm1300_fuel_gauge` sample:
931+
* :ref:`nPM1300: Fuel gauge <npm13xx_fuel_gauge>` sample:
932932

933933
* Updated to accommodate API changes in the :ref:`nrfxlib:nrf_fuel_gauge`.
934934

doc/nrf/releases_and_maturity/releases/release-notes-2.8.0-preview1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ PMIC samples
688688

689689
* Added support for the :zephyr:board:`nrf54l15dk` and :zephyr:board:`nrf54h20dk` to the PMIC samples.
690690

691-
* :ref:`npm1300_fuel_gauge` sample:
691+
* :ref:`nPM1300: Fuel gauge <npm13xx_fuel_gauge>` sample:
692692

693693
* Updated to accommodate API changes in nRF Fuel Gauge library v0.11.1.
694694

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ PMIC samples
933933

934934
* Added support for the :zephyr:board:`nrf54l15dk` and :zephyr:board:`nrf54h20dk` to the PMIC samples.
935935

936-
* :ref:`npm1300_fuel_gauge` sample:
936+
* :ref:`nPM1300: Fuel gauge <npm13xx_fuel_gauge>` sample:
937937

938938
* Updated to accommodate API changes in nRF Fuel Gauge library v0.11.1.
939939

doc/nrf/releases_and_maturity/releases/release-notes-3.0.0-preview1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ Peripheral samples
496496
PMIC samples
497497
------------
498498

499-
* :ref:`npm1300_fuel_gauge` sample:
499+
* :ref:`nPM1300: Fuel gauge <npm13xx_fuel_gauge>` sample:
500500

501501
* Updated to accommodate API changes in nRF Fuel Gauge library v1.0.0.
502502

doc/nrf/releases_and_maturity/releases/release-notes-3.0.0-preview2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ PMIC samples
650650
* The :ref:`npm2100_one_button` sample that demonstrates how to support wake-up, shutdown, and user interactions through a single button connected to the nPM2100 PMIC.
651651
* The :ref:`npm2100_fuel_gauge` sample that demonstrates how to calculate the battery state of charge of primary cell batteries using the :ref:`nrfxlib:nrf_fuel_gauge`.
652652

653-
* :ref:`npm1300_fuel_gauge` sample:
653+
* :ref:`nPM1300: Fuel gauge <npm13xx_fuel_gauge>` sample:
654654

655655
* Updated to accommodate API changes in nRF Fuel Gauge library v1.0.0.
656656

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ PMIC samples
903903
* The :ref:`npm2100_one_button` sample that demonstrates how to support wake-up, shutdown, and user interactions through a single button connected to the nPM2100 PMIC.
904904
* The :ref:`npm2100_fuel_gauge` sample that demonstrates how to calculate the battery state of charge of primary cell batteries using the :ref:`nrfxlib:nrf_fuel_gauge`.
905905

906-
* :ref:`npm1300_fuel_gauge` sample:
906+
* :ref:`nPM1300: Fuel gauge <npm13xx_fuel_gauge>` sample:
907907

908908
* Updated to accommodate API changes in nRF Fuel Gauge library v1.0.0.
909909

0 commit comments

Comments
 (0)