linux-mediatek.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] regulator: mt6397: Implement of_map_mode regulator_desc function
@ 2020-07-02  6:23 Anand K Mistry
  2020-07-02  6:23 ` [PATCH v2 1/4] regulator: mt6397: Move buck modes into header file Anand K Mistry
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Anand K Mistry @ 2020-07-02  6:23 UTC (permalink / raw)
  To: linux-mediatek
  Cc: devicetree, drinkcat, Anand K Mistry, Liam Girdwood, Rob Herring,
	linux-kernel, Mark Brown, linux-arm-kernel, Matthias Brugger,
	hsin-hsiung.wang

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-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-07-02 15:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-02  6:23 [PATCH v2 0/4] regulator: mt6397: Implement of_map_mode regulator_desc function Anand K Mistry
2020-07-02  6:23 ` [PATCH v2 1/4] regulator: mt6397: Move buck modes into header file Anand K Mistry
2020-07-02  6:23 ` [PATCH v2 2/4] dt-bindings: regulator: mt6397: Document valid modes Anand K Mistry
2020-07-02  6:23 ` [PATCH v2 3/4] regulator: mt6397: Implement of_map_mode Anand K Mistry
2020-07-02  6:23 ` [PATCH v2 4/4] arm64: dts: mediatek: Update allowed mt6397 regulator modes for elm boards Anand K Mistry
2020-07-02 15:46 ` [PATCH v2 0/4] regulator: mt6397: Implement of_map_mode regulator_desc function Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).