summaryrefslogtreecommitdiffstats
path: root/dts/src/arm/exynos-syscon-restart.dtsi
diff options
context:
space:
mode:
Diffstat (limited to 'dts/src/arm/exynos-syscon-restart.dtsi')
-rw-r--r--dts/src/arm/exynos-syscon-restart.dtsi27
1 files changed, 27 insertions, 0 deletions
diff --git a/dts/src/arm/exynos-syscon-restart.dtsi b/dts/src/arm/exynos-syscon-restart.dtsi
new file mode 100644
index 0000000000..09a2040054
--- /dev/null
+++ b/dts/src/arm/exynos-syscon-restart.dtsi
@@ -0,0 +1,27 @@
+/*
+ * Samsung's Exynos SoC syscon reboot/poweroff nodes common definition.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+/ {
+ soc {
+ compatible = "simple-bus";
+
+ poweroff: syscon-poweroff {
+ compatible = "syscon-poweroff";
+ regmap = <&pmu_system_controller>;
+ offset = <0x330C>; /* PS_HOLD_CONTROL */
+ mask = <0x5200>; /* reset value */
+ };
+
+ reboot: syscon-reboot {
+ compatible = "syscon-reboot";
+ regmap = <&pmu_system_controller>;
+ offset = <0x0400>; /* SWRESET */
+ mask = <0x1>;
+ };
+ };
+};