From patchwork Thu Feb 12 08:51:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 5818381 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A63AF9F380 for ; Thu, 12 Feb 2015 08:58:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DDDDE20103 for ; Thu, 12 Feb 2015 08:58:50 +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 2957B200F4 for ; Thu, 12 Feb 2015 08:58:50 +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 1YLpYq-0005j1-OQ; Thu, 12 Feb 2015 08:55:48 +0000 Received: from mail-we0-x235.google.com ([2a00:1450:400c:c03::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YLpWI-0002iu-Nz for linux-arm-kernel@lists.infradead.org; Thu, 12 Feb 2015 08:53:11 +0000 Received: by mail-we0-f181.google.com with SMTP id w62so8539072wes.12 for ; Thu, 12 Feb 2015 00:52:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=M+XTtkPUkT2iOYQSnZFMRS1vaLBiXW19ij0zMFOBhv8=; b=V1loi6cSQ6aIpAvljS/CBZY24uf3OMd6n8WycfH/NtN3omwjJav7P5paIdGq445uQQ 0bdRuOB69L4jxuKWAxfEFdEIFZ5wWmtvobWZ8Az95vHDHN1eMIxVcclbI4i2F1yXAgkr JOMT7ArIv7YHgLA+NrFGnPyfvutBI6CvvX1IIgo87ZD13vRihP5mZHNn9obdWLhDnsdw HqymT79wCMZiGxk5CSUY1VzxHfP8I3ocaH2jatKvdLtV9Dwlz0Vap7O6fjs9w17S5l1b P0+kTeUYFMqIh82B07kagKSXsWikacHi00sC/JvPrf29Yi6tDitB2+FDyJxYw0bM0DqK uyFw== X-Received: by 10.180.72.241 with SMTP id g17mr4056902wiv.58.1423731168591; Thu, 12 Feb 2015 00:52:48 -0800 (PST) Received: from cizrna.lan (37-48-47-45.tmcz.cz. [37.48.47.45]) by mx.google.com with ESMTPSA id w16sm1571919wia.15.2015.02.12.00.52.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Feb 2015 00:52:47 -0800 (PST) From: Tomeu Vizoso To: linux-tegra@vger.kernel.org Subject: [PATCH v5 11/11] ARM: tegra: Add gpio-restart node Date: Thu, 12 Feb 2015 09:51:05 +0100 Message-Id: <1423731078-26681-12-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1423731078-26681-1-git-send-email-tomeu.vizoso@collabora.com> References: <1423731078-26681-1-git-send-email-tomeu.vizoso@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150212_005310_969120_7059C65E X-CRM114-Status: UNSURE ( 8.50 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.5 (/) Cc: Mark Rutland , Alexandre Courbot , Russell King , Pawel Moll , Tomeu Vizoso , Stephen Warren , Andrew Bresticker , Simon Glass , Ian Campbell , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Thierry Reding , Kumar Gala , Dylan Reid , Javier Martinez Canillas , linux-arm-kernel@lists.infradead.org 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=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 Nyan Chromebooks have a GPIO line dedicated to restarting the system. Using this line will make sure that the TPM is restarted as well. Signed-off-by: Tomeu Vizoso --- arch/arm/boot/dts/tegra124-nyan.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/tegra124-nyan.dtsi b/arch/arm/boot/dts/tegra124-nyan.dtsi index 9b3fca8..0b130cb 100644 --- a/arch/arm/boot/dts/tegra124-nyan.dtsi +++ b/arch/arm/boot/dts/tegra124-nyan.dtsi @@ -683,6 +683,12 @@ nvidia,mic-det-gpios = <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_HIGH>; }; + + gpio-restart { + compatible = "gpio-restart"; + gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>; + priority = <200>; + }; }; #include "cros-ec-keyboard.dtsi"