Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4660221pxj; Wed, 12 May 2021 10:16:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmQO3sx1YBfGAokftc1wc0h5gs1bM995Jld/9Ig+yD5nIofW9nnQXvodyy6TasitBdhbcE X-Received: by 2002:aa7:d90d:: with SMTP id a13mr43602716edr.76.1620839775258; Wed, 12 May 2021 10:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620839775; cv=none; d=google.com; s=arc-20160816; b=ruJA4i6sHbLFY8tuMY35Mza8jJK4DnvCbAphJZb9x438RofJhN1oipdaP3Zp9O2013 8VTaH50c+iyn2gX+AZKEIq2KnEVHcr1xtX4X3EYPZjFAwVFIYyrhOkgTL5SayH2K3pBM nfSIE0xNw5oLj0vBQweM9nRG/v6/uT8IR5LPpYM4akR9tk1cjK5SjpjfWPP535kZo2vT 0FPJydjm4z459RJ9GV+0JdBPT7H8+J/Lk14NcrrMPEaa/sOXHryQx//JVwOL5kvEDA8Z vcOQRtAoIHJVYFVGbO4qReGC55ZVdK+D2gofH59/pXlOqKWkkv6pWv+BsXvKOdF6s4Q4 1X5A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2NBJ9F87l/IehQUyRXZJFr8YLuJ9VlbJ1tmvmqUlVrU=; b=Ye3i3vgGmqcLYXtCZjwJBp8WLc818Bb8aGb7o7VyCxnosOMLqa7hPArmsV0ZPw7C6t 2jG0eA493vpSWeTn67wO28g6hfAcRJ+JRBi4e5nZf46q3BfqVdcRdKO22qB9K3d5Xe9+ U0ujDfIVBgMxIBe4ZhiDP58HmfE3P1BeuXkbNocIRIj3JaSVWSofe1ouATBd08idKHQ4 8j3DInowxz8/qAqo0li/fYfqx6gar9GcX50lGrqKSy8rlp9HT4C+3eQGSQ2XaJCsZ7dD tmswO6vJwHmj2+oQsnelPEHric6Axmxk9AmVlHywvhDXAFgysiyqVC64F5Rv7xSESq74 sXfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ndxUzORP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m21si327794edc.194.2021.05.12.10.15.51; Wed, 12 May 2021 10:16:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ndxUzORP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345595AbhELRLa (ORCPT + 99 others); Wed, 12 May 2021 13:11:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:40540 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232706AbhELP5q (ORCPT ); Wed, 12 May 2021 11:57:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C973861CBE; Wed, 12 May 2021 15:31:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620833498; bh=CjAvIjWk1jV8NSNK0iDJRqUcYH+6FfzMRebFifCkTYU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ndxUzORPUSUw3fqUcCwmKtr0pv+GZ/WOLFaR3lzrVSJhRYs5c1GqiICv+mfEE/DBV oGwhMjl6cUMW4nWDZQCJWnCG5ZJj4uHv1ypxvi7iGVj3D9S2YMGJgWE8rp9MOlDDul qxXiwqO4RUlxGdUfyyhZwANpEy//EuvxJV0wRtwo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Valentin Caron , Alexandre Torgue , Sasha Levin Subject: [PATCH 5.11 172/601] ARM: dts: stm32: fix usart 2 & 3 pinconf to wake up with flow control Date: Wed, 12 May 2021 16:44:09 +0200 Message-Id: <20210512144833.506071268@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144827.811958675@linuxfoundation.org> References: <20210512144827.811958675@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Valentin CARON - foss [ Upstream commit a1429f3d3029b65cd4032f6218d5290911377ce4 ] Modify usart 2 & 3 pins to allow wake up from low power mode while the hardware flow control is activated. UART RTS pin need to stay configure in idle mode to receive characters in order to wake up. Fixes: 842ed898a757 ("ARM: dts: stm32: add usart2, usart3 and uart7 pins in stm32mp15-pinctrl") Signed-off-by: Valentin Caron Signed-off-by: Alexandre Torgue Signed-off-by: Sasha Levin --- arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi index 20a59e8f7a33..f10a740ca3c1 100644 --- a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi @@ -1868,10 +1868,15 @@ usart2_idle_pins_c: usart2-idle-2 { pins1 { pinmux = , /* USART2_TX */ - , /* USART2_RTS */ ; /* USART2_CTS_NSS */ }; pins2 { + pinmux = ; /* USART2_RTS */ + bias-disable; + drive-push-pull; + slew-rate = <3>; + }; + pins3 { pinmux = ; /* USART2_RX */ bias-disable; }; @@ -1917,10 +1922,15 @@ usart3_idle_pins_b: usart3-idle-1 { pins1 { pinmux = , /* USART3_TX */ - , /* USART3_RTS */ ; /* USART3_CTS_NSS */ }; pins2 { + pinmux = ; /* USART3_RTS */ + bias-disable; + drive-push-pull; + slew-rate = <0>; + }; + pins3 { pinmux = ; /* USART3_RX */ bias-disable; }; @@ -1953,10 +1963,15 @@ usart3_idle_pins_c: usart3-idle-2 { pins1 { pinmux = , /* USART3_TX */ - , /* USART3_RTS */ ; /* USART3_CTS_NSS */ }; pins2 { + pinmux = ; /* USART3_RTS */ + bias-disable; + drive-push-pull; + slew-rate = <0>; + }; + pins3 { pinmux = ; /* USART3_RX */ bias-disable; }; -- 2.30.2