From patchwork Tue Jul 15 10:31:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vikas Sajjan X-Patchwork-Id: 4552961 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 C217CC0514 for ; Tue, 15 Jul 2014 10:37:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 109F620127 for ; Tue, 15 Jul 2014 10:37:12 +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 005EB200D0 for ; Tue, 15 Jul 2014 10:37:10 +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 1X7050-0001Ds-Vu; Tue, 15 Jul 2014 10:35:26 +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 1X704Y-0007rq-0U for linux-arm-kernel@lists.infradead.org; Tue, 15 Jul 2014 10:35:01 +0000 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N8R00ARR1DK5FC0@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 15 Jul 2014 19:34:32 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.122]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 1F.7C.24374.8B305C35; Tue, 15 Jul 2014 19:34:32 +0900 (KST) X-AuditID: cbfee68d-b7fd46d000005f36-5a-53c503b8cf54 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id B7.38.04943.8B305C35; Tue, 15 Jul 2014 19:34:32 +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 <0N8R00F7B1D23OB0@mmp1.samsung.com>; Tue, 15 Jul 2014 19:34:32 +0900 (KST) From: Vikas Sajjan To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v3 1/2] ARM: dts: Add mask-tpm-reset to the device tree Date: Tue, 15 Jul 2014 16:01:33 +0530 Message-id: <1405420294-9323-2-git-send-email-vikas.sajjan@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1405420294-9323-1-git-send-email-vikas.sajjan@samsung.com> References: <1405420294-9323-1-git-send-email-vikas.sajjan@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFIsWRmVeSWpSXmKPExsWyRsSkSncH89FggxkzTS3OLjvIZvF91xd2 i94FV9kspvxZzmSx6fE1VosZ5/cxWZy6/pnN4snhj6wWrw62sVh0LGO0WLXrD6PFzWfbmRx4 PGY3XGTx2DnrLrvHnWt72Dw2L6n3uHKiidWjb8sqRo/Pm+Q8Ns4NDeCI4rJJSc3JLEst0rdL 4MpY1LuQsaCZt+L89H7GBsajXF2MnBwSAiYSG482skLYYhIX7q1n62Lk4hASWMooMWPvYTaY ov6jV1ggEosYJWZ+W80M4Uxgkli9uokFpIpNQFdixannQB0cHCIC3hLLrymC1DAL/GSUON66 kxUkLizgLvFwfxhIOYuAqsSyAw+YQWxeoPCDKQ1gJRICChJzJtmAhDkFPCS+vehjB7GFgEqO HJrOBDJSQuAcu8TzjiNMEHMEJL5NPsQC0SsrsekAM8TNkhIHV9xgmcA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4uCUamBsDbrjXcJR GtmaGmzCG7mqfVZWbvrdOlYm79kv0k85dk/vq/zgVrLO1WSxtMP3LdPTdU/F9PB/Nm9cfWuT gs+NBm17CSnGo6/u6FxM0r/8TmKBAGPkxtcetZZSCxbEPsmNUbEtZ53E2HkxPfDX9EOOrTwm nUWXz5+O2nKW5XKa78YDU1kVrJVYijMSDbWYi4oTAZPrMgfcAgAA 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-20140715_033458_227182_71963EFF X-CRM114-Status: GOOD ( 10.38 ) 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 Reviewed-by: Doug Anderson --- 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..c7b2bba 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -211,6 +211,9 @@ &pinctrl_0 { + pinctrl-names = "default"; + pinctrl-0 = <&mask_tpm_reset>; + max98090_irq: max98090-irq { samsung,pins = "gpx0-2"; samsung,pin-function = <0>; @@ -218,6 +221,15 @@ samsung,pin-drv = <0>; }; + /* 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>; + }; + tpm_irq: tpm-irq { samsung,pins = "gpx1-0"; samsung,pin-function = <0>;