Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp220799rwb; Thu, 1 Dec 2022 01:07:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf5iGW9NIfeNsJIZj43ZAAkxh7qVt7PaLnxUCQXTRqXqX2TrQCWARBPAet1XqzQXp9F7pUFG X-Received: by 2002:aa7:c9cd:0:b0:461:891a:8162 with SMTP id i13-20020aa7c9cd000000b00461891a8162mr58049254edt.398.1669885631636; Thu, 01 Dec 2022 01:07:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669885631; cv=none; d=google.com; s=arc-20160816; b=OnPo1njHFD32uV7zccsC5oKCOLZgxeWH4ZdcX11BD9qdGOX7nPHz2wmZlxLIEKMbIm nDXNLiq3js50+HjTGk7xFD4PiaFIWpj1xCK1aIhhuIC/zhh8XDbmme1VEdelR+YJm1jJ ciXZBZ+x5IEYbcitNf1iY4o23cf2O5DDb1f1VnLfcBDl7ByTW53ETC96dSRHRSXv+uxn BwTadtIbRAHrSd096fdUg9/0s4v/+24S5nqKqZ0tsDCfjfdv0/r0DTSQ+N5rFSp90sUf ZBF+CZTOGE+FB+3IPL84s5Smgx5FqLFwc1d3Z53LmuFN14esweQn95ai+gv36BL841L5 HYjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=giQDl82EJYzXomnabOK9bzGYS7S1W8v0HO3uHxaH+/A=; b=xTZjZSwmVN12Ftos31sRbIER+3F9KjQzFuKEth1LpTjdB9Dlj7D61bFjEJMOoumTTt F5sMVcInigNvcTbWMKR3YtmVywdpYqe4bFyJNpfqlgw3frgpc9n5WHouoUczhpndBgu3 V/x6mw6F1NdxcGlI7YRGKTACTqH0f1jTBJSNhWJKZ4ZbQDUtgwZnY8bc5n1yQz94xxV1 vq4whYXw0HRHXLboiRQb7MSx33V8BpwCT4qwCAgtSDks1KhqP7FD/gCT9SV60CvNLIfT pGwNJGHosjkI+383HF9WyvTV9r33updvJa/chi1tcQbT+bNfoIXQGbTeiNO349hjKrdk uCAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id be25-20020a0564021a3900b0046ae9e1bacesi3321067edb.604.2022.12.01.01.06.51; Thu, 01 Dec 2022 01:07:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230030AbiLAJCl (ORCPT + 82 others); Thu, 1 Dec 2022 04:02:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229966AbiLAJCM (ORCPT ); Thu, 1 Dec 2022 04:02:12 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 275FB4E421; Thu, 1 Dec 2022 01:02:11 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id C011D24E116; Thu, 1 Dec 2022 17:02:09 +0800 (CST) Received: from EXMBX173.cuchost.com (172.16.6.93) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 1 Dec 2022 17:02:10 +0800 Received: from wyh-VirtualBox.starfivetech.com (171.223.208.138) by EXMBX173.cuchost.com (172.16.6.93) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 1 Dec 2022 17:02:08 +0800 From: Yanhong Wang To: , , , CC: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Richard Cochran , Andrew Lunn , Heiner Kallweit , Peter Geis , Yanhong Wang Subject: [PATCH v1 7/7] riscv: dts: starfive: visionfive-v2: Add phy delay_chain configuration Date: Thu, 1 Dec 2022 17:02:42 +0800 Message-ID: <20221201090242.2381-8-yanhong.wang@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221201090242.2381-1-yanhong.wang@starfivetech.com> References: <20221201090242.2381-1-yanhong.wang@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS065.cuchost.com (172.16.6.25) To EXMBX173.cuchost.com (172.16.6.93) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; }; 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 { + #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