From patchwork Thu Jul 27 13:17:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yegor Yefremov X-Patchwork-Id: 9866911 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 662B06038C for ; Thu, 27 Jul 2017 13:18:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 58F71287A8 for ; Thu, 27 Jul 2017 13:18:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C5D428831; Thu, 27 Jul 2017 13:18:18 +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 E4F47287A8 for ; Thu, 27 Jul 2017 13:18:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751524AbdG0NSQ (ORCPT ); Thu, 27 Jul 2017 09:18:16 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33517 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751509AbdG0NSN (ORCPT ); Thu, 27 Jul 2017 09:18:13 -0400 Received: by mail-wm0-f68.google.com with SMTP id q189so12556278wmd.0; Thu, 27 Jul 2017 06:18:13 -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=os7TqRrxUoGXmXPZ5TLgCMYzOC0tRWCECoLn7kgzYRc=; b=sWMOMBsEXPvqzSr+W/7hOGANVBn8n8FdAvAR1c0Sqtm7YH74DVJMLE5Pgzehe+HX9C bJUEOdTI9aVT4WhSqf7b4csPssNLra9gMIP/p89vAq/CroYnFjV1IF80VrxXieeUre2X WjEn1liFhtqx6j3QMOJOoIz7kzNhbnoQqVwhVOWlxC4OL9A0Fp0pSVHsRTe/kt84Scij /pEosSLICUeGWOm7t/aQ9eyTRJj7TQefpQMDxnlZPv95Ai+ta1MlZWo7dULUXC/bwP5C 2Wlz/Ux/dJE8cY4KXI2K1G9Dsg8CNLyIWS+ihrSyww13XhT8u2qWinatFTu5lynnHIc/ by8g== 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=os7TqRrxUoGXmXPZ5TLgCMYzOC0tRWCECoLn7kgzYRc=; b=s6wLowfW9+aFDIO3DtOUFSAM0VfTan65NRVi3UzNAJSqG/IfWoGjL6ljJKJPRV3XQ2 XeUctE2DuBNg7VFajwarOjT2K/6sb00b6gWemLlmRpiHOV5ZsvnmS33mk6oXRIW6WIJ0 JnyLPmnvZyNFbONuGDLgY9O8+AXfpGNKpINKt30j68aDZxj/pPCXSJ340moav11+fj4b xgSsts6RYHOiDMHAlS0qay0nqg9xq0qCv5m+8MbowSWk0yH5CF1KXStbWfPQl6okva+G Iq+OpYws+heMXTCX51qsRM3j4GHMxzvDjaWVeVF+i05FX7nzp5zYA5HPRFk5/f7lg4MY ywDw== X-Gm-Message-State: AIVw113FTETxEcjlIjFqUUyws/glM5kI7XLsUDBbn9BzudQGiiq2FdZN CrwDCLS+ZPLCapKG0fE= X-Received: by 10.80.144.105 with SMTP id z38mr3530191edz.143.1501161492222; Thu, 27 Jul 2017 06:18:12 -0700 (PDT) Received: from development1.visionsystems.de (mail.visionsystems.de. [213.209.99.202]) by smtp.gmail.com with ESMTPSA id l4sm11310036edb.35.2017.07.27.06.18.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Jul 2017 06:18:11 -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, Yegor Yefremov Subject: [PATCH 3/3] tty/serial/8250: add DT bindings description for mctrl_gpio helpers Date: Thu, 27 Jul 2017 15:17:36 +0200 Message-Id: <1501161456-13367-4-git-send-email-yegorslists@googlemail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1501161456-13367-1-git-send-email-yegorslists@googlemail.com> References: <1501161456-13367-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. Cc: Andy Shevchenko 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>; + };