From patchwork Mon Aug 7 08:13:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9884697 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CE16B602CC for ; Mon, 7 Aug 2017 08:26:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC9812859A for ; Mon, 7 Aug 2017 08:26:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B1408285D3; Mon, 7 Aug 2017 08:26:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6EB1D2859A for ; Mon, 7 Aug 2017 08:26:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=gUF4BLzG7A8rsku2nahAUkzBFE7DWrs3KT9fA8iChA8=; b=Cl5HVmZQ9NT2tvzxAyaNpRtboj U1x9ywEKmq35BDo5/NnKzaqWjIylx+/NiXxodyPjIB+kp8bLGqc6uVXqoMZ+EzeEcO755+swd/FoV OvctJUywcUxnt5l9lfnWO1mLqKR+zsOn9ZZI6n0tfLbCPY1IbJo59Vqqtg/LXRyd4fxe/aiUKdxGd isTuFgSlH/pE550mP02HubYS7cfI8IaQmgPemnGhopvqKwQZ2ac3JQpJSHoJgcszFtQV+yy9nNt04 yxHki7SgNz0aaQLbmDwwVJNfzpfh6giV71duV23/AJp1ITGkRHvV3T5/ohzcnyjp6VyUiyM12Iypr Ledaw9iw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dedMj-0008Hl-Lq; Mon, 07 Aug 2017 08:26:21 +0000 Received: from mail-pg0-x230.google.com ([2607:f8b0:400e:c05::230]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dedBH-0008Vj-Da for linux-arm-kernel@lists.infradead.org; Mon, 07 Aug 2017 08:14:38 +0000 Received: by mail-pg0-x230.google.com with SMTP id l64so31216939pge.5 for ; Mon, 07 Aug 2017 01:14:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+bO+zSefFHAJbSn5XMxZONacNWLUlAJKHeiXDUvZjIo=; b=SovN2Vtltl6fM7HVGB+i7AptcCaUuCbKCP6cV0AEpZMoAjEg15tp55XKlZkN+wZbiA X7bKV6Ew3C9ITAeU6Q9aZIAhv5fobLBOfrG9OXBSNWUKICrC4a5hftejenPXLPPryKUD D1SKk9B2kRvz1W5528Us9vmojEgpF4zkeJ65M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+bO+zSefFHAJbSn5XMxZONacNWLUlAJKHeiXDUvZjIo=; b=VARSF4n6aHTmWflMgvCO9joh0V+oFg8VPefRvxZg3n/wU/zBHQ7HzvtzxsCBYpts61 fKj1Jbi0N6VVl/nLhps/qPBJT94vpWYFO543hhKL3Lrp6PX/ddK8ocVBPMZR/wk/C/P1 qv9YMhaBJ+feJPWg8uq0VOfbjWDnqhD6wLTqPReFko8qjy+QV8t2OUX5+IV0egc2071I zwElszzEloJjfremOsEScUhhafUZucvcBXHofdQqHllL5XjemLXrfX2CuBhiKdD5fP47 VsUUDfVPFXRagh7AihtuLLd9bMdqM9nisd2HqBxOT7cJjEC6x0y6+hMyabroF7LuKODy RQfg== X-Gm-Message-State: AIVw113ynLUj/MzioiprIbRbiFWnTwzbj3DjIVS4vsw6U54k5bgjlyDR WFe9OXCFCUQDR1HK X-Received: by 10.84.232.6 with SMTP id h6mr13366726plk.173.1502093650548; Mon, 07 Aug 2017 01:14:10 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.229]) by smtp.gmail.com with ESMTPSA id x25sm13597521pfk.80.2017.08.07.01.14.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Aug 2017 01:14:10 -0700 (PDT) From: Guodong Xu To: xuwei5@hisilicon.com, robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, keescook@chromium.org, anton@enomsg.org, ccross@android.com, tony.luck@intel.com Subject: [PATCH 5/7] arm64: dts: hikey960: Add support for syscon-reboot-mode Date: Mon, 7 Aug 2017 16:13:23 +0800 Message-Id: <20170807081325.11406-6-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170807081325.11406-1-guodong.xu@linaro.org> References: <20170807081325.11406-1-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170807_011432_365809_187E025C X-CRM114-Status: UNSURE ( 8.09 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Guodong Xu , John Stultz , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add support to hikey960 dts for the syscon-reboot-mode driver. Cc: John Stultz Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index b96d865..ce5e874 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -39,6 +39,20 @@ reg = <0x0 0x0 0x0 0x0>; }; + reboot-mode-syscon@32100000 { + compatible = "syscon", "simple-mfd"; + reg = <0x0 0x32100000 0x0 0x00001000>; + + reboot-mode { + compatible = "syscon-reboot-mode"; + offset = <0x0>; + + mode-normal = <0x77665501>; + mode-bootloader = <0x77665500>; + mode-recovery = <0x77665502>; + }; + }; + keys { compatible = "gpio-keys"; pinctrl-names = "default";