Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp36395rdh; Mon, 18 Dec 2023 03:45:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2kCJWFLNzIXxlSlpMt4dOqYntFcPItiV3JE/FpuBUPqm7XUkCucYIQyxYzORzUwub7Cnm X-Received: by 2002:a17:90a:e7cf:b0:28b:4965:df91 with SMTP id kb15-20020a17090ae7cf00b0028b4965df91mr4232386pjb.10.1702899955064; Mon, 18 Dec 2023 03:45:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702899955; cv=none; d=google.com; s=arc-20160816; b=SvDHULQwtKF6O3WG7VregwCZItwIffEhZJ503XmPIFjSoxKisVQuPCodeCimF+eOfA Xhiool4lxGfSsschDbVsn5jYkGfuTC3J8XmkjPEXEZx2x4dKxby70izBL7mMznVXydKf ojW65h+IA3NDSUhnhEKU4CNxeWnGS7G/6mPK/VYPD/LTNZaMxXVLAECWCtYOrAC4RqEU IAs+6mFf2V0olo5lkiPN2OIJH9/6onpLPAOZHFWexIoj8BaqmxdrP7SAwG6RVv2alXml v1o0UkoUbyOVrQh0okSY3AL1FTAG2wPkUdlwO0QwI6XQf9YIFLH269XCv07TLPrH1p9o lUCg== 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=eewPfQRxG7/XHTGBXKAGZzKDkCA5NcLoI84yv5h0CJY=; fh=k70yp9d+wfM/LiD8TytBxARgaLs0fu6FENaxSOkubZM=; b=UP8FQ5ejHOonUaD3QKaaG5kiTnE0KNvNBTZtdje90xNgFKFwgHs0kw3EpWWxzsFZdq Y/bVhywvth0euztLFaRgmWPk/eomEdwvexEa8GDy1ttk3Rqm02zjdOF5fDEJO5iB9d4d kTnbftYGICvy1x9rvincrguEbT820p3Yk4y9u+6BO/RirD/aO6oHbbnOHuux64CZ5iEb qqiAhNuXea48cENN1GgS0s0D8CxU/qbdQdxYLerYylr4YCsGyqnpiNv/QocgkbuXQfRz S317aiXEuvvwY7v9MkW8kQB/a5gsepur6skw6/mvpYmH3jMv1Oux5ABlY5wNXQ1rZNrU gXmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=lFn6oaU5; spf=pass (google.com: domain of linux-kernel+bounces-3461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3461-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d17-20020a17090ad3d100b00286f1a85b64si18845308pjw.77.2023.12.18.03.45.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 03:45:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=lFn6oaU5; spf=pass (google.com: domain of linux-kernel+bounces-3461-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3461-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C98C7B23318 for ; Mon, 18 Dec 2023 11:43:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47EFF358B5; Mon, 18 Dec 2023 11:38:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="lFn6oaU5" 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 591D121364; Mon, 18 Dec 2023 11:38:15 +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=1702899493; bh=V5PA5oyxCd5DFK291fOQmsy6Q17j3UOvBS6drZZobsg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=lFn6oaU5/zBXfw/lfDzsQZdCaZFrqBfttjH8fN5pBpC+x9ugq0uF/v0dGZEiFXRc6 +7oyXTScJk0y2/u+13P+FgCN9xo9hOk0ujzwxI2YY2XRVgOAS3UHZbgaQf3b/Nyyn8 x9KWS4ulLJGO2JJ/FNGyadTdjybGHs7OxL+L7IeijvJf5RQvh9tMcINNbnZ5A9aGYP 0tQfFgU/lZk8ls4dofDxlacunvvIR+6USPl7W0C7WeZQ9UPXms/MR1v5xiZfdnFQWA UXhwYOJolTHy+09ThqcCCwO1/J2c1p0e6rjcTtFXobbHcUK49iLD+meFAW+xXeGU3F nALQ2xfxXz1Rg== 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 8A206378149C; Mon, 18 Dec 2023 11:38:11 +0000 (UTC) Message-ID: Date: Mon, 18 Dec 2023 13:38:10 +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 v2 12/12] [UNTESTED] riscv: dts: starfive: beaglev-starlight: Enable gmac Content-Language: en-US To: Emil Renner Berthing , "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 References: <20231029042712.520010-1-cristian.ciocaltea@collabora.com> <20231029042712.520010-13-cristian.ciocaltea@collabora.com> <2f06ce36-0dc1-495e-b6a6-318951a53e8d@collabora.com> <698fbb5d-0750-4f2a-857f-5429e5f589f9@collabora.com> From: Cristian Ciocaltea In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/16/23 21:24, Emil Renner Berthing wrote: > Cristian Ciocaltea wrote: >> On 11/28/23 02:40, Cristian Ciocaltea wrote: >>> On 11/26/23 23:10, Emil Renner Berthing wrote: >>>> Cristian Ciocaltea wrote: >>>>> The BeagleV Starlight SBC uses a Microchip KSZ9031RNXCA PHY supporting >>>>> RGMII-ID. >>>>> >> >> [...] >> >>>> You've alse removed the phy reset gpio on the Starlight board: >>>> >>>> snps,reset-gpios = <&gpio 63 GPIO_ACTIVE_LOW> >>>> >>>> Why? >>> >>> I missed this in v1 as the gmac handling was done exclusively in >>> jh7100-common. Thanks for noticing! >> >> Hi Emil, >> >> I think the reset doesn't actually trigger because "snps,reset-gpios" is >> not a valid property, it should have been "snps,reset-gpio" (without the >> trailing "s"). >> >> However, this seems to be deprecated now, and the recommended approach >> would be to define the reset gpio in the phy node, which I did in [1]. >> >> Hopefully this won't cause any unexpected behaviour. Otherwise we should >> probably simply drop it. >> >> [1]: https://lore.kernel.org/lkml/20231215204050.2296404-8-cristian.ciocaltea@collabora.com/ > > Oh, nice catch! With your v3 patches the Starlight board still works fine and > GPIO63 is correctly grabbed and used for "PHY reset". Great, thanks a lot for retesting this!