Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1332493
| From | Chen-Yu Tsai <wens@csie.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v8 08/10] regulator: axp20x: Support new AXP223 PMIC |
| Date | 2016-02-12 03:10 +0100 |
| Message-ID | <r1bli-wq-25@gated-at.bofh.it> (permalink) |
| References | <r1blh-wq-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
The AXP223 is a new PMIC commonly paired with Allwinner A23/A33 SoCs. It is functionally identical to AXP221; only the regulator default voltage/status and the external host interface are different. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Reviewed-by: Mark Brown <broonie@kernel.org> --- drivers/regulator/axp20x-regulator.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c index f2e1a39ce0f3..e86d1fc2d80b 100644 --- a/drivers/regulator/axp20x-regulator.c +++ b/drivers/regulator/axp20x-regulator.c @@ -244,6 +244,7 @@ static int axp20x_set_dcdc_freq(struct platform_device *pdev, u32 dcdcfreq) step = 75; break; case AXP221_ID: + case AXP223_ID: min = 1800; max = 4050; def = 3000; @@ -322,6 +323,7 @@ static int axp20x_set_dcdc_workmode(struct regulator_dev *rdev, int id, u32 work break; case AXP221_ID: + case AXP223_ID: if (id < AXP22X_DCDC1 || id > AXP22X_DCDC5) return -EINVAL; @@ -360,6 +362,7 @@ static int axp20x_regulator_probe(struct platform_device *pdev) nregulators = AXP20X_REG_ID_MAX; break; case AXP221_ID: + case AXP223_ID: regulators = axp22x_regulators; nregulators = AXP22X_REG_ID_MAX; break; -- 2.7.0
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v8 00/10] mfd: axp20x: Add support for RSB based AXP223 Chen-Yu Tsai <wens@csie.org> - 2016-02-12 03:10 +0100 [PATCH v8 04/10] mfd: axp20x: Add missing copyright notice Chen-Yu Tsai <wens@csie.org> - 2016-02-12 03:10 +0100 [PATCH v8 01/10] mfd: axp20x: Add AXP223 to list of supported PMICs in DT bindings Chen-Yu Tsai <wens@csie.org> - 2016-02-12 03:10 +0100 [PATCH v8 06/10] mfd: axp20x: Whitespace, open parenthesis alignment code style fixes Chen-Yu Tsai <wens@csie.org> - 2016-02-12 03:10 +0100 [PATCH v8 05/10] mfd: axp20x: Split the driver into core and i2c bits Chen-Yu Tsai <wens@csie.org> - 2016-02-12 03:10 +0100 [PATCH v8 02/10] mfd: axp20x: Remove second struct device * parameter for axp20x_match_device() Chen-Yu Tsai <wens@csie.org> - 2016-02-12 03:10 +0100 [PATCH v8 08/10] regulator: axp20x: Support new AXP223 PMIC Chen-Yu Tsai <wens@csie.org> - 2016-02-12 03:10 +0100 [PATCH v8 09/10] ARM: dts: sun8i: sinlinx-sina33: Add AXP223 PMIC device and regulator nodes Chen-Yu Tsai <wens@csie.org> - 2016-02-12 03:10 +0100 [PATCH v8 07/10] mfd: axp20x: Add support for RSB based AXP223 PMIC Chen-Yu Tsai <wens@csie.org> - 2016-02-12 03:10 +0100 [PATCH v8 03/10] mfd: axp20x: use dev->driver->of_match_table in axp20x_match_device() Chen-Yu Tsai <wens@csie.org> - 2016-02-12 03:10 +0100 [GIT PULL] Immutable branch between MFD and Regulator Lee Jones <lee.jones@linaro.org> - 2016-02-12 10:10 +0100 Re: [PATCH v8 00/10] mfd: axp20x: Add support for RSB based AXP223 Lee Jones <lee.jones@linaro.org> - 2016-02-12 10:10 +0100 Re: [PATCH v8 00/10] mfd: axp20x: Add support for RSB based AXP223 Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-02-16 09:10 +0100
csiph-web