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: 5185151 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4DCCF9F387 for ; Wed, 29 Oct 2014 08:32:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8212820225 for ; Wed, 29 Oct 2014 08:32:29 +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 BB157201EF for ; Wed, 29 Oct 2014 08:32: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 1XjOe0-0000pi-O8; Wed, 29 Oct 2014 08:30:16 +0000 Received: from mail-pa0-f50.google.com ([209.85.220.50]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XjOb7-00067l-SZ for linux-arm-kernel@lists.infradead.org; Wed, 29 Oct 2014 08:27:18 +0000 Received: by mail-pa0-f50.google.com with SMTP id eu11so2728595pac.9 for ; Wed, 29 Oct 2014 01:26:57 -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=VJyqbfHvnULVvHXb9if4YAHUWeY38b6kdRGGG10OdOw=; b=VbD/PoJIRIuKtyzwq9AH3tR1iUxcXNpjiRRah6zVtBslN06+mAYRZM92wdu62PQrFE Y19VjHM18nhmPE2ByTpbXqAKB8ST18x/udmYOW6s8Hk21f2aXJHjl8JvQmhY2/AlpwjH Ti6NIR4ESlw2hsQPku+EqcitxS1qolFn3WuVrfVa7Uan6Ukr+/bHU8pix+j9LgVxxtkQ RJy6mhQxpFJZzK5b3DzJh63W/qTTfYBaX877irUIcvd1SVc6YeuHtrVSONHCNa97TUhP 18xSPf7SSn9QLWEFMZje6Wox8qSDT8UG1l12ikgliyHssGKwbYeq7NYhlhoEiadCrCMy B14Q== X-Gm-Message-State: ALoCoQk50XwNg4hBE59BE2VxG2HCM+s8KawgU+QEQMG/qY1VZnwx3lUn18nMltbJ8iWi+vy0gLUc 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141029_012718_189696_8EFA725E X-CRM114-Status: GOOD ( 10.07 ) X-Spam-Score: -0.7 (/) Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Zhangfei Gao 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=-2.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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 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 {