Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9116738pxu; Mon, 28 Dec 2020 07:04:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXARYwXn3foicRLKTtv28dCP8P6F36XcZs3ZF4vQlZitkzZbR78IWP4g/UhcyEfmz59+Mg X-Received: by 2002:a50:9f4a:: with SMTP id b68mr42089034edf.296.1609167858276; Mon, 28 Dec 2020 07:04:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609167858; cv=none; d=google.com; s=arc-20160816; b=oFHfq4vrQgHlh2+0YojKtV16wHBozlWbfhdd1ApvCLawPtg1cP8cbiZteS3d2CTq1W D3djtqpmwnKuBtrTsRzhR9EH1J/aCS6GV30LiBVJX4pzUz1l1Nxr5N/fpi6wIiIs0WwM DoSU1JTtBn3YmMfNM17NWPa7J9ZeDsFgG6vLfmrUAhudFVX0XZHaOU8VV3UdAq2AifCM B618hYhDAufx4J8uXvYb+OUjSwErF3bUS1p9h1fxWwy6GNn4DUcDlDmN5Ab389R081gK BksPT4SgyCQqApTGzde08bRg+FbERKIGBBO3KKZsHsefxpnP+gKGuKl7kjNeX1MDJnbJ UcKg== 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=kNEkaOBcHiFOBigEDrHS1GKkZeKRP/6LqTEmim72K3M=; b=tIfNyXk96HFBxVY8kFgOULLhTkVtXYoNx03rf06oDqTp1Vl4Egfm7KIjSMLXTz2xnh /UOW9nrxFjNcOmg3YtaUIu4T3NC60bQ9OygjO0g3BRTUD/OYzL5IKslThbYc5DSHNI47 KcU9WfiKy3xTaG3xazKYX+ix+P9MpsbVJpkYBMuHzB0SBktxyOx90zimJuIPnnBXonVw ZVphE2+T5iB+JFlBc7ZGlBs5d8rekdZTF1LalzgWqN2n5WyymB/v/20uVRycP4m2Atdh layCM/jkR6zUrBknJjt0Wb1Rlu22esiMp64wqnmSGu8fR4/yF4/eMNNqoYpK5IyF5p/C IcYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QmiRsBD0; 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 n11si19591129ejc.684.2020.12.28.07.03.54; Mon, 28 Dec 2020 07:04:18 -0800 (PST) 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=QmiRsBD0; 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 S2392503AbgL1PAl (ORCPT + 99 others); Mon, 28 Dec 2020 10:00:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:48708 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440264AbgL1ONv (ORCPT ); Mon, 28 Dec 2020 09:13:51 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6466C206E5; Mon, 28 Dec 2020 14:13:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164790; bh=A2U2Idw6zhrKTIlrvzcNSb53rId3h8/pk/9WKJBalBk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QmiRsBD0s+XQP+Q08QBRMoGN7/1wAfjDNAKGMZq4OQfhjOJ1woq2aOtDnwTHKrH2N 3puddxbEfOSZbVsWgxOov+QzPm5rGT854R/GvaWmOPrWPJmaCpY1qHK4HCbJUOk2VR VQEpPiuYNjB6YopFQ/QtOEU5eP/887Pvxw7pSE04= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chen-Yu Tsai , Heiko Stuebner , Sasha Levin Subject: [PATCH 5.10 299/717] arm64: dts: rockchip: Fix UART pull-ups on rk3328 Date: Mon, 28 Dec 2020 13:44:57 +0100 Message-Id: <20201228125035.352326201@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@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: Chen-Yu Tsai [ Upstream commit 94dad6bed3c86c00050bf7c2b2ad6b630facae31 ] For UARTs, the local pull-ups should be on the RX pin, not the TX pin. UARTs transmit active-low, so a disconnected RX pin should be pulled high instead of left floating to prevent noise being interpreted as transmissions. This gets rid of bogus sysrq events when the UART console is not connected. Fixes: 52e02d377a72 ("arm64: dts: rockchip: add core dtsi file for RK3328 SoCs") Signed-off-by: Chen-Yu Tsai Link: https://lore.kernel.org/r/20201204064805.6480-1-wens@kernel.org Signed-off-by: Heiko Stuebner Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi index bbdb19a3e85d1..db0d5c8e5f96a 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi @@ -1237,8 +1237,8 @@ uart0 { uart0_xfer: uart0-xfer { - rockchip,pins = <1 RK_PB1 1 &pcfg_pull_up>, - <1 RK_PB0 1 &pcfg_pull_none>; + rockchip,pins = <1 RK_PB1 1 &pcfg_pull_none>, + <1 RK_PB0 1 &pcfg_pull_up>; }; uart0_cts: uart0-cts { @@ -1256,8 +1256,8 @@ uart1 { uart1_xfer: uart1-xfer { - rockchip,pins = <3 RK_PA4 4 &pcfg_pull_up>, - <3 RK_PA6 4 &pcfg_pull_none>; + rockchip,pins = <3 RK_PA4 4 &pcfg_pull_none>, + <3 RK_PA6 4 &pcfg_pull_up>; }; uart1_cts: uart1-cts { @@ -1275,15 +1275,15 @@ uart2-0 { uart2m0_xfer: uart2m0-xfer { - rockchip,pins = <1 RK_PA0 2 &pcfg_pull_up>, - <1 RK_PA1 2 &pcfg_pull_none>; + rockchip,pins = <1 RK_PA0 2 &pcfg_pull_none>, + <1 RK_PA1 2 &pcfg_pull_up>; }; }; uart2-1 { uart2m1_xfer: uart2m1-xfer { - rockchip,pins = <2 RK_PA0 1 &pcfg_pull_up>, - <2 RK_PA1 1 &pcfg_pull_none>; + rockchip,pins = <2 RK_PA0 1 &pcfg_pull_none>, + <2 RK_PA1 1 &pcfg_pull_up>; }; }; -- 2.27.0