Skip to contentSkip to conversation

ARM: BCM63xx: reboot support

PATCH Superseded Florian Fainelli 1 participant 3 messages Apr 23, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover ARM: BCM63xx: reboot support

Hi all,

This patch series allows the use of the generic "syscon-reboot" driver for Broadcom's BCM63xx ARM-based SoCs.

Let me know your thoughts on this so I can submit these in a future Broadcom SoC pull request, thanks!

Changes in v2:

- dropped the custom driver and use "syscon-reboot"

Florian Fainelli (2):
dt-bindings: Add documentation for the BCM63138 timer and
syscon-reboot
ARM: dts: BCM63xx: Add timer and syscon-reboot nodes

 .../devicetree/bindings/arm/bcm/brcm,bcm63138.txt  | 33 ++++++++++++++++++++++
 arch/arm/boot/dts/bcm63138.dtsi                    | 12 ++++++++
 2 files changed, 45 insertions(+)
Signature · 1 line
2.1.0
#1 lore raw

PATCH v2 1/2 dt-bindings: Add documentation for the BCM63138 timer and syscon-reboot

A timer node and a syscon-reboot node are required for software reboot to work on BCM63138, document these two nodes in the platform binding.

---
 .../devicetree/bindings/arm/bcm/brcm,bcm63138.txt  | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)
Documentation/devicetree/bindings/arm/bcm/brcm,bcm63138.txt +33 -0
index bd49987a8812..54468dab498c 100644
@@ -7,3 +7,36 @@ following properties:
 Required root node property:
 
 compatible: should be "brcm,bcm63138"
+
+reboot
+------
+Two nodes are required for software reboot: a timer node and a syscon-reboot node.
+
+Timer node:
+
+- compatible: Must be "brcm,bcm6328-timer", "syscon"
+- reg: Register base address and length
+
+Syscon reboot node:
+
+See Documentation/devicetree/bindings/power/reset/syscon-reboot.txt for the
+detailed list of properties, the two values defined below are specific to the
+BCM6328-style timer:
+
+- offset: Should be 0x34 to denote the offset of the TIMER_WD_TIMER_RESET register
+  from the beginning of the TIMER block
+- mask: Should be 1 for the SoftRst bit.
+
+Example:
+
+	timer: timer at 80 {
+		compatible = "brcm,bcm6328-timer", "syscon";
+		reg = <0x80 0x3c>;
+	};
+
+	reboot {
+		compatible = "syscon-reboot";
+		regmap = <&timer>;
+		offset = <0x34>;
+		mask = <0x1>;
+	};
Signature · 1 line
2.1.0
#2 lore raw

PATCH v2 2/2 ARM: dts: BCM63xx: Add timer and syscon-reboot nodes

In reply to Florian Fainelli

Add a "brcm,bcm6328-timer" and "syscon-reboot" nodes to allow the generic syscon-reboot driver to reset a BCM63138 SoC.

---
 arch/arm/boot/dts/bcm63138.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm/boot/dts/bcm63138.dtsi +12 -0
index f46329c8ad75..c23402e18811 100644
@@ -114,6 +114,11 @@
 		#size-cells = <1>;
 		ranges = <0 0xfffe8000 0x8100>;
 
+		timer: timer at 80 {
+			compatible = "brcm,bcm6328-timer", "syscon";
+			reg = <0x80 0x3c>;
+		};
+
 		serial0: serial at 600 {
 			compatible = "brcm,bcm6345-uart";
 			reg = <0x600 0x1b>;
@@ -131,5 +136,12 @@
 			clock-names = "periph";
 			status = "disabled";
 		};
+
+		reboot {
+			compatible = "syscon-reboot";
+			regmap = <&timer>;
+			offset = <0x34>;
+			mask = <1>;
+		};
 	};
 };
Signature · 1 line
2.1.0