From patchwork Fri Aug 1 02:45:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Feng Kan X-Patchwork-Id: 4660121 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 657C6C033A for ; Fri, 1 Aug 2014 02:47:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A21EC2015E for ; Fri, 1 Aug 2014 02:47:17 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D0141201B9 for ; Fri, 1 Aug 2014 02:47:16 +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 1XD2qd-0006CZ-BE; Fri, 01 Aug 2014 02:45:35 +0000 Received: from exprod5og117.obsmtp.com ([64.18.0.149]) by bombadil.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XD2qQ-0005U7-SE for linux-arm-kernel@lists.infradead.org; Fri, 01 Aug 2014 02:45:23 +0000 Received: from mail-pd0-f180.google.com ([209.85.192.180]) (using TLSv1) by exprod5ob117.postini.com ([64.18.4.12]) with SMTP ID DSNKU9r/L8CbC52PI63Xnhk/gw5r5Wp81bXM@postini.com; Thu, 31 Jul 2014 19:45:22 PDT Received: by mail-pd0-f180.google.com with SMTP id y13so4575196pdi.39 for ; Thu, 31 Jul 2014 19:45:03 -0700 (PDT) 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=fgDEOST6wYj4TyZYtW8KrTI633htItuAiFhvOsX13wg=; b=jvsiiqh9+m7F7eTStaj/FSqcXsTvhiLa/wGvwI6uxY3DpRZJVUoendqCrvlZ0IQxl8 NIEk2Kpk3OgmwWUMDl9z3S7bDFhEv4V2dAAM+lxCy0rtKAlYEzlJDuT8mcRzGciZyv6V 6LZY8xTlcFD/+U4zWloe4dfB59zSAc3mZFvNpSAVUKSq3JWQHfnq+5RcIL+kEC19IAlJ zzoqfimIcCJwihPkpYyb0pGG5Kc6HkhTGDmR0iIyq5fyfqsZIhwhVzGeBtjuDj0sowDu /FIJSgkfTWVjXpFCz/F/m8a7NB4Wi/ZZ2hRb5e0zptQrpAki2FyUfO+1nIOfwTowexBI N7vA== X-Gm-Message-State: ALoCoQkOt2u+fvcHqLh7u88ugam+v974S739rHUqLdsM62d7X/tYosXqQHaRTpsAh23yo0Qi+aYMg2rGMHS+prUUfftfWTB6mOVuDdTNppoNEQAvMmf9lBe+/Esnoe4FRPbdbt5IITGwxVkzTUeCTyubudHWFDjktw== X-Received: by 10.66.124.199 with SMTP id mk7mr2446800pab.89.1406861103240; Thu, 31 Jul 2014 19:45:03 -0700 (PDT) X-Received: by 10.66.124.199 with SMTP id mk7mr2446774pab.89.1406861103070; Thu, 31 Jul 2014 19:45:03 -0700 (PDT) Received: from fkan-lpt.amcc.com (63-147-59-2.dia.static.qwest.net. [63.147.59.2]) by mx.google.com with ESMTPSA id mt1sm6962352pbb.31.2014.07.31.19.45.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 31 Jul 2014 19:45:02 -0700 (PDT) From: Feng Kan To: linux@roeck-us.net, dbaryshkov@gmail.com, catalin.marinas@arm.com, dwmw2@infradead.org, arnd@arndb.de, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, patches@apm.com Subject: [PATCH V9 2/6] Documentation: power: reset: Add documentation for generic SYSCON reboot driver Date: Thu, 31 Jul 2014 19:45:53 -0700 Message-Id: <1406861157-29169-3-git-send-email-fkan@apm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406861157-29169-1-git-send-email-fkan@apm.com> References: <1406861157-29169-1-git-send-email-fkan@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140731_194522_951689_6D7B2BC3 X-CRM114-Status: GOOD ( 11.29 ) X-Spam-Score: -2.3 (--) Cc: Feng Kan X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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=-2.6 required=5.0 tests=BAYES_00,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 documentation for generic SYSCON reboot driver. Signed-off-by: Feng Kan --- .../bindings/power/reset/syscon-reboot.txt | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/syscon-reboot.txt diff --git a/Documentation/devicetree/bindings/power/reset/syscon-reboot.txt b/Documentation/devicetree/bindings/power/reset/syscon-reboot.txt new file mode 100644 index 0000000..1190631 --- /dev/null +++ b/Documentation/devicetree/bindings/power/reset/syscon-reboot.txt @@ -0,0 +1,23 @@ +Generic SYSCON mapped register reset driver + +This is a generic reset driver using syscon to map the reset register. +The reset is generally performed with a write to the reset register +defined by the register map pointed by syscon reference plus the offset +with the mask defined in the reboot node. + +Required properties: +- compatible: should contain "syscon-reboot" +- regmap: this is phandle to the register map node +- offset: offset in the register map for the reboot register (in bytes) +- mask: the reset value written to the reboot register (32 bit access) + +Default will be little endian mode, 32 bit access only. + +Examples: + + reboot { + compatible = "syscon-reboot"; + regmap = <®mapnode>; + offset = <0x0>; + mask = <0x1>; + };