From patchwork Mon Jul 14 06:33:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vikas Sajjan X-Patchwork-Id: 4542821 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 941CDC0514 for ; Mon, 14 Jul 2014 06:39:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BA12F20136 for ; Mon, 14 Jul 2014 06:39:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DEF9620131 for ; Mon, 14 Jul 2014 06:39:00 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X6ZsR-00054r-Uc; Mon, 14 Jul 2014 06:36:43 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X6ZsO-00052J-Qu for linux-arm-kernel@lists.infradead.org; Mon, 14 Jul 2014 06:36:41 +0000 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N8O006J1VO7FL70@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 14 Jul 2014 15:36:07 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.122]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id C8.40.24374.75A73C35; Mon, 14 Jul 2014 15:36:07 +0900 (KST) X-AuditID: cbfee68d-b7fd46d000005f36-25-53c37a573882 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 37.EE.05196.75A73C35; Mon, 14 Jul 2014 15:36:07 +0900 (KST) Received: from chromebld-server.sisodomain.com ([107.108.73.106]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N8O00GDKVO0S4X0@mmp1.samsung.com>; Mon, 14 Jul 2014 15:36:07 +0900 (KST) From: Vikas Sajjan To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v2] ARM: dts: Add mask-tpm-reset to the device tree Date: Mon, 14 Jul 2014 12:03:22 +0530 Message-id: <1405319602-29892-1-git-send-email-vikas.sajjan@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpikeLIzCtJLcpLzFFi42JZI2JSpRtedTjY4PsTdYuzyw6yWXzf9YXd onfBVTaLKX+WM1lsenyN1WLG+X1MFqeuf2azeHL4I6vFq4NtLBYdyxgtVu36w2hx89l2Jgce j9kNF1k8ds66y+5x59oeNo/NS+o9rpxoYvXo27KK0ePzJjmPjXNDAziiuGxSUnMyy1KL9O0S uDK6521lL9jPU/Fs/hqWBsYZXF2MnBwSAiYSby6tZ4awxSQu3FvP1sXIxSEksJRRYun3qYxd jBxgRa+2qkDEFzFK3L7+hgnCmcAk8fjiSTaQbjYBXYkVp56zgTSICHhLLL+mCFLDLPCTUeJ4 605WkBphAWeJs6tPg9WzCKhKHH2/mB3E5hXwkNi4pIkVYpmCxJxJNiC9EgK72CWmfvrIAlEv IPFt8iEWiBpZiU0HoI6WlDi44gbLBEbBBYwMqxhFUwuSC4qT0osM9YoTc4tL89L1kvNzNzEC w//0v2e9OxhvH7A+xJgMNG4is5Rocj4wfvJK4g2NzYwsTE1MjY3MLc1IE1YS5016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7zpdn8Sdx5T7hHPTl509T+9f87rxIr8pyUpmd3Jt yDklluKMREMt5qLiRABPMnlvxAIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140713_233641_048483_95273E68 X-CRM114-Status: GOOD ( 10.32 ) X-Spam-Score: -5.0 (-----) Cc: sajjan.linux@gmail.com, kgene.kim@samsung.com, swarren@wwwdotorg.org, linus.walleij@linaro.org, tomasz.figa@gmail.com, dianders@chromium.org, Vikas Sajjan , thomas.ab@samsung.com, olof@lixom.net, joshi@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Doug Anderson The mask-tpm-reset GPIO is used by the kernel to prevent the TPM from being reset across sleep/wake. If we don't set it to anything then the TPM will be reset. U-Boot will detect this as invalid and will reset the system on resume time. This GPIO can always be low and not hurt anything. It will get pulled back high again during a normal warm reset when it will default back to an input. To properly preserve the TPM state across suspend/resume and to make the chrome U-Boot happy, properly set the GPIO to mask the reset to the TPM. Signed-off-by: Doug Anderson Signed-off-by: Vikas Sajjan Tested-by: Naveen Krishna Chatradhi --- changes since v1: - removed fixed regulator and used hogs instead. arch/arm/boot/dts/exynos5420-peach-pit.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts index 6c7cab0..c036d9e 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -211,6 +211,18 @@ &pinctrl_0 { + pinctrl-names = "default"; + pinctrl-0 = <&mask_tpm_reset>; + + /* We need GPX0_6 to be low at sleep time; just keep it low always */ + mask_tpm_reset: mask-tpm-reset { + samsung,pins = "gpx0-6"; + samsung,pin-function = <1>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + samsung,pin-val = <0>; + }; + max98090_irq: max98090-irq { samsung,pins = "gpx0-2"; samsung,pin-function = <0>;