From patchwork Wed Aug 3 18:39:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 9261877 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 192B460754 for ; Wed, 3 Aug 2016 18:42:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0941627F9E for ; Wed, 3 Aug 2016 18:42:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EE49728249; Wed, 3 Aug 2016 18:42:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 85CEE27F9E for ; Wed, 3 Aug 2016 18:42:48 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bV16U-00035n-I3; Wed, 03 Aug 2016 18:41:18 +0000 Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bV155-0000zE-9t for linux-arm-kernel@lists.infradead.org; Wed, 03 Aug 2016 18:39:53 +0000 Received: by mail-pa0-x22f.google.com with SMTP id pp5so76263854pac.3 for ; Wed, 03 Aug 2016 11:39:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GoZcHRzWTKzcP/+QM+7zElgruitU6DdmayX0oL4ACQ4=; b=NN9CqLqIDndNGbXhfZx8iLReH16I5uJTLlSXm/HTER5TI7hTR9Gs+AvxEmMWWrkwiD EZuF0aAEEqWD1hnMJMOuwIlrP81+9WPYk2DYNozq+9RBiFd7xSxlmJOKQuipE2uiG73i 79BzYLevICBB9uRt8TPr3/WMdZS2gdvAPg8pU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GoZcHRzWTKzcP/+QM+7zElgruitU6DdmayX0oL4ACQ4=; b=cxyWomQO7tIrCgFV9m/Xsc2cv0xHw1VcDgrcLli2O4X52qFGo038g57B6sLat4q+/q YsC0GngsLYF5JiTBNHIf8m/G6HNeuGW8ycuE8AcQ+yPCt7VXYwKsglWqKxBha+aq+fTj geu0BAVoweWu4tvirH/5T96okhQEk+wBy940ACGQ5LMQYkOEFDl2fZwSY+ikEGGsxb6D 7gy8mlwQwK80VI2MTLbiPmy4VFTjX91UVVVzHixyXv1aBgydV6c09aX00+6FsGTKwGEA DhDLcLu9iOv4Ki8Ry7BZWCWDMma36JQXq3Tsu+xLEftqwDV4yNBfUrwh7JJQeNSPma4c io0w== X-Gm-Message-State: AEkoouu5a0UB+xLMj6/ibyhN8lBsR520VXMlrpDyPSG3v+PVw+f7bYQndYDI5Cf9X8q/qK8q X-Received: by 10.66.216.70 with SMTP id oo6mr117577058pac.39.1470249570118; Wed, 03 Aug 2016 11:39:30 -0700 (PDT) Received: from venom.rtp.broadcom.com ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id 89sm14350700pft.96.2016.08.03.11.39.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Aug 2016 11:39:29 -0700 (PDT) From: Jon Mason To: f.fainelli@gmail.com Subject: [PATCH 05/11] ARM: dts: NSP: Add GPIO reboot method to bcm958625hr DTS file Date: Wed, 3 Aug 2016 14:39:00 -0400 Message-Id: <1470249546-12440-6-git-send-email-jon.mason@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470249546-12440-1-git-send-email-jon.mason@broadcom.com> References: <1470249546-12440-1-git-send-email-jon.mason@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160803_113951_549021_AF53323F X-CRM114-Status: GOOD ( 11.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Scott Branden , Pawel Moll , Ian Campbell , Ray Jui , linux-kernel@vger.kernel.org, Rob Herring , bcm-kernel-feedback-list@broadcom.com, Kumar Gala , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add the ability to reboot the bcm958625hr board via GPIO. Unfortunately, not all of the NSP based boards use the same GPIO pin and one doesn't have the ability to reboot via GPIO at all. So, this will need to be specified per DTS file. Signed-off-by: Jon Mason --- arch/arm/boot/dts/bcm958625hr.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/bcm958625hr.dts b/arch/arm/boot/dts/bcm958625hr.dts index 78970b9..d72baf7 100644 --- a/arch/arm/boot/dts/bcm958625hr.dts +++ b/arch/arm/boot/dts/bcm958625hr.dts @@ -33,6 +33,7 @@ /dts-v1/; #include "bcm-nsp.dtsi" +#include / { model = "NorthStar Plus SVK (BCM958625HR)"; @@ -49,6 +50,12 @@ memory { reg = <0x60000000 0x20000000>; }; + + gpio-restart { + compatible = "gpio-restart"; + gpios = <&gpioa 15 GPIO_ACTIVE_LOW>; + priority = <200>; + }; }; &nand {