arm64: dts: hikey960: Add support for syscon-reboot-mode
authorGuodong Xu <guodong.xu@linaro.org>
Mon, 14 Aug 2017 09:50:44 +0000 (17:50 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Wed, 16 Aug 2017 08:32:09 +0000 (09:32 +0100)
Add support to hikey960 dts for the syscon-reboot-mode driver.

Cc: John Stultz <john.stultz@linaro.org>
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts

index b96d865649a0c768e8f7fbd7c750afe0ca772b75..ce5e8747219e3f6b745cfb0c59f10638a1d8af9f 100644 (file)
                reg = <0x0 0x0 0x0 0x0>;
        };
 
+       reboot-mode-syscon@32100000 {
+               compatible = "syscon", "simple-mfd";
+               reg = <0x0 0x32100000 0x0 0x00001000>;
+
+               reboot-mode {
+                       compatible = "syscon-reboot-mode";
+                       offset = <0x0>;
+
+                       mode-normal     = <0x77665501>;
+                       mode-bootloader = <0x77665500>;
+                       mode-recovery   = <0x77665502>;
+               };
+       };
+
        keys {
                compatible = "gpio-keys";
                pinctrl-names = "default";