From patchwork Fri Dec 18 21:37:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Mason X-Patchwork-Id: 58758 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp1285074lbb; Fri, 18 Dec 2015 13:38:37 -0800 (PST) X-Received: by 10.66.159.131 with SMTP id xc3mr8466408pab.97.1450474717066; Fri, 18 Dec 2015 13:38:37 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 87si22297081pfq.239.2015.12.18.13.38.36; Fri, 18 Dec 2015 13:38:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030262AbbLRVif (ORCPT + 29 others); Fri, 18 Dec 2015 16:38:35 -0500 Received: from mail-gw1-out.broadcom.com ([216.31.210.62]:15662 "EHLO mail-gw1-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030213AbbLRVh7 (ORCPT ); Fri, 18 Dec 2015 16:37:59 -0500 X-IronPort-AV: E=Sophos;i="5.20,447,1444719600"; d="scan'208";a="83841927" Received: from irvexchcas06.broadcom.com (HELO IRVEXCHCAS06.corp.ad.broadcom.com) ([10.9.208.53]) by mail-gw1-out.broadcom.com with ESMTP; 18 Dec 2015 16:03:50 -0800 Received: from IRVEXCHSMTP3.corp.ad.broadcom.com (10.9.207.53) by IRVEXCHCAS06.corp.ad.broadcom.com (10.9.208.53) with Microsoft SMTP Server (TLS) id 14.3.235.1; Fri, 18 Dec 2015 13:37:59 -0800 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP3.corp.ad.broadcom.com (10.9.207.53) with Microsoft SMTP Server id 14.3.235.1; Fri, 18 Dec 2015 13:37:59 -0800 Received: from venom.rtp.broadcom.com (unknown [10.27.64.103]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 344C140FEA; Fri, 18 Dec 2015 13:34:27 -0800 (PST) From: Jon Mason To: Florian Fainelli CC: Hauke Mehrtens , , , , Subject: [PATCH 3/3] arm: dts: bcm5301x: Add syscon based reboot in DT Date: Fri, 18 Dec 2015 16:37:56 -0500 Message-ID: <1450474676-10210-3-git-send-email-jonmason@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1450474676-10210-1-git-send-email-jonmason@broadcom.com> References: <1450474676-10210-1-git-send-email-jonmason@broadcom.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi index 553b2ec..2a482ec 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 0xc>; + }; + + 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>;