From patchwork Wed May 11 23:19:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 9075951 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 13E929F1C1 for ; Wed, 11 May 2016 23:21:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4A09220148 for ; Wed, 11 May 2016 23:21:18 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id 8897120114 for ; Wed, 11 May 2016 23:21:17 +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 1b0dQB-0002Yx-Hx; Wed, 11 May 2016 23:20:03 +0000 Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b0dPs-0002KS-JS for linux-arm-kernel@lists.infradead.org; Wed, 11 May 2016 23:19:45 +0000 Received: by mail-pa0-x22b.google.com with SMTP id bt5so22183576pac.3 for ; Wed, 11 May 2016 16:19:24 -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=QRHOkBxuAtjwmN1t75z54d2Tmf6V1rANJrD1Kmf/g5I=; b=FFb/lpT79r+RpuOnj39Elbwjj1wRnePKIMltaQYCb7ERG9kcx6nGb/yiQo8OpEg9hj KiXTokfm5cSHAgkBiqs8Jn8d1kCaceG4u4SZbbosB68OvNvMlmzEpotx7REM1dMeJmbB Dmj+GQnIcD92VYQIpMxHi6PHkGC80UXjBJw28= 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=QRHOkBxuAtjwmN1t75z54d2Tmf6V1rANJrD1Kmf/g5I=; b=KoGddZsPmbs9J6khsvMG28D2nH/y1a2ILkLJlfJBa/peuYLDNJl0DqChaFjzzebOG/ 71BCnREQV8i0QniKk5/YE2ucMIzv/oMKR4iDqPdLC5/4SZDAQFFmcsNU1UFCZrYZjvqf 7I4eia0Ad8fgPCn7eg49nE3eI923nERSqH90fiWCAfWMhVufb8Bc4KqzdIMogLVYKZDH 91ZojDRPOZM6bFs/uXp0oBA7kDFTzzS45YzGbYiKfjjRfnkToN9A9XKeYHpptYLbg1YX stbexHEW63unFiBLybcfPid07ATnktaIp7EvFc+IwbofkKalOyfQpyTya6J8W77RGRMC GQeA== X-Gm-Message-State: AOPr4FW8puy0VWNx6MkTmOJwr5AjNJPQfHK0pnk7VD/UPF+qtNrAUpbsdVwDT8wZQrlA65ej X-Received: by 10.66.81.136 with SMTP id a8mr8821212pay.113.1463008763596; Wed, 11 May 2016 16:19:23 -0700 (PDT) Received: from venom.rtp.broadcom.com ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id m190sm14744331pfm.29.2016.05.11.16.19.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 May 2016 16:19:23 -0700 (PDT) From: Jon Mason X-Google-Original-From: Jon Mason To: Florian Fainelli , Arnd Bergmann , Hauke Mehrtens , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala Subject: [PATCH v2 3/3] arm: dts: bcm5301x: Add syscon based reboot in DT Date: Wed, 11 May 2016 19:19:10 -0400 Message-Id: <1463008750-13902-4-git-send-email-jonmason@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1463008750-13902-1-git-send-email-jonmason@broadcom.com> References: <1463008750-13902-1-git-send-email-jonmason@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160511_161944_754425_EB3F376E X-CRM114-Status: GOOD ( 12.48 ) X-Spam-Score: -2.7 (--) 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: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, 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-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,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 Add the ability to reboot via a reset of the processor. This is achieved via a write of 0x39 to the CRU Reset Register. Unfortunately, this only resets the core and not the other IP blocks. So if possible, other methods should be used on the individual boards. Signed-off-by: Jon Mason --- arch/arm/boot/dts/bcm5301x.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi index ffc4a9b..d4e1672 100644 --- a/arch/arm/boot/dts/bcm5301x.dtsi +++ b/arch/arm/boot/dts/bcm5301x.dtsi @@ -246,6 +246,18 @@ "sata2"; }; + cru: cru@1800c184 { + compatible = "syscon"; + reg = <0x1800c184 0x4>; + }; + + reboot@1800c184 { + compatible ="syscon-reboot"; + regmap = <&cru>; + offset = <0>; + mask = <0x39>; + }; + nand: nand@18028000 { compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1", "brcm,brcmnand"; reg = <0x18028000 0x600>, <0x1811a408 0x600>, <0x18028f00 0x20>;