From patchwork Fri Jan 15 13:49:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 8041151 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 156FC9F859 for ; Fri, 15 Jan 2016 13:54:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 345B7203A4 for ; Fri, 15 Jan 2016 13:54:38 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 66CE120211 for ; Fri, 15 Jan 2016 13:54:37 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aK4oO-0006VY-1f; Fri, 15 Jan 2016 13:53:08 +0000 Received: from mail-pa0-f65.google.com ([209.85.220.65]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aK4ml-0004wf-1S; Fri, 15 Jan 2016 13:51:28 +0000 Received: by mail-pa0-f65.google.com with SMTP id gi1so36849144pac.2; Fri, 15 Jan 2016 05:51:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VtiHNmacQK4UAOMCUpxdViv9rvcUGh9Y5hAoQdE9K8E=; b=GDqP9iyjp+pktbMwz+6l2ThdSiKngbrLobXxasxiqTxnWGVSHzwIU27oqV2FjPqXVI LTGl+sZN1bsC+kk90FOJOxVV6kdsRdXLCojnlScXDcdiDeGV7yI0UPASPYaedMkLUMQd KzdMD+Nn+OqUbgSoQSvwfGjXGUvGjDIpjfVYFjRCdLa+GBh58K3JSKGlgGmeLkOdQGlv FGDcCnGdvk5UDCDZxFkdDmfOUcJ7Djiv/71hPzwcNKWz42ov6fy396x910Vy5+yebTsZ dEE7Zzyzl3HlEA5Kw6yWaymnDMxhONGWuZkxshZ6JK0zAw/4uL1aSNXBf8TiRtj13zFK vlgA== X-Gm-Message-State: ALoCoQkVxeMr8ZKCwn/7R4nznikLlH5iqFwTC+you3mxtP4R1EIgL/0ipG8nPaG8VK82mAysUPo6emfLxUJkRHeqnSMBXcQi4g== X-Received: by 10.66.102.9 with SMTP id fk9mr14915290pab.77.1452865866574; Fri, 15 Jan 2016 05:51:06 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id 16sm15811805pfh.48.2016.01.15.05.51.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Jan 2016 05:51:05 -0800 (PST) From: Caesar Wang To: Heiko Stuebner , linux-rockchip@lists.infradead.org Subject: [PATCH v3 8/9] ARM: dts: rockchip: add reboot-mode node for rk3036 SoCs Date: Fri, 15 Jan 2016 21:49:55 +0800 Message-Id: <1452865796-23527-9-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1452865796-23527-1-git-send-email-wxt@rock-chips.com> References: <1452865796-23527-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160115_055127_250334_AC1A3956 X-CRM114-Status: UNSURE ( 9.68 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.4 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, Mark Brown , leozwang@google.com, keescook@google.com, linux-arm-kernel@lists.infradead.org, Caesar Wang MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add reboot mode driver DT node for rk3036 platform. This patch adds the needed reboot mode node for rk3036. Signed-off-by: Caesar Wang --- Changes in v3: None arch/arm/boot/dts/rk3036.dtsi | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/rk3036.dtsi b/arch/arm/boot/dts/rk3036.dtsi index cf0968c..f5ecfff 100644 --- a/arch/arm/boot/dts/rk3036.dtsi +++ b/arch/arm/boot/dts/rk3036.dtsi @@ -43,6 +43,7 @@ #include #include #include +#include #include "skeleton.dtsi" / { @@ -297,8 +298,33 @@ }; grf: syscon@20008000 { - compatible = "rockchip,rk3036-grf", "syscon"; + compatible = "rockchip,rk3036-grf", "syscon", "simple-mfd"; reg = <0x20008000 0x1000>; + + reboot-mode { + compatible = "syscon-reboot-mode"; + offset = <0x1d8>; + + normal { + linux,mode = "normal"; + loader,magic = ; + }; + + loader { + linux,mode = "loader"; + loader,magic = ; + }; + + recovery { + linux,mode = "recovery"; + loader,magic = ; + }; + + fastboot { + linux,mode = "fastboot"; + loader,magic = ; + }; + }; }; acodec: acodec-ana@20030000 {