Skip to content

Commit d1e201c

Browse files
aasinclaircarlescufi
authored andcommitted
drivers: regulator: npm1300: Initial driver for nPM1300 PMIC
Initial regulator driver for Nordic NPM1300 PMIC. Signed-off-by: Andy Sinclair <andy.sinclair@nordicsemi.no>
1 parent 81872eb commit d1e201c

File tree

7 files changed

+755
-0
lines changed

7 files changed

+755
-0
lines changed

drivers/regulator/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ zephyr_library_sources(regulator_common.c)
77
zephyr_library_sources_ifdef(CONFIG_REGULATOR_FAKE regulator_fake.c)
88
zephyr_library_sources_ifdef(CONFIG_REGULATOR_FIXED regulator_fixed.c)
99
zephyr_library_sources_ifdef(CONFIG_REGULATOR_NPM1100 regulator_npm1100.c)
10+
zephyr_library_sources_ifdef(CONFIG_REGULATOR_NPM1300 regulator_npm1300.c)
1011
zephyr_library_sources_ifdef(CONFIG_REGULATOR_NPM6001 regulator_npm6001.c)
1112
zephyr_library_sources_ifdef(CONFIG_REGULATOR_PCA9420 regulator_pca9420.c)
1213
zephyr_library_sources_ifdef(CONFIG_REGULATOR_SHELL regulator_shell.c)

drivers/regulator/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ source "subsys/logging/Kconfig.template.log_config"
2323
source "drivers/regulator/Kconfig.fake"
2424
source "drivers/regulator/Kconfig.fixed"
2525
source "drivers/regulator/Kconfig.npm1100"
26+
source "drivers/regulator/Kconfig.npm1300"
2627
source "drivers/regulator/Kconfig.npm6001"
2728
source "drivers/regulator/Kconfig.pca9420"
2829
source "drivers/regulator/Kconfig.rpi_pico"

drivers/regulator/Kconfig.npm1300

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright (c) 2023 Nordic Semiconductor ASA
2+
# SPDX -License-Identifier: Apache-2.0
3+
4+
config REGULATOR_NPM1300
5+
bool "nPM1300 PMIC regulator driver"
6+
default y
7+
depends on DT_HAS_NORDIC_NPM1300_REGULATOR_ENABLED
8+
select I2C
9+
help
10+
Enable the Nordic nPM1300 PMIC regulator driver
11+
12+
if REGULATOR_NPM1300
13+
14+
config REGULATOR_NPM1300_COMMON_INIT_PRIORITY
15+
int "nPM1300 regulator driver init priority (common part)"
16+
default 75
17+
help
18+
Init priority for the Nordic nPM1300 regulator driver (common part).
19+
It must be greater than I2C init priority.
20+
21+
config REGULATOR_NPM1300_INIT_PRIORITY
22+
int "nPM1300 regulator driver init priority"
23+
default 76
24+
help
25+
Init priority for the Nordic nPM1300 regulator driver. It must be
26+
greater than REGULATOR_NPM1300_COMMON_INIT_PRIORITY.
27+
28+
endif

0 commit comments

Comments
 (0)