ARM: dts: Add syscon-{reboot, poweroff} nodes for exynos5410
authorAlim Akhtar <alim.akhtar@samsung.com>
Tue, 20 Oct 2015 09:24:43 +0000 (14:54 +0530)
committerKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 20 Nov 2015 06:58:44 +0000 (15:58 +0900)
This patch adds syscon-{reboot, poweroff} nodes to allow the
generic syscon-{reboot, poweroff} driver to reset/poweroff exynos5410 SoC.

Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
Reviewed-by: Pankaj Dubey <pankaj.dubey@samsung.com>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Tested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Moritz Fischer <moritz.fischer@ettus.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
arch/arm/boot/dts/exynos5410.dtsi

index 731eefd23fa999aef4479d705ffc499d297a2680..fad0779b1b6e86d887a926a4afdee929ca33a1d7 100644 (file)
                        reg = <0x10040000 0x5000>;
                };
 
+               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>;
+               };
+
                mct: mct@101C0000 {
                        compatible = "samsung,exynos4210-mct";
                        reg = <0x101C0000 0xB00>;