Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9046049pxu; Mon, 28 Dec 2020 05:19:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpKdUA3idxGJ3/t8Wrm43KYymJdrHl16tBeYs01vxr55eiPHL/pPaqppLRDbibB4POK84B X-Received: by 2002:aa7:cb12:: with SMTP id s18mr35215303edt.125.1609161550242; Mon, 28 Dec 2020 05:19:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609161550; cv=none; d=google.com; s=arc-20160816; b=Uj3qUlJT9L4AFTDuugmUO+UXVkIll4nelwmIAbYlp+G+3sP7BNhmMb2Otmby9QGx3u FyN39V36kdR8pRC8bD4KRUhsVEIpiFYiU7AOQOtw5GTD0Jw+D/FINhqtmYQOn2Qdv8xd nMzfFoCX2ZDVjpvigvH4e0Xca4NM3HiCF2XIDxAELu6jWPIG1UzMgCvjBpO5uenIGLjM G4QLrkdq184SnaDZ0nunoKlHeM1UxYXMhAnghVsIYl1nAIg4yar4fgfn4l97BjnmKFZW WCpjYAc94CZ4LaPJs6uR2spvqkOynIftgsT1v0YHEpwErtQlH3TeFqqbCf7ZLgrrI+jD nhPA== 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=t9bByJb4ueombFkJM3xu36vOwuKKSmoo31uWqEZdpR0=; b=X/3FxoR8s1jP1RrqiR2IkXcdaFd4+Igb/YMjktQuQX2Cp8MzLZEUjnZxqh3UW25hya Y2DN9dc1OJdHPUsBEZJO+K9fgR8V7Uxtsh/CMayog1r7W0HhreSuBj9yqGCqVD6eOu1v NmgzhWVvJChuNMG/WoCeZYktTM8IUFcDr5enj+tkadK5G+C/UuMOFxyB4d+zuVkf8aG2 OJmp2uuhCHb5KVVTPDxAPILT3qVvvW9EwDdBlTrk3CTtO2pZZM7nlM5DmBR1Fm8q6cik bv7ode6LSu/b37s/vWuv59Nhhcq3VEWDUdjT/XrdVIFBT4NhqWGdOKayRb2+ehF0U6uK ybwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BV7SigYj; 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 a16si20434749eda.189.2020.12.28.05.18.46; Mon, 28 Dec 2020 05:19:10 -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=BV7SigYj; 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 S1732352AbgL1NN6 (ORCPT + 99 others); Mon, 28 Dec 2020 08:13:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:42020 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732339AbgL1NNz (ORCPT ); Mon, 28 Dec 2020 08:13:55 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4097622B37; Mon, 28 Dec 2020 13:13:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161194; bh=Ko5Trk69U5OhAZEh6OBXpcGJOYWf7FYQodG/7bqQcDw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BV7SigYjDDkb2l4ve7KoZ5k7t2D0w4GChN/8r1ac3tezvEKpnc8bkwGWIYCT6+x90 4mROVoP+OEllWC45Ay94UIiKPZicXSDc7w6KPvQmAyNp3D7YecthEtsk+fiF5tC9Es mPl0ttMuZ7Xzx8HVNnFTK8pJnXVkwzaJoYWTy7lM= 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 4.14 133/242] arm64: dts: rockchip: Fix UART pull-ups on rk3328 Date: Mon, 28 Dec 2020 13:48:58 +0100 Message-Id: <20201228124911.250640540@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124904.654293249@linuxfoundation.org> References: <20201228124904.654293249@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 c34daae3c37c2..6c3684885fac0 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi @@ -1062,8 +1062,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 { @@ -1081,8 +1081,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 { @@ -1100,15 +1100,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