From patchwork Fri Nov 20 05:17:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 7664431 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F06DF9F392 for ; Fri, 20 Nov 2015 05:19:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 376FA20494 for ; Fri, 20 Nov 2015 05:19:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 53AEE2046F for ; Fri, 20 Nov 2015 05:19:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751310AbbKTFTx (ORCPT ); Fri, 20 Nov 2015 00:19:53 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:39227 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750782AbbKTFTw (ORCPT ); Fri, 20 Nov 2015 00:19:52 -0500 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NY300D6TLH3D6E0@mailout2.samsung.com>; Fri, 20 Nov 2015 14:19:51 +0900 (KST) Received: from epcpsbgm2new.samsung.com ( [172.20.52.125]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 25.64.29659.77DAE465; Fri, 20 Nov 2015 14:19:51 +0900 (KST) X-AuditID: cbfee690-f79e96d0000073db-40-564ead77ca2c Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 1F.DA.00996.67DAE465; Fri, 20 Nov 2015 14:19:51 +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:19:50 +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 2/5] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4 Date: Fri, 20 Nov 2015 10:47:06 +0530 Message-id: <1447996629-18232-3-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+NgFnrPLMWRmVeSWpSXmKPExsWyRsSkVrd8rV+Ywbd/PBbzj5xjtXjzdg2T xesXhhb9j18zW2x6fI3VYsb5fUwWL4/8YLRoW/2B1eL42nAHTo9bd+o9Nq3qZPO4c20Pm8fm JfUe/46xe2zpv8vu0bdlFaPH501yARxRXDYpqTmZZalF+nYJXBmdn2IKlnNVHFvxhb2B8QpH FyMnh4SAicTE3c+YIWwxiQv31rN1MXJxCAmsYJTo3zOdFaaoZfd2JojELEaJhg1LmSGcn4wS TbvvMYFUsQloS9ydvgXMFhFQlfjctoAdpIhZ4BajxKNtdxlBEsICwRJv1s0B2sHBwQJUtGIP C0iYV8BdYurJBkaIbYoS3c8msIHYnAIeEtsX7AWbKQRUc2z+a0aQmRICu9glNtxYA3Yei4CA xLfJh1hAZkoIyEpsOgD1jqTEwRU3WCYwCi9gZFjFKJpakFxQnJReZKJXnJhbXJqXrpecn7uJ ERgPp/89m7CD8d4B60OMAhyMSjy8NyT9woRYE8uKK3MPMZoCbZjILCWanA+MurySeENjMyML UxNTYyNzSzMlcd7XUj+DhQTSE0tSs1NTC1KL4otKc1KLDzEycXBKNTAqmbGkf61winnOZLlv Z1gih57AbmF2U80l092SNE/NSlzt7a2We0gnvK1CQubx9q2i3WIa7TzttvsTNv7fY2/HfKNd bMcOhmkKS23kcpdplRo+qC8MPX9Pf7kcc4Od9uuD91efmhyQeXm2pstmqaVud0/Nrua4yKvQ I7R6m8jbrYUbi9kjFiqxFGckGmoxFxUnAgClubUkggIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDIsWRmVeSWpSXmKPExsVy+t9jQd3ytX5hBh+uslrMP3KO1eLN2zVM Fq9fGFr0P37NbLHp8TVWixnn9zFZvDzyg9GibfUHVovja8MdOD1u3an32LSqk83jzrU9bB6b l9R7/DvG7rGl/y67R9+WVYwenzfJBXBENTDaZKQmpqQWKaTmJeenZOal2yp5B8c7x5uaGRjq GlpamCsp5CXmptoqufgE6Lpl5gDdpqRQlphTChQKSCwuVtK3wzQhNMRN1wKmMULXNyQIrsfI AA0krGHM6PwUU7Ccq+LYii/sDYxXOLoYOTkkBEwkWnZvZ4KwxSQu3FvP1sXIxSEkMItRomHD UmYI5yejRNPue2BVbALaEnenbwGzRQRUJT63LWAHKWIWuMUo8WjbXUaQhLBAsMSbdXOARnFw sAAVrdjDAhLmFXCXmHqygRFim6JE97MJbCA2p4CHxPYFe8FmCgHVHJv/mnECI+8CRoZVjBKp BckFxUnpuUZ5qeV6xYm5xaV56XrJ+bmbGMEx90x6B+PhXe6HGAU4GJV4eBvE/cKEWBPLiitz DzFKcDArifAu9QMK8aYkVlalFuXHF5XmpBYfYjQFumsis5Rocj4wHeSVxBsam5ibGptamliY mFkqifPqexqFCQmkJ5akZqemFqQWwfQxcXBKNTBqJ91vLkzfNkW56gHLdJVpBSem7baY/q3t dPXNmN8TpOOfHf2dbpNyPvOfEIdBhezx/+wfLS5varM5xvzWQGsRj6fej//LJkyvWDC96Kni 3IhGBo/QG7Ke9x9/KPq++ajp+4Tz11fkduzjZuz0Lgi58mR78f68Z6uEqhXPlc3v1W3SWhgk wDdHiaU4I9FQi7moOBEAika2U88CAAA= 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 exynos4 SoC. Signed-off-by: Alim Akhtar Reviewed-by: Pankaj Dubey Reviewed-by: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski Tested-by: Tobias Jakobi Acked-by: Moritz Fischer --- 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 3184e10f260a..07e10ee60bd8 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>;