Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1990930rdb; Sun, 24 Dec 2023 10:59:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFcNomqA39FcAYWE/VGhWaj/AtVjUWjFb/QgQBWhP7x3hQkiHgqZffpE0H14tRBqhHYLw/Z X-Received: by 2002:a05:6214:c64:b0:67f:6bd0:4943 with SMTP id t4-20020a0562140c6400b0067f6bd04943mr7983260qvj.70.1703444397883; Sun, 24 Dec 2023 10:59:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703444397; cv=none; d=google.com; s=arc-20160816; b=0v33P0Gte84EwfcqZeQDKvGrUItjZzemyjIa2Smuj5fPCNw0l16jdDpgmf55sYfNs7 fZ31FzKui27BHkfTxi6H5SEaptEuVUkzEngSn35D3PDLW2OuPnIHqHL2gNEOTgNL3Pqn kZFL1XzLgTBLcMKhmdtGWvtl2udkcq/Pt/xRmgUZ8tAWb2zBEs6EWHHYgTWNG9lgjfY+ bIrlKwwthb51wFRNGCTyGY7p4CPdTAP1jAGZIAJudwGpmXMVUeSs3oD8yi2U3EDEid+t HwLTbbLIDNcfaICYuAWCQXNeMR84OMsZDT1jjbXufyQ69gN+R4ygk/N3VE/Q0bhxQLc4 2yzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=mTxGD9fB0L5WcUTZOBewMtKGUPzzAfqTpeqfO/JSetc=; fh=K5gYBB0pnwVQmv+STtSDp5HNuWMsr7JTTiZeM+UHKK4=; b=TqMNm9flEVrszOOOJqcJVkNCcyEfbo6mM+AIy79WL+EBQSG+DV/SQi/Ye3eDfgpg6D kIpYnLVvDa6z0SPjMsTfeVtPXGqvILdbOdKFajWEFiYzvBNqOaRf08GbU+CXMA/gasK9 r8erg9AZTzVgnxntl2uoLLDwJumulhjQlimun488eysVAZc443wdh0SNhtRJM7VxpvT1 bQQHUaJueVfDIcUqAfIx8eV6rCBtTmHCSbvpVf5UMSBcVZBCyGB35APOPt9y380eNGPB 7f6nVpY7BxdXmRZzYTKojQGVgOlOd6QqAIec0AApnbJlD5xsCifR0dhBpEJX/8KGz2dE yOaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-10806-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10806-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p7-20020a0c8c87000000b0067eab82617csi7914127qvb.232.2023.12.24.10.59.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Dec 2023 10:59:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10806-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-10806-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10806-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A40481C20D22 for ; Sun, 24 Dec 2023 18:59:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DC03D2FD; Sun, 24 Dec 2023 18:59:50 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 908C1D285; Sun, 24 Dec 2023 18:59:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Received: from i5e86193c.versanet.de ([94.134.25.60] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rHThJ-0005pM-Gb; Sun, 24 Dec 2023 19:59:37 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Trevor Woerner Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH] arm64: rockchip: dts: rk3328-rock-pi-e: enable GbE eth Date: Sun, 24 Dec 2023 19:59:36 +0100 Message-ID: <2404910.8hb0ThOEGa@diego> In-Reply-To: <20231221062244.11871-1-twoerner@gmail.com> References: <20231221062244.11871-1-twoerner@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Hi Trevor, Am Donnerstag, 21. Dezember 2023, 07:22:43 CET schrieb Trevor Woerner: > Adjust the device-tree to get the GbE interface working using a patch found > on the Radxa forum. > > Link: https://forum.radxa.com/t/rock-pi-e-board-version-1-21-ethhernet-not-working-in-armbian/15061/3 > Signed-off-by: Trevor Woerner > --- > @@ -165,15 +165,17 @@ mdio { > #address-cells = <1>; > #size-cells = <0>; > > - rtl8211e: ethernet-phy@1 { > + rtl8211f: ethernet-phy@1 { > + compatible = "ethernet-phy-id001c.c916", "ethernet-phy-ieee802.3-c22"; skipping through that thread, it looks like there are variants of the board with one of the rtl8211e _or_ rtl8211f phys. So while the "ethernet-phy-ieee802.3-c22" compatible would work for both, the "ethernet-phy-id001c.c916" compat effectively disables phy- probing. So applying this patch would effectively disable ethernet support on those older rock-pi-e boards? In a similar context concerning boards using different phys, it was suggested [0] that the bootloader should modify the dt it passes to the kernel to provide the correct phy id. > reg = <1>; > pinctrl-0 = <ð_phy_int_pin>, <ð_phy_reset_pin>; > pinctrl-names = "default"; > interrupt-parent = <&gpio1>; > interrupts = <24 IRQ_TYPE_LEVEL_LOW>; > - reset-assert-us = <10000>; > - reset-deassert-us = <50000>; > + reset-assert-us = <20000>; > + reset-deassert-us = <100000>; I guess for those we can consolidate onto the "slower" ones in the kernel though. > reset-gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>; > + max-speed = <1000>; > }; > }; > }; > Heiko [0] https://lore.kernel.org/all/ecbdcfb7-32ab-45cc-991a-982c52bf4b14@gmail.com/