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: 9892557 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 0F27A601EB for ; Thu, 10 Aug 2017 02:29:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED7E628462 for ; Thu, 10 Aug 2017 02:29:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E22EF286BA; Thu, 10 Aug 2017 02:29:07 +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 6B7B728462 for ; Thu, 10 Aug 2017 02:29:07 +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=Pc5xLZhwSaE7CPL6+fLA7/HTRA N/24zPSQjbFeVoSlGbHaGYJeIeshxwK90UO60IsRXfl12+AmbQ8JUi6vexpaVtmHwTelQnT7g648Q UXS1dz54g4cOg2P6ltAdbjG5lb2lptSWrZsPJbiFKZ09k0Rs/JRQNqiPPdoHPay0+9d8UIYiuWIRL i4FUYUdzn/I8foNypNWh7ezYI5apuZ80Zf8cgT4lHimqVKxcyR/5TkFj839z+YkX1yO2RrgT2Hq9A LAZa4JhI+W43pUo8mSrjWhgiXEApNC0ep+0UO0tLrtXsIElQXh/xHExDFm4kUos2kTZPm23aReG2g HqSJIp5g==; 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 1dfdDb-0003eO-4e; Thu, 10 Aug 2017 02:29:03 +0000 Received: from mail-pg0-x236.google.com ([2607:f8b0:400e:c05::236]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dfdBz-00022l-E6 for linux-arm-kernel@lists.infradead.org; Thu, 10 Aug 2017 02:27:30 +0000 Received: by mail-pg0-x236.google.com with SMTP id y129so35412139pgy.4 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=YlD5GwXHiPwNmeLZy06MlCUvmeLSe86DvrLr3ep/2AIF2I/jzsjnwSUdFRBcXZcJbY ZR1A3jOiLgkfZYXHTQKoBJs0F+yn89IzTzQ2wPRpR/hHs10zScGEkAa5GzYZ8gF3Mi/I XkoQp4G94B2v0pLWphemMaqmD25Ma+ST7WxWMN3JUih9xNeBiwaSoDSm0SCgat/08r8n 1zBPKFdORL6/dNvdDnFps+YsjF0C6frYzQe3eAna1Bknfa0gOLWtMS1MHIUmOlBH/8qv nY0TqRm8UWrhJuPOg7kK8ra9MtnAuFJQrcjaFRs3OCXIkOXx8o7MjACNWHt1dl8ZBQ4W y8jA== X-Gm-Message-State: AHYfb5h6YhNWhLRAfsfwfIoIrhsYsHAkdGe/Pda3jeim8fJq2EWPhlE6 5tP9KAFYdRmUnY4G 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170809_192724_504144_0E533656 X-CRM114-Status: UNSURE ( 8.35 ) 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";