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=-4.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=no 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 C6497C352BE for ; Thu, 16 Apr 2020 17:58:26 +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 89B5320786 for ; Thu, 16 Apr 2020 17:58:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="bhpQ592U"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="aNPdJIx5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 89B5320786 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: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:In-Reply-To: References:List-Owner; bh=rowfdw6WnkJwvOH/ieHUfsK29bMeYVoL/wjmzS4MgWw=; b=bhp Q592U4zJi7f8k33/z6XGk0aqHAUNWveXxX7CjAEabepo624s0pPqNUQoioIpIQdd4r0VU6QZ/CXNV zNbBH7VeAJ+pIS+sCDtjPRrS89M07YqJZKV6XUsWNjV0cZkbdm15eFbV+l1O7zl+6OJYvQ9PLS243 8K935TvyyB8llziPQ2tSX3tY2TwwTgnv4QAABUkBYlPamIxzdkGDuZngoK4qQw1LkPWPN4sKyIZiR EhPUQ3kYp5p7Zz1o58iGACyiLQqjYElEL4KKMdarUeiwoT9HvgJuPqPiAt5qY0iCmNuzjfIhqUkdA +RqBTVX+bgGouDT7R0MeIs4NFYO1c9g==; 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 1jP8mN-0007To-7v; Thu, 16 Apr 2020 17:58:23 +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 1jP8mK-0007TX-Pb for linux-arm-kernel@lists.infradead.org; Thu, 16 Apr 2020 17:58:22 +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 806A120786; Thu, 16 Apr 2020 17:58:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587059900; bh=uob6JmhQsIuVSxn6LknqVxhOVd73KK6UiP0jt6GPlzk=; h=From:To:Cc:Subject:Date:From; b=aNPdJIx5+vDQui9jyo5c0PQmu3LjohwVttopU8ZmKeKBHx8mi2M+Edq5DRSaNbXm5 n5/4lsaW/h65mCndQWun1ybG2cdAe33Ryq18d5sNBIei7V6QbUDHrj6dod5utxYXLQ O9BSXR/p24p2y4RGMqv9laLGn3wUa0rlNVPbcNVw= From: mani@kernel.org To: gregkh@linuxfoundation.org, robh+dt@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com Subject: [PATCH v2 0/2] Add CTS/RTS gpio support to STM32 UART Date: Thu, 16 Apr 2020 23:27:27 +0530 Message-Id: <20200416175729.5550-1-mani@kernel.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200416_105820_850511_24B6DC68 X-CRM114-Status: UNSURE ( 9.86 ) 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 Hello, This patchset adds CTS/RTS gpio support to STM32 UART controller. Eventhough the UART controller supports using dedicated CTS/RTS gpios, sometimes we need to use different set of gpios for flow control. This is necessary for the upcoming STM32MP1 based board called Stinger96 IoT-Box. On that board, a bluetooth chip is connected to one of the UART controller but the CTS/RTS lines got swapped mistakenly. So this patchset serves as a workaround for that hardware bug and also supports the usecase of using any gpio for CTS/RTS functionality. As per the sugggestion provided by Andy for v1, I've now switched to mctrl_gpio driver. This patchset has been validated with Stinger96 IoT-Box connected to Murata WiFi-BT combo chip. Thanks, Mani Changes in v2: As per the review by Andy: * Switched to mctrl_gpio driver instead of using custom CTS/RTS implementation * Removed the use of software flow control terminology. Manivannan Sadhasivam (2): tty: serial: Add modem control gpio support for STM32 UART dt-bindings: serial: Document CTS/RTS gpios in STM32 UART .../bindings/serial/st,stm32-uart.yaml | 14 ++++++ drivers/tty/serial/Kconfig | 1 + drivers/tty/serial/stm32-usart.c | 43 ++++++++++++++++++- drivers/tty/serial/stm32-usart.h | 1 + 4 files changed, 58 insertions(+), 1 deletion(-) -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel