From patchwork Fri Nov 20 05:17:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 7664441 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B4806BF90C for ; Fri, 20 Nov 2015 05:20:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EE99020497 for ; Fri, 20 Nov 2015 05:20:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1753F20483 for ; Fri, 20 Nov 2015 05:20:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751332AbbKTFUc (ORCPT ); Fri, 20 Nov 2015 00:20:32 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:34670 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751298AbbKTFUb (ORCPT ); Fri, 20 Nov 2015 00:20:31 -0500 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NY301056LI5S1B0@mailout1.samsung.com>; Fri, 20 Nov 2015 14:20:29 +0900 (KST) Received: from epcpsbgm2new.samsung.com ( [172.20.52.126]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 12.B4.29987.D9DAE465; Fri, 20 Nov 2015 14:20:29 +0900 (KST) X-AuditID: cbfee68d-f79286d000007523-35-564ead9d67c7 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 4C.FA.00996.D9DAE465; Fri, 20 Nov 2015 14:20:29 +0900 (KST) Received: from exypnos.sisodomain.com ([107.108.73.28]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NY300FUGLAIN310@mmp2.samsung.com>; Fri, 20 Nov 2015 14:20:29 +0900 (KST) From: Alim Akhtar To: linux-samsung-soc@vger.kernel.org Cc: k.kozlowski@samsung.com, kgene@kernel.org, javier@osg.samsung.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, m.reichl@fivetechno.de, tjakobi@math.uni-bielefeld.de, ulf.hansson@linaro.org Subject: [PATCH v3 3/5] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5 Date: Fri, 20 Nov 2015 10:47:07 +0530 Message-id: <1447996629-18232-4-git-send-email-alim.akhtar@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1447996629-18232-1-git-send-email-alim.akhtar@samsung.com> References: <1447996629-18232-1-git-send-email-alim.akhtar@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrALMWRmVeSWpSXmKPExsWyRsSkTnfuWr8wg00rzS3mHznHavHm7Rom i9cvDC36H79mttj0+BqrxYzz+5gsXh75wWjRtvoDq8XxteEOnB637tR7bFrVyeZx59oeNo/N S+o9/h1j99jSf5fdo2/LKkaPz5vkAjiiuGxSUnMyy1KL9O0SuDI+XWhgLnjGWdHw6hFbA+NM ji5GDg4JAROJpQ8Duhg5gUwxiQv31rN1MXJxCAmsYJSYN+UiM0TCROLyxL2MEIlZjBLbj+5m hnB+MkosvfaKDaSKTUBb4u70LUwgtoiAqsTntgXsIEXMArcYJR5tu8sIkhAWCJb49mo5mM0C VDS5dREriM0r4C7ROreJEWKdokT3swlgQzkFPCS2L9gLNlQIqObY/NdgZ0gI7GKX6L7ziBVi kIDEt8mHWCD+kZXYdADqbEmJgytusExgFF7AyLCKUTS1ILmgOCm9yFCvODG3uDQvXS85P3cT IzAiTv971ruD8fYB60OMAhyMSjy8NyX9woRYE8uKK3MPMZoCbZjILCWanA+Mu7ySeENjMyML UxNTYyNzSzMlcV5FqZ/BQgLpiSWp2ampBalF8UWlOanFhxiZODilGhjds9Zzxh50tni7n8nl 3781ixjenGPaV6HKszyCaemH6g3hfpxhUzPZHx6K2PcnbqqyeS/rD8Nl7TYGhotvfOr37LNX eLf1uNDKdRwnNP/X6lw54BAmGvRyUr+4SE/l6l0S09Pnb+DXmVp+ZomkxufzVp9inimbvNJ1 laluvzm/oX2dNJPHnvtKLMUZiYZazEXFiQD74tWigwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrHIsWRmVeSWpSXmKPExsVy+t9jQd25a/3CDG7361jMP3KO1eLN2zVM Fq9fGFr0P37NbLHp8TVWixnn9zFZvDzyg9GibfUHVovja8MdOD1u3an32LSqk83jzrU9bB6b l9R7/DvG7rGl/y67R9+WVYwenzfJBXBENTDaZKQmpqQWKaTmJeenZOal2yp5B8c7x5uaGRjq GlpamCsp5CXmptoqufgE6Lpl5gDdpqRQlphTChQKSCwuVtK3wzQhNMRN1wKmMULXNyQIrsfI AA0krGHM+HShgbngGWdFw6tHbA2MMzm6GDk5JARMJC5P3MsIYYtJXLi3nq2LkYtDSGAWo8T2 o7uZIZyfjBJLr71iA6liE9CWuDt9CxOILSKgKvG5bQE7SBGzwC1GiUfb7oKNEhYIlvj2ajmY zQJUNLl1ESuIzSvgLtE6twlqnaJE97MJYEM5BTwkti/YCzZUCKjm2PzXjBMYeRcwMqxilEgt SC4oTkrPNcpLLdcrTswtLs1L10vOz93ECI67Z9I7GA/vcj/EKMDBqMTD2yDuFybEmlhWXJl7 iFGCg1lJhHepH1CINyWxsiq1KD++qDQntfgQoynQYROZpUST84EpIa8k3tDYxNzU2NTSxMLE zFJJnFff0yhMSCA9sSQ1OzW1ILUIpo+Jg1OqgZFB8dCJa1ePzj4n+dajKGtn+ttlFony598p 7L889Yj1etuye6q/TdROzV0qwcyy+7JSrfEta9HZmldN707btUKqroNns7UnH3feKr36j5lc fM/qTp/KXbG45rpV4eFUfZMPQXxHte/liHgKpr2Rev/A5OuhWzotqRkJJn5p4ooGn+smrV6s kq7EUpyRaKjFXFScCADaiAB40QIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds syscon-{reboot, poweroff} nodes to allow the generic syscon-{reboot, poweroff} driver to reset/poweroff exynos5 SoCs. Signed-off-by: Alim Akhtar Reviewed-by: Pankaj Dubey Reviewed-by: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski Acked-by: Moritz Fischer --- arch/arm/boot/dts/exynos5.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/exynos5.dtsi b/arch/arm/boot/dts/exynos5.dtsi index 110dbd4fb884..e2439e87ee4a 100644 --- a/arch/arm/boot/dts/exynos5.dtsi +++ b/arch/arm/boot/dts/exynos5.dtsi @@ -88,6 +88,20 @@ status = "disabled"; }; + 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>; + }; + fimd: fimd@14400000 { compatible = "samsung,exynos5250-fimd"; interrupt-parent = <&combiner>;