From patchwork Tue Jun 6 15:38:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Harvey X-Patchwork-Id: 103967 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3507620vqr; Tue, 6 Jun 2023 09:09:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ49UWDfn83uzF8giQo4yOXUHubAtA2rcXcqhWdSFE26CopXruihTDoQOOyUCtSjvLRBTbJt X-Received: by 2002:a17:902:c949:b0:1b0:5d15:3132 with SMTP id i9-20020a170902c94900b001b05d153132mr3176408pla.58.1686067755735; Tue, 06 Jun 2023 09:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686067755; cv=none; d=google.com; s=arc-20160816; b=HmjHBNmKYMFTCXhHyoVMPJgw0/ciVnqF/zJ35q9Y5Nf05HIFgJ05TgVElgOEGPEo2K hXP/qLoZAW/UxwvNucApCsxRjVt8jkSbnX29g4frIzrVYfkGiQX9hf0zR26oIKYJFGig W5svYexaHlHCbryOWffE5wIOxsTQUbGLJdIh4GYQm3Ckq/xPOcSVI3hWr4x0W1VqRsWJ k+VYSHxhd0A+t7o5wFp/nsiEGlQDc55r+2Q994K+5agsr0oRDdIJeKs9Yx4/aQ/cB8kL CzsL38QffEnFwP9AlTyQBE/e7fBcgcS36UWId57rv0O3TPiztqClH4AAa7aEO7gaLZUT S91A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=HvJwgvfJjfP7DIuZ3q56/mLCO/ekqXgKhjQ23aycuhA=; b=l5lhx/YW1MkQxY2zxhSo9PCvEtXqGl9fA2M1QSXOq3d0urEvvPmOC30jUZyN22T3MW MYCTMKnenheIHsgdszyikRz3dQRzDiorFH75VmtpvG+hyoDOYi8oteL+6x+8uPtnUK5o fvCQfD0YSKNSDJ6TCpVbVbsFgDVfE2mR5DK8mVI3NviXwQHnMwdX+kIck/N+4Pl7cGyP Oyzw24oFG6OYafRU1pXJBhIxiOkdfphGG38TP9UOFNNtpngpFLGL9OdmQxVSIKC81vYm LjyC/39d/cgObDqa/k+wc5UO/y2ds10SA9zOW6dcxwjiJLnb2x7GzFbFRDEYOYLkQfNF ufsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i10-20020a170902eb4a00b001a95929ca08si7374399pli.533.2023.06.06.09.09.02; Tue, 06 Jun 2023 09:09:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237339AbjFFPie (ORCPT + 99 others); Tue, 6 Jun 2023 11:38:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231700AbjFFPic (ORCPT ); Tue, 6 Jun 2023 11:38:32 -0400 Received: from finn.localdomain (finn.gateworks.com [108.161.129.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA089139; Tue, 6 Jun 2023 08:38:30 -0700 (PDT) Received: from 068-189-091-139.biz.spectrum.com ([68.189.91.139] helo=tharvey.pdc.gateworks.com) by finn.localdomain with esmtp (Exim 4.93) (envelope-from ) id 1q6YlJ-0067oT-EH; Tue, 06 Jun 2023 15:38:21 +0000 From: Tim Harvey To: linux-arm-kernel@lists.infradead.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Tim Harvey Subject: [PATCH] arm64: dts: imx8mm-venice-gw7904: enable UART1 hardware flow control Date: Tue, 6 Jun 2023 08:38:19 -0700 Message-Id: <20230606153819.1449257-1-tharvey@gateworks.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767970183266074782?= X-GMAIL-MSGID: =?utf-8?q?1767970183266074782?= On the GW7904 uart1 can use UART3_TX/RX for hardware flow control which was the desired default configuration. Remove uart3 and configure uart1 for hardware flow control. Signed-off-by: Tim Harvey --- .../dts/freescale/imx8mm-venice-gw7904.dts | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7904.dts b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7904.dts index 93088fa1c3b9..c12e3f4f800f 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7904.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7904.dts @@ -636,6 +636,8 @@ &pgc_mipi { &uart1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>; + cts-gpios = <&gpio5 26 GPIO_ACTIVE_LOW>; + rts-gpios = <&gpio5 27 GPIO_ACTIVE_LOW>; status = "okay"; }; @@ -646,13 +648,6 @@ &uart2 { status = "okay"; }; -/* off-board RS232 */ -&uart3 { - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_uart3>; - status = "okay"; -}; - &usbotg1 { dr_mode = "host"; disable-over-current; @@ -814,6 +809,8 @@ pinctrl_uart1: uart1grp { fsl,pins = < MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140 MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140 + MX8MM_IOMUXC_UART3_RXD_GPIO5_IO26 0x140 /* CTS# in */ + MX8MM_IOMUXC_UART3_TXD_GPIO5_IO27 0x140 /* RTS# out */ >; }; @@ -824,13 +821,6 @@ MX8MM_IOMUXC_UART2_TXD_UART2_DCE_TX 0x140 >; }; - pinctrl_uart3: uart3grp { - fsl,pins = < - MX8MM_IOMUXC_UART3_RXD_UART3_DCE_RX 0x140 - MX8MM_IOMUXC_UART3_TXD_UART3_DCE_TX 0x140 - >; - }; - pinctrl_usdhc2: usdhc2grp { fsl,pins = < MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x190