linux-stable/include/dt-bindings/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
..
active-semi,8865-regulator.h regulator: act8865 regulator modes and suspend states 2019-08-15 18:00:38 +01:00
active-semi,8945a-regulator.h regulator: act8945a-regulator: Implement PM functionalities 2018-12-12 16:59:04 +00:00
dlg,da9063-regulator.h regulator: da9062: refactor buck modes into header 2019-11-15 12:06:06 +00:00
dlg,da9211-regulator.h regulator: da9211: Move buck modes into header file 2020-07-02 16:20:57 +01:00
maxim,max77802.h
mediatek,mt6397-regulator.h regulator: mt6397: Move buck modes into header file 2020-07-02 15:25:45 +01:00
qcom,rpmh-regulator.h regulator: dt-bindings: add QCOM RPMh regulator bindings 2018-08-10 17:30:25 +01:00