From patchwork Sat Mar 9 18:20:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Geis X-Patchwork-Id: 10846013 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E7BED1575 for ; Sat, 9 Mar 2019 18:20:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C58D02AD77 for ; Sat, 9 Mar 2019 18:20:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B216E2AD7E; Sat, 9 Mar 2019 18:20:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 560DD2AD77 for ; Sat, 9 Mar 2019 18:20:28 +0000 (UTC) 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=+dEQW6/gidTiYNURipjNUWcjNT5RmMVmvMGCphnqzxI=; b=Um9ZaXHB4JILkG AXv2qNAjsqldvmB6HV6hGDaDNCogL/spTUKcPL40Yt0u4rbLFE60sMGhDMOGvIlSys1Kh0YnHjtMp 98LHUkn7A0NNDRDfdwevz4p/X+RNcgi3b3bLfvNTn/3WAKQYKOPlX/IZwAuvDo/DgZOmcEkS5Tirv vEvjm/KUXg9yfPQiIuALavKGX8db8xrNAPDPB+bAYzJoFJV9dOa402yQOYEupQ95aBLIbfdmdWGi1 fbZSvkew1W+EUoEvIVvLFvgRouqHaK3VAF8+qxf7evmh/FDbbHl4wZfVbhG539AQLI6nlGkpHWEdv oYSN3wvUJ4V1Vp4bDbSQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h2ga4-0005XF-CV; Sat, 09 Mar 2019 18:20:20 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h2ga2-0005WJ-FJ; Sat, 09 Mar 2019 18:20:19 +0000 Received: by mail-qt1-x841.google.com with SMTP id d2so835589qti.11; Sat, 09 Mar 2019 10:20:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tIxoei8cMS93Syn3k86yFQB4xBzYr/pMH0+fkkNbDnE=; b=O5fXi5FIyr/C0XDKz9y2rVXyrtwUtFvdz80sUwnjd2Qsgz3VogPNMA5Hu8/lSJlsV0 HJx20YM01om0XEYtymCWsA2lCBnpReaJ+ewOgYd3lzW2S4Rt2xtOjrIvU1SH/4ZWj7pR FW1WbmBOveRURf+TIxEBtHGuWCzthKgLpGcMcgEplotNJn0ydTxJpDzR+LL7+Q5867++ h6bnUVNx6kDY/quApk9Co7ez9fG0Gw4QwGPO3nhAe45N1ot4EvI549W07pcSGJBrZuLX 6HnlSC7IbHJ3JAlgWe1e/2lo5wFFIlyH8YEFKw3C7LDbiPBAH5FVHM5Qf0k+K/E++vV9 MC+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tIxoei8cMS93Syn3k86yFQB4xBzYr/pMH0+fkkNbDnE=; b=cJBXdAYtZjGArrkn2m+9seQysEHoxaC2MKM6KGyxKqJNsK+86y7me4AAsODncpQTjE k0j5lj87S3jieK0Okka9BnPcAvBKAwGwKoN01NSfH7u43bVfw2og6GF8NTsZQBnnAZ1p K8una8wB2I/8f9jcnBTvREidbmA3GK9HijPNmFG0UQTvtjtWq+mj4wJlVIJF+Vj7xWJr Gxez1E7jeC7DNmT60vKtcY78sockV55IBUHnV4/Wn1hShdzqA81v76AFqFqIlBqXaDGO il4euH0Xpky/7Od1V+LnHxjW3ZYdZ3F80U2h6QgsKsY5j6RSBE8idqJZTjLazuRKK503 p52Q== X-Gm-Message-State: APjAAAVSQpSieQRj02fc7QRGE5n6rU19caSf230FSVP6fh+xGt1ncZ9q jiIFH+VSQoAY3AcWbj8htlw= X-Google-Smtp-Source: APXvYqwubchsafWIDQB02vemw1/aYyPDWwnObP9MrV3uusjCM+OevhhRHvqvZwsDh2WXrYZX/YNdow== X-Received: by 2002:ac8:80e:: with SMTP id u14mr7312942qth.123.1552155616018; Sat, 09 Mar 2019 10:20:16 -0800 (PST) Received: from localhost.localdomain ([2601:153:900:ebb:f162:44b2:3d44:afcd]) by smtp.gmail.com with ESMTPSA id j4sm367526qta.76.2019.03.09.10.20.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Mar 2019 10:20:15 -0800 (PST) From: Peter Geis To: Rob Herring Subject: [PATCH] arm64: dts: rockchip: Fix rk3328 rgmii high tx error rate Date: Sat, 9 Mar 2019 18:20:13 +0000 Message-Id: <20190309182013.22162-1-pgwipeout@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190309_102018_513176_C610FB46 X-CRM114-Status: GOOD ( 12.52 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , linux-rockchip@lists.infradead.org, Peter Geis , Heiko Stuebner , linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Several rk3328 based boards experience high rgmii tx error rates. This is due to several pins in the rk3328.dtsi rgmii pinmux that are missing a pull level setting. This causes the pinmux driver to default to 0ma. Fix this by setting those pins to 12ma, consistent with the other tx pins. This allows much higher data rates with much fewer retries and no recorded tx errors. Tested on the rk3328-roc-cc board. Signed-off-by: Peter Geis --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi index 84f14b132e8f..48a4477ebe58 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi @@ -1673,19 +1673,19 @@ <1 RK_PC1 2 &pcfg_pull_none_12ma>, /* mac_txclk */ - <0 RK_PB0 1 &pcfg_pull_none>, + <0 RK_PB0 1 &pcfg_pull_none_12ma>, /* mac_txen */ - <0 RK_PB4 1 &pcfg_pull_none>, + <0 RK_PB4 1 &pcfg_pull_none_12ma>, /* mac_clk */ - <0 RK_PD0 1 &pcfg_pull_none>, + <0 RK_PD0 1 &pcfg_pull_none_12ma>, /* mac_txd1 */ - <0 RK_PC0 1 &pcfg_pull_none>, + <0 RK_PC0 1 &pcfg_pull_none_12ma>, /* mac_txd0 */ - <0 RK_PC1 1 &pcfg_pull_none>, + <0 RK_PC1 1 &pcfg_pull_none_12ma>, /* mac_txd3 */ - <0 RK_PC7 1 &pcfg_pull_none>, + <0 RK_PC7 1 &pcfg_pull_none_12ma>, /* mac_txd2 */ - <0 RK_PC6 1 &pcfg_pull_none>; + <0 RK_PC6 1 &pcfg_pull_none_12ma>; }; rmiim1_pins: rmiim1-pins {