From patchwork Wed Oct 29 08:26:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 39724 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3FB7824046 for ; Wed, 29 Oct 2014 08:27:03 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id l4sf1358375lbv.9 for ; Wed, 29 Oct 2014 01:27:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=OjC9dOIYU8pRcXJHtDvUUfoDNH+CrkDvM3tCmDiuDig=; b=QZqDo7hlnQtMZLrC/GkXVDSdlRRwxCnGnvHd66sN82rBdWjGkTh2qMFzYMVMmJcCYH 9UrKUBm9rXVKR0FCKLgbCK6GNEMywtvue9Vo5paRDlOIcMcqwUhKxcCyE/khTrPymiq2 /Vo5SJHdcVjdtqUrPtB7cdm7cdxKrYY+FuAfKOpkDcQlUAE2slv0fbw2bUQE2KiBEVaV ZKtA7NgO3ZFLgwqDE/FHuqX1xwjmqs2RfPvC+eY2keHePczwfpZmdQ3UfRu5u28phd+a WCEXLAtk0sTU7NuM9wlHqpJqxwQiuPin+XynOLqQ5IPmi0Pyo0fUKpaYpBdmyXK93lVk 4syg== X-Gm-Message-State: ALoCoQmoHoa6aDpIvFuhQr/9x4RWVha+jLkHVaNr4RciAU6bSe9e998IkAqk7gg225dGhchwVFcu X-Received: by 10.112.48.98 with SMTP id k2mr123802lbn.15.1414571222011; Wed, 29 Oct 2014 01:27:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.200 with SMTP id y8ls163994lal.93.gmail; Wed, 29 Oct 2014 01:27:01 -0700 (PDT) X-Received: by 10.112.169.106 with SMTP id ad10mr9621747lbc.13.1414571221909; Wed, 29 Oct 2014 01:27:01 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id bg6si6144865lbc.42.2014.10.29.01.27.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 Oct 2014 01:27:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by mail-lb0-f174.google.com with SMTP id z11so52104lbi.33 for ; Wed, 29 Oct 2014 01:27:01 -0700 (PDT) X-Received: by 10.112.130.41 with SMTP id ob9mr9466171lbb.74.1414571221830; Wed, 29 Oct 2014 01:27:01 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp618743lbz; Wed, 29 Oct 2014 01:27:00 -0700 (PDT) X-Received: by 10.66.181.233 with SMTP id dz9mr5241894pac.103.1414571220082; Wed, 29 Oct 2014 01:27:00 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fn9si3423555pdb.160.2014.10.29.01.26.59 for ; Wed, 29 Oct 2014 01:27:00 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932102AbaJ2I06 (ORCPT + 4 others); Wed, 29 Oct 2014 04:26:58 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:40286 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932245AbaJ2I05 (ORCPT ); Wed, 29 Oct 2014 04:26:57 -0400 Received: by mail-pa0-f53.google.com with SMTP id kx10so2685413pab.40 for ; Wed, 29 Oct 2014 01:26:56 -0700 (PDT) X-Received: by 10.68.234.103 with SMTP id ud7mr9097288pbc.46.1414571216909; Wed, 29 Oct 2014 01:26:56 -0700 (PDT) Received: from localhost.localdomain ([180.150.157.4]) by mx.google.com with ESMTPSA id ml5sm3658124pab.32.2014.10.29.01.26.52 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 Oct 2014 01:26:55 -0700 (PDT) From: Zhangfei Gao To: arnd@arndb.de, haifeng.yan@linaro.org, jchxue@gmail.com, xuwei5@hisilicon.com, haojian.zhuang@linaro.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Zhangfei Gao Subject: [PATCH v4 09/10] ARM: dts: hix5hd2: add reboot node Date: Wed, 29 Oct 2014 16:26:04 +0800 Message-Id: <1414571165-23736-10-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1414571165-23736-1-git-send-email-zhangfei.gao@linaro.org> References: <1414571165-23736-1-git-send-email-zhangfei.gao@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zhangfei.gao@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Reuse syscon-reboot, drivers/power/reset/syscon-reboot.c Signed-off-by: Zhangfei Gao --- arch/arm/boot/dts/hisi-x5hd2.dtsi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/hisi-x5hd2.dtsi b/arch/arm/boot/dts/hisi-x5hd2.dtsi index b8deb6c..c52722b 100644 --- a/arch/arm/boot/dts/hisi-x5hd2.dtsi +++ b/arch/arm/boot/dts/hisi-x5hd2.dtsi @@ -393,7 +393,13 @@ sysctrl: system-controller@00000000 { compatible = "hisilicon,sysctrl", "syscon"; reg = <0x00000000 0x1000>; - reboot-offset = <0x4>; + }; + + reboot { + compatible = "syscon-reboot"; + regmap = <&sysctrl>; + offset = <0x4>; + mask = <0xdeadbeef>; }; cpuctrl@00a22000 {