From patchwork Tue Dec 22 09:08:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Yan X-Patchwork-Id: 7902921 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 836AA9F32E for ; Tue, 22 Dec 2015 09:12:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BA17520553 for ; Tue, 22 Dec 2015 09:12:26 +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 CE55820502 for ; Tue, 22 Dec 2015 09:12:25 +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 1aBIyF-00071p-VA; Tue, 22 Dec 2015 09:11:03 +0000 Received: from regular1.263xmail.com ([211.150.99.133]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aBIyA-0006jm-IG; Tue, 22 Dec 2015 09:11:00 +0000 Received: from andy.yan?rock-chips.com (unknown [192.168.167.172]) by regular1.263xmail.com (Postfix) with SMTP id 1FE498547; Tue, 22 Dec 2015 17:10:26 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-ADDR-CHECKED: 0 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.263.net (Postfix) with ESMTP id 0A629454; Tue, 22 Dec 2015 17:10:10 +0800 (CST) X-RL-SENDER: andy.yan@rock-chips.com X-FST-TO: robh+dt@kernel.org X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: andy.yan@rock-chips.com X-UNIQUE-TAG: <175dfebc9a630a99932551aad08f6776> X-ATTACHMENT-NUM: 0 X-SENDER: yxj@rock-chips.com X-DNS-TYPE: 0 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (Postfix) whith ESMTP id 10368HOUJ8R; Tue, 22 Dec 2015 17:10:17 +0800 (CST) From: Andy Yan To: robh+dt@kernel.org, heiko@sntech.de, arnd@arndb.de, john.stultz@linaro.org Subject: [PATCH v1 2/6] dt-bindings: soc: add document for rockchip reboot-mode driver Date: Tue, 22 Dec 2015 17:08:14 +0800 Message-Id: <1450775294-24028-1-git-send-email-andy.yan@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1450774949-23901-1-git-send-email-andy.yan@rock-chips.com> References: <1450774949-23901-1-git-send-email-andy.yan@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151222_011059_720210_CCF479F3 X-CRM114-Status: UNSURE ( 8.02 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) 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: mark.rutland@arm.com, geert+renesas@glider.be, catalin.marinas@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, alexandre.belloni@free-electrons.com, lorenzo.pieralisi@arm.com, linux@arm.linux.org.uk, dbaryshkov@gmail.com, linux-rockchip@lists.infradead.org, joel@jms.id.au, treding@nvidia.com, wxt@rock-chips.com, devicetree@vger.kernel.org, khilman@linaro.org, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, akpm@linux-foundation.org, linux-arm-kernel@lists.infradead.org, moritz.fischer@ettus.com, gregkh@linuxfoundation.org, sjg@chromium.org, sre@kernel.org, galak@codeaurora.org, olof@lixom.net, Andy Yan , jun.nie@linaro.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 device tree binding document for rockchip reboot-mode driver Signed-off-by: Andy Yan --- Changes in v1: None .../bindings/soc/rockchip/rockchip,reboot-mode.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/rockchip/rockchip,reboot-mode.txt diff --git a/Documentation/devicetree/bindings/soc/rockchip/rockchip,reboot-mode.txt b/Documentation/devicetree/bindings/soc/rockchip/rockchip,reboot-mode.txt new file mode 100644 index 0000000..cdb5093 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/rockchip/rockchip,reboot-mode.txt @@ -0,0 +1,39 @@ +Rockchip reboot mode driver + +This driver get reboot mode arguments from userspace +and stores it in special register. Then the bootloader +will read it and take different action according the +argument stored. + +Required properties: +- compatible: should be "rockchip,reboot-mode" +- regmap: this is phandle to the register map node +- offset: offset in the register map for the storage register (in bytes) +The rest of the properties should follow the generic reboot-mode discription +found in ../../misc/reboot-mode.txt + +Examples: + reboot_mode { + compatible = "rockchip,reboot-mode"; + rockchip,regmap = <&pmu>; + offset = <0x40>; + loader { + linux,mode = "loader"; + linux,magic = ; + }; + + maskrom { + linux,mode = "maskrom"; + linux,magic = ; + }; + + recovery { + linux,mode = "recovery"; + linux,magic = ; + }; + + fastboot { + linux,mode = "fastboot"; + linux,magic = ; + }; + };