From patchwork Tue Oct 20 09:24:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 7445441 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 6C67D9F36A for ; Tue, 20 Oct 2015 09:35:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 59D6F2084E for ; Tue, 20 Oct 2015 09:35:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 817FE20846 for ; Tue, 20 Oct 2015 09:35:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750732AbbJTJfS (ORCPT ); Tue, 20 Oct 2015 05:35:18 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:48770 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752951AbbJTJfN (ORCPT ); Tue, 20 Oct 2015 05:35:13 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NWI00VIEIMNFL50@mailout3.samsung.com>; Tue, 20 Oct 2015 18:35:11 +0900 (KST) Received: from epcpsbgm2new.samsung.com ( [172.20.52.124]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id FA.01.05385.FCA06265; Tue, 20 Oct 2015 18:35:11 +0900 (KST) X-AuditID: cbfee691-f79d66d000001509-ec-56260acfc4a9 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id D9.FA.18629.FCA06265; Tue, 20 Oct 2015 18:35:11 +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:35:11 +0900 (KST) From: Alim Akhtar To: linux-samsung-soc@vger.kernel.org Cc: kgene@kernel.org, k.kozlowski@samsung.com, javier@osg.samsung.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 3/6] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5 Date: Tue, 20 Oct 2015 14:54:42 +0530 Message-id: <1445333085-22837-4-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+NgFrrCLMWRmVeSWpSXmKPExsWyRsSkRvc8l1qYwZFz+hbzj5xjtXjzdg2T xesXhhb9j18zW2x6fI3VYsb5fUwObB6bVnWyeWxeUu+xpf8uu0ffllWMHp83yQWwRnHZpKTm ZJalFunbJXBltDy6zFawirNi58TNzA2Mj9i7GDk5JARMJK6t2Qhli0lcuLeerYuRi0NIYAWj xPRNe5lgipaf3ssMkZjFKHFx0lxWCOcno8SDu7PB2tkEtCXuTt8C1iEioCrxuW0BO0gRs0An o8SSMzeAEhwcwgLBEod/ZIHUsADVPN3WzAZi8wq4Sxy6MY0ZYpuiRPezCWwg5ZwCHhLftmSC hIWAShYfnsQEMlJCYDK7RPvsC2wQcwQkvk0+xAJSLyEgK7HpANQYSYmDK26wTGAUXsDIsIpR NLUguaA4Kb3IVK84Mbe4NC9dLzk/dxMjMLBP/3s2cQfj/QPWhxgFOBiVeHg1YlTDhFgTy4or cw8xmgJtmMgsJZqcD4yfvJJ4Q2MzIwtTE1NjI3NLMyVxXh3pn8FCAumJJanZqakFqU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KMxINtZiLihMBAecSjLQCAAA= 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=-6.9 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 Acked-by: Moritz Fischer Tested-by: Javier Martinez Canillas Tested-by: Anand Moon Reviewed-by: Krzysztof Kozlowski --- 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>;