Skip to content

regulator: mt6397: Implement of_map_mode regulator_desc function

Anand K Mistry linux-arm-kernel linux-devicetree linux-mediatek lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v14 patches 1 replySuperseded

Changes in v2 from the cover letter

- Introduce constants in dt-bindings
- Improve conditional readability

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4regulator: mt6397: Move buck modes into header filedrivers/regulator/mt6397-regulator.c include/dt-bindings/regulator/mediatek,mt6397-regulator.h+16 -30 replies
2/4dt-bindings: regulator: mt6397: Document valid modesDocumentation/devicetree/bindings/regulator/mt6397-regulator.txt+3 -00 replies
3/4regulator: mt6397: Implement of_map_modedrivers/regulator/mt6397-regulator.c+13 -00 replies
4/4arm64: dts: mediatek: Update allowed mt6397 regulator modes for elm boardsarch/arm64/boot/dts/mediatek/mt8173-elm.dtsi+3 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] regulator: mt6397: Implement of_map_mode regulator_desc function

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
Signature · 1 line
2.27.0.212.ge8ba1cc988-goog