From patchwork Mon Jul 14 12:06:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vikas Sajjan X-Patchwork-Id: 4545671 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4FE519F295 for ; Mon, 14 Jul 2014 12:11:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6D63320158 for ; Mon, 14 Jul 2014 12:11:47 +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 84E7D2014A for ; Mon, 14 Jul 2014 12:11:46 +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 1X6f4l-0006AY-RJ; Mon, 14 Jul 2014 12:09:47 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X6f4i-00065T-58 for linux-arm-kernel@lists.infradead.org; Mon, 14 Jul 2014 12:09:45 +0000 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N8P009V4B3LP410@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 14 Jul 2014 21:09:21 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.124]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 7E.36.16580.178C3C35; Mon, 14 Jul 2014 21:09:21 +0900 (KST) X-AuditID: cbfee691-b7f2f6d0000040c4-f7-53c3c871fe01 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id FD.0B.05196.178C3C35; Mon, 14 Jul 2014 21:09:21 +0900 (KST) Received: from chromebld-server.sisodomain.com ([107.108.73.106]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N8P00H8WB2WUE40@mmp2.samsung.com>; Mon, 14 Jul 2014 21:09:21 +0900 (KST) From: Vikas Sajjan To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH] ARM: dts: Add mask-tpm-reset DT node to the exynos5800-peach-pi Date: Mon, 14 Jul 2014 17:36:17 +0530 Message-id: <1405339577-7878-1-git-send-email-vikas.sajjan@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmkeLIzCtJLcpLzFFi42JZI2JSo1t44nCwwZQFkhZnlx1ks/i+6wu7 Re+Cq2wWU/4sZ7LY9Pgaq8WM8/uYLE5d/8xm8eTwR1aLVwfbWCw6ljFarNr1h9Hi5rPtTA48 HrMbLrJ47Jx1l93jzrU9bB6bl9R7XDnRxOrRt2UVo8fnTXIeG+eGBnBEcdmkpOZklqUW6dsl cGUcu3WEraCXu2Lj1uPsDYxNnF2MnBwSAiYSK1sbGSFsMYkL99azdTFycQgJLGWU6D90hx2m 6Mimh0wQiemMEq8PbmaFcCYwSfSv3McEUsUmoCux4tRzoHYODhEBb4nl1xRBapgFfjJKHG/d yQpSIywQIDF96z4wm0VAVeLzok9gq3kF3CUurnrPAtIrIaAgMWeSDUivhMAudokTO3+zQ9QL SHybfAiqRlZi0wFmiOMkJQ6uuMEygVFwASPDKkbR1ILkguKk9CJTveLE3OLSvHS95PzcTYzA CDj979nEHYz3D1gfYkwGGjeRWUo0OR8YQXkl8YbGZkYWpiamxk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nKpfmlrzz62K9VNMFo4O77jlvPvzdcaamzpkq1p+/9d3sdbIZzs0s sahXYinOSDTUYi4qTgQATfS/fcUCAAA= 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-20140714_050944_373659_E18BA91A X-CRM114-Status: UNSURE ( 9.64 ) X-CRM114-Notice: Please train this message. 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 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: Vikas Sajjan Tested-by: Naveen Krishna Chatradhi --- arch/arm/boot/dts/exynos5800-peach-pi.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts index 28f2a25..caa8952 100644 --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts @@ -209,6 +209,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>; + }; + max98091_irq: max98091-irq { samsung,pins = "gpx0-2"; samsung,pin-function = <0>;