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: 109514 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1308315qge; Mon, 7 Aug 2017 01:14:19 -0700 (PDT) X-Received: by 10.84.136.135 with SMTP id 7mr13592954pll.356.1502093659561; Mon, 07 Aug 2017 01:14:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502093659; cv=none; d=google.com; s=arc-20160816; b=a8w9WoPJ9GgA7LZB9Hf8SvIuiN0awHebKx0KRJP3mxsHs0ScT4qlKY0aUa2pc5qthC fcvX39sas+mVBrgXXqwbpcAJgfLXATuWTWUMrAcos7ob7+wu0VMSCemmcxayXTJGDCGZ oPJeAPwgAU+QHQ9r6JwiHzO8vPfOs+1gspuSwZehtkjUWRaHIhVvc+DazzCiza+KRd3j oRrTZ+XoPVrbvEBC/bz9olqIOFsHIgvO4Mxbs66REFVJGMcoGs0xOkeHWx153lOigVz8 HU63Clod3kNT2m9bNyxLSeR0bT62QRhTbTSluerzfUsXdD4XUeLXY02qKbA54vcXpo4R ofaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=+bO+zSefFHAJbSn5XMxZONacNWLUlAJKHeiXDUvZjIo=; b=EDtXbVKTi4m0RbVhmbnWa8FeoWwWD22/FKhRwFXoSALW638Z3UQge9+mWn0eAMMBhq Kku+k9L2Cd+swiangCUetC5twidCR+XcW3jnLR7l/ND07A3TzKH82tUYqz6EdbtvTVro KLrBA+8/EbsqETVanjHfiyXse9aN23e1OHMoQMTP8k4MDTy8n8PRciulw5ilwRopAYUG +NQXn8+/oRpb3TzVr9LeObUFAyfFmv4qsi8x5YDfUwIU9QoYHi0ciBxM7MeHjKv4XDcP VCGArSUYWxpfJvPksVkpZ3OGd7B14sE0xBQu0wiArkYJ+2CWgDvn3AQvObG3OuX7au1Z gwPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=SovN2Vtl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l63si4922308plb.815.2017.08.07.01.14.19; Mon, 07 Aug 2017 01:14:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.b=SovN2Vtl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752616AbdHGIOP (ORCPT + 25 others); Mon, 7 Aug 2017 04:14:15 -0400 Received: from mail-pg0-f54.google.com ([74.125.83.54]:32797 "EHLO mail-pg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752417AbdHGIOK (ORCPT ); Mon, 7 Aug 2017 04:14:10 -0400 Received: by mail-pg0-f54.google.com with SMTP id u5so31282400pgn.0 for ; Mon, 07 Aug 2017 01:14:10 -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=Sbre5FMxn7doeICnZTt+uLUqbzQGaShMtA0ueXOXS4HNYlYGX5BpZn722GxVh6yUyN MD9rQ7txfqCvWeKan934QoWwtI/Ys6N9AnCsFe5Yti5up60zF3ix/ai8bVoJTQSwJUfi 5EASzmIYzmK1SXSG5s3+tpUJUTXwESIhpXJ6siuCTjlboALhT2TqygtaTQ9XuOJvUQN+ BnvUpPPD49iFGQhLNajQ8EgOvQcyr3owTeOMieC2PDqzB8+30bgbWA/0FUJ6KlZcIVpp KmpxgtHBMIVEdPa2umb500MZ2J/FcMP598D+Xp72MHJpLDqydVkddV+gPuAsuqGYxDmF A5lw== X-Gm-Message-State: AIVw112JVqhdYTQdPZ5Z1QOIpcO0q6YvAAhQkeIAaK0cAMHtED3X59Fh mpHf3XKepLKl58UQ 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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Guodong Xu , John Stultz 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.10.2 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";