From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA839C43217 for ; Thu, 1 Dec 2022 17:53:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230378AbiLARxD (ORCPT ); Thu, 1 Dec 2022 12:53:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230447AbiLARwe (ORCPT ); Thu, 1 Dec 2022 12:52:34 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21481BD40C; Thu, 1 Dec 2022 09:49:09 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8EDAC620AC; Thu, 1 Dec 2022 17:49:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEDBCC433D7; Thu, 1 Dec 2022 17:49:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669916948; bh=ND2zlHSHHuuGHYwNjXAHSmKTCOCnsFtqcA19MkdHXMs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gFAr72gDCcBN0kR5qluhgiS/OMPUblkPgQxZEy+MqOw9j4h5rvEfbVFM3z9NLRXuJ QSaSXsG18NWlvQ9qwV44TzkR8kpg/2+kBZGxD4reqF2Gi6B4pz++aIlxKAM3TE+1pP +EaKLpo+wkd9KbJEEbLndFBX3thTgZsIPpBGUGydVVzgTwWFwPF2tc2zydekx/9C7t cBFvS4fBKM7FAtw8Hel6dTTmYIxNZGJRvj8njWEyFhsyhSSCHr6ZTD0lBV5bRfZ4Ug qIMRde8fDdkegHmgbWPZS/rRvqLm7eG4mPHZuxck4AVdPn3GBO5dqJpXEVcIwRGGxG Fm0xWHegDzXLA== Date: Thu, 1 Dec 2022 17:49:02 +0000 From: Conor Dooley To: Yanhong Wang Cc: linux-riscv@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Richard Cochran , Andrew Lunn , Heiner Kallweit , Peter Geis Subject: Re: [PATCH v1 7/7] riscv: dts: starfive: visionfive-v2: Add phy delay_chain configuration Message-ID: References: <20221201090242.2381-1-yanhong.wang@starfivetech.com> <20221201090242.2381-8-yanhong.wang@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221201090242.2381-8-yanhong.wang@starfivetech.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 01, 2022 at 05:02:42PM +0800, Yanhong Wang wrote: > Add phy delay_chain configuration to support motorcomm phy driver for > StarFive VisionFive 2 board. > > Signed-off-by: Yanhong Wang > --- > .../jh7110-starfive-visionfive-v2.dts | 46 +++++++++++++++++++ > 1 file changed, 46 insertions(+) > > diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-v2.dts b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-v2.dts > index c8946cf3a268..2868ef4c74ef 100644 > --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-v2.dts > +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-v2.dts > @@ -15,6 +15,8 @@ > > aliases { > serial0 = &uart0; > + ethernet0=&gmac0; > + ethernet1=&gmac1; Please match the whitespace usage of the existing entry. > }; > > chosen { > @@ -114,3 +116,47 @@ > pinctrl-0 = <&uart0_pins>; > status = "okay"; > }; > + > +&gmac0 { > + status = "okay"; > + #address-cells = <1>; > + #size-cells = <0>; > + phy-handle = <&phy0>; > + status = "okay"; > + mdio0 { A line of whitespace before the child nodes too please :) > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "snps,dwmac-mdio"; > + phy0: ethernet-phy@0 { > + reg = <0>; > + rxc_dly_en = <1>; > + tx_delay_sel_fe = <5>; > + tx_delay_sel = <0xa>; > + tx_inverted_10 = <0x1>; > + tx_inverted_100 = <0x1>; > + tx_inverted_1000 = <0x1>; > + }; > + }; > +}; > + > +&gmac1 { > + status = "okay"; > + #address-cells = <1>; > + #size-cells = <0>; > + phy-handle = <&phy1>; > + status = "okay"; > + mdio1 { > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "snps,dwmac-mdio"; > + phy1: ethernet-phy@1 { > + reg = <1>; > + tx_delay_sel_fe = <5>; > + tx_delay_sel = <0>; > + rxc_dly_en = <0>; > + tx_inverted_10 = <0x1>; > + tx_inverted_100 = <0x1>; > + tx_inverted_1000 = <0x0>; > + }; > + }; > +}; > -- > 2.17.1 >