From patchwork Wed Jan 13 02:08:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 8021591 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D5174BEEE5 for ; Wed, 13 Jan 2016 02:11:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1D4EB20411 for ; Wed, 13 Jan 2016 02:11:21 +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 50BA8203E1 for ; Wed, 13 Jan 2016 02:11:20 +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 1aJAsx-0002io-D0; Wed, 13 Jan 2016 02:10:07 +0000 Received: from mail-pa0-f48.google.com ([209.85.220.48]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aJAsj-0001qB-36; Wed, 13 Jan 2016 02:09:54 +0000 Received: by mail-pa0-f48.google.com with SMTP id ho8so88615253pac.2; Tue, 12 Jan 2016 18:09:32 -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=cBp4UPuHlTz97BI15AW6jFqPQGZ/ktP5uzOzZjq4oDM=; b=SCz8TMxI+jXdAKFiMKisgUfVeL7GvFO+ItnzocIblNfVB3mQBE8rfIXAsizq9ktQI7 /FQxZYRsU3KmOdx1gEqw6jrLphPyBhPJCfXJY1Gnl8A7SS39D7loFbrUDEK+a1zamQeR 3WbdaMIqy1hu9bOVcEM4GGFvlrX6l24GCx1a6rbt0ArXL2nqz/BRce8M+kM2ixsolNds MxGsxfFCxgTSNki2WHcVyhI5OBxr6qHu1wFffgr0c4O0u/J7hj2UCaP/nNEDZzXx9s8o BR6UOUgJbGjQkBg2ipeXuBkEReJNgOaua7sx7RtiSLMzpI4GVo0+0LLgSkzdbAzKg5Z2 jUyA== X-Gm-Message-State: ALoCoQm94wUjBy+bkSiliKSYooQb36UCM7vMCjxmlB7Oj6amL1cGf7kxN4gHjDZeeUigi+LrTCZ2Q5oba3SUie43UQhFAZGDCA== X-Received: by 10.66.232.74 with SMTP id tm10mr139014746pac.128.1452650971722; Tue, 12 Jan 2016 18:09:31 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id 17sm33159518pfq.51.2016.01.12.18.09.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Jan 2016 18:09:30 -0800 (PST) From: Caesar Wang To: Heiko Stuebner Subject: [PATCH] ARM: dts: rockchip: add reboot-mode node for rk3036 SoCs Date: Wed, 13 Jan 2016 10:08:50 +0800 Message-Id: <1452650930-22883-2-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1452650930-22883-1-git-send-email-wxt@rock-chips.com> References: <1452650930-22883-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160112_180953_451775_1EB0E808 X-CRM114-Status: UNSURE ( 9.91 ) 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-rockchip@lists.infradead.org, Caesar Wang , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.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-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. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3036.dtsi | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/rk3036.dtsi b/arch/arm/boot/dts/rk3036.dtsi index ccc69ab..2e583f5 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" / { @@ -307,8 +308,38 @@ }; 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 = ; + }; + + maskrom { + linux,mode = "maskrom"; + loader,magic = ; + }; + + recovery { + linux,mode = "recovery"; + loader,magic = ; + }; + + fastboot { + linux,mode = "fastboot"; + loader,magic = ; + }; + }; }; acodec: acodec-ana@20030000 {