From patchwork Wed Aug 3 18:39:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 9261889 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 519EB60754 for ; Wed, 3 Aug 2016 18:43:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4544C27F9E for ; Wed, 3 Aug 2016 18:43:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 39CC028249; Wed, 3 Aug 2016 18:43:49 +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 D6F2E27F9E for ; Wed, 3 Aug 2016 18:43: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 1bV17S-0003xZ-Te; Wed, 03 Aug 2016 18:42:18 +0000 Received: from mail-pf0-x229.google.com ([2607:f8b0:400e:c00::229]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bV157-0000zv-K7 for linux-arm-kernel@lists.infradead.org; Wed, 03 Aug 2016 18:39:55 +0000 Received: by mail-pf0-x229.google.com with SMTP id y134so79915384pfg.0 for ; Wed, 03 Aug 2016 11:39:33 -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=s4Hewv93/GJ09cWn5FAn3eO6uWBMXS79liBYTS0LFGk=; b=WSLk9ZGOjAff+/Y+XggTFbrPtCLGbB03RhdiiRi9f0/4uBO2BhO18hDfrfIJstUBls rkIPKkoY/t/Sjub0ufhD7HMm9YJltFexg1BR6GM1xKvpTvyQGjmP6gHIVCgeV4JLm7z8 hdejI4TNxZMWEDi0SGu9R98E9G7bSiXLMDGIE= 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=s4Hewv93/GJ09cWn5FAn3eO6uWBMXS79liBYTS0LFGk=; b=chisTSlZvdJs4VGZT6J1aBErKF5o38wCOWf2MYY77kwKk9pjNOanCuo5b23ioFtgaL GvGney9sqEZWtzdH08eqcaEgWZP5QZiKbBaoBpcefPiQS89ssFNrRnMPBtxRVg6jnMdy qxmYoPurYSimZUYPghJpvlpAk4Rr2FxzQyyE02s9sQNrz87S2dSe584qmNOjSGpQBAry o4hLdfpy9MXiO3+7MpASJAohTX8Z1Fqv6y2lNGigrO9sgoKl6pD/1u5Ey/AqDTX9bRtH DUkpQySASf4Hmg5gWSZ2dv6jfD9YVPH85/Y5hQrjlex57L5xY7SCa36hx/u49ig+m5yx 8Bbg== X-Gm-Message-State: AEkoouslpED1XcPHcguIQQZeZGhSiaFvQbH1iiookoS2ReL6ONzhgm3epCiAkCq7ZW6OHG0d X-Received: by 10.98.66.209 with SMTP id h78mr119157119pfd.11.1470249572603; Wed, 03 Aug 2016 11:39:32 -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.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Aug 2016 11:39:32 -0700 (PDT) From: Jon Mason To: f.fainelli@gmail.com Subject: [PATCH 06/11] ARM: dts: NSP: Add GPIO reboot method to bcm958625xmc DTS file Date: Wed, 3 Aug 2016 14:39:01 -0400 Message-Id: <1470249546-12440-7-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_113953_951366_4421515E X-CRM114-Status: GOOD ( 11.77 ) 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 bcm958625xmc 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/bcm958525xmc.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/bcm958525xmc.dts b/arch/arm/boot/dts/bcm958525xmc.dts index 9517360..959cde9 100644 --- a/arch/arm/boot/dts/bcm958525xmc.dts +++ b/arch/arm/boot/dts/bcm958525xmc.dts @@ -33,6 +33,7 @@ /dts-v1/; #include "bcm-nsp.dtsi" +#include / { model = "NorthStar Plus XMC (BCM958525xmc)"; @@ -50,6 +51,12 @@ device_type = "memory"; reg = <0x60000000 0x40000000>; }; + + gpio-restart { + compatible = "gpio-restart"; + gpios = <&gpioa 31 GPIO_ACTIVE_LOW>; + priority = <200>; + }; }; &i2c0 {