ARM: mstar: Add reboot support

MStar v7 SoCs support reset by writing a magic value to a register
in the "pmsleep" area.

This adds a node for using the syscon reboot driver to trigger a reset.

Signed-off-by: Daniel Palmer <daniel@0x0f.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
Daniel Palmer 2020-07-28 19:03:21 +09:00 committed by Arnd Bergmann
parent 9345a99710
commit 7e836785bc
1 changed files with 7 additions and 0 deletions

View File

@ -78,6 +78,13 @@
reg = <0x1c00 0x100>;
};
reboot {
compatible = "syscon-reboot";
regmap = <&pmsleep>;
offset = <0xb8>;
mask = <0x79>;
};
l3bridge: l3bridge@204400 {
compatible = "mstar,l3bridge";
reg = <0x204400 0x200>;