linux_dsm_epyc7002/drivers/regulator
Mark Brown 8cc31dc941
Merge series "regulator: mt6397: Implement of_map_mode regulator_desc function" from Anand K Mistry <amistry@google.com>:
This patchset adds support for being able to change regulator modes for
the mt6397 regulator. This is needed to allow the voltage scaling
support in the MT8173 SoC to be used on the elm (Acer Chromebook R13)
and hana (several Lenovo Chromebooks) devices.

Without a of_map_mode implementation, the regulator-allowed-modes
devicetree field is skipped, and attempting to change the regulator mode
results in an error:
[    1.439165] vpca15: mode operation not allowed

Changes in v2:
- Introduce constants in dt-bindings
- Improve conditional readability

Anand K Mistry (4):
  regulator: mt6397: Move buck modes into header file
  dt-bindings: regulator: mt6397: Document valid modes
  regulator: mt6397: Implement of_map_mode
  arm64: dts: mediatek: Update allowed mt6397 regulator modes for elm
    boards

 .../bindings/regulator/mt6397-regulator.txt     |  3 +++
 arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi    |  4 +++-
 drivers/regulator/mt6397-regulator.c            | 17 ++++++++++++++---
 .../regulator/mediatek,mt6397-regulator.h       | 15 +++++++++++++++
 4 files changed, 35 insertions(+), 4 deletions(-)
 create mode 100644 include/dt-bindings/regulator/mediatek,mt6397-regulator.h

--
2.27.0.212.ge8ba1cc988-goog

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
2020-07-02 16:45:49 +01:00
..
88pg86x.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
88pm800-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
88pm8607.c
aat2870-regulator.c
ab3100.c
ab8500-ext.c
ab8500.c regulator: ab8500: Remove unused embedded struct expand_register 2020-06-25 20:11:13 +01:00
act8865-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
act8945a-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
ad5398.c
anatop-regulator.c regulator: anatop: Constify anatop_core_rops 2020-06-18 13:47:31 +01:00
arizona-ldo1.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
arizona-micsupp.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
as3711-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
as3722-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
axp20x-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
bcm590xx-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
bd718x7-regulator.c regulator: bd718x7: remove voltage change restriction from BD71847 LDOs 2020-05-14 18:26:11 +01:00
bd9571mwv-regulator.c
bd70528-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
bd71828-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
core.c regulator: core: Add regulator bypass trace points 2020-05-29 17:17:02 +01:00
cpcap-regulator.c regulator: cpcap-regulator: Demote kerneldoc header to standard comment 2020-06-25 20:11:16 +01:00
cros-ec-regulator.c regulator: Add driver for cros-ec-regulator 2020-06-15 22:40:14 +01:00
da903x.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
da9052-regulator.c
da9055-regulator.c
da9062-regulator.c regulator: da9062: Replace zero-length array with flexible-array member 2020-02-12 23:54:54 +00:00
da9063-regulator.c regulator: da9063: fix LDO9 suspend and warning. 2020-06-12 14:57:17 +01:00
da9210-regulator.c
da9210-regulator.h
da9211-regulator.c regulator: da9211: Implement of_map_mode 2020-07-02 16:20:58 +01:00
da9211-regulator.h
db8500-prcmu.c regulator: db8500-prcmu: Use true,false for bool variable 2020-05-06 15:16:59 +01:00
dbx500-prcmu.c regulator: dbx500-prcmu: Remove unused function dbx500_regulator_testcase() 2020-06-25 20:11:12 +01:00
dbx500-prcmu.h
devres.c
dummy.c
dummy.h
fan53555.c
fixed-helper.c
fixed.c regulator: Fix trivial spelling 2020-06-15 23:06:30 +01:00
gpio-regulator.c regulator: gpio: Fix trivial spelling 2020-06-15 23:06:29 +01:00
helpers.c regulator: Fix pickable ranges mapping 2020-06-12 14:57:17 +01:00
hi655x-regulator.c
hi6421-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
hi6421v530-regulator.c
internal.h
isl6271a-regulator.c
isl9305.c
Kconfig regulator: add support for SY8827N regulator 2020-07-02 15:52:00 +01:00
lm363x-regulator.c
lochnagar-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
lp872x.c
lp873x-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
lp3971.c
lp3972.c
lp8755.c
lp8788-buck.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
lp8788-ldo.c
lp87565-regulator.c regulator: lp87565: enable voltage regardless of ENx pin 2020-07-01 21:53:02 +01:00
ltc3589.c
ltc3676.c regulator: ltc3676: Constify ltc3676_regulators 2020-06-18 13:47:33 +01:00
Makefile regulator: add support for SY8827N regulator 2020-07-02 15:52:00 +01:00
max1586.c
max8649.c
max8660.c
max8907-regulator.c regulator: max8907: Constify static structs 2020-06-18 13:47:34 +01:00
max8925-regulator.c
max8952.c
max8973-regulator.c
max8997-regulator.c regulator: max8997: Constify struct regulator_ops 2020-06-18 13:47:35 +01:00
max8998.c regulator: max8998: Staticify internal function max8998_get_current_limit() 2020-06-26 15:34:18 +01:00
max14577-regulator.c regulator: max14577-regulator: Demote kerneldoc header to standard comment 2020-06-25 20:11:17 +01:00
max77620-regulator.c
max77650-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
max77686-regulator.c
max77693-regulator.c
max77802-regulator.c
max77826-regulator.c regulator: max77826: Add max77826 regulator driver 2020-04-14 19:01:19 +01:00
mc13xxx-regulator-core.c
mc13xxx.h
mc13783-regulator.c
mc13892-regulator.c
mcp16502.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
mp886x.c regulator: mp886x: use .probe_new 2020-07-02 16:45:46 +01:00
mp5416.c regulator: mp5416: Fix output discharge enable bit for LDOs 2020-02-17 19:13:26 +00:00
mp8859.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
mpq7920.c
mpq7920.h
mt6311-regulator.c
mt6311-regulator.h
mt6323-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
mt6358-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
mt6380-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
mt6397-regulator.c regulator: mt6397: Implement of_map_mode 2020-07-02 15:25:45 +01:00
of_regulator.c
palmas-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
pbias-regulator.c
pcap-regulator.c
pcf50633-regulator.c
pfuze100-regulator.c regulator: pfuze100: add condition check for 'ramp_delay = 0' 2020-06-23 13:15:13 +01:00
pv88060-regulator.c
pv88060-regulator.h
pv88080-regulator.c
pv88080-regulator.h
pv88090-regulator.c
pv88090-regulator.h
pwm-regulator.c regulator: pwm-regulator: Demote kerneldoc header to standard comment 2020-06-26 15:34:19 +01:00
qcom_rpm-regulator.c regulator: qcom_rpm: Constify struct regulator_ops 2020-07-01 18:33:14 +01:00
qcom_smd-regulator.c regulator: qcom_smd: Add MP5496 regulators 2020-07-01 21:35:54 +01:00
qcom_spmi-regulator.c regulator: qcom_spmi: Constify struct regulator_ops 2020-07-01 18:33:15 +01:00
qcom_usb_vbus-regulator.c regulator: fix null pointer check on regmap 2020-07-02 16:45:45 +01:00
qcom-rpmh-regulator.c regulator: qcom-rpmh-regulator: Repair dodgy kerneldoc header formatting 2020-06-26 15:34:18 +01:00
rc5t583-regulator.c
rk808-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
rn5t618-regulator.c
rohm-regulator.c
rt5033-regulator.c
s2mpa01.c
s2mps11.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
s5m8767.c
sc2731-regulator.c
sky81452-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
slg51000-regulator.c
slg51000-regulator.h
stm32-booster.c
stm32-pwr.c
stm32-vrefbuf.c regulator: stm32-vrefbuf: fix a possible overshoot when re-enabling 2020-03-04 13:57:28 +00:00
stpmic1_regulator.c regulator: stpmic1_regulator: Properly document 'struct stpmic1_regulator_cfg' 2020-06-26 15:34:20 +01:00
stw481x-vmmc.c
sy8106a-regulator.c
sy8824x.c
sy8827n.c regulator: add support for SY8827N regulator 2020-07-02 15:52:00 +01:00
ti-abb-regulator.c
tps6105x-regulator.c
tps6507x-regulator.c
tps6524x-regulator.c
tps6586x-regulator.c
tps51632-regulator.c
tps62360-regulator.c
tps65023-regulator.c
tps65086-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
tps65090-regulator.c
tps65132-regulator.c
tps65217-regulator.c regulator: tps65217-regulator: Use the returned value of tps65217_reg_read() 2020-06-26 15:34:22 +01:00
tps65218-regulator.c regulator: tps65218-regulator: Remove pointless 'is unsigned int <0' check 2020-06-26 15:34:23 +01:00
tps65910-regulator.c
tps65912-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
tps80031-regulator.c regulator: tps80031: remove redundant assignment to variables ret and val 2020-04-14 16:57:44 +01:00
twl6030-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
twl-regulator.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
uniphier-regulator.c
userspace-consumer.c
vctrl-regulator.c
vexpress-regulator.c
virtual.c
vqmmc-ipq4019-regulator.c
wm831x-dcdc.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
wm831x-isink.c
wm831x-ldo.c regulator: use linear_ranges helper 2020-05-08 18:18:13 +01:00
wm8350-regulator.c regulator: wm8350-regulator: Repair odd formatting in documentation 2020-06-25 20:11:14 +01:00
wm8400-regulator.c regulator: wm8400-regulator: Repair dodgy kerneldoc header formatting 2020-06-26 15:34:24 +01:00
wm8994-regulator.c