From patchwork Fri Aug 30 12:52:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 172696 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp583864ily; Fri, 30 Aug 2019 05:53:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNerFKWED2A/6O7ioBPhXZzePwmttbGOPls709pQtn6Qg1Z0Ni6YdILLP4v6nucS+iQowG X-Received: by 2002:a17:90a:3b4f:: with SMTP id t15mr16025132pjf.45.1567169580147; Fri, 30 Aug 2019 05:53:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567169580; cv=none; d=google.com; s=arc-20160816; b=MX8s1cDReomCyAPya1g+5eBfh8uWUNkHnfiq2/srGI+RrLzS6UQAiVCuYJDiw6Crrs mj0G0tblZyIFwgfuaZEIAiSeDydmqrB0cqIt5xjEZz5BGvWYNVtExkARfxfR6/ofy+ck ereasksdZDWc0KacIwiMEh5KTXw4VohSpPQDXULi6brppN7t5gMpyOMT51aSx+0oa63f QCRsT8woji2xdAAYH9UX5qevZ9R2gtphK65DQClCOOgD/HYfAcxwxbvBa9rx8ada8Juo ws2msDvYAoStGmLl/1aNPFQ58T6F33KleTiQWnwvOgckeMexn2y5TpqjIvIIOPboslmu AhSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=fZdHeFkfxNZIk5BGq2ZVFVSxm6oxW+o7j39WKDUTBag=; b=ZVliTFHJnd/3FhNjc7ePhr1ebpqSRqX9BnYvyAASZPLU44u/5Hby19pCGo9YyWMnJj xYixCGCSMUJmw2SX2XMM9FcCMDamgB6KuwI1NukVUcOJ5F+oEOqvlnbO9/gP+ysG5i41 wyzZ0j0rOchjtqbxVgMb4+5Tbeqx/+g5UBvd+WIbCul9+1ToDA+txII1t3BiBQF69XZM lyGByHm6slx390G+UUdXdIB1dVgJudy4tNxflPPTg1XtYa26FO5D9oh+CgJugLVjntND EZeN25rYGMvAqL7Ih5NfkGItHnG8f2wkrgVfdUwL280/b0NiOTO8nPSqW80VUBX0251e smVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Wru1WlOm; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n184si4279855pgn.399.2019.08.30.05.52.59; Fri, 30 Aug 2019 05:53:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Wru1WlOm; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727455AbfH3Mw7 (ORCPT + 3 others); Fri, 30 Aug 2019 08:52:59 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:41164 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727170AbfH3Mw7 (ORCPT ); Fri, 30 Aug 2019 08:52:59 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190830125256euoutp010d79fe4201455d18c3337d7c88206b3e~-tG1TFd6q0304303043euoutp01r for ; Fri, 30 Aug 2019 12:52:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190830125256euoutp010d79fe4201455d18c3337d7c88206b3e~-tG1TFd6q0304303043euoutp01r DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1567169577; bh=fZdHeFkfxNZIk5BGq2ZVFVSxm6oxW+o7j39WKDUTBag=; h=From:To:Cc:Subject:Date:References:From; b=Wru1WlOm/LPJWu9dzVpAsWv42ad7HaaByd+dOVj+IlgoamEarat9Wc5A5yxZ4T4Ii 557U33FrjwNSdkvGKnoKEeo2X0SSZUnWT5dkqT3bEBi82ALbK8DzbigJR9MWfmmAiL tKJWaArvsxd2LLWaA4cc/9UiPxVO7087WSEMZd1Y= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190830125256eucas1p16c644427ae0bd8e0eba0d21635346ed6~-tG0sy-Ja2860528605eucas1p1Z; Fri, 30 Aug 2019 12:52:56 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id DF.B6.04309.82C196D5; Fri, 30 Aug 2019 13:52:56 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190830125255eucas1p1f39a9d097c3774857788b55e79b4e7c4~-tGz8l-Q32860628606eucas1p1P; Fri, 30 Aug 2019 12:52:55 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190830125255eusmtrp1e4a1ac02ad18e3297c76075c5d77d210~-tGzuXJyY2942629426eusmtrp1L; Fri, 30 Aug 2019 12:52:55 +0000 (GMT) X-AuditID: cbfec7f4-ae1ff700000010d5-ef-5d691c28e604 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 12.74.04166.72C196D5; Fri, 30 Aug 2019 13:52:55 +0100 (BST) Received: from AMDC2765.DIGITAL.local (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190830125254eusmtip14c4740a0e2ca07a7a15de5f5ff1aeba0~-tGzViQHr1176311763eusmtip13; Fri, 30 Aug 2019 12:52:54 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Javier Martinez Canillas Subject: [PATCH] ARM: dts: exynos: Mark LDO10 as always-on on Peach Pit/Pi Chromebooks Date: Fri, 30 Aug 2019 14:52:42 +0200 Message-Id: <20190830125242.10008-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAIsWRmVeSWpSXmKPExsWy7djPc7oaMpmxBpc+MVtsnLGe1eLa7xls FufPb2C3mHF+H5PF2iN32R1YPf7ObmX22LSqk82jb8sqRo/Pm+QCWKK4bFJSczLLUov07RK4 Mta3RxV8FajY+vkSawNjF18XIyeHhICJxOonf5m7GLk4hARWMEpsmnaPFcL5wijxdMMfRgjn M6PE1bn3mGBa/m2/wA6RWM4oMXffTka4lkmvlzCDVLEJGEp0ve1iA7FFBFQlPrctYAexmQUO MEp826sIYgsLREg0tX8Hi7MA1Vw69hasl1fAVuLW9T5WiG3yEqs3HAA7UEJgB5vEsjX7mSES LhJ/Zl2GKhKWeHV8CzuELSNxenIPC0RDM6PEw3Nr2SGcHkaJy00zGCGqrCUOH78I1M0BdJKm xPpd+hBhR4kti5cwgoQlBPgkbrwVhDiaT2LStunMEGFeiY42IYhqNYlZx9fBrT144RLUaR4S f298BrOFBGIl9qxZwjiBUW4Wwq4FjIyrGMVTS4tz01OLjfJSy/WKE3OLS/PS9ZLzczcxAuP9 9L/jX3Yw7vqTdIhRgINRiYfXYnt6rBBrYllxZe4hRg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 20190830125255eucas1p1f39a9d097c3774857788b55e79b4e7c4 X-Msg-Generator: CA X-RootMTR: 20190830125255eucas1p1f39a9d097c3774857788b55e79b4e7c4 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190830125255eucas1p1f39a9d097c3774857788b55e79b4e7c4 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org 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 --- arch/arm/boot/dts/exynos5420-peach-pit.dts | 1 + arch/arm/boot/dts/exynos5800-peach-pi.dts | 1 + 2 files changed, 2 insertions(+) -- 2.17.1 diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts index 77e08a4c7300..2bcbdf8a39bf 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -440,6 +440,7 @@ regulator-name = "vdd_ldo10"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + regulator-always-on; regulator-state-mem { regulator-off-in-suspend; }; diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts index 5e8cec736444..60ca3d685247 100644 --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts @@ -440,6 +440,7 @@ regulator-name = "vdd_ldo10"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + regulator-always-on; regulator-state-mem { regulator-off-in-suspend; };