ARM: BCM63xx: reboot support
Subsystems (2)
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
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
@@ -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
PATCH v2 2/2 ARM: dts: BCM63xx: Add timer and syscon-reboot nodes
In reply to Florian FainelliAdd 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
@@ -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