diff --git a/boards/shields/npm1100_ek/Kconfig.defconfig b/boards/shields/npm1100_ek/Kconfig.defconfig new file mode 100644 index 00000000000..fdf12215596 --- /dev/null +++ b/boards/shields/npm1100_ek/Kconfig.defconfig @@ -0,0 +1,9 @@ +# Copyright (c) 2023 Nordic Semiconductor ASA +# SPDX-License-Identifier: Apache-2.0 + +if SHIELD_NPM1100_EK + +config REGULATOR + default y + +endif # SHIELD_NPM1100_EK diff --git a/boards/shields/npm1100_ek/Kconfig.shield b/boards/shields/npm1100_ek/Kconfig.shield new file mode 100644 index 00000000000..81330816e7d --- /dev/null +++ b/boards/shields/npm1100_ek/Kconfig.shield @@ -0,0 +1,5 @@ +# Copyright (c) 2023 Nordic Semiconductor ASA +# SPDX-License-Identifier: Apache-2.0 + +config SHIELD_NPM1100_EK + def_bool $(shields_list_contains,npm1100_ek) diff --git a/boards/shields/npm1100_ek/doc/index.rst b/boards/shields/npm1100_ek/doc/index.rst new file mode 100644 index 00000000000..a05b38f346f --- /dev/null +++ b/boards/shields/npm1100_ek/doc/index.rst @@ -0,0 +1,42 @@ +.. _npm1100_ek: + +nPM1100 EK +########## + +Overview +******** + +The nPM1100 EK lets you test different functions and features of the nPM1100 +Power Management Integrated Circuit (PMIC). + +.. figure:: npm1100_ek.jpg + :alt: nPM1100 EK + :align: center + + nPM1100 EK + +Requirements +************ + +The nPM1100 EK board is not designed to fit straight into an Arduino connector. +However, the Zephyr shield is designed expecting it to be connected to the +Arduino shield pins. This allows to use the shield with any host board that +supports the Arduino connector. The connections are: + ++-----------+--------------+ +| PMIC Pin | Arduino Pin | ++===========+==============+ +| ISET | D2 | +| MODE | D3 | ++-----------+--------------+ + +Usage +***** + +The shield can be used in any application by setting ``SHIELD`` to +``npm1100_ek``. + +References +********** + +- `nPM1100 EK Manual `_ diff --git a/boards/shields/npm1100_ek/doc/npm1100_ek.jpg b/boards/shields/npm1100_ek/doc/npm1100_ek.jpg new file mode 100644 index 00000000000..2c286a08631 Binary files /dev/null and b/boards/shields/npm1100_ek/doc/npm1100_ek.jpg differ diff --git a/boards/shields/npm1100_ek/npm1100_ek.overlay b/boards/shields/npm1100_ek/npm1100_ek.overlay new file mode 100644 index 00000000000..dbdbcef703a --- /dev/null +++ b/boards/shields/npm1100_ek/npm1100_ek.overlay @@ -0,0 +1,16 @@ +/* + * Copyright (C) 2023 Nordic Semiconductor ASA + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + npm1100_ek_pmic: pmic { + compatible = "nordic,npm1100"; + + nordic,iset-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>; /* D2 */ + + npm1100_ek_buck: BUCK { + nordic,mode-gpios = <&arduino_header 9 GPIO_ACTIVE_HIGH>; /* D3 */ + }; + }; +};