From patchwork Fri May 22 21:03:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Coquelin X-Patchwork-Id: 6467921 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 45BE7C0020 for ; Fri, 22 May 2015 21:07:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6F2C720528 for ; Fri, 22 May 2015 21:07:16 +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 5B79F2052D for ; Fri, 22 May 2015 21:07:15 +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 1Yvu7o-000405-SN; Fri, 22 May 2015 21:05:00 +0000 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yvu7C-0003ou-Sr for linux-arm-kernel@lists.infradead.org; Fri, 22 May 2015 21:04:23 +0000 Received: by wghq2 with SMTP id q2so28253049wgh.1 for ; Fri, 22 May 2015 14:04:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Jxp6UkxAFntQnfjCCfUoP3T7OdRn4/UIQHba2/Q5GU4=; b=Bi/ZUftPs4+l5Nri8OhcGvoA5yXlHVf+u4IkqqoCXevmepmbN9SLr1ZyLFRlPg7o2p QdEGA3JsVWhlm0k5Ab/mpZ/oFJzG8pnStMAEI9y6H4Xf55FL5SXl72D2TU4+23cj57Q9 vUfplErT2GPp+78NsNTX1eMfnMWmsw4cmAzT6xFocktlL7QzQ9aopxY1DPjafNkglJIC PkhH8sUVVWQOgJO+FZlPZ3JbCdKD8a+XneS1nS4YI80v+M13qJJrWJCEUvKNnjJPjQib EEouqr9Hzx/HuC4UszrpZhRYjqA8hcUZCuAf9a/F2n3uv/J5pXfvtC3nPM4/IXSVywH+ YSww== X-Received: by 10.180.212.81 with SMTP id ni17mr10977484wic.87.1432328640669; Fri, 22 May 2015 14:04:00 -0700 (PDT) Received: from lmecul0520.st.com. (224.72.140.88.rev.sfr.net. [88.140.72.224]) by mx.google.com with ESMTPSA id bh7sm4857915wjb.8.2015.05.22.14.03.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 May 2015 14:03:59 -0700 (PDT) From: Maxime Coquelin To: Arnd Bergmann , Greg Kroah-Hartman , Daniel Lezcano , Daniel Thompson , Kamil Lulko , u.kleine-koenig@pengutronix.de, afaerber@suse.de, geert@linux-m68k.org Subject: [PATCH v9 3/5] dt-bindings: Document the STM32 USART bindings Date: Fri, 22 May 2015 23:03:34 +0200 Message-Id: <1432328616-16964-4-git-send-email-mcoquelin.stm32@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432328616-16964-1-git-send-email-mcoquelin.stm32@gmail.com> References: <1432328616-16964-1-git-send-email-mcoquelin.stm32@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150522_140423_121242_10A2EFF5 X-CRM114-Status: UNSURE ( 8.31 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.6 (/) Cc: Mark Rutland , devicetree@vger.kernel.org, Russell King , linux-serial@vger.kernel.org, Pawel Moll , Ian Campbell , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Maxime Coquelin , Kumar Gala , Thomas Gleixner , Jiri Slaby , linux-arm-kernel@lists.infradead.org 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=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_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 This adds documentation of device tree bindings for the STM32 USART Tested-by: Chanwoo Choi Signed-off-by: Maxime Coquelin --- .../devicetree/bindings/serial/st,stm32-usart.txt | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/st,stm32-usart.txt diff --git a/Documentation/devicetree/bindings/serial/st,stm32-usart.txt b/Documentation/devicetree/bindings/serial/st,stm32-usart.txt new file mode 100644 index 0000000..8480a76 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/st,stm32-usart.txt @@ -0,0 +1,32 @@ +* STMicroelectronics STM32 USART + +Required properties: +- compatible: Can be either "st,stm32-usart" or "st,stm32-uart" depending on +whether the device supports synchronous mode. +- reg: The address and length of the peripheral registers space +- interrupts: The interrupt line of the USART instance +- clocks: The input clock of the USART instance + +Optional properties: +- pinctrl: The reference on the pins configuration +- auto-flow-control: bool flag to enable hardware flow control. + +Examples: +usart4: serial@40004c00 { + compatible = "st,stm32-uart"; + reg = <0x40004c00 0x400>; + interrupts = <52>; + clocks = <&clk_pclk1>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usart4>; +}; + +usart2: serial@40004400 { + compatible = "st,stm32-usart", "st,stm32-uart"; + reg = <0x40004400 0x400>; + interrupts = <38>; + clocks = <&clk_pclk1>; + auto-flow-control; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usart2 &pinctrl_usart2_rtscts>; +};