Skip to content

Commit 1d4b1e3

Browse files
gmarullcarlescufi
authored andcommitted
boards: shields: npm6001_ek: initial support
Add support for the nPM6001 Eval Kit. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 4de1d9a commit 1d4b1e3

File tree

5 files changed

+75
-0
lines changed

5 files changed

+75
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright (c) 2022 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if SHIELD_NPM6001_EK
5+
6+
config GPIO
7+
default y
8+
9+
config WATCHDOG
10+
default y
11+
12+
endif # SHIELD_NPM6001_EK
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2022 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SHIELD_NPM6001_EK
5+
def_bool $(shields_list_contains,npm6001_ek)
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
.. _npm6001_ek:
2+
3+
nPM6001 EK
4+
##########
5+
6+
Overview
7+
********
8+
9+
The nPM6001 EK lets you test different functions and features of the nPM6001
10+
Power Management Integrated Circuit (PMIC).
11+
12+
.. figure:: npm6001_ek.jpg
13+
:alt: nPM6001 EK
14+
:align: center
15+
16+
nPM6001 EK
17+
18+
Requirements
19+
************
20+
21+
The nPM6001 EK board is not designed to fit straight into an Arduino connector.
22+
However, the Zephyr shield is designed expecting it to be connected to the
23+
Arduino shield connectors. For example, the I2C lines need to be connected to
24+
the ``arduino_i2c`` bus. This allows to use the shield with any host board that
25+
supports the Arduino connector.
26+
27+
Usage
28+
*****
29+
30+
The shield can be used in any application by setting ``SHIELD`` to
31+
``npm6001_ek``.
32+
33+
References
34+
**********
35+
36+
- `nPM6001 EK Manual <https://infocenter.nordicsemi.com/topic/ug_npm6001_ek/UG/nPM6001_EK/intro.html>`_
70.7 KB
Loading
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Copyright (C) 2022 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
&arduino_i2c {
7+
npm6001_ek_pmic: pmic@70 {
8+
compatible = "nordic,npm6001";
9+
reg = <0x70>;
10+
11+
npm6001_ek_gpio: gpio-controller {
12+
compatible = "nordic,npm6001-gpio";
13+
gpio-controller;
14+
#gpio-cells = <2>;
15+
ngpios = <3>;
16+
};
17+
18+
npm6001_ek_wdt: watchdog {
19+
compatible = "nordic,npm6001-wdt";
20+
};
21+
};
22+
};

0 commit comments

Comments
 (0)