From mboxrd@z Thu Jan 1 00:00:00 1970 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 68062C43458 for ; Sun, 5 Jul 2026 15:12:12 +0000 (UTC) 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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=m4sX8JdALpI7j1qF7oke16TMhMgD9vIJrhvFGRiDNfE=; b=EVZ544RQzUoavH ipvP/ZfzzzEsmZOEi6vXMFBmnEvo6CjLiAMxz+3zx8M8QrGy4KeWhnUJtLKtd8iVGjV1SDhjoRlGO xBLEYCjwYiWd1BScLvI6MKK3gkebT3J8/yOREge21GBu/xFJNUrpR6AZkjCVgHVJi96NG21Ixslc6 7aAITioMKr4RiKdrnRMLzvHf/n81PMLeu02IDhxsInLq8k2xRpUntH5Bc9eo4aUE+/iWHlyCc1/Pa WNZ0yMNoJ5AFE/2uCkVLT+bmy6dZeW+jw5NVQP9a9HLbp6yJSx+5Gsc9pg6BkOy68rbANgfb18U2v NeATE95Rinhff+NrBV7g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wgOVt-00000009QVY-195V; Sun, 05 Jul 2026 15:12:09 +0000 Received: from vps0.lunn.ch ([156.67.10.101]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wgOVr-00000009QV5-0gKe; Sun, 05 Jul 2026 15:12:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=HptUES/0sfPU3Gkj8T4/h/5gi9Cj/ZvB7ArF8RxIxNg=; b=gmFGAFXzeorkLhLgDBMjGel4Ae 4cMuKTf4Yzd94nkLb1gY11bD1CFBzXBUGnud0NGEg1hyxgbPlPcd1wsVVAVZEwod9VypYE+St30AQ IMhcNUnJOgNg7IQvwFzIkvC0TWwt+v67R2qZsGPK6mHOodtlFFWWUUSsQBDyJ8EZt5LM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1wgOVi-00AqXH-1s; Sun, 05 Jul 2026 17:11:58 +0200 Date: Sun, 5 Jul 2026 17:11:58 +0200 From: Andrew Lunn To: LemonFan-maker <2254650260@qq.com> Cc: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] arm64: dts: rockchip: Add EmbedFire LubanCat 4 board Message-ID: <1ac2d0f4-e027-4633-9d34-2709cb3e43ec@lunn.ch> References: <20260705135014.1004166-1-2254650260@qq.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260705_081207_573342_0746908E X-CRM114-Status: UNSURE ( 7.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org > +&gmac1 { > + clock_in_out = "output"; > + phy-handle = <&rgmii_phy1>; > + /* The board has 1.5ns delays on RX lines; TX delay is provided by the MAC. */ That is pretty unusual. How is this RX delay done? > + phy-mode = "rgmii-rxid"; > + pinctrl-0 = <&gmac1_miim > + &gmac1_tx_bus2 > + &gmac1_rx_bus2 > + &gmac1_rgmii_clk > + &gmac1_rgmii_bus>; > + pinctrl-names = "default"; > + tx_delay = <0x1b>; please take a read of: https://elixir.bootlin.com/linux/v6.15/source/Documentation/devicetree/bindings/net/ethernet-controller.yaml#L287 Ideally, you want to the PHY adding the delay, not the MAC. 99% of rockchip boards get this wrong, they have phy-mode 'rgmii', and {tx|rx}_delay properties. And i tell developers to swap to 'rgmii-id' and remove the delay properties. With the PCB adding some delays, you board is slightly different. Please drop the tx_delay and adjust the phy-mode so the PHY adds the delay. Andrew _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip