]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: exynos: Mark LDO10 as always-on on Peach Pit/Pi Chromebooks
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 30 Aug 2019 12:52:42 +0000 (14:52 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Mon, 2 Sep 2019 15:12:18 +0000 (17:12 +0200)
Commit aff138bf8e37 ("ARM: dts: exynos: Add TMU nodes regulator supply
for Peach boards") assigned LDO10 to Exynos Thermal Measurement Unit,
but it turned out that it supplies also some other critical parts and
board freezes/crashes when it is turned off.

The mentioned commit made Exynos TMU a consumer of that regulator and in
typical case Exynos TMU driver keeps it enabled from early boot. However
there are such configurations (example is multi_v7_defconfig), in which
some of the regulators are compiled as modules and are not available
from early boot. In such case it may happen that LDO10 is turned off by
regulator core, because it has no consumers yet (in this case consumer
drivers cannot get it, because the supply regulators for it are not yet
available). This in turn causes the board to crash. This patch restores
'always-on' property for the LDO10 regulator.

Fixes: aff138bf8e37 ("ARM: dts: exynos: Add TMU nodes regulator supply for Peach boards")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/boot/dts/exynos5420-peach-pit.dts
arch/arm/boot/dts/exynos5800-peach-pi.dts

index f78db6809cca4b3659e1eb8fe490b581afabf4c5..9eb48cabcca450878f829e15562effaa476bf777 100644 (file)
@@ -440,6 +440,7 @@ ldo10_reg: LDO10 {
                                regulator-name = "vdd_ldo10";
                                regulator-min-microvolt = <1800000>;
                                regulator-max-microvolt = <1800000>;
+                               regulator-always-on;
                                regulator-state-mem {
                                        regulator-off-in-suspend;
                                };
index e0f470fe54c81da83728a1e9b7611dd2d0d3ad28..4398f2d1fe88171a989f2b928b78570f7169de12 100644 (file)
@@ -440,6 +440,7 @@ ldo10_reg: LDO10 {
                                regulator-name = "vdd_ldo10";
                                regulator-min-microvolt = <1800000>;
                                regulator-max-microvolt = <1800000>;
+                               regulator-always-on;
                                regulator-state-mem {
                                        regulator-off-in-suspend;
                                };