-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: regulator: add support for AXP2101 power management IC
add initial support for the AXP2101 power management IC from X-powers Co-authored-by: TOKITA Hiroshi <[email protected]> Signed-off-by: Lothar Felten <[email protected]>
- Loading branch information
Showing
13 changed files
with
582 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Copyright (c) 2023 Martin Kiepfer <[email protected]> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config MFD_AXP192 | ||
bool "AXP192 PMIC multi-function device driver" | ||
config MFD_AXP192_AXP2101 | ||
bool "AXP192/AXP2101 PMIC multi-function device driver" | ||
default y | ||
depends on DT_HAS_X_POWERS_AXP192_ENABLED | ||
depends on DT_HAS_X_POWERS_AXP192_ENABLED || DT_HAS_X_POWERS_AXP2101_ENABLED | ||
select I2C | ||
help | ||
Enable the X-Powers AXP192 PMIC multi-function device driver | ||
Enable the X-Powers AXP192/AXP2101 PMIC multi-function device driver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
# Copyright (c) 2023 Martin Kiepfer | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config REGULATOR_AXP192 | ||
bool "X-Power AXP192 PMIC regulator driver" | ||
config REGULATOR_AXP192_AXP2101 | ||
bool "X-Powers AXP192/AXP2101 PMIC regulator driver" | ||
default y | ||
depends on DT_HAS_X_POWERS_AXP192_REGULATOR_ENABLED | ||
depends on DT_HAS_X_POWERS_AXP192_ENABLED | ||
depends on DT_HAS_X_POWERS_AXP192_REGULATOR_ENABLED || DT_HAS_X_POWERS_AXP2101_REGULATOR_ENABLED | ||
depends on DT_HAS_X_POWERS_AXP192_ENABLED || DT_HAS_X_POWERS_AXP2101_ENABLED | ||
select I2C | ||
select MFD | ||
help | ||
Enable the AXP PMIC regulator driver | ||
|
||
if REGULATOR_AXP192 | ||
if REGULATOR_AXP192_AXP2101 | ||
|
||
config REGULATOR_AXP192_INIT_PRIORITY | ||
int "AXP192 regulator driver init priority" | ||
config REGULATOR_AXP192_AXP2101_INIT_PRIORITY | ||
int "AXP192/AXP2101 regulator driver init priority" | ||
default 86 | ||
help | ||
Init priority for the axp192 regulator driver. It must be | ||
Init priority for the axp192/axp2101 regulator driver. It must be | ||
greater than MFD_INIT_PRIORITY. | ||
|
||
endif |
Oops, something went wrong.