From patchwork Fri Feb 20 18:01:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Coquelin X-Patchwork-Id: 442094 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 38D3E140161 for ; Sat, 21 Feb 2015 05:07:14 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932381AbbBTSGy (ORCPT ); Fri, 20 Feb 2015 13:06:54 -0500 Received: from mail-wi0-f196.google.com ([209.85.212.196]:52535 "EHLO mail-wi0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752301AbbBTSBr (ORCPT ); Fri, 20 Feb 2015 13:01:47 -0500 Received: by mail-wi0-f196.google.com with SMTP id em10so1757640wid.3; Fri, 20 Feb 2015 10:01:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=EpzJ/FWYB5GM18tNaOeHc7nt+mk/X8+6VyBYqRosSh0=; b=PqTwEhkMscei4U6zRuPT66kN49rs5Kjujw8IQ+9ifqyMJJJCx0Pf0Kj9Bf1t/KBiOQ 10ptLHSBB1Vt0tfAktX1Vqc2vNCG196heANISylSTiF9j8GyNOZscbFRKsTwNoC3OQk6 sRx6wdhE3Rm5SzT2gnvPFeX9Ky5PsmMGTKyH2XkImcHehUfRV0TCK80Rrr7OVjDDm+OT XLoV/uDI0imtO64Ze08VD4EaRp1HheQS3tgrkGtVrMCaHtnzTIBe/FDh0hW+UsSGEAye eWEivjAvHdALNsUGZWRAth+XC8tw5rvmIG32DDPAsBciYwD9ShvMm2CQVyk/a+s+fGL8 LFuQ== X-Received: by 10.180.74.39 with SMTP id q7mr26283541wiv.73.1424455305896; Fri, 20 Feb 2015 10:01:45 -0800 (PST) Received: from lmecul0520.st.com. (169.20.90.92.rev.sfr.net. [92.90.20.169]) by mx.google.com with ESMTPSA id hs7sm3398370wib.4.2015.02.20.10.01.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Feb 2015 10:01:45 -0800 (PST) From: Maxime Coquelin To: u.kleine-koenig@pengutronix.de, afaerber@suse.de, geert@linux-m68k.org, Rob Herring , Philipp Zabel , Jonathan Corbet , Maxime Coquelin , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Daniel Lezcano , Thomas Gleixner , Linus Walleij , Greg Kroah-Hartman , Jiri Slaby , Arnd Bergmann , Andrew Morton , "David S. Miller" , Mauro Carvalho Chehab , Joe Perches , Antti Palosaari , Tejun Heo , Will Deacon , Nikolay Borisov , Rusty Russell , Kees Cook , Michal Marek , linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org Subject: [PATCH v2 06/18] dt-bindings: Document the STM32 reset bindings Date: Fri, 20 Feb 2015 19:01:05 +0100 Message-Id: <1424455277-29983-7-git-send-email-mcoquelin.stm32@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424455277-29983-1-git-send-email-mcoquelin.stm32@gmail.com> References: <1424455277-29983-1-git-send-email-mcoquelin.stm32@gmail.com> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This adds documentation of device tree bindings for the STM32 reset controller. Signed-off-by: Maxime Coquelin Signed-off-by: Maxime Coquelin --- .../devicetree/bindings/reset/st,stm32-reset.txt | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/st,stm32-reset.txt diff --git a/Documentation/devicetree/bindings/reset/st,stm32-reset.txt b/Documentation/devicetree/bindings/reset/st,stm32-reset.txt new file mode 100644 index 0000000..5982528 --- /dev/null +++ b/Documentation/devicetree/bindings/reset/st,stm32-reset.txt @@ -0,0 +1,36 @@ +STMicroelectronics STM32 Peripheral Reset Controller +==================================================== + +Please also refer to reset.txt in this directory for common reset +controller binding usage. + +Required properties: +- compatible: Should be "st,stm32-reset" +- reg: should be register base and length as documented in the + datasheet +- #reset-cells: 1, see below + +example: + +reset_ahb1: reset@40023810 { + #reset-cells = <1>; + compatible = "st,stm32-reset"; + reg = <0x40023810 0x4>; +}; + +Specifying softreset control of devices +======================================= + +Device nodes should specify the reset channel required in their "resets" +property, containing a phandle to the reset device node and an index specifying +which channel to use, as described in reset.txt + +example: + + timer2 { + resets = <&resets TIM2_RESET>; + }; + +Macro definitions for the supported reset channels can be found in: + +include/dt-bindings/reset/st,stm32f429.h