Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1399600

[PATCH v2 3/3] arm: dts: bcm5301x: Add syscon based reboot in DT

From Jon Mason <jon.mason@broadcom.com>
Newsgroups linux.kernel
Subject [PATCH v2 3/3] arm: dts: bcm5301x: Add syscon based reboot in DT
Date 2016-05-12 01:20 +0200
Message-ID <rxLA6-1qt-19@gated-at.bofh.it> (permalink)
References <rxLA6-1qt-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 <jonmason@broadcom.com>
---
 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>;
-- 
1.9.1

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH v2 3/3] arm: dts: bcm5301x: Add syscon based reboot in DT Jon Mason <jon.mason@broadcom.com> - 2016-05-12 01:20 +0200

csiph-web