OSDN Git Service

ARM: mstar: Add reboot support
authorDaniel Palmer <daniel@0x0f.com>
Tue, 28 Jul 2020 10:03:21 +0000 (19:03 +0900)
committerArnd Bergmann <arnd@arndb.de>
Tue, 28 Jul 2020 11:15:47 +0000 (13:15 +0200)
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>
arch/arm/boot/dts/mstar-v7.dtsi

index bb7fb3e..c7458c6 100644 (file)
                                reg = <0x1c00 0x100>;
                        };
 
+                       reboot {
+                               compatible = "syscon-reboot";
+                               regmap = <&pmsleep>;
+                               offset = <0xb8>;
+                               mask = <0x79>;
+                       };
+
                        l3bridge: l3bridge@204400 {
                                compatible = "mstar,l3bridge";
                                reg = <0x204400 0x200>;