From patchwork Tue Sep 30 23:25:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Feng Kan X-Patchwork-Id: 5008791 Return-Path: X-Original-To: patchwork-linux-pm@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 D8D14BEEA6 for ; Tue, 30 Sep 2014 23:26:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 29032201C7 for ; Tue, 30 Sep 2014 23:26:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4001D2016C for ; Tue, 30 Sep 2014 23:26:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751982AbaI3X0h (ORCPT ); Tue, 30 Sep 2014 19:26:37 -0400 Received: from exprod5og119.obsmtp.com ([64.18.0.189]:35790 "HELO exprod5og119.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751520AbaI3XZW (ORCPT ); Tue, 30 Sep 2014 19:25:22 -0400 Received: from mail-pd0-f174.google.com ([209.85.192.174]) (using TLSv1) by exprod5ob119.postini.com ([64.18.4.12]) with SMTP ID DSNKVCs74Rg3zSFqinH3oa1/0xsb64rwthJV@postini.com; Tue, 30 Sep 2014 16:25:21 PDT Received: by mail-pd0-f174.google.com with SMTP id y13so3693755pdi.33 for ; Tue, 30 Sep 2014 16:25:21 -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=HctGqezp/yjxfQQ6iyTq8IwdDP1azZBvkCbsyEHcKaiy1IIKDBtu++ZI9HXid7ifpE Vvwh2CaaaUN/QcV1egUohe9YZNDzvriAaYg/v+wfKZuQfOdhwrtdx1YbD4vBxehUZhrh xObrpp2IPNmoa2riHEhuoVxXrUwGp+wTm83OtB8eOV89+oo8ODRy9WAhGI0Xbrv6DcWZ JRlnzXAWLMDB7OyBq1Glrmru+M564accjgtc0jayTcOOngTOyxVEzoSpbslxZdyR4pCi fdOqCfxulzpMzQS+qHpmFHUZF7X6I/imOEfjAhndQnzivHn3maMyDOPuVG+TkhdmXkbC f0KQ== X-Gm-Message-State: ALoCoQknvcloim953cmCFz5Wefw0IEeuQ2eZ1houELLue2RWFIamb8b6VzsRzOWL5F9vNGPUZR+tN8Ib+VMa8YHEhBEiHMfDyAGGr3oo6owZxT8ms0PuqvWc24dJOPL/lGYaLN0oXyMC2seIWHBayczFQm3UPxh+Mw== X-Received: by 10.66.254.195 with SMTP id ak3mr71727487pad.142.1412119521102; Tue, 30 Sep 2014 16:25:21 -0700 (PDT) X-Received: by 10.66.254.195 with SMTP id ak3mr71727474pad.142.1412119521049; Tue, 30 Sep 2014 16:25:21 -0700 (PDT) Received: from fkan-lpt.amcc.com (67-207-112-226.static.wiline.com. [67.207.112.226]) by mx.google.com with ESMTPSA id qr1sm5876931pbc.50.2014.09.30.16.25.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Sep 2014 16:25:20 -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, linux-pm@vger.kernel.org, will.deacon@arm.com Cc: Feng Kan Subject: [PATCH RESEND V9 2/6] Documentation: power: reset: Add documentation for generic SYSCON reboot driver Date: Tue, 30 Sep 2014 16:25:04 -0700 Message-Id: <1412119508-22864-3-git-send-email-fkan@apm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1412119508-22864-1-git-send-email-fkan@apm.com> References: <1412119508-22864-1-git-send-email-fkan@apm.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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>; + };