summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/exynos-syscon-restart.dtsi
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2016-02-16 12:25:48 -0300
committerKrzysztof Kozlowski <k.kozlowski@samsung.com>2016-02-25 09:23:07 +0900
commit1462b1373d789cd23659f446533f943fe17307d4 (patch)
tree4e3b2bbf5c2104bb034d52fde4a11673d9213ca4 /arch/arm/boot/dts/exynos-syscon-restart.dtsi
parent36a0282a41493400428d7df8c99701fb4ee344c2 (diff)
downloadtalos-op-linux-1462b1373d789cd23659f446533f943fe17307d4.tar.gz
talos-op-linux-1462b1373d789cd23659f446533f943fe17307d4.zip
ARM: dts: exynos: Move syscon reboot/poweroff to common dtsi
All Exynos SoCs have the same syscon reboot and poweroff device nodes so there is no need to duplicate the same on each SoC dtsi and can be moved to a common dtsi that can be included by all the SoCs dtsi files. Suggested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Reviewed-by: Alim Akhtar <alim.akhtar@samsung,com> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Diffstat (limited to 'arch/arm/boot/dts/exynos-syscon-restart.dtsi')
-rw-r--r--arch/arm/boot/dts/exynos-syscon-restart.dtsi27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/exynos-syscon-restart.dtsi b/arch/arm/boot/dts/exynos-syscon-restart.dtsi
new file mode 100644
index 000000000000..09a2040054ed
--- /dev/null
+++ b/arch/arm/boot/dts/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>;
+ };
+ };
+};
OpenPOWER on IntegriCloud