Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp41114rdh; Mon, 18 Dec 2023 03:57:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEzPsTa6mPVyycjpKD/j7+ws42SBigGDQi8dSOK8UCCXNCuFTAWYDVCZkOIFR/tQGVNV2zf X-Received: by 2002:a05:6214:1c0b:b0:67f:3611:ce22 with SMTP id u11-20020a0562141c0b00b0067f3611ce22mr3212301qvc.31.1702900676685; Mon, 18 Dec 2023 03:57:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702900676; cv=none; d=google.com; s=arc-20160816; b=F9Emg+Sf3IUjrtizuhbqleDv7tAX98kf7cekh+XrIElf7mRgQIeQtqxWmWMGCcyQSg D2SPnJ6iR3O2/8Pvb57HJZZwWhRuge7Q7M18Ege2SiPBpvgtAp4HaotQV7ge4VIiCEuo wdPPEMs8dO9Lkhs6CT/TLJ2wjPaL3rSDwsasYwu62EOFW5Z9aI4ov2YJzxYncY8YYjcU rbP2XbDjAbmwmpZ5yQ/1z/Ly/TvjY+3BAAciZJB9USqq0msRTz9h6YE3gnmgvI4Zdigs oU/l1yockcXtjoWBKpRWsi7KZx1LIosTBT+MYF5Jxg82IriPzB+X/pARLraY05TxRlop 88Yg== 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=MXuzyEwicRJ5dy0E12hyLh2u7R6xImIQxNp4uw2QrBk=; fh=vYPMSg2DdGVreGoedhCZueM9SXY7QvDJbvFLmdRToRI=; b=xGwfY49XDlAo/IeRjxM+ioIBF7uj/7zued6UtpK67gYBeg0XD8Sk4rZTshgLL0K5uZ A9L+Uo4bkQAQ1sKiqopv8J2sSJiI/prLv7Bt7uBkaoHFMnoNfQo1XwF3B+L7DyVaRfIc 4Rtxqel+QXIHaYMV0nqytq/Sl6MOCvLuTMJMXgxZIxGHzPjA+mNlnXj9YLyRTjCgv8+z gbWpg1eMUgD82PR+k28nEaolU6jLOPs7opc2qykyMNvUuRhCS8NspUmzD+qIXA2mERpd tsaPqXoEBDA51mRdZc0jFd7kzUX+e/RDQ0yuTaLw9+no2Cgv+KGI6xuNZTV9JGpGs22g qgQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QZ+3xWuH; spf=pass (google.com: domain of linux-kernel+bounces-3501-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3501-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d20-20020a0ce454000000b0067eff8c7f47si2366343qvm.224.2023.12.18.03.57.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 03:57:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3501-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QZ+3xWuH; spf=pass (google.com: domain of linux-kernel+bounces-3501-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3501-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 52C271C23285 for ; Mon, 18 Dec 2023 11:57:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B2691C6BD; Mon, 18 Dec 2023 11:48:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="QZ+3xWuH" 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 506F11C6AD; Mon, 18 Dec 2023 11:48:26 +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=1702900104; bh=cGR57+CiG5a+3zirrKt+CQiAa44aj9FUBj5+rhcA9VM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=QZ+3xWuH+hzguRihJ5wfmGV6IBQ4oy3RSHlbf/lRB2c+dNBkK6gAFqaUQ6BHgsYTP B71E+s4hEd5cGoywoTQOe1kbaeb2ZZuJRNEKc7xVtBI27NWEjkyIprI5ph/sYpBynk 56SgJde7fgS+77iBGFoeFNn7K5bG3pw6727TJnyesSfgPpImLp45fRHI5h4eRxU/zG F6znNG4DSGdyhKHM9Wol9Wj3ctEOWFnE/hDUofqYmpfQZzBPAc2CgfOhUgo5hgl4nV RdaygF1EqXYMma/47DjheC66X6nCo4j7osbBxylPw3DRkgwlk6LH5UVhMd1Ip2MxKc st6Q66gdTlKSA== 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 1609037814A3; Mon, 18 Dec 2023 11:48:22 +0000 (UTC) Message-ID: <11f7fbee-4795-4d5f-a5f8-901bc17683eb@collabora.com> Date: Mon, 18 Dec 2023 13:48:21 +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: Conor Dooley , Emil Renner Berthing Cc: "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 , 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> <20231217-rippling-galleria-904152e41f95@spud> From: Cristian Ciocaltea In-Reply-To: <20231217-rippling-galleria-904152e41f95@spud> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/17/23 23:03, Conor Dooley wrote: > On Sat, Dec 16, 2023 at 11:38:53AM -0800, 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. > > FWIW, I don't like the reference-in-the-wrong-place thing either. Yeah, as I already mentioned this was unintentional, will fix in v4. Thanks, Cristian