Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/regulator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ zephyr_library_sources_ifdef(CONFIG_REGULATOR_SHELL regulator_shell.c)
zephyr_library_sources_ifdef(CONFIG_REGULATOR_RPI_PICO regulator_rpi_pico.c)
zephyr_library_sources_ifdef(CONFIG_REGULATOR_NXP_VREF regulator_nxp_vref.c)
zephyr_library_sources_ifdef(CONFIG_REGULATOR_MPM54304 regulator_mpm54304.c)
zephyr_library_sources_ifdef(CONFIG_REGULATOR_AXP2101 regulator_axp2101.c)
1 change: 1 addition & 0 deletions drivers/regulator/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ source "drivers/regulator/Kconfig.pca9420"
source "drivers/regulator/Kconfig.rpi_pico"
source "drivers/regulator/Kconfig.nxp_vref"
source "drivers/regulator/Kconfig.mpm54304"
source "drivers/regulator/Kconfig.axp2101"

endif # REGULATOR
20 changes: 20 additions & 0 deletions drivers/regulator/Kconfig.axp2101
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (c) 2024 Deng Baoan <[email protected]>
# SPDX-License-Identifier: Apache-2.0

config REGULATOR_AXP2101
bool "AXP2101 PMIC regulator driver"
default y
depends on DT_HAS_X_POWERS_AXP2101_REGULATOR_ENABLED
select I2C
help
Enable the AXP2101 PMIC regulator driver

if REGULATOR_AXP2101

config REGULATOR_AXP2101_INIT_PRIORITY
int "AXP2101 regulator init priority"
default 75
help
AXP2101 regulator initialization priority.

endif # REGULATOR_AXP2101
Loading
Loading