From patchwork Thu Aug 10 02:26:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 109760 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1716043qge; Wed, 9 Aug 2017 19:27:05 -0700 (PDT) X-Received: by 10.99.126.86 with SMTP id o22mr9842645pgn.367.1502332024907; Wed, 09 Aug 2017 19:27:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502332024; cv=none; d=google.com; s=arc-20160816; b=kK0iXdPbILi2VG+/Uu6NKmjtVCHlhzVUpMBz2Z+wKdPG/P2lchr3yOEjHGrSeguhcM UkwUI/NeXcy0q49yspP+JdguxaJqzvQVvKyVl49uVc2xodDEniB6F4TmS4giC1WQrYfZ EchPBmFaoKOGlNR1p65No1kh9/IEG6jZ5OmE8SWB4GbxckpZkVZC89BmohDeSPvsMqU3 2wLi7k+xDbvlS7eVYdVHWPlXIil6XJ2SC5xAMwSV7ENH587KMP/Blnxgw5vnr2p2WwoE 4tcHELnDgL8PBivFLvIPLlJ4q5nIzVY6PLyIuBoI6Dz6Ha9Dbbw5T3ot291lMKIq6AuC LV7g== 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=pMFgAjEn1406hpLRsO84cG2WB0iR8oEp2i+3BBCLmfw=; b=oTKVSLY2yoL1bk9ZK1AUi5c8HFGbXGHgc4LnCiR9qC3x6lQ0j5Eq15t6LvZ8gKWqgY TjLXyrRmc7mM4e3Dc9pKdo0FjjCDEcORGHtOm/9aqq7Bd5gigcANcG1lUpluMsM5bn3H uyLFqISn792dLXbsfXIqlBNZATb+cuLqRzKHmTFwoyygn7DEtJbDI1aGSPCMfny2sc1X 4T4jza3dSz3RowzsdLt9lC200C2lTbfE8MnIoeFZC8CkuFkutOm0+3sfpTLEVyqRlTcb z5HxAQzhyWNoVJsnYrZhASRJUU6YGbE4blOPYF20w8PverddTcpRlOninWW2KbEOs9EE 1jEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Gg1Wg5fA; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 44si3755853plc.276.2017.08.09.19.27.04; Wed, 09 Aug 2017 19:27:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Gg1Wg5fA; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752560AbdHJC1D (ORCPT + 6 others); Wed, 9 Aug 2017 22:27:03 -0400 Received: from mail-pg0-f42.google.com ([74.125.83.42]:36139 "EHLO mail-pg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752562AbdHJC1C (ORCPT ); Wed, 9 Aug 2017 22:27:02 -0400 Received: by mail-pg0-f42.google.com with SMTP id v77so35298108pgb.3 for ; Wed, 09 Aug 2017 19:27:02 -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=Gg1Wg5fAAnNx9tfaiyKFkAw/y/8juv36ItpipGbge632xFGlRocJpPBPD3QRBJa9eT JVtCPDFPAzC3dIc4m9jqlmXAgLna1fUpDKSJQHwoCDMXYY0nZAmjmWByGO0PdbO1LXja 2pF/WI+ErLr6NkzIyJ12RwxtVij6zAfS+zD3k= 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=lmaoJChiRPZDkQE+vmXm440EUO12OWWIGUtm+ySlp9F4k+sIduZSlTry5LAELERpEn 3kp07nGwhSoJy94zPIVhRm4Q2MqcX9DyIsmWAP4r2vmdoGxPoGAp5F5Mg1+U8iB6jss/ Gzje/979cFB3CyCE004izvv805XBugv4lYKNF4jpIbp8/j7UIVuKw94oZxAoBEag/cDX Jr4Sp/6H/L49rwvIQQktATYtP/YHMNjZwhKbTj4KaxQXxWG6q/6QjHM8RUXdEb/440ok 9crTIMD3jxOZzzhWd2y7P+pEeTDSykF6c8q17bVT0lE3J9HDsy4iQs9Ur354U2AYatgx yzpg== X-Gm-Message-State: AHYfb5g7n8Yy6dFxuLrVaJJnD8cQbnlgxyX1rvI5nt9mh7/1EvJ10Z6r NTiEgMheTIf0Au2B X-Received: by 10.99.124.26 with SMTP id x26mr6582581pgc.280.1502332022070; Wed, 09 Aug 2017 19:27:02 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.41.135.55]) by smtp.gmail.com with ESMTPSA id s11sm7789166pgr.53.2017.08.09.19.26.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 19:27:01 -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 v2 5/9] arm64: dts: hikey960: Add support for syscon-reboot-mode Date: Thu, 10 Aug 2017 10:26:11 +0800 Message-Id: <20170810022615.19204-6-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170810022615.19204-1-guodong.xu@linaro.org> References: <20170810022615.19204-1-guodong.xu@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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";