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: 109969 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp4117719qge; Mon, 14 Aug 2017 02:52:34 -0700 (PDT) X-Received: by 10.84.224.201 with SMTP id k9mr27796190pln.263.1502704354166; Mon, 14 Aug 2017 02:52:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502704354; cv=none; d=google.com; s=arc-20160816; b=Jpt5wWtXs6UMEAlJDlMhHyngxoe6DTIV4RuWYr39ywCe8ddCAlmNonZoKSZhBii53V XVHlu7schn5da0h7LsVdkLEZbvroOtHV4gCWjQAKMPz3YUODaQCBBVaqTNy/apHMQWR8 GIG3XpH7ux3S5QICX1sOs7+ju4CRc7T34LdsakX7tCf8FrjRcFfq3Gn3y7Ljbxc3q7Im aJkERAKb13x3jA/YCsPcHs8NOhsZxH3qPPX7O7R6moAnHmntMKiH07WZvLv7oznjZJwB KV9G7GTkVzJ+H26XD7cp68+esMKU9IHwof+SZ+4ghWkKMqpwCIEC4eOTRLpIF0fHHsaV eXdQ== 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=0Pz9R4C59CN1rrZewRwQvfvX0NXVAU1gZr0EgasKRRRGK+f9XvaDzSyblo2Ev0Qi79 M4+6LAgvNws6u08WJH8y/UJJ4n7xbpf3S+VJeO+1Ber32z+gsrxvGbb7rzFRTMgAKaeX oKUPg+jIluAhxekm0T2NxgDa6joxUkyGZXcEo+XZtpIv6m5svKrUkOD4KcmTEgLM62zQ E1nXyKnYO5QxA1bXWnL4vBMMUYB/1erdb0rXinhymu34bXYrgwmlV+FD/MF6cvjTzyaL fkyuzJ9nh7y/7uVawXQ3G4o+8SO0dC65qDpn7ehl/XbZhhlkgWUsURhKZBZ8KEBa0wOd 7ylg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GHBDZTuu; 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 m88si3973364pfa.226.2017.08.14.02.52.33; Mon, 14 Aug 2017 02:52:34 -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.s=google header.b=GHBDZTuu; 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 S1752836AbdHNJwc (ORCPT + 25 others); Mon, 14 Aug 2017 05:52:32 -0400 Received: from mail-pg0-f51.google.com ([74.125.83.51]:36584 "EHLO mail-pg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751720AbdHNJw2 (ORCPT ); Mon, 14 Aug 2017 05:52:28 -0400 Received: by mail-pg0-f51.google.com with SMTP id v77so44026150pgb.3 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=eKprmXnVoa99i3maW6IeAsZB3ySBBsgx/+uu1QEuapqlyjjtKFK5j9LMkB4uWvbld4 dJA4NpNtEStRLKYrVi4+Jr6nBs6m/IMd+FRKEv7TNJfYvy6nHGSg9pTVg04Bwr47kFa2 Jf5p5Q6Nmd8fGjJTdvQsvTTqkkiJv/UqGaxe1X1MA9ntoKkWbbE0x7VMpww539msv70j zdlUE7XD9uvV2zehWg4Z0d/EpFfCMxbavJxVwrodPZzk1gWoj9yXMDwRDSK5qS3TlFxg FwBFzZ7FQStd0x0f/ldHm7xB6JiPeCdwOqF5YXaK9At0Agn4AOBGDQWLEopSXJHY5/rm Tuww== X-Gm-Message-State: AHYfb5haz3J9Xekxx915YTLi4VIAVhX3K4qOauDjfzjKvXhdlRxnT2Uf ZrgWvC37MDaXOE7zq5eutQ== 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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Guodong Xu , John Stultz 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> 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";