From patchwork Mon Jul 31 07:13:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yegor Yefremov X-Patchwork-Id: 9871121 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3FAAF6037D for ; Mon, 31 Jul 2017 07:13:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 322AD28563 for ; Mon, 31 Jul 2017 07:13:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2711B285AA; Mon, 31 Jul 2017 07:13:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C07CF28563 for ; Mon, 31 Jul 2017 07:13:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751037AbdGaHNw (ORCPT ); Mon, 31 Jul 2017 03:13:52 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33835 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750979AbdGaHNv (ORCPT ); Mon, 31 Jul 2017 03:13:51 -0400 Received: by mail-wm0-f67.google.com with SMTP id x64so10109264wmg.1; Mon, 31 Jul 2017 00:13:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=e0s3w1KuD31toRW/vr12blfYb6Hxofdfh0irS4KrBjA=; b=jU5yN3OnFSUqmdyZnHL7WZZHwhoN8JenJZboVdWoXgtX2cvuyvTSqgbSwJgB5cnr7l +iwnrlMv7gcwi7IYC32U4S4cKkp6pUmvP+Vt7p7vDJwq2Z3rZELcBgHa/kFv/JRi+i13 CEa4BllXaxD3+yVVs/V3iECP3cSq0RZnTLqluBTJ4jmsecLHAJgGTg1wJtNhygDvk0pN qzAJgr77bZZM2KLpzonznV/eCLRl8fsM/8Tw2gG9oP2L/wZMhloRSe+P2o63LduhB0G3 P53f3GW8Ggzo4aEW7hIKM+VEpZ7exgaGKWdmAxss6MMQkqHO01wjAMnoMOlmo2KbeWEn ClWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=e0s3w1KuD31toRW/vr12blfYb6Hxofdfh0irS4KrBjA=; b=kKDFV2jKd2dbbZkPO9n+g1iQR4TPtsjDAqmPM7MqunAWcMDxnHYwgU/SiO9priVsck XvqVefMt5wOBkdRZJJS9LUNSSRO2izsVETRId7wzsyhiEXG4i0TNNxCk0WCJeQEV6l3p ndGG/Y6Q115N4i2cEO0YIqAh0aYE3MEIahOe9eKLnzOta+76aQq9ILjCkDI5UjqhZczl iUW2Z+jov7dt3gItDsWMJVJYsMQiFpZV4ER9Gge7UeAuSx4s82lgnmuTQ1TrT1GUP1kp X0tulOYkrqou2NwVRHvYn5tT/taeM+4d1nN8FRXzszMpNPms/s90OnGCeMy/CXfyzvGj tx5A== X-Gm-Message-State: AIVw111pLY7V6ZK5A9lUFPVc4tjvhqYTfOP1mFp+BsRGtFrxEywFBCNo 9PzNuMgrKhyqPEo2qWA= X-Received: by 10.80.144.105 with SMTP id z38mr12984569edz.143.1501485229258; Mon, 31 Jul 2017 00:13:49 -0700 (PDT) Received: from development1.visionsystems.de (mail.visionsystems.de. [213.209.99.202]) by smtp.gmail.com with ESMTPSA id k1sm4766621eda.35.2017.07.31.00.13.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 31 Jul 2017 00:13:48 -0700 (PDT) From: yegorslists@googlemail.com To: linux-serial@vger.kernel.org Cc: gregkh@linuxfoundation.org, andriy.shevchenko@linux.intel.com, jslaby@suse.com, tony@atomide.com, robh@kernel.org, mika.westerberg@linux.intel.com, uwe@kleine-koenig.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, julia.lawall@lip6.fr, peter@hurleysoftware.com, Yegor Yefremov Subject: [PATCH v2 3/3] tty/serial/8250: add DT bindings description for mctrl_gpio helpers Date: Mon, 31 Jul 2017 09:13:23 +0200 Message-Id: <1501485203-13185-4-git-send-email-yegorslists@googlemail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1501485203-13185-1-git-send-email-yegorslists@googlemail.com> References: <1501485203-13185-1-git-send-email-yegorslists@googlemail.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Yegor Yefremov Describe {rts,cts,dtr,dsr,rng,dcd}-gpios usage. Signed-off-by: Yegor Yefremov --- Documentation/devicetree/bindings/serial/8250.txt | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/8250.txt b/Documentation/devicetree/bindings/serial/8250.txt index 419ff6c..1c09db2 100644 --- a/Documentation/devicetree/bindings/serial/8250.txt +++ b/Documentation/devicetree/bindings/serial/8250.txt @@ -48,6 +48,16 @@ Optional properties: - tx-threshold: Specify the TX FIFO low water indication for parts with programmable TX FIFO thresholds. - resets : phandle + reset specifier pairs +- rts-gpios: +- cts-gpios: +- dtr-gpios: +- dsr-gpios: +- rng-gpios: +- dcd-gpios: specify a GPIO for RTS/CTS/DTR/DSR/RI/DCD + line respectively. It will use specified GPIO instead of the peripheral + function pin for the UART feature. If unsure, don't specify this property. + If "wakeup-source" property is specified for the device this GPIO + initialization will be aborted. Note: * fsl,ns16550: @@ -69,3 +79,19 @@ Example: interrupts = <10>; reg-shift = <2>; }; + +Example for OMAP UART using GPIO-based modem control signals: + + uart4: serial@49042000 { + compatible = "ti,omap3-uart"; + reg = <0x49042000 0x400>; + interrupts = <80>; + ti,hwmods = "uart4"; + clock-frequency = <48000000>; + cts-gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; + rts-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>; + dtr-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + dsr-gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; + dcd-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + rng-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; + };