From patchwork Wed Nov 17 14:02:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12692896 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 8B54BC433EF for ; Wed, 17 Nov 2021 14:04:08 +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 47AF361221 for ; Wed, 17 Nov 2021 14:04:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 47AF361221 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=hHIXlPPS82eX1NJNp4iB8QGPIXwVl69HZVc6Tp1GoJk=; b=p7m61B8MZtcyoN ljAQCpxqKAAVOokhKKq7Z5OEFo07Gz1VkkUcvdN0KKig6F6ALjr0OghnFHGFdU5R68RhlXu6u53Ij sK2bXyHOXgrWj21v7M8EJOfnzxGjsPyTrXGk5dwiJ4/JSt3Hh1Jz8kYyln5fqX+e8Zwgm0d49GkgV 6eBBJgketHPZxkN1pnEbMd0nGZtDREXouzeMQZ4b5hRUeGG6LZ9vzhh7inTuY8LjZyqBpJw7vdWqQ jW2vt+ixX1gNvdSf+n702l/tOTLprzsYb6lbYr59IcWjgquVcza1RP1qjywlSNLq9AFRUuOEzlVD/ UPDPFHkCN9yC3n1w0G0Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mnLWH-0050Pr-2q; Wed, 17 Nov 2021 14:02:37 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mnLWB-0050OF-3A for linux-arm-kernel@lists.infradead.org; Wed, 17 Nov 2021 14:02:34 +0000 Received: by mail-ed1-x535.google.com with SMTP id g14so11610633edb.8 for ; Wed, 17 Nov 2021 06:02:30 -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=48jpMjB7ikIGAY5IH4NRA+sLzh4QPo/RYNwFWYqiuv4=; b=dUS2SR7j0B4r/3q4ToNQmhhGg4WvoE5bfUdVO+ewVd2u5prBQdg4PikCaa9edENq8W WA3abYUryvhuFfX9eG/Bk60UNOiZyY/kymMokjqyBSLSIxftr3B4KwOpjaL4oMYZtowk V8eZLDBK8lvp+BVx2loNqo5JryZzLrYEpVkuqN+cu16sHJ4B94TVyWeNSnr1F6u2swOh ngug0eihvoNMHEjgawDVduGZxAqviQw5BaeCtNtjO9jJIWbZ+BXrnQYq9b484MBqZlvu b/j9CBI0EbYdcAJ4ToeKQp71xUoW8UMAInLAzS0U6ArqCQRTt6HWuOXTGHT3ffzJ3pKz +kZA== 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=48jpMjB7ikIGAY5IH4NRA+sLzh4QPo/RYNwFWYqiuv4=; b=Bb2+NsnnaXDQ9Kt7uTKHPXcpGVKQNEHi5dlDWWiD2qt7+/4gdZTlkcDTnASqtKqXhd j2is+YF2zBXUMopaKfGLDGOip+/w/YzMCDSUiNEzmLUVjM4ebiVYNzNbmT1160UUveIM M3l0xgAIOugYDaHnhrfqbszlh5KoFPRkEr2/RbFFZOCi8vOCI5QYNV0WKo8KOic0ZvCT XwQ6MruLjATGqS0JQpJMiuVejUKt8859KQtiWwMxORO/0nAdfNz87stijaz/kgTZAABU rrW5H6IF0Y9JlhhgQHL/SGo8K41i0MHyo3+b6Oxqe4uuRLfPjD0y1+56PyIQq6HH7Uef RzNw== X-Gm-Message-State: AOAM5337TYrxN5s5aQq+7GD9559pfl7k4sr4Ad6frZqe5HKTw2sVTdwH CNKoQgNle/NtXQ76IjUEgG/i0g== X-Google-Smtp-Source: ABdhPJx98JoRl+qaja/gfMY6n9+koVO1zpPmRMUeZF13GS79wlEvIe00MnF0trXn+b5HYmtnQQvQbw== X-Received: by 2002:a17:907:c0c:: with SMTP id ga12mr23434041ejc.417.1637157748723; Wed, 17 Nov 2021 06:02:28 -0800 (PST) Received: from fedora.. (dh207-98-180.xnet.hr. [88.207.98.180]) by smtp.googlemail.com with ESMTPSA id qw27sm10725963ejc.101.2021.11.17.06.02.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Nov 2021 06:02:28 -0800 (PST) From: Robert Marko To: robh+dt@kernel.org, mripard@kernel.org, wens@csie.org, jernej.skrabec@gmail.com, hauke@hauke-m.de, 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 , Samuel Holland Subject: [PATCH v2] arm64: dts: allwinner: orangepi-zero-plus: fix PHY mode Date: Wed, 17 Nov 2021 15:02:22 +0100 Message-Id: <20211117140222.43692-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_060231_206573_D663992C X-CRM114-Status: GOOD ( 11.57 ) 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. Fixes: a7affb13b271 ("arm64: allwinner: H5: Add Xunlong Orange Pi Zero Plus") Tested-by: Ron Goossens Signed-off-by: Robert Marko Tested-by: Samuel Holland Acked-by: Chen-Yu Tsai --- 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"; };