Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp366947rdb; Sat, 16 Dec 2023 11:24:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHr34nO6ePOifEwIR1Bu64Nc3AC+gj06QQqIed3lpmaKyaz2yD8MSsk2RtU91q6XFKnBhtZ X-Received: by 2002:a0c:e587:0:b0:67a:cfff:ca3 with SMTP id t7-20020a0ce587000000b0067acfff0ca3mr15580097qvm.117.1702754698786; Sat, 16 Dec 2023 11:24:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702754698; cv=none; d=google.com; s=arc-20160816; b=OTmi4mt0QW2kdmS0E3yx+v5GAAdlv+JKUoka9NFPUkVj3iwTGW2zlQaudIlj1wt6Hd flWaBiOzYFbbEre3jOU29OYP3iG5Ear1+1XDmRn14erVKe09g/kVeDW0w+6zmFoNYrmb BT4Ekb74zojuzCERPUxW0Mka7v8K7b7SaCAWdatW5b8dZBltbfjTPfBIQnysQUgGepyO /Got13EK+klPAx20ewJrjXR3tGVx1VAcjH3BAWp9MbN3WIQtAGvLAsicj09QHKDoJ8Hf uu1Q+7yIrzFf7REXnGU085q8a3kSYf8gNT4uE+GD2FS7D0NRVvq/NzlHNozAXE6pOoSP oHBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:from :dkim-signature; bh=arp4KgnNalvlcscGqi/VgrS8JYrKrYTVbwSx1z/f2Zk=; fh=mV6gH+BAWcC0n1vcNvWIeUZDzZcOZtVtkH1QsmQC2Lc=; b=lKxV2W/5NosN2d0XLOnp6d5sOHsPPU8eYHpJHeA0lfmQC7EYCcx0IoKjqwbd6PIJUv VAwJytteLJlIpFQ5cRMO78LhStP22XYUGXhODwKLEK/u6nex7gc2qUaPABmzmXqlJq5h O0aHm95PlL2j4JHhyiUNgfiQkNMWwMNj3go89dAdSfVtHigoZE3udh9X7dcwP1tSQjRD 5td7MOxLVjbbeb3LbmLBvE9zFf6N6Rbb/BAtycdZaAaz5f53UjckBJcT+YIx7Mh7XO50 hucZM3yIJEzWNgy2opsMtCrix19i001WpyEgSzxfrufawMG6ufIO3XglpgfMaHlbBbqO ZMTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=iscJyetl; spf=pass (google.com: domain of linux-kernel+bounces-2341-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2341-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j9-20020a0cf309000000b0067f3314d4b1si506808qvl.339.2023.12.16.11.24.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 11:24:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2341-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=iscJyetl; spf=pass (google.com: domain of linux-kernel+bounces-2341-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2341-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 50B411C214D3 for ; Sat, 16 Dec 2023 19:24:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 457BF321AD; Sat, 16 Dec 2023 19:24:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="iscJyetl" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (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 871FC31A6F for ; Sat, 16 Dec 2023 19:24:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) (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-1.canonical.com (Postfix) with ESMTPS id A61B63F2C5 for ; Sat, 16 Dec 2023 19:24:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1702754682; bh=arp4KgnNalvlcscGqi/VgrS8JYrKrYTVbwSx1z/f2Zk=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=iscJyetlYx/Qnbmo/VkOHDYJiCr4Rk8y/rSSWRPM/rY61Og3jIV6/7uBwigcl8MsO nEh1GHEqwlbBs9B+EMeRoFZiGLe/23dIWe0Bt2o0mReBGGkHQYap0cNVByxdnc+34T h+EQOsZLiewz3AMDlS0z8NoYPv+MQTVijewBcp4PzNDh0HHueJkQssF8moXHX8o5eC 8C711SnZsGtXNF7Wy8UR1dZ8YDwUp3X1QYK+Eyvb/xZ2E25GE2Hj3Bq5sfVVgZ1xQ3 JzKqk2z4sTzvWQl/s7n/Wp8SsYk1vGvyI+zOUTjy5iif0RoJDF9iodY/x3Jn+B5/Mm HhCVXkepkTWPg== Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-425d5915c69so33720341cf.0 for ; Sat, 16 Dec 2023 11:24:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702754681; x=1703359481; 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=arp4KgnNalvlcscGqi/VgrS8JYrKrYTVbwSx1z/f2Zk=; b=qEqyLa5+4fUf7G169P+VhFegroEzOr8CA7QiRXewG/c/TbOQOVqu7uNdFiI7ZKQxuV feTKd3fzkY0HvwnUhE5qjfqIJ4/+kXnAqGQI2/A9xu/te6zsbe+fUy4bhQhzeWL7Au9/ Wh0ODhz+a266nmETQpvgmxz1Z7z1pB35pM7M47UNdAI6ZDwbHIcltApvaU563aHm0GMy eGTUv29JZy2Ol9FlBqfpquxyKUQiDlHoqrO4XTmi3zFK5Dohs+4uRSRwGtOC4tceAfgI Y/804miIrzkd98RnBIemvv2W/LZH9N+efTMywKNq00ELIp4uYIt0JmXA4+EWcUxS10cU m2fw== X-Gm-Message-State: AOJu0YzTLnFtcMbAyWIg/YX8r1OPkFGhv1H5+SbCPxW/Zwk3kRBCPd2w Wl5djeHm9dPpTJ1maGieeCcqdcNcXs3gqFWssVyj6jO7/VLB0vtafGes1/ZEhXF0eG8US9PXnSq 14VhIOW2K710aEa8jLGBJK0WsQ+Kap4h7apxirnjXtMz6t9Ip3xv5xiQRaA== X-Received: by 2002:a05:622a:1cf:b0:418:1565:ed50 with SMTP id t15-20020a05622a01cf00b004181565ed50mr17632929qtw.66.1702754681669; Sat, 16 Dec 2023 11:24:41 -0800 (PST) X-Received: by 2002:a05:622a:1cf:b0:418:1565:ed50 with SMTP id t15-20020a05622a01cf00b004181565ed50mr17632917qtw.66.1702754681432; Sat, 16 Dec 2023 11:24:41 -0800 (PST) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Sat, 16 Dec 2023 11:24:40 -0800 From: Emil Renner Berthing In-Reply-To: <698fbb5d-0750-4f2a-857f-5429e5f589f9@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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Date: Sat, 16 Dec 2023 11:24:40 -0800 Message-ID: Subject: Re: [PATCH v2 12/12] [UNTESTED] riscv: dts: starfive: beaglev-starlight: Enable gmac To: Cristian Ciocaltea , 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 Content-Type: text/plain; charset="UTF-8" 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". /Emil