OrangePi_CM5/include/linux/mfd
Axel Lin cfb8173a23 regulator: rt5033: Fix n_voltages settings for BUCK and LDO
[ Upstream commit 6549c46af8551b346bcc0b9043f93848319acd5c ]

For linear regulators, the n_voltages should be (max - min) / step + 1.

Buck voltage from 1v to 3V, per step 100mV, and vout mask is 0x1f.
If value is from 20 to 31, the voltage will all be fixed to 3V.
And LDO also, just vout range is different from 1.2v to 3v, step is the
same. If value is from 18 to 31, the voltage will also be fixed to 3v.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: ChiYuan Huang <cy_huang@richtek.com>
Link: https://lore.kernel.org/r/20210627080418.1718127-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-08-08 09:05:22 +02:00
..
abx500 power: supply: ab8500: Fix an old bug 2021-07-19 09:45:00 +02:00
arizona
…
da9052
…
da9055 mfd: da9055: pdata.h: Drop a duplicated word 2020-08-13 07:49:59 +01:00
da9062
…
da9063 mfd: da9063: Support SMBus and I2C mode 2021-05-11 14:47:31 +02:00
da9150
…
madera mfd: madera: Remove unused forward declaration of madera_codec_pdata 2020-06-18 11:23:15 +01:00
mt6323
…
mt6358 mfd: Add support for the MediaTek MT6358 PMIC 2020-05-21 08:55:29 +01:00
mt6397 rtc: mt6397: Remove unused member dev 2020-10-15 12:01:29 +02:00
pcf50633
…
samsung
…
syscon
…
wcd934x
…
wm831x watchdog: wm831x_wdt: Remove GPIO handling 2020-03-18 11:15:24 +01:00
wm8350
…
wm8994 mfd: wm8994: Fix comment spelling 2020-03-17 20:48:41 +01:00
88pm80x.h
…
88pm860x.h
…
aat2870.h
…
ab3100.h
…
abx500.h
…
ac100.h
…
adp5520.h
…
altera-a10sr.h
…
altera-sysmgr.h
…
as3711.h
…
as3722.h
…
asic3.h
…
atmel-hlcdc.h
…
axp20x.h
…
bcm590xx.h
…
bcm2835-pm.h
…
bd9571mwv.h
…
core.h mfd: mfd-core: Add mechanism for removal of a subset of children 2020-08-13 07:50:50 +01:00
da8xx-cfgchip.h
…
da903x.h
…
davinci_voicecodec.h
…
db8500-prcmu.h
…
dbx500-prcmu.h
…
dln2.h
…
dm355evm_msp.h
…
ds1wm.h
…
ezx-pcap.h
…
gsc.h mfd: Add Gateworks System Controller core driver 2020-05-20 10:28:57 +01:00
hi655x-pmic.h
…
hi6421-pmic.h mfd: Replace HTTP links with HTTPS ones 2020-08-13 07:50:59 +01:00
hi6421-spmi-pmic.h staging: mfd: hi6421-spmi-pmic: get rid of interrupt properties 2020-08-18 17:05:14 +02:00
htc-pasic3.h
…
imx25-tsadc.h
…
ingenic-tcu.h
…
intel-m10-bmc.h mfd: intel-m10-bmc: Fix the register access range 2021-05-11 14:47:31 +02:00
intel_msic.h
…
intel_pmc_bxt.h platform/x86: intel_pmc_ipc: Convert to MFD 2020-04-24 11:18:44 +01:00
intel_soc_pmic.h mfd: intel_soc_pmic: Add SCU IPC member to struct intel_soc_pmic 2020-04-24 11:17:52 +01:00
intel_soc_pmic_bxtwc.h
…
intel_soc_pmic_mrfld.h
…
ipaq-micro.h
…
iqs62x.h mfd: Add support for Azoteq IQS620A/621/622/624/625 2020-03-27 08:25:37 +00:00
janz.h
…
kempld.h
…
khadas-mcu.h mfd: Add support for the Khadas System control Microcontroller 2020-06-18 11:23:16 +01:00
lm3533.h
…
lochnagar.h
…
lochnagar1_regs.h
…
lochnagar2_regs.h
…
lp873x.h mfd: Replace HTTP links with HTTPS ones 2020-08-13 07:50:59 +01:00
lp3943.h
…
lp8788-isink.h
…
lp8788.h
…
lp87565.h mfd: lp87565: Add LP87524-Q1 variant 2020-09-30 16:25:29 +01:00
lpc_ich.h
…
max8907.h
…
max8925.h
…
max8997-private.h
…
max8997.h
…
max8998-private.h
…
max8998.h regulator: max8998: Add charger regulator 2020-05-22 13:11:05 +01:00
max14577-private.h
…
max14577.h
…
max77620.h
…
max77650.h
…
max77686-private.h
…
max77686.h
…
max77693-common.h
…
max77693-private.h mfd: max77693-private: Drop a duplicated word 2020-08-13 07:50:01 +01:00
max77693.h
…
max77843-private.h
…
mc13xxx.h
…
mc13783.h
…
mc13892.h
…
mcp.h
…
menelaus.h
…
motorola-cpcap.h
…
mp2629.h iio: adc: mp2629: Add support for mp2629 ADC driver 2020-05-26 10:41:47 +01:00
mt6360.h mfd: Add support for PMIC MT6360 2020-05-27 07:46:18 +01:00
mxs-lradc.h
…
palmas.h
…
qcom_rpm.h
…
rave-sp.h
…
rc5t583.h
…
rdc321x.h
…
retu.h
…
rk808.h mfd: rk808: Convert RK805 to shutdown/suspend hooks 2020-03-30 07:35:28 +01:00
rn5t618.h mfd: rn5t618: Add RTC related registers 2020-03-27 09:42:18 +00:00
rohm-bd718x7.h
…
rohm-bd70528.h regulator: bd70528: Fix off-by-one for buck123 .n_voltages setting 2021-06-23 14:42:47 +02:00
rohm-bd71828.h regulator: bd71828: Fix .n_voltages settings 2021-06-16 12:01:43 +02:00
rohm-generic.h regulator: bd718x7, bd71828, Fix dvs voltage levels 2021-03-04 11:38:07 +01:00
rohm-shared.h
…
rt5033-private.h regulator: rt5033: Fix n_voltages settings for BUCK and LDO 2021-08-08 09:05:22 +02:00
rt5033.h
…
sc27xx-pmic.h mfd: sc27xx: Add USB charger type detection support 2020-03-30 07:35:28 +01:00
si476x-core.h
…
si476x-platform.h
…
si476x-reports.h
…
sky81452.h backlight: sky81452: Privatize platform data 2020-07-01 10:40:11 +01:00
sta2x11-mfd.h
…
stm32-lptimer.h mfd: stm32: Add defines to be used for clkevent purpose 2020-06-18 11:19:42 +01:00
stm32-timers.h
…
stmfx.h mfd: stmfx: Disable IRQ in suspend to avoid spurious interrupt 2020-05-26 10:51:21 +01:00
stmpe.h
…
stpmic1.h
…
stw481x.h
…
sun4i-gpadc.h
…
syscon.h
…
t7l66xb.h
…
tc3589x.h gpio: tc35894: Disable Direct KBD interrupts to enable gpio irq 2020-09-09 11:33:07 +02:00
tc6387xb.h
…
tc6393xb.h
…
ti-lmu-register.h
…
ti-lmu.h
…
ti_am335x_tscadc.h mfd: Replace HTTP links with HTTPS ones 2020-08-13 07:50:59 +01:00
tmio.h
…
tps6105x.h
…
tps6507x.h
…
tps6586x.h
…
tps65010.h
…
tps65086.h mfd: Replace HTTP links with HTTPS ones 2020-08-13 07:50:59 +01:00
tps65090.h
…
tps65217.h mfd: Replace HTTP links with HTTPS ones 2020-08-13 07:50:59 +01:00
tps65218.h mfd: Replace HTTP links with HTTPS ones 2020-08-13 07:50:59 +01:00
tps65910.h
…
tps65912.h mfd: Replace HTTP links with HTTPS ones 2020-08-13 07:50:59 +01:00
tps68470.h
…
tps80031.h
…
twl.h
…
twl4030-audio.h
…
twl6040.h
…
ucb1x00.h
…
viperboard.h
…
wl1273-core.h
…
wm97xx.h
…
wm8400-audio.h
…
wm8400-private.h
…
wm8400.h
…