Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2623770rdh; Sun, 26 Nov 2023 13:11:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IGeYf0OO2tiX3SDujnWxmIFh5VhFmztuYkgRaBd7BNQ9jfoDG8U3PSkteS/cThg+X8oSSZl X-Received: by 2002:a92:c566:0:b0:359:ca5f:50f5 with SMTP id b6-20020a92c566000000b00359ca5f50f5mr12675122ilj.3.1701033098570; Sun, 26 Nov 2023 13:11:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701033098; cv=none; d=google.com; s=arc-20160816; b=Czo5GjWQwPXchlFlUhJukn2CLrdWrTaX+QvHgaTtpNLrrRK7/+DZcGfc7zK8B9SQG9 nGTOHgT4TU7r7Ky6hTbI5SryzcZ36ktx3YzPgyliSxWXUao5C2vJ/2zNptLizxsdo5de A0ZOWQzhuGWFNGJGPUTyB9sS8hITlyaIzExpUCwMcUSem3DMzHBXILh0sv7PmO0V+4BK CWWeZAxY/p4AVzN8qHENMyptny84D3xvVC4prP0xzDOT8lZEbukmnn1BNVBkUS21p7Mx wDKTjgQle4/ZnZfYEIqwNU5udozIgzX6lcvlS6Bw7vdvpmpAcJF4SMAP3M9wpEFvlxe9 Vklg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:mime-version :references:in-reply-to:from:dkim-signature; bh=rvglDuo/fTyCEy2eZikNSrK0RCDTjL208TqZkqJiFe0=; fh=L3sAS9rIAPetJrE918VRFcCQQAY8UAZiZXaHWXOVg+s=; b=CigIxcQF8qZOtlZZT6G5PUidRnd4D+vADmfAsXuW8PI5kbhEAk3xCQLlMVKYV8hhj7 Db+rTjGm0irft6XEMwdTCNgqIJASdsi1ROxmW4SEMrQXCbiI70oCcpp1SE3tRDDQ2flZ MnEUJMBQ7Xk0UgdpATcqa0CYLJAwHLhtdYVONAVZxt8ZB4fy7y/BqDEK3JAdrpa35BuB SekOs2sZvFDidNJVC2kndoiqF20t0rsDVJYKplwnc+dhTtcaj/GG1AbGJ3X3v6SseY7j jr7muoZVnUAFLpcLFdwPuK/1uMm/IW0o/XYOxFasbP2nb+O06zdm9STp7YlaLoG9x7L6 I/bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=rF7ZL7DW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id q3-20020a631f43000000b005ab45ee3e7esi7780708pgm.299.2023.11.26.13.11.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 13:11:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=rF7ZL7DW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 02CC08070728; Sun, 26 Nov 2023 13:11:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229547AbjKZVLS (ORCPT + 99 others); Sun, 26 Nov 2023 16:11:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjKZVLQ (ORCPT ); Sun, 26 Nov 2023 16:11:16 -0500 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2D71DE for ; Sun, 26 Nov 2023 13:11:22 -0800 (PST) Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 4BB6E3F887 for ; Sun, 26 Nov 2023 21:11:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1701033081; bh=rvglDuo/fTyCEy2eZikNSrK0RCDTjL208TqZkqJiFe0=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=rF7ZL7DWiOlmkxo5D3tdkHBrCdRXfkvw96tgfpCD14Ze5W+t0jdbaCZEWE1WME1ze BYm/0ssQxpd0s/L//45wZUhefP9tNN+FGybnA8UUgSjS0IKBl3rthEQ4hBXqpRCr/S eE25Wd/3jBzxQQBoRk62UY4mzcgen5sdmuoOW4tmFX3ISQEfsmN0B7pw0pC6XrxYoP Kn6isA86eVuMirIbDsSW8TiV0v/eGP4zpmLGZFcQ9PQ56JZ+rxLN6LjmNPTuxmea25 DU1jqct1r65uOFUeKY40iyU9kNsUMn/qsGvPB/pf4E7khheApsA7qZ2rjmui0En04q gsdXNeviD4Kyg== Received: by mail-io1-f70.google.com with SMTP id ca18e2360f4ac-7b397865606so88380639f.1 for ; Sun, 26 Nov 2023 13:11:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701033079; x=1701637879; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rvglDuo/fTyCEy2eZikNSrK0RCDTjL208TqZkqJiFe0=; b=eghEvmrymyaaYkVT/8XxYaHM5/J3QvZbNpHCp1U0onQ0HB1J2FiVUZnD4C0N4mGXVA nVAckpzPY7LWC25AF0S/KEJaQTEOxE9ADpMjRn4WpPELbkVPNCpHFEPzqhAj+11aL/Tu 6cgbitJFMzoh/hWbfk7jyu3iCw9GKxtHyIntnthATU+u4nZVfMigm1XTpG2QKI6WuyWr nPJrU3cQkjXeGZgYT+XLrV1sBJRMVa0heSCqXlakq8mSUp//mj+BrWz7bNS6NxIB9II9 ois/TIXkon9QcEeSrGo0qQdyemM5E2v7CCRTMGr4ycFvZPETn8bZ0stFMu7BNvgB7WuR OHpg== X-Gm-Message-State: AOJu0YxLyaJXi/RCGSd+0feOLI69mwEOF4zrJ8NqzQ6JRSNv0gZcNHMu fmSENcLQeTriAru59MqSk4+KF/6ItSAyQHtNCJAaYHLzx29U4L+HFDCiMMkpDM3g9rvi8NSTDPD gUECL4nzyzNby8SDaoFkI3qKYkriCFpOxyNjr9rFTqPKL8LpqTdCh58zesxuoxOjaLg== X-Received: by 2002:a0c:e241:0:b0:679:2f94:865c with SMTP id x1-20020a0ce241000000b006792f94865cmr10212344qvl.2.1701033058748; Sun, 26 Nov 2023 13:10:58 -0800 (PST) X-Received: by 2002:a0c:e241:0:b0:679:2f94:865c with SMTP id x1-20020a0ce241000000b006792f94865cmr10212317qvl.2.1701033058505; Sun, 26 Nov 2023 13:10:58 -0800 (PST) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Sun, 26 Nov 2023 22:10:57 +0100 From: Emil Renner Berthing In-Reply-To: <20231029042712.520010-13-cristian.ciocaltea@collabora.com> References: <20231029042712.520010-1-cristian.ciocaltea@collabora.com> <20231029042712.520010-13-cristian.ciocaltea@collabora.com> Mime-Version: 1.0 Date: Sun, 26 Nov 2023 22:10:57 +0100 Message-ID: Subject: Re: [PATCH v2 12/12] [UNTESTED] riscv: dts: starfive: beaglev-starlight: Enable gmac To: 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 , 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-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, kernel@collabora.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 26 Nov 2023 13:11:36 -0800 (PST) Cristian Ciocaltea wrote: > The BeagleV Starlight SBC uses a Microchip KSZ9031RNXCA PHY supporting > RGMII-ID. > > TODO: Verify if manual adjustment of the RX internal delay is needed. If > yes, add the mdio & phy sub-nodes. Sorry for being late here. I've tested that removing the mdio and phy nodes on the the Starlight board works fine, but the rx-internal-delay-ps = <900> property not needed on any of my VisionFive V1 boards either. So I wonder why you need that on your board Also in the driver patch you add support for phy-mode = "rgmii-txid", but here you still set it to "rgmii-id", so which is it? You've alse removed the phy reset gpio on the Starlight board: snps,reset-gpios = <&gpio 63 GPIO_ACTIVE_LOW> Why? > > Signed-off-by: Cristian Ciocaltea > --- > arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dts | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dts b/arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dts > index 7cda3a89020a..d3f4c99d98da 100644 > --- a/arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dts > +++ b/arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dts > @@ -11,3 +11,8 @@ / { > model = "BeagleV Starlight Beta"; > compatible = "beagle,beaglev-starlight-jh7100-r0", "starfive,jh7100"; > }; > + > +&gmac { > + phy-mode = "rgmii-id"; > + status = "okay"; > +}; Lastly the phy-mode and status are the same for the VF1 and Starlight boards, so why can't these be set in the jh7100-common.dtsi? /Emil > -- > 2.42.0 >