Skip to content

Commit

Permalink
driver: regulator: Add support for AXP2101 PMIC
Browse files Browse the repository at this point in the history
Add initial driver for the AXP2101 PMIC
Support:
  - DCDC1-5
  - LDOA1-A4, LDOB1-B2, LDOC1, LDOD1-D2

Change-Id: I3f93900423ec592a44d7e80a4353672c63cfa3a4
Signed-off-by: Deng Baoan <[email protected]>
  • Loading branch information
dengbaoan authored and Deng Baoan committed Aug 30, 2024
1 parent 494f880 commit 91cbf52
Show file tree
Hide file tree
Showing 6 changed files with 762 additions and 1 deletion.
1 change: 1 addition & 0 deletions drivers/regulator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ zephyr_library_sources_ifdef(CONFIG_REGULATOR_PCA9420 regulator_pca9420.c)
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_AXP2101 regulator_axp2101.c)
2 changes: 1 addition & 1 deletion drivers/regulator/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ source "drivers/regulator/Kconfig.npm6001"
source "drivers/regulator/Kconfig.pca9420"
source "drivers/regulator/Kconfig.rpi_pico"
source "drivers/regulator/Kconfig.nxp_vref"

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

config REGULATOR_AXP2101
bool "AXP2101 PMIC regulator driver"

Check warning on line 5 in drivers/regulator/Kconfig.axp2101

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

drivers/regulator/Kconfig.axp2101:5 please, no spaces at the start of a line
default y

Check warning on line 6 in drivers/regulator/Kconfig.axp2101

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

drivers/regulator/Kconfig.axp2101:6 please, no spaces at the start of a line
select I2C

Check warning on line 7 in drivers/regulator/Kconfig.axp2101

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

drivers/regulator/Kconfig.axp2101:7 please, no spaces at the start of a line
help

Check warning on line 8 in drivers/regulator/Kconfig.axp2101

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

drivers/regulator/Kconfig.axp2101:8 please, no spaces at the start of a line
Enable the AXP2101 PMIC regulator driver

Check warning on line 9 in drivers/regulator/Kconfig.axp2101

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

drivers/regulator/Kconfig.axp2101:9 please, no spaces at the start of a line

if REGULATOR_AXP2101

config REGULATOR_AXP2101_INIT_PRIORITY
int "AXP2101 regulator init priority"

Check warning on line 14 in drivers/regulator/Kconfig.axp2101

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

drivers/regulator/Kconfig.axp2101:14 please, no spaces at the start of a line
default 75

Check warning on line 15 in drivers/regulator/Kconfig.axp2101

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

drivers/regulator/Kconfig.axp2101:15 please, no spaces at the start of a line
help

Check warning on line 16 in drivers/regulator/Kconfig.axp2101

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

drivers/regulator/Kconfig.axp2101:16 please, no spaces at the start of a line
AXP2101 regulator initialization priority.

Check warning on line 17 in drivers/regulator/Kconfig.axp2101

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

drivers/regulator/Kconfig.axp2101:17 please, no spaces at the start of a line

endif # REGULATOR_AXP2101
Loading

0 comments on commit 91cbf52

Please sign in to comment.