Skip to content

Commit 7aebc00

Browse files
author
Deng Baoan
committed
driver: regulator: Add support for AXP2101 PMIC
Add initial driver for the AXP2101 PMIC Support: - DCDC1-5 - LDOA1-A4, LDOB1-B2, LDOC1, LDOD1-D2 Signed-off-by: Deng Baoan <[email protected]>
1 parent 6f937c9 commit 7aebc00

File tree

6 files changed

+747
-0
lines changed

6 files changed

+747
-0
lines changed

drivers/regulator/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ zephyr_library_sources_ifdef(CONFIG_REGULATOR_SHELL regulator_shell.c)
2020
zephyr_library_sources_ifdef(CONFIG_REGULATOR_RPI_PICO regulator_rpi_pico.c)
2121
zephyr_library_sources_ifdef(CONFIG_REGULATOR_NXP_VREF regulator_nxp_vref.c)
2222
zephyr_library_sources_ifdef(CONFIG_REGULATOR_MPM54304 regulator_mpm54304.c)
23+
zephyr_library_sources_ifdef(CONFIG_REGULATOR_AXP2101 regulator_axp2101.c)

drivers/regulator/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,6 @@ source "drivers/regulator/Kconfig.pca9420"
4141
source "drivers/regulator/Kconfig.rpi_pico"
4242
source "drivers/regulator/Kconfig.nxp_vref"
4343
source "drivers/regulator/Kconfig.mpm54304"
44+
source "drivers/regulator/Kconfig.axp2101"
4445

4546
endif # REGULATOR

drivers/regulator/Kconfig.axp2101

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright (c) 2024 Deng Baoan <[email protected]>
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config REGULATOR_AXP2101
5+
bool "AXP2101 PMIC regulator driver"
6+
default y
7+
depends on DT_HAS_X_POWERS_AXP2101_REGULATOR_ENABLED
8+
select I2C
9+
help
10+
Enable the AXP2101 PMIC regulator driver
11+
12+
if REGULATOR_AXP2101
13+
14+
config REGULATOR_AXP2101_INIT_PRIORITY
15+
int "AXP2101 regulator init priority"
16+
default 75
17+
help
18+
AXP2101 regulator initialization priority.
19+
20+
endif # REGULATOR_AXP2101

0 commit comments

Comments
 (0)