Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4868107rdb; Tue, 12 Dec 2023 11:27:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHXEch26W3SW6jCzYLmXTyXCXrIgbOxrzXWyBwu8+rNXSdX3fz1j0ZaEkDFNoxXp6S+fTqm X-Received: by 2002:a17:903:2311:b0:1cf:c42c:cfbd with SMTP id d17-20020a170903231100b001cfc42ccfbdmr7951192plh.0.1702409278803; Tue, 12 Dec 2023 11:27:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702409278; cv=none; d=google.com; s=arc-20160816; b=K3vEaZn1Oj8jYYIs5p1m/zpkZEzOqxANpV4nhPACNr+AEvEZhX5qIt1HCHAOsd2lu4 EtD06R6u7ewgYAwNtvP1TNDAFjgk3vC2JkxKFeyECDXltgpUefzNK5UtFuRthWiP7uZT K3pm+CKB131aVVlYGr4pijEvWBJAdBsgaJlTogu8eC93ofqDWNYEql8X1lKW9RiBngS+ Fmn0Vovt7yqre5POQ1w2xJkmlYd9OZoQnieWp//sbrMeTEt6FhkXY4OUjxlE4eeted9U zoJCIodGDaiOp2j6Cp+zIyuVJWJjo+2s8ZsHh+v8lWaGoI0suIyQkiJ0vMOPPaxy72WK n68g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xA35w8D/RVULhxj5XkYEZX5qSIkHrMUtRUvJSoCTqCU=; fh=IcjXLhZYK0ljqAlwy5sh9rxmMAIcmrVSQS96FDk6Pu0=; b=xaa4SYvga45Mmz6MQ90Mw8Nc1oqFtMUs9PJ11fUe9LKkkRBRkL91cEon/hyDF96F2r OhNUoNKwSKG/l0GrWEb72c3IWxuXz6hbhnFqix5bmadWF3N452eNmu4SRTlrbcrIjcD2 x1aJkwLWwqKob4GnS/oXqJnJ+ZsSlObC0yh52cuHdOcXrPSNFw3wyXzehNx62adwmB05 M4pnyKgPXjsfAGX/KmPlh8J2N7yMhjWMzJ4LtXd2uM5S23GKJn/kXNNQ3/EnGbG3pbC3 EPvgyWyErrV/+xNNFw8/bvP6hm0rR2DNGD5KBVl49kNny0xr6RMfAxNlFaTHvTiOiRPA c5TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=o7P1qpVJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id jb11-20020a170903258b00b0019c354055d0si8058580plb.304.2023.12.12.11.27.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 11:27:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=o7P1qpVJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 7A30D80576DC; Tue, 12 Dec 2023 11:27:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232815AbjLLT1X (ORCPT + 99 others); Tue, 12 Dec 2023 14:27:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229975AbjLLT1W (ORCPT ); Tue, 12 Dec 2023 14:27:22 -0500 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E836894 for ; Tue, 12 Dec 2023 11:27:26 -0800 (PST) Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DD87924002A for ; Tue, 12 Dec 2023 20:27:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1702409244; bh=Fl6wWVfLLuK3aQj8q6nx+95p5nnzO8WTVvVWB4QYR/4=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version: Content-Disposition:From; b=o7P1qpVJg2/q2FVr7aQdpSrMzn8ljBmUhAgYHOjH6Z8qFqEPibBfH5X7Of+RbuKbp 1orl3zWoAgOu93WJaEgsmp4xAkIfYzjVTzMObpFUicW69Z1vooU+yZ+2hL+ix1rZFQ H516eYZPRZhgRVGPojC8A43KqX+34D+xTFVqcG/KhyQh1ErTOT0jNXQ0vJp6oSK/gZ d1i273RqE9LWcn0UDgCmXpt1ONQsap6n8m0C1cGTJD8YqNVrSrg28vm96OPtzn0nEh ZXLQ/G+maa4GRBWg3Mg8m5r/iuctj92ouzdPDr0YzVDzjQm3yQlJyQ72AZKVXg3CoQ a8sHD3xjcnnvw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SqTCB3Qm6z6txZ; Tue, 12 Dec 2023 20:27:18 +0100 (CET) Date: Tue, 12 Dec 2023 19:27:14 +0000 From: Anne Macedo To: Andre Przywara Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/Allwinner sunXi SoC support" , "open list:ARM/Allwinner sunXi SoC support" , open list Subject: Re: [PATCH] arm64: dts: allwinner: Orange Pi One Plus PHY support Message-ID: References: <20231212122835.10850-2-retpolanne@posteo.net> <20231212162200.10b3868b@donnerap.manchester.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231212162200.10b3868b@donnerap.manchester.arm.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 12 Dec 2023 11:27:50 -0800 (PST) On Tue, Dec 12, 2023 at 04:22:00PM +0000, Andre Przywara wrote: > On Tue, 12 Dec 2023 12:28:30 +0000 > Anne Macedo wrote: > > Hi Anne, > > > Adds compatible values to mdio subnodes for Ethernet PHY representing > > Realtek 8211 PHY to Orange Pi One Plus. > > So can you state why this would be needed? This is the RTL8211 ID, Apologies, I completely forgot to include some context. > right? Which should be autodetected via MDIO. Looking back in my inbox > you proposed this change before, for U-Boot, specifically, but I fail to > find a solution or explanation what really happens here. Two Renesas .dts > files have the same compatible, and the commit message talks about the > reset line there, is this related? > > So can you please give some more background and explanation? That would be > part of a good commit message anyway ("why", not "what"). Should I resend the commit with a more meaningful explanation? The context is the following: currently, ethernet doesn't seem to work on both u-boot and Linux on the Orange Pi One Plus board. On the kernel, this error shows up: Configuring network interfaces... [ 5.992589] dwmac-sun8i 5020000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0 [ 6.000823] dwmac-sun8i 5020000.ethernet eth0: __stmmac_open: Cannot attach to PHY (error: -19) After applying this fix, the PHY gets attached: Configuring network interfaces... [ 6.060020] dwmac-sun8i 5020000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0 [ 6.069460] dwmac-sun8i 5020000.ethernet eth0: PHY [stmmac-0:01] driver [RTL8211E Gigabit Ethernet] (irq=POLL) The previous compatible list that had ethernet-phy-ieee802.3-c22 fails to find a PHY, so this patch includes the correct PHY ID with the RTL8211 ID. The behaviour is described on [1]. U-boot fails completely if the correct PHY ID is not correct, and in order to fix U-boot we need to fix the upstream dts [2]. [1] https://elixir.bootlin.com/linux/v4.14/source/Documentation/devicetree/bindings/net/phy.txt#L20 [2] https://elixir.bootlin.com/u-boot/latest/source/drivers/core/ofnode.c#L1258 > > Cheers, > Andre > > > Signed-off-by: Anne Macedo > > --- > > arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts > > index 29a081e72..7248ab72f 100644 > > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts > > @@ -37,7 +37,8 @@ &emac { > > > > &mdio { > > ext_rgmii_phy: ethernet-phy@1 { > > - compatible = "ethernet-phy-ieee802.3-c22"; > > + compatible = "ethernet-phy-id001c.c915", > > + "ethernet-phy-ieee802.3-c22"; > > reg = <1>; > > }; > > }; > Regards, Anne