Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp40135rdh; Mon, 18 Dec 2023 03:55:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IEEit9s5epTY7KI6igkiOY6t9ZSeXnOygKbyjPQLXoKUEDw6XaTS18xSrFKm2Ibt29Uclas X-Received: by 2002:a17:906:1de:b0:a23:5a5d:c89e with SMTP id 30-20020a17090601de00b00a235a5dc89emr596278ejj.114.1702900528801; Mon, 18 Dec 2023 03:55:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702900528; cv=none; d=google.com; s=arc-20160816; b=Zo/zufRx8G4e4tetNPvnpmyUU4OYkw/WEWCsKS+97PXf94PJOMyJ53KPurauB9g05S dJ3iSVIe8u7UtgIIlmuRbT8MCcX0hBOURbGc1K+UfKKeAIztFq3JaG59R12V6HD3w39H hR7BMghI+HlvepB3EYmk07k7Ua45xr4+2nnDzhswtlj4SbmpW9dXTFvgG+97NbTqwQ7g xc6J/WByjuQoXMnj4fT8hpxVYdVdvpL1uV66Aw14WwUzHNyf9bBBkvsPnIqcX+Cnt8yK DD862vPq5uBQ5Q6jB6a4sXq23YCanZpSQtwH9XV0GGgCcEWulHYjM/AN6KH6pHzAy6cF 6rOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=MDqzRKId/5CnPcvvEWzygRwi81nmmOyUw72fkIaULRM=; fh=s9YQH64RY9xA/d0mZ/eIP/wWQN1l1U8sbV9lrFHdpDc=; b=L5QQ0r+X3fTEqytE/Vgdxkz8xKIv9pFdiCqpaILk86GycmsH5wZep+51p3hFTuPgQt cV5Vih/h0hKQxx8gGmtE/P70DMXgZzc66ixzJWyy13Ldb0LPa3OZmij7Vt4JS3jCTwMj G377fQgokRS7pYxf7CcF7f9MhjsotvRepUfrPuThPztFCLR2qJYVw6XoVSVQ6izG5cx/ fPRnILaHxmnNVT0OMuRHdLiEzpmY5Rv/wG80UqI+vpwrmB7kz+KKmDKeNRiLuA0qQMbj lQ80lOCS6N0Vx93Qh1yi7UVNG+QR8sPY2wEE7wmUFL7e3xHBXF7yQvQZ8o8aT++OBkX5 iBwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=olpcJOvX; spf=pass (google.com: domain of linux-kernel+bounces-3493-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3493-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z14-20020a1709063a0e00b00a22fac6cdeasi4929420eje.542.2023.12.18.03.55.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 03:55:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3493-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=olpcJOvX; spf=pass (google.com: domain of linux-kernel+bounces-3493-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3493-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 466D41F263EF for ; Mon, 18 Dec 2023 11:55:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93C102E633; Mon, 18 Dec 2023 11:42:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="olpcJOvX" X-Original-To: linux-kernel@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 AD06A4D5BD; Mon, 18 Dec 2023 11:41:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1702899716; bh=Ay7Tt9dce00P1AFvH+VR0Quwph8t7Z1Zn8abP+bDKl8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=olpcJOvXtTBBpVcYE8PqF5uNLFcLGnlrd77Yy4U2M1CVK1OMCU44ovp8ox0ABd+vx vMMIhpPKRjVYneLkb/RvRi7d4oSroIqe2BjDHoHmIw7nn6GftbYRPI/M/z5ce+U1Ax Xjff2yIbY3xKiaYY9fcWh7LjjHnDZPqbswmEj2DvPmFUBoLeqwQvBZaPBfs9rzAc0I 349sA3zHVM5n127CwidQ+I2ZWhl4UpVTusm8MpYA//tJrf50cwyXU1NSx6rkRG4hhi 9F77N0ItNtAnDrl7xx1QDhAZsFIdKxvgmdmQxMGqqKHZv7I9w2FZ/Ps3gPOjIvAivu CLedaHr2oRvJg== Received: from [100.115.223.179] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 84CA537814A3; Mon, 18 Dec 2023 11:41:54 +0000 (UTC) Message-ID: Date: Mon, 18 Dec 2023 13:41:53 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 5/9] riscv: dts: starfive: jh7100-common: Setup pinmux and enable gmac Content-Language: en-US To: Emil Renner Berthing , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Samin Guo , Paul Walmsley , Palmer Dabbelt , Albert Ou , Hal Feng , Michael Turquette , Stephen Boyd , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Richard Cochran , Giuseppe Cavallaro Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-clk@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, kernel@collabora.com References: <20231215204050.2296404-1-cristian.ciocaltea@collabora.com> <20231215204050.2296404-6-cristian.ciocaltea@collabora.com> From: Cristian Ciocaltea In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/16/23 21:38, Emil Renner Berthing wrote: > Cristian Ciocaltea wrote: >> Add pinmux configuration for DWMAC found on the JH7100 based boards and >> enable the related DT node, providing a basic PHY configuration. >> >> Co-developed-by: Emil Renner Berthing >> Signed-off-by: Emil Renner Berthing >> Signed-off-by: Cristian Ciocaltea >> --- >> .../boot/dts/starfive/jh7100-common.dtsi | 85 +++++++++++++++++++ >> 1 file changed, 85 insertions(+) >> >> diff --git a/arch/riscv/boot/dts/starfive/jh7100-common.dtsi b/arch/riscv/boot/dts/starfive/jh7100-common.dtsi >> index 42fb61c36068..5cafe8f5c2e7 100644 >> --- a/arch/riscv/boot/dts/starfive/jh7100-common.dtsi >> +++ b/arch/riscv/boot/dts/starfive/jh7100-common.dtsi >> @@ -72,7 +72,92 @@ wifi_pwrseq: wifi-pwrseq { >> }; >> }; >> >> +&gmac { >> + pinctrl-names = "default"; >> + pinctrl-0 = <&gmac_pins>; >> + phy-mode = "rgmii-id"; >> + phy-handle = <&phy>; > > I'm not sure if it's a generic policy or not, but I don't really like adding a > reference to a non-existant node here. I'd move this property to the board > files where the phy node is actually defined. Totally agree, I simply went too far while dropping duplicated code and didn't realize the mistake. Thanks for noticing!