From patchwork Thu Jan 14 02:55:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 8029261 Return-Path: X-Original-To: patchwork-linux-rockchip@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 196889F2F4 for ; Thu, 14 Jan 2016 02:55:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4120C20458 for ; Thu, 14 Jan 2016 02:55:54 +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 A794D204A0 for ; Thu, 14 Jan 2016 02:55:52 +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 1aJY4k-00009B-R1; Thu, 14 Jan 2016 02:55:50 +0000 Received: from mail-pf0-f194.google.com ([209.85.192.194]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aJY4i-00008C-Me; Thu, 14 Jan 2016 02:55:49 +0000 Received: by mail-pf0-f194.google.com with SMTP id 65so6810179pff.2; Wed, 13 Jan 2016 18:55:27 -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=2KUuXJbeiFRsDQnXpIX74MW5QUTLMw3AdkO4Fry5ANg=; b=d65PQ69P09gmuoQx5peRk3ClcuFrIJNva+HFL9SMYAtfq313bpV7YQNwHHT8mXDp9p JHc5wjUL2DYTjtU9Q3Y70V9cC//L+CKzLk0Lr1r9JPG+cNgC8rdJmGsJhGRv6pWYAvHR nrdbLfT2RsJSknZnzZdfTSjYdBQWKZnTdDdI6TFvK/MvkOHp255gqwReK4MAwsIYWlFx DWI5dO+pRT7joaS2BJeFv6O+r6AK8FIGdl+kKAbtk98pvs+5fImHAg2L7ZyvrOIxUTxS 8DjFV6ByIHfwK+UFOz83/HkhyELDVaDDbjdqsI2DHPlzzArvkhLZ9qGCs07uAtFo7rna o48g== X-Gm-Message-State: ALoCoQmz7hcEpQDWfvloC3D0vKNl6JMzwmQqdWSEd+GajcvPhhDqDXEqqChAYtb8EY/s/d4dHM0GXulfbbOvjIDIi3qU+hYi+A== X-Received: by 10.98.17.79 with SMTP id z76mr2448310pfi.16.1452740126748; Wed, 13 Jan 2016 18:55:26 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id y26sm5401118pfi.88.2016.01.13.18.55.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Jan 2016 18:55:25 -0800 (PST) From: Caesar Wang To: heiko@sntech.de Subject: [PATCH v2] ARM: dts: rockchip: add reboot-mode node for rk3036 SoCs Date: Thu, 14 Jan 2016 10:55:24 +0800 Message-Id: <1452740124-32558-1-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-20160113_185548_783650_03BDB5EE X-CRM114-Status: UNSURE ( 9.51 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.4 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Caesar Wang MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=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 | 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 ccc69ab..74e3bc1 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,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 {