From patchwork Wed Nov 17 09:47:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12692883 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78497C433F5 for ; Wed, 17 Nov 2021 09:48:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3036C61A52 for ; Wed, 17 Nov 2021 09:48:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3036C61A52 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sartura.hr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=fkAw6KUD/EwXK/6ItIBMf0kI8vJYBY3MQxKbYsMjofI=; b=zSxNejvLoCWcmx lmsKrW9WjSSQg/1YUhwDbTtpTZJ4rV+aQQAV39j8C7mBj0bdRALK3Uj8uIF+r0HtpNnli9KtA4zZI zB4zY4EWpSKNF76RUoiBN9kRr68L07wc4r1Y5TWzOSrI5CCJDHNph8QDpYn90C+N7GGvQbWcsiOpK cdyNO+fqzsHhiWK4oPJKhRiCp/gcVgDmnIv+z5ob6GFuu6eiJ+wVteuGYU16RZYm986r7t/+DIrSp qVNtcQkxCR2ne1fRiN8dlakJoK6Rsa4rgZdBiQ1bYt1G6M9HoULSwIEmXAIKI29iiyl7mpQbq5eXf 5vvJg0OqlqfBVcRZPvoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mnHXA-004Lek-6s; Wed, 17 Nov 2021 09:47:16 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mnHX5-004Lcj-MB for linux-arm-kernel@lists.infradead.org; Wed, 17 Nov 2021 09:47:13 +0000 Received: by mail-ed1-x530.google.com with SMTP id w1so8227496edd.10 for ; Wed, 17 Nov 2021 01:47:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ipfWcDKpQnO9TzUX3IJ9sYDRn+G7NMWRbyuYTyM1Soc=; b=hwSjoLKjrDMCeXJP3PGpaqN0SSB3cVtOgm3pYZZ0McgfqtfU4A0Y3IZuYPzmjon3B5 QS4MXd0hEUdvn2VTohy4NisEY/+EGjDTl7ENlHjoCF1uwn+e1im4ThXzef+9C9Ne0yAD 8Daz10tfFy6H+YQqIcfe8X0aHv07WQb1akAtwtQdNyJawQqgo7WMU9Zlb+q4Y9PbWRaA pk34Zc5LDMtIiVHpiUUudbOqzSJq43A8YFclnGHhPGReWAjX3l8j1/Niq1N+8dAX8eCP RO1OGq8472cHtWq5dEIY9YxdJeM2/HWzFRyulize3hVuLiZPFpoWkTz9WlH2rWaGxzXv F4JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ipfWcDKpQnO9TzUX3IJ9sYDRn+G7NMWRbyuYTyM1Soc=; b=QL07mtgBaySsB2NDPhB6jqCOeisYcs8geI7ppaksS9pnJx5BfHoAtwK1L/c461sxIF bvxlr7344o3AwXHN9XTwwWnAt3tUKmv4WywYjjEajRliZwMkSVSUefM4Z1GPcImsosuG eNB4h3R7vLflR7x5/uJ6Jn3R9LfbBOpTcXqroPRBIXPX8ISDiFPpPNg0jiqboe5e1WuQ xCsgIzXPW8Pwk9rUZJ3LUeoXKIVHT4gn+WnlrTvv2gWNK1azuuKP5UCbg0bHkIU7HLgS x1PXyXPtOdg6b/ouGDokzI17pFjn86gg/A4RrRKbT1F5ciMtAOVXZgSlU3GYAzJFIQvW cOiw== X-Gm-Message-State: AOAM533OiAjO44PBKHxATw+5E5u65krRd4FFKccB33qOoxzNyKHn/w57 KiiHbxFwvqYTAy4Yl0g7nB7lqg== X-Google-Smtp-Source: ABdhPJw3EizNegAkM0uu4+BjBSPlXAu6CGRHAL5Q829i5ghg4gHB6e0Y1DZ6yJIfL5+Qk4zl1JBUNQ== X-Received: by 2002:a50:da42:: with SMTP id a2mr19290119edk.361.1637142428126; Wed, 17 Nov 2021 01:47:08 -0800 (PST) Received: from fedora.. (dh207-98-180.xnet.hr. [88.207.98.180]) by smtp.googlemail.com with ESMTPSA id jy28sm4891820ejc.118.2021.11.17.01.47.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Nov 2021 01:47:07 -0800 (PST) From: Robert Marko To: robh+dt@kernel.org, mripard@kernel.org, wens@csie.org, jernej.skrabec@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Robert Marko , Ron Goossens Subject: [PATCH] arm64: dts: allwinner: orangepi-zero-plus: fix PHY mode Date: Wed, 17 Nov 2021 10:47:01 +0100 Message-Id: <20211117094701.11974-1-robert.marko@sartura.hr> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211117_014711_743884_D676247F X-CRM114-Status: GOOD ( 11.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Orange Pi Zero Plus uses a Realtek RTL8211E RGMII Gigabit PHY, but its currently set to plain RGMII mode meaning that it doesn't introduce delays. With this setup, TX packets are completely lost and changing the mode to RGMII-ID so the PHY will add delays internally fixes the issue. Tested-by: Ron Goossens Signed-off-by: Robert Marko Tested-by: Samuel Holland --- arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts index d13980ed7a79..7ec5ac850a0d 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts @@ -69,7 +69,7 @@ &emac { pinctrl-0 = <&emac_rgmii_pins>; phy-supply = <®_gmac_3v3>; phy-handle = <&ext_rgmii_phy>; - phy-mode = "rgmii"; + phy-mode = "rgmii-id"; status = "okay"; };