* [PATCH 0/4] regulator: da9211: support changing modes
@ 2020-07-02 3:15 Anand K Mistry
2020-07-02 3:15 ` [PATCH 4/4] arm64: dts: mediatek: Update allowed regulator modes for elm boards Anand K Mistry
2020-07-02 15:47 ` [PATCH 0/4] regulator: da9211: support changing modes Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Anand K Mistry @ 2020-07-02 3:15 UTC (permalink / raw)
To: linux-mediatek
Cc: devicetree, drinkcat, Anand K Mistry, Liam Girdwood, Rob Herring,
linux-kernel, Mark Brown, hsinyi, Matthias Brugger,
linux-arm-kernel, Support Opensource
This patchset adds support for being able to change regulator modes for
the da9211 regulator. This is needed to allow the voltage scaling
support in the MT8173 SoC to be used in the elm (Acer Chromebook R13)
and hana (several Lenovo Chromebooks) devices.
Anand K Mistry (4):
regulator: da9211: Move buck modes into header file
dt-bindings: regulator: da9211: Document allowed modes
regulator: da9211: Implement of_map_mode
arm64: dts: mediatek: Update allowed regulator modes for elm boards
.../devicetree/bindings/regulator/da9211.txt | 4 +++
arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 4 ++-
drivers/regulator/da9211-regulator.c | 30 +++++++++++++++----
.../regulator/dlg,da9211-regulator.h | 16 ++++++++++
4 files changed, 47 insertions(+), 7 deletions(-)
create mode 100644 include/dt-bindings/regulator/dlg,da9211-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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 4/4] arm64: dts: mediatek: Update allowed regulator modes for elm boards
2020-07-02 3:15 [PATCH 0/4] regulator: da9211: support changing modes Anand K Mistry
@ 2020-07-02 3:15 ` Anand K Mistry
2020-07-02 15:47 ` [PATCH 0/4] regulator: da9211: support changing modes Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Anand K Mistry @ 2020-07-02 3:15 UTC (permalink / raw)
To: linux-mediatek
Cc: devicetree, drinkcat, Anand K Mistry, linux-kernel, Rob Herring,
hsinyi, Matthias Brugger, linux-arm-kernel
This sets the allowed regulator modes for elm (and derivative) boards.
According to the datasheet, the da9211 does not support SLEEP mode.
Signed-off-by: Anand K Mistry <amistry@google.com>
---
arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi
index a5a12b2599a4..d4c84a856e7b 100644
--- a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi
@@ -6,6 +6,7 @@
#include <dt-bindings/input/input.h>
#include <dt-bindings/input/linux-event-codes.h>
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/regulator/dlg,da9211-regulator.h>
#include "mt8173.dtsi"
/ {
@@ -294,7 +295,8 @@ da9211_vcpu_reg: BUCKA {
regulator-max-microamp = <4400000>;
regulator-ramp-delay = <10000>;
regulator-always-on;
- regulator-allowed-modes = <0 1>;
+ regulator-allowed-modes = <DA9211_BUCK_MODE_SYNC
+ DA9211_BUCK_MODE_AUTO>;
};
da9211_vgpu_reg: BUCKB {
--
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 0/4] regulator: da9211: support changing modes
2020-07-02 3:15 [PATCH 0/4] regulator: da9211: support changing modes Anand K Mistry
2020-07-02 3:15 ` [PATCH 4/4] arm64: dts: mediatek: Update allowed regulator modes for elm boards Anand K Mistry
@ 2020-07-02 15:47 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2020-07-02 15:47 UTC (permalink / raw)
To: linux-mediatek, Anand K Mistry
Cc: devicetree, drinkcat, Support Opensource, linux-kernel,
Liam Girdwood, Rob Herring, hsinyi, Matthias Brugger,
linux-arm-kernel
On Thu, 2 Jul 2020 13:15:21 +1000, Anand K Mistry wrote:
> This patchset adds support for being able to change regulator modes for
> the da9211 regulator. This is needed to allow the voltage scaling
> support in the MT8173 SoC to be used in the elm (Acer Chromebook R13)
> and hana (several Lenovo Chromebooks) devices.
>
>
> Anand K Mistry (4):
> regulator: da9211: Move buck modes into header file
> dt-bindings: regulator: da9211: Document allowed modes
> regulator: da9211: Implement of_map_mode
> arm64: dts: mediatek: Update allowed regulator modes for elm boards
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
Thanks!
[1/3] regulator: da9211: Move buck modes into header file
commit: 6c8b65950b1c75b9e41b5bf314f5d7b81df91272
[2/3] regulator: da9211: Document allowed modes
commit: 650e5adae0197bb9ecaa48b98b8ada1cc6772fb0
[3/3] regulator: da9211: Implement of_map_mode
commit: 6f1f1a8039e5f7a61e932d6a9a50708c56e21033
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-07-02 15:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-02 3:15 [PATCH 0/4] regulator: da9211: support changing modes Anand K Mistry
2020-07-02 3:15 ` [PATCH 4/4] arm64: dts: mediatek: Update allowed regulator modes for elm boards Anand K Mistry
2020-07-02 15:47 ` [PATCH 0/4] regulator: da9211: support changing modes 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).