From patchwork Tue Jun 28 22:10:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 9204065 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 444C26074E for ; Tue, 28 Jun 2016 22:12:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 332FD28615 for ; Tue, 28 Jun 2016 22:12:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 281952861F; Tue, 28 Jun 2016 22:12:43 +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 DED5B28615 for ; Tue, 28 Jun 2016 22:12:42 +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 1bI1EA-0003wl-4E; Tue, 28 Jun 2016 22:11:30 +0000 Received: from mail-pf0-x232.google.com ([2607:f8b0:400e:c00::232]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bI1Dn-0003jz-NL for linux-arm-kernel@lists.infradead.org; Tue, 28 Jun 2016 22:11:08 +0000 Received: by mail-pf0-x232.google.com with SMTP id i123so10750693pfg.0 for ; Tue, 28 Jun 2016 15:10:47 -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=JOlA7BOpsZCq9IjfNrpzPlXPxuokGjVyHFdMP14RIFQ=; b=APe1SwGork3daF3UoyqbWI5hBzJ7RkNW7psKPK76XKp1K2Eo3qHlTtnrofT6OlGKkV YW8m3rGH4K8mh6uPxq+FmlVEbUjSqYX/dDyfIU4jjznlxLLC5TAJIShAAyc35Bwr4QfX RITp2rB4kvRFHgpXSkxq+zUV4ReTDTTSga6sM= 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=JOlA7BOpsZCq9IjfNrpzPlXPxuokGjVyHFdMP14RIFQ=; b=YjysypovAZvmdHZWfH0YP++dy8N/08ztOer2YhN4bK97NWJhTOZ8ou+RjaxPkonL2O wyb41CJfBj/kxjOPA5w6Tjo0lE/5iaXyPMSJ4Aq1PK2U8LvJUUCoCsVqF77p7rFle4TP LgRHV/wTKOYk7iX1Y2rBeBIvd80462gVFLeppWsOXc6pfcsv60vCo2WR3Q/VGJG70Y3z DzTTN7TSfOPY0pvGYnvVeDJVB615ZPGITZTb0mffexT3T5f83WaaXXjpoIb51i0xv9G2 tV4v0pT1JwHns+1pSuLoReflgVQJ7B1HvFPJ1SoJXF1YIiwN7SyXtqveZrLIJGP40EBP HroQ== X-Gm-Message-State: ALyK8tLuum/LlqcXR6ErEhoGTn+JP19YciwYtr5SuhuPJEM88M1PDq7odJOHaQHtoIzwlFDJ X-Received: by 10.98.86.151 with SMTP id h23mr5818337pfj.137.1467151846546; Tue, 28 Jun 2016 15:10:46 -0700 (PDT) Received: from venom.rtp.broadcom.com ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id qc16sm403851pab.1.2016.06.28.15.10.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Jun 2016 15:10:46 -0700 (PDT) From: Jon Mason To: Arnd Bergmann Subject: [PATCH 1/2] arm: dts: bcm5301x: Add syscon based reboot in DT Date: Tue, 28 Jun 2016 18:10:32 -0400 Message-Id: <1467151833-20767-2-git-send-email-jon.mason@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467151833-20767-1-git-send-email-jon.mason@broadcom.com> References: <1467151833-20767-1-git-send-email-jon.mason@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160628_151107_845882_92034694 X-CRM114-Status: GOOD ( 11.55 ) 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: Jon Mason , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, 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-Virus-Scanned: ClamAV using ClamSMTP From: Jon Mason 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 7d4d29b..f878d0d 100644 --- a/arch/arm/boot/dts/bcm5301x.dtsi +++ b/arch/arm/boot/dts/bcm5301x.dtsi @@ -260,6 +260,18 @@ "sata2"; }; + cru: system-controller@1800c184 { + compatible = "brcm,bcm53010-cru", "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>;