From patchwork Mon Aug 14 09:50:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9898471 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 2763F602BA for ; Mon, 14 Aug 2017 10:04:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 18C6E26E75 for ; Mon, 14 Aug 2017 10:04:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D7AD2811E; Mon, 14 Aug 2017 10:04:32 +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=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW 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 9E28B26E75 for ; Mon, 14 Aug 2017 10:04:31 +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=XTQqOdhAQ57kwBRhj/Vqtyfgd7 F4O7N5SkZqU9URKNde6JQRnnCxJrbTnfsUybmNEMvtcPmrUDON0t0/iC2B+QWzKEXLlzJucN90Abx q3f/dyvGvg2MiQT7NLqTXzwtXuSsz8IHT+y819v25a20Dseuu24sc4umVtyBMOqtNg/RzoFvJYk6A m550asa1cs0DuYAUvAUlnd+y+BsDWh277HaaXbaUh4eeVIHrzIyWeTvp0mB4IbMFE5DOFrt+UW+WQ B6AiYIl8+cuubXfHNK6mvFo3xxE8rVzG6IkVKi4BwJ2XZD/ubCYErfFdyhaVWFKY+dvBzyAHwZGEl 10HJA7iA==; 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 1dhCEY-0007gi-G4; Mon, 14 Aug 2017 10:04:30 +0000 Received: from mail-pg0-x22d.google.com ([2607:f8b0:400e:c05::22d]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dhC3D-0006vi-8h for linux-arm-kernel@lists.infradead.org; Mon, 14 Aug 2017 09:52:49 +0000 Received: by mail-pg0-x22d.google.com with SMTP id u185so44063606pgb.1 for ; Mon, 14 Aug 2017 02:52:27 -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=GHBDZTuus43ERh8voIA7Sk2rTHlQQaggqTiDyx34T4deE+yyy1UH8oUPDtflkp2CRk hK+q5+e5LzIEPXHrBmFJjSFRzC1RFPm+om5hTQrMWHz3nP8hLGklJ3le0zzifsFlFT8Z 208wt1WdCQrfswyINuu/Ad8iJSSSHarzt8NXk= 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=ZVkSfgDGU/QOuS5nYrtDrm58JNGEqzGN4Ghchqq3Cqof3qSJc//D/6za/u580IQpOJ xPG1gOrVSES3Blp7q1HMPG2D5wkWPr3vFPDwTu+TPu1am3lcO9XOJ3a8UutxPtkcvV9/ 0S9uoPAilCeQufbEaIcnn2BEunvJNn9B/vKY+bgY83ZQdPiSSLgke6hm8KjjKp6QJYKE QJZ3LC8lXcR6e7IARRXVqMzG4ysGq30WBaIVmzoFeWpa00qFKjU7ZF0iPSQ8A+wZMTnD kZcCX9ifnBU0UxFhYq0ff5L2pwzt4gPUGy9NTIF6p5aNR4W/CjlVhadLJS8XSbc9JWtx 71vQ== X-Gm-Message-State: AHYfb5g19H0kLWlJS9x/b7c9Qbz4PyDPsCtMgfJ0PSEwoOFd8vkVOv1G 3GTbs4WpG/W5LPlH X-Received: by 10.98.133.211 with SMTP id m80mr24098077pfk.164.1502704347434; Mon, 14 Aug 2017 02:52:27 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.41.135.45]) by smtp.gmail.com with ESMTPSA id e63sm3468674pfc.24.2017.08.14.02.52.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Aug 2017 02:52:26 -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 v3 05/10] arm64: dts: hikey960: Add support for syscon-reboot-mode Date: Mon, 14 Aug 2017 17:50:44 +0800 Message-Id: <20170814095049.27701-6-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170814095049.27701-1-guodong.xu@linaro.org> References: <20170814095049.27701-1-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170814_025247_447398_10095DB2 X-CRM114-Status: UNSURE ( 8.03 ) 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";