diff options
author | Anup Patel <anup.patel@broadcom.com> | 2015-10-02 20:54:20 +0300 |
---|---|---|
committer | Florian Fainelli <f.fainelli@gmail.com> | 2015-11-16 21:51:56 +0300 |
commit | 5b467c3b2d36b6ed8a6d17923c12f3091d83ce77 (patch) | |
tree | 8dbc0c326b22bf7cb118b086c39732bd10856ba1 /arch/arm64/boot/dts/broadcom/ns2.dtsi | |
parent | 6ec5f3c5264795290f3d7ed67286cca2c1486bfe (diff) | |
download | linux-5b467c3b2d36b6ed8a6d17923c12f3091d83ce77.tar.xz |
arm64: dts: Add syscon based reboot in DT for NS2
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>
Diffstat (limited to 'arch/arm64/boot/dts/broadcom/ns2.dtsi')
-rw-r--r-- | arch/arm64/boot/dts/broadcom/ns2.dtsi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/broadcom/ns2.dtsi b/arch/arm64/boot/dts/broadcom/ns2.dtsi index c5d90e4d76fa..5d2ac6b548b1 100644 --- a/arch/arm64/boot/dts/broadcom/ns2.dtsi +++ b/arch/arm64/boot/dts/broadcom/ns2.dtsi @@ -144,6 +144,18 @@ 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>; |