From patchwork Tue Jun 2 19:19:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tai Nguyen X-Patchwork-Id: 6531021 Return-Path: X-Original-To: patchwork-linux-arm@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 B15A99F326 for ; Tue, 2 Jun 2015 19:22:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ED4FE20585 for ; Tue, 2 Jun 2015 19:22:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 19B8920575 for ; Tue, 2 Jun 2015 19:22:28 +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 1YzrjW-00033S-NL; Tue, 02 Jun 2015 19:20:18 +0000 Received: from exprod5og123.obsmtp.com ([64.18.0.198] helo=mail-qg0-f54.google.com) by bombadil.infradead.org with smtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yzrj6-0001WS-8h for linux-arm-kernel@lists.infradead.org; Tue, 02 Jun 2015 19:19:53 +0000 Received: from mail-qg0-f54.google.com ([209.85.192.54]) (using TLSv1) by exprod5ob123.postini.com ([64.18.4.12]) with SMTP ID DSNKVW4BwdTmgSwENioggsIrleg9RQxHteLU@postini.com; Tue, 02 Jun 2015 12:19:52 PDT Received: by qgfa63 with SMTP id a63so63111368qgf.0 for ; Tue, 02 Jun 2015 12:19:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=guVR5Q9oDe3XYRCrnygZ7ajqv/1HyYcx7OvEOoqvcrw=; b=UyquoTn+loKjLkTT3gIDZu31fD+X/Eg+7kSCSP76we8MhaYlLYYNPR7CHoEtHbhAAD Ej5t5IxiM0oVNcpblefB4vSY4eTbpjwaBusyNjx8ByLDYHEh77m7Up9owTaukOpZ7rLw iPxhiWriWCeWkKEbMkluWZAjyFMNVqcI71GEoUQBgHpfUw4KfgdNp91+o+qXp5vmTDUx o23ON5XB1wyLS7lKzHnOWwY4QemprFdbtDxJ3Lm7QvHFMjTb77SLqfyC5ijn5MYuvAOb TikgmvdhVkzLi7vIZjQFO32mJkVGYBRTDr1Xi0Ym6URcKmE8QInIhf8I3/9yMvyC7Utt 4bLA== X-Gm-Message-State: ALoCoQmZ1kF5NGLuUtwBq67yz4VOL8iWZs0ogn8tr5d9jHQa1+ZzduSn1M9VjFA3U0Co7Yx37YozuI57Z4OJ56Ze6pFERkRyOg97ioyrZarGlRAGKAAO/h6Lzkn/XL5u1e5mXx0pLETIOGn9wVcpZuq6Ja9L6QE5sjYRQfd0z6H/BqorqwTr8c8= X-Received: by 10.140.131.21 with SMTP id 21mr32846103qhd.51.1433272769395; Tue, 02 Jun 2015 12:19:29 -0700 (PDT) X-Received: by 10.140.131.21 with SMTP id 21mr32846079qhd.51.1433272769243; Tue, 02 Jun 2015 12:19:29 -0700 (PDT) Received: from ttnguyen-Ubuntu.amcc.com (67-207-112-226.static.wiline.com. [67.207.112.226]) by mx.google.com with ESMTPSA id l81sm5238106qhl.24.2015.06.02.12.19.27 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Jun 2015 12:19:28 -0700 (PDT) From: Tai Nguyen To: arm@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, patches@apm.com, jcm@redhat.com Subject: [PATCH 2/2 RESEND] power: reset: Add syscon poweroff device node for APM X-Gene platform Date: Tue, 2 Jun 2015 12:19:07 -0700 Message-Id: <1433272747-27114-3-git-send-email-ttnguyen@apm.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1433272747-27114-1-git-send-email-ttnguyen@apm.com> References: <1433272747-27114-1-git-send-email-ttnguyen@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150602_121952_364213_5727A5F0 X-CRM114-Status: UNSURE ( 8.90 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) Cc: ttnguyen@apm.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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, T_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 poweroff device node to support poweroff feature on APM X-Gene Mustang platform Signed-off-by: Tai Nguyen Tested-by: dann frazier Acked-by: Moritz Fischer --- arch/arm64/boot/dts/apm/apm-mustang.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/apm/apm-mustang.dts b/arch/arm64/boot/dts/apm/apm-mustang.dts index 83578e7..910d561 100644 --- a/arch/arm64/boot/dts/apm/apm-mustang.dts +++ b/arch/arm64/boot/dts/apm/apm-mustang.dts @@ -23,6 +23,18 @@ device_type = "memory"; reg = < 0x1 0x00000000 0x0 0x80000000 >; /* Updated by bootloader */ }; + + poweroff_mbox: poweroff_mbox@10548000 { + compatible = "syscon"; + reg = <0x0 0x10548000 0x0 0x30>; + }; + + poweroff: poweroff@10548010 { + compatible = "syscon-poweroff"; + regmap = <&poweroff_mbox>; + offset = <0x10>; + mask = <0x1>; + }; }; &pcie0clk {