Received: by 2002:a05:7412:361b:b0:f9:2edb:3e4d with SMTP id ie27csp34508rdb; Sun, 17 Dec 2023 13:03:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGckyXYjh2s6IXNUj+CYZcfZTCmsa/piqlZWFf9O1ecEfJRlE2IBefnnZ1jREzr9NlOoftv X-Received: by 2002:a17:902:e88f:b0:1d3:c12b:cf1f with SMTP id w15-20020a170902e88f00b001d3c12bcf1fmr138930plg.40.1702847035048; Sun, 17 Dec 2023 13:03:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702847035; cv=none; d=google.com; s=arc-20160816; b=dQePoeaSnhKjQSLUwxRD2eGZCgGWKvc54dq62TEyQ4NWq7jTqA1WdvyqaaPzIZ1m3o Hf7QrrhlRjTaKagbbI5G0zqqYy7l8NcLtTHGM3jJkf7xZzkeE1/RD+EVJY3czbP4tc3H eNW0B5vLw4NTfhv9q/C53FatW4ssph/RCxSGCLs2y7q0QRpCOnWj8D7vJ9IaVvywWjT7 /LQMmrNFFIQvfWtebbcFFjRXdBBtPFXMPqcD9quzGaAkl+ivbC+eUXs+ZUJpTxjLupM3 /h0OALTvaDOz3VBpCPDdy9u6f+AQH7lnbai//+4ITxuaEL7yas94cFzV4LJN23Cvm/V7 AIeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NnmD3Xns1qRP+2XGcwhc2gBAUp7pUul8Ifh2znCbTcs=; fh=9cC/Q6xQaEqjPnWe9hAghJDYx0/odNjLa0YwmUIZy14=; b=YQm6SepBy7uyCPdhb3Pytsb1V1iWHO/f1W9gyEcolxCfwrhGe4iel+O1lKpxcEQME1 R2DdE0kfuldTgGP9jR1Aj7uOqWv99i5oYhxUHKEwJBF3L7tw0sPvwJT1fjuEa4Iqip8E 6xCdThX+XSPWYUd4gHJMsOZTDyP5eZQzfB7+OFwHVvGbVcMUQL40FTdfBOW0bK/Yx2wr 1I9Lfewu6N0dwRG+Z4AV/iPHW48Nw4fH3S8zhYUJ65iZ3PBs79wzShqx9zTvOlIGG+RB 7/9BIwJV/Ysi+dkmTWxsKCEzQIF0jq5zIbZ3MrftnXR1oLvX3hk7JIo9nftYZnR4Jy0M Z4Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hvrsPbSD; spf=pass (google.com: domain of linux-kernel+bounces-2809-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2809-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j3-20020a170902c08300b001cf68d3e90csi16708189pld.98.2023.12.17.13.03.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 13:03:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2809-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hvrsPbSD; spf=pass (google.com: domain of linux-kernel+bounces-2809-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2809-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A2C4F282E37 for ; Sun, 17 Dec 2023 21:03:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 39B5248CC3; Sun, 17 Dec 2023 21:03:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hvrsPbSD" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6162948CC0; Sun, 17 Dec 2023 21:03:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61A47C433C7; Sun, 17 Dec 2023 21:03:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702847023; bh=mCEcMXWBRCUl8ycxVYQtMfuRfaojP7UvcGTxOXhKDaI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hvrsPbSDBmXRz7fBWAVgf3e4EySM97yOUjYsBwbpgyiOdI9DY8G/gQoVfOAG5b9io ELWQSRpweiRp25KmFZScZE1R7gu3L4njHUmSeYafmHTHI1hXgkZaaWm+wXueeGyORN sZLgKSVG117kpnXWB//nwjQTcU5HLd07b5ozYEhy3wzX0cuqZ6M2yicJ+k0XCxRjaU bYfavnhJ/435XHwjKKNE8uKp5+tbIyQKUqBUcbUdsw3Poed/utfsxAEUQnqJbL1W+U yBb5EgZjWizSeRZC1XgwZNH1Nz5Hg1OZg9pXcBUMplPIgDrLmtpz+n3p6shg2jcd1L P3At3ee5NOOhQ== Date: Sun, 17 Dec 2023 21:03:36 +0000 From: Conor Dooley To: Emil Renner Berthing Cc: Cristian Ciocaltea , "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 Subject: Re: [PATCH v3 5/9] riscv: dts: starfive: jh7100-common: Setup pinmux and enable gmac Message-ID: <20231217-rippling-galleria-904152e41f95@spud> References: <20231215204050.2296404-1-cristian.ciocaltea@collabora.com> <20231215204050.2296404-6-cristian.ciocaltea@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kG7DkOG8HSp8FfWf" Content-Disposition: inline In-Reply-To: --kG7DkOG8HSp8FfWf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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/ris= cv/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 =3D "default"; > > + pinctrl-0 =3D <&gmac_pins>; > > + phy-mode =3D "rgmii-id"; > > + phy-handle =3D <&phy>; >=20 > I'm not sure if it's a generic policy or not, but I don't really like add= ing 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. --kG7DkOG8HSp8FfWf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZX9iKAAKCRB4tDGHoIJi 0ljjAQDdeQS9ySXycX3Kr1uE7USW6FuoSN3axiU/roL2LS3UxAD/QmhKPwhsop/g JHAPtH4K9zTWBI5z0reix7grWZuUDgQ= =ljQG -----END PGP SIGNATURE----- --kG7DkOG8HSp8FfWf--