From patchwork Tue Jul 15 10:31:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vikas Sajjan X-Patchwork-Id: 4552951 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 B2C1D9F1D6 for ; Tue, 15 Jul 2014 10:37:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 01C6120127 for ; Tue, 15 Jul 2014 10:37:08 +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 26BC5200D0 for ; Tue, 15 Jul 2014 10:37:07 +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 1X704t-00018X-7J; Tue, 15 Jul 2014 10:35:19 +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 1X704Z-0007od-8e for linux-arm-kernel@lists.infradead.org; Tue, 15 Jul 2014 10:35:01 +0000 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N8R00H7X1DSYD20@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 15 Jul 2014 19:34:40 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.124]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 6F.62.14704.0C305C35; Tue, 15 Jul 2014 19:34:40 +0900 (KST) X-AuditID: cbfee68f-b7fef6d000003970-de-53c503c003f9 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 70.8F.05196.0C305C35; Tue, 15 Jul 2014 19:34:40 +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:40 +0900 (KST) From: Vikas Sajjan To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v3 2/2] ARM: dts: Add mask-tpm-reset DT node to the exynos5800-peach-pi Date: Tue, 15 Jul 2014 16:01:34 +0530 Message-id: <1405420294-9323-3-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+NgFprNIsWRmVeSWpSXmKPExsWyRsSkRvcA89Fgg4O/jSzOLjvIZvF91xd2 i94FV9kspvxZzmSx6fE1VosZ5/cxWZy6/pnN4snhj6wWrw62sVh0LGO0WLXrD6PFzWfbmRx4 PGY3XGTx2DnrLrvHnWt72Dw2L6n3uHKiidWjb8sqRo/Pm+Q8Ns4NDeCI4rJJSc3JLEst0rdL 4MponLWCuWAmT8X0lvWMDYzPObsYOTkkBEwkLk97zQxhi0lcuLeerYuRi0NIYCmjxMxrx9lg it6suMICkVjEKPFq10ImCGcCk8Tfe3MZQarYBHQlVpx6DtTBwSEi4C2x/JoiSA2zwE9GieOt O1lBaoQFIiU6X/5mAbFZBFQlXu3oAuvlFXCX+HzqODtIr4SAgsScSTYgYU4BD4lvL/rYQWwh oJIjh6aD7ZUQuMYusbLjLzPEHAGJb5MPsUD0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tloHCgmkJ5akZqemFqQWwfQxcXBKNTAqpx1P 5xV4/ku5dbr3QS39Hc9FepTYo5SeFjhySV50m8h4VN0t6qyd9VSj1PrN5+Js0h4VPCuJV/fe WLDH+GeDwAGjD6cvbdu22WrT1q2bDZ/Wb1/R0fF2dUHFdOUpNr56RvcrP7HJlEjs28bivZTF ft/05HuefLtP7zgltq49ULzo35rGd/FKLMUZiYZazEXFiQAkW/V93QIAAA== 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_033459_487686_C798818E X-CRM114-Status: UNSURE ( 9.58 ) 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 Reviewed-by: Doug Anderson --- 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..0bc97d9 100644 --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts @@ -209,6 +209,9 @@ &pinctrl_0 { + pinctrl-names = "default"; + pinctrl-0 = <&mask_tpm_reset>; + max98091_irq: max98091-irq { samsung,pins = "gpx0-2"; samsung,pin-function = <0>; @@ -216,6 +219,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>;