linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] ARM: BCM63xx: reboot support
@ 2015-04-23 23:02 Florian Fainelli
  2015-04-23 23:03 ` [PATCH v2 1/2] dt-bindings: Add documentation for the BCM63138 timer and syscon-reboot Florian Fainelli
  2015-04-23 23:03 ` [PATCH v2 2/2] ARM: dts: BCM63xx: Add timer and syscon-reboot nodes Florian Fainelli
  0 siblings, 2 replies; 3+ messages in thread
From: Florian Fainelli @ 2015-04-23 23:02 UTC (permalink / raw)
  To: linux-arm-kernel

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(+)

-- 
2.1.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v2 1/2] dt-bindings: Add documentation for the BCM63138 timer and syscon-reboot
  2015-04-23 23:02 [PATCH v2 0/2] ARM: BCM63xx: reboot support Florian Fainelli
@ 2015-04-23 23:03 ` Florian Fainelli
  2015-04-23 23:03 ` [PATCH v2 2/2] ARM: dts: BCM63xx: Add timer and syscon-reboot nodes Florian Fainelli
  1 sibling, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2015-04-23 23:03 UTC (permalink / raw)
  To: linux-arm-kernel

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.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 .../devicetree/bindings/arm/bcm/brcm,bcm63138.txt  | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm63138.txt b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm63138.txt
index bd49987a8812..54468dab498c 100644
--- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm63138.txt
+++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm63138.txt
@@ -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>;
+	};
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v2 2/2] ARM: dts: BCM63xx: Add timer and syscon-reboot nodes
  2015-04-23 23:02 [PATCH v2 0/2] ARM: BCM63xx: reboot support Florian Fainelli
  2015-04-23 23:03 ` [PATCH v2 1/2] dt-bindings: Add documentation for the BCM63138 timer and syscon-reboot Florian Fainelli
@ 2015-04-23 23:03 ` Florian Fainelli
  1 sibling, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2015-04-23 23:03 UTC (permalink / raw)
  To: linux-arm-kernel

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

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 arch/arm/boot/dts/bcm63138.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/bcm63138.dtsi b/arch/arm/boot/dts/bcm63138.dtsi
index f46329c8ad75..c23402e18811 100644
--- a/arch/arm/boot/dts/bcm63138.dtsi
+++ b/arch/arm/boot/dts/bcm63138.dtsi
@@ -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>;
+		};
 	};
 };
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-23 23:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-23 23:02 [PATCH v2 0/2] ARM: BCM63xx: reboot support Florian Fainelli
2015-04-23 23:03 ` [PATCH v2 1/2] dt-bindings: Add documentation for the BCM63138 timer and syscon-reboot Florian Fainelli
2015-04-23 23:03 ` [PATCH v2 2/2] ARM: dts: BCM63xx: Add timer and syscon-reboot nodes Florian Fainelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).