arm64: dts: Add syscon based reboot in DT for NS2
authorAnup Patel <anup.patel@broadcom.com>
Fri, 2 Oct 2015 17:54:20 +0000 (23:24 +0530)
committerFlorian Fainelli <f.fainelli@gmail.com>
Mon, 16 Nov 2015 18:51:56 +0000 (10:51 -0800)
To reset NS2, we simply have to write '0' to BIT[1] at offset 0x90
of CRMU space.

The above can be easily achieved by writing 0xfffffffd at offset 0x90
using syscon-reboot driver. We don't need to have separate driver for
rebooting NS2.

This patch enables syscon-reboot driver for NS2 using DT.

Signed-off-by: Anup Patel <anup.patel@broadcom.com>
Reviewed-by: Ray Jui <rjui@broadcom.com>
Reviewed-by: Scott Branden <sbranden@broadcom.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm64/boot/dts/broadcom/ns2.dtsi

index c5d90e4d76fab5814f671976f66e067d86956cc7..5d2ac6b548b1aa103bbbecca10794b6a61fd9091 100644 (file)
                        mmu-masters;
                };
 
+               crmu: crmu@65024000 {
+                       compatible = "syscon";
+                       reg = <0x65024000 0x100>;
+               };
+
+               reboot@65024000 {
+                       compatible ="syscon-reboot";
+                       regmap = <&crmu>;
+                       offset = <0x90>;
+                       mask = <0xfffffffd>;
+               };
+
                gic: interrupt-controller@65210000 {
                        compatible = "arm,gic-400";
                        #interrupt-cells = <3>;