From patchwork Tue Oct 20 09:24:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 7445521 Return-Path: X-Original-To: patchwork-linux-arm@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 BB9BFBEEA4 for ; Tue, 20 Oct 2015 09:36:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DA6FF20585 for ; Tue, 20 Oct 2015 09:36:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E36EE20826 for ; Tue, 20 Oct 2015 09:36:48 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZoTKG-00007U-2O; Tue, 20 Oct 2015 09:35:24 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZoTK4-00077d-8l for linux-arm-kernel@lists.infradead.org; Tue, 20 Oct 2015 09:35:13 +0000 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NWI00CNBIM2A560@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 20 Oct 2015 18:34:50 +0900 (KST) Received: from epcpsbgm1new.samsung.com ( [172.20.52.125]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id D0.B1.05284.ABA06265; Tue, 20 Oct 2015 18:34:50 +0900 (KST) X-AuditID: cbfee68f-f796f6d0000014a4-1c-56260aba3527 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 9B.56.23663.ABA06265; Tue, 20 Oct 2015 18:34:50 +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 <0NWI00557IJSY720@mmp2.samsung.com>; Tue, 20 Oct 2015 18:34:50 +0900 (KST) From: Alim Akhtar To: linux-samsung-soc@vger.kernel.org Subject: [PATCH v2 2/6] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4 Date: Tue, 20 Oct 2015 14:54:41 +0530 Message-id: <1445333085-22837-3-git-send-email-alim.akhtar@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1445333085-22837-1-git-send-email-alim.akhtar@samsung.com> References: <1445333085-22837-1-git-send-email-alim.akhtar@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRmVeSWpSXmKPExsWyRsSkVncXl1qYwb3nphbzj5xjtXjzdg2T xesXhhb9j18zW2x6fI3VYsb5fUwObB6bVnWyeWxeUu+xpf8uu0ffllWMHp83yQWwRnHZpKTm ZJalFunbJXBlfD0SXvCas+Jxy1PGBsa5HF2MnBwSAiYSR9/9Z4WwxSQu3FvP1sXIxSEksIJR Yt28p4wwRffeLGOHSMxilLi/ZxEThPOTUWLF7Ulg7WwC2hJ3p29hArFFBFQlPrctAOtgFuhk lFhy5gZYQlggWKLj8xp2EJsFqOj3x+VgK3gF3CX+L73ADrFOUaL72QSgOzg4OAU8JL5tyQQJ CwGVLD48iQmiZDK7xOv9RRBjBCS+TT7EAlIuISArsekAM0SJpMTBFTdYJjAKL2BkWMUomlqQ XFCclF5krFecmFtcmpeul5yfu4kRGNan/z3r38F494D1IUYBDkYlHl6NGNUwIdbEsuLK3EOM pkAbJjJLiSbnA6MnryTe0NjMyMLUxNTYyNzST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nL5hc+T/v0wVmJpTgj0VCLuag4EQDeob4KtAIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151020_023512_645344_1D6D15E0 X-CRM114-Status: GOOD ( 10.57 ) X-Spam-Score: -6.9 (------) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: javier@osg.samsung.com, k.kozlowski@samsung.com, kgene@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 exynos4 SoC. Signed-off-by: Alim Akhtar Reviewed-by: Pankaj Dubey Reviewed-by: Javier Martinez Canillas Tested-by: Tobias Jakobi Acked-by: Moritz Fischer Reviewed-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos4.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi index 98c0a368b777..1622f487e269 100644 --- a/arch/arm/boot/dts/exynos4.dtsi +++ b/arch/arm/boot/dts/exynos4.dtsi @@ -158,6 +158,20 @@ interrupt-parent = <&gic>; }; + 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>; + }; + dsi_0: dsi@11C80000 { compatible = "samsung,exynos4210-mipi-dsi"; reg = <0x11C80000 0x10000>;