From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29061C2BB55 for ; Thu, 16 Apr 2020 17:58:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E0142206B9 for ; Thu, 16 Apr 2020 17:58:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="aasFTJpd"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="WCpJo544" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E0142206B9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=mWr5PIdRaF6WBYPdpgxuXQf70qT220Ok9Oi/6PXB4s0=; b=aasFTJpdvE9EL8LPPB37+2In94 Kxj+ygtIWMfNe/RgXdBt+2pueGQkbaVEpnhMLaTtD4VWivjLSZmY2MpwLqvHy+3xq4eByienoH2bN oJ7Hu4h53S+TDWCOzAdWP1Dyxk2o69miDqu2H6accRkVvL1L6e/OAWSRVufGqMwU5is1ny8wNZtr+ 8cOM1CuJeDo7xM5mKJcgPk8dDLTwzlnDJWZvXWeP6NOF96u5QGzUMVa5YHO7mJv0Z1AJfGW5aC1IC tyFijQMZNdtcA20HR1CJpuHWkXeQ+BpP8PmsXdCr81mlrkBi80ywGSxFpFDWyL+ea7fak2byngBcL wT20CJVw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jP8mp-00081X-MR; Thu, 16 Apr 2020 17:58:51 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jP8mX-0007lM-S0 for linux-arm-kernel@lists.infradead.org; Thu, 16 Apr 2020 17:58:35 +0000 Received: from localhost.localdomain (unknown [157.50.106.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4A4C2214D8; Thu, 16 Apr 2020 17:58:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587059913; bh=WpEz49SfyHEbNX8XVWDnw0lssfu54pD/0ZJsvLWyqQQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WCpJo544f+JxU3eTKt7gZCYP3aQRE+XUCBj8l0oLUDB/Kagzuh8YBWD+Jos/skOt2 mgOIaRYi4a+dutgnrRcAqykYqMLGH8E3mL9AL8jDfg/PMR8WgNPYCX3ra0NLM2fMbP uAkQrZJvEvthLwQgYou4ZCG8e/l0lxFjQyf01acY= From: mani@kernel.org To: gregkh@linuxfoundation.org, robh+dt@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com Subject: [PATCH v2 2/2] dt-bindings: serial: Document CTS/RTS gpios in STM32 UART Date: Thu, 16 Apr 2020 23:27:29 +0530 Message-Id: <20200416175729.5550-3-mani@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200416175729.5550-1-mani@kernel.org> References: <20200416175729.5550-1-mani@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200416_105833_937178_CA5EF066 X-CRM114-Status: UNSURE ( 8.57 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Manivannan Sadhasivam , linux-kernel@vger.kernel.org, andy.shevchenko@gmail.com, linux-serial@vger.kernel.org, fabrice.gasnier@st.com, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Manivannan Sadhasivam Document the use of CTS/RTS gpios for flow control in STM32 UART controller. These properties can be used instead of 'st,hw-flow-ctrl' for making use of any gpio pins for flow control instead of dedicated pins. It should be noted that both CTS/RTS and 'st,hw-flow-ctrl' properties cannot co-exist in a design. Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/serial/st,stm32-uart.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml index 238c44192d31..75b8521eb7cb 100644 --- a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml +++ b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml @@ -48,6 +48,12 @@ properties: minItems: 1 maxItems: 2 + cts-gpios: + maxItems: 1 + + rts-gpios: + maxItems: 1 + wakeup-source: true rs485-rts-delay: true @@ -55,6 +61,14 @@ properties: linux,rs485-enabled-at-boot-time: true rs485-rx-during-tx: true +if: + required: + - st,hw-flow-ctrl +then: + properties: + cts-gpios: false + rts-gpios: false + required: - compatible - reg -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel