Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp371595rdb; Sat, 16 Dec 2023 11:39:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IEnu5KoH/0GcTzDmj3Zkq8CZmlBi1U8VEIb78ecU/KLiduMZ9eeYwat14bfyuFLwNq/tc5u X-Received: by 2002:a05:6808:16a1:b0:3a4:8251:5f43 with SMTP id bb33-20020a05680816a100b003a482515f43mr16901991oib.40.1702755566305; Sat, 16 Dec 2023 11:39:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702755566; cv=none; d=google.com; s=arc-20160816; b=NuREy2ziZi8E7idfc/nQWh4HCZQetJKZwXHxThAg+PkuGdMGQs1LVAy54lkbl3uRjf e35YlTYCtBYOSmri7oAFHXxZ1TH2udVbWScDBttzaiVF1huSJcklvPhpCGfGB9yEHODt bXd/x8IICQV3kKPWVoEBZ00PPwa0v6DWpiGI4xZT5snhpE1+dAj0xG7jOtiZnEWttshL VwLHjgegwcfZUp3Y1V+rZ6hFaDB1HOw0JS0u5bFdXZYpvi4D67ZN+wNNBfTlYJ+IjL2B csOdw91WmKVCKHQUcaBmM3fTslD7ZCnTt0LbWPxex4Ob1bs6QnAaE5cRhCsUkgLTxQpF aTRQ== 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=2c7dacoDuG5K0tl+4E3IQI93Dvy5OouinIjtAewN7Os=; fh=ZFIGxuzGP6un5vIJXfNK79eYrS4x7RGOYobHxqAiiME=; b=a70LFA//ejJZlo9Z0YwbFNnOxk8O+a5Ztk/6sBevSLUAiwuiqoEUwEaMQqNixYAEsk Lec7wSRj41QOBJmuWlqxPhl5aPQS1l2IYR5Wam8vNBtEz5MRicPWgIOZwefWZ1e7eyoa 1y8lwntt72/my5k4qJgjLpWfVjm86FJbryrGobU+yG5O3DsICJuBnXvz4MZGz3QaXw0Y mhp2C6NYhnmCtEPctm4QzAJiLssOLsgJ5gWAtXJv6PWJqtY54eHVIdTD1YpnFI41nftP CHojowsGaBK6wtBgLZltk6a93oxGsaK0tNxyQs7aJyle+xFsqMqkUSbUH4l6dHoucuhK IdLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=J6dUi0z8; spf=pass (google.com: domain of linux-kernel+bounces-2347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2347-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f15-20020a65628f000000b005c66e4949a8si15207573pgv.246.2023.12.16.11.39.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 11:39:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=J6dUi0z8; spf=pass (google.com: domain of linux-kernel+bounces-2347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2347-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id ED5182815C8 for ; Sat, 16 Dec 2023 19:39:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38BC2321BA; Sat, 16 Dec 2023 19:39:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="J6dUi0z8" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) (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 2B13931A85 for ; Sat, 16 Dec 2023 19:39:16 +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-yw1-f197.google.com (mail-yw1-f197.google.com [209.85.128.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-0.canonical.com (Postfix) with ESMTPS id 5023A3F1EE for ; Sat, 16 Dec 2023 19:39:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1702755555; bh=2c7dacoDuG5K0tl+4E3IQI93Dvy5OouinIjtAewN7Os=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=J6dUi0z8RXb9y/LaMdfbLe1HW8+KwMBDyPBg/Pl61TOAlpig9gRbl2mos7D+3iWCb oSwRUWcyYkfmQBGZRZVu/ou+Ru0PMS1QGI1vrJMKGQxi9eHhJI+Q4o22M8Ou7+vMZF +J0Mh3g94WTd6+CSdvAuvc4nP02xbIpHg+hqbLwfOdPwmo2B/ChVQnD2CSUOR+3vZp aQYUiSTHvPUUmNDiD2LpAMRjx8kA8MQL+LcrslbkRq5EkPjrgLGfLaROvkI74xlEpp VSjCQf3yBC3gxWOlVfeFTwcY6RvVzDiyF+yFH8fryv1pQPt1sqaksvN8J50H9/YSWp IzMyjfoK0QGJw== Received: by mail-yw1-f197.google.com with SMTP id 00721157ae682-5e5b7e6cd2fso3185057b3.2 for ; Sat, 16 Dec 2023 11:39:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702755554; x=1703360354; 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=2c7dacoDuG5K0tl+4E3IQI93Dvy5OouinIjtAewN7Os=; b=nr0HesMyY/mX/pNvgOumJNxT6JE937ju4dx8qsBiPGpz6nCeU2LzfTk6wAK6WI3POA R+/DrnGP2FY+Dk/hI1dcgJkO6V2yQAlfoHgUWRFPqZP+mcdQ6PXGaK3A+Th6eIXm5ZTm ugGr3EmPOLJCxTLq5oW5+WdL+0G2i5zZ/J8lY1ItNB+avbWbKopdteetuAZ7vAxh0X5m WPXZfNkssgT66UTd5ykyT/3CKZCz3afh8QSIeSoQNkWfsMi3B2XCIFUODorpZ6gBeThq ebQ1v0mxxnKYE/H4CUGj+44ULpBvOe5WCEatwAydUNJxUcvvJ1SNSOgP4QaTSaVDcE4l XRzw== X-Gm-Message-State: AOJu0YzDWBO18f/EKMS3Cq+skz7AimbfGI13Ib+1HmZ/IsmeSSGlMvDQ TlhstRLfDd40WksIquAczuMJuDM46qk1bmAEvPTX/Ag2XAJDHZN/UOrYBZ1pqwOyPMoTiHN+csx 5fBI9C0aqWA/wbaLDfRuzx1gDTjpH322Tv8Npp82CoJ06xTfCIG+r+FHEJA== X-Received: by 2002:a05:622a:1c8:b0:425:4043:18bd with SMTP id t8-20020a05622a01c800b00425404318bdmr20333345qtw.112.1702755534008; Sat, 16 Dec 2023 11:38:54 -0800 (PST) X-Received: by 2002:a05:622a:1c8:b0:425:4043:18bd with SMTP id t8-20020a05622a01c800b00425404318bdmr20333325qtw.112.1702755533644; Sat, 16 Dec 2023 11:38:53 -0800 (PST) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Sat, 16 Dec 2023 11:38:53 -0800 From: Emil Renner Berthing In-Reply-To: <20231215204050.2296404-6-cristian.ciocaltea@collabora.com> References: <20231215204050.2296404-1-cristian.ciocaltea@collabora.com> <20231215204050.2296404-6-cristian.ciocaltea@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:38:53 -0800 Message-ID: Subject: Re: [PATCH v3 5/9] riscv: dts: starfive: jh7100-common: Setup pinmux and 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 , Hal Feng , Michael Turquette , Stephen Boyd , 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-clk@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, kernel@collabora.com, Emil Renner Berthing Content-Type: text/plain; charset="UTF-8" Cristian Ciocaltea wrote: > Add pinmux configuration for DWMAC found on the JH7100 based boards and > enable the related DT node, providing a basic PHY configuration. > > Co-developed-by: Emil Renner Berthing > Signed-off-by: Emil Renner Berthing > Signed-off-by: Cristian Ciocaltea > --- > .../boot/dts/starfive/jh7100-common.dtsi | 85 +++++++++++++++++++ > 1 file changed, 85 insertions(+) > > diff --git a/arch/riscv/boot/dts/starfive/jh7100-common.dtsi b/arch/riscv/boot/dts/starfive/jh7100-common.dtsi > index 42fb61c36068..5cafe8f5c2e7 100644 > --- a/arch/riscv/boot/dts/starfive/jh7100-common.dtsi > +++ b/arch/riscv/boot/dts/starfive/jh7100-common.dtsi > @@ -72,7 +72,92 @@ wifi_pwrseq: wifi-pwrseq { > }; > }; > > +&gmac { > + pinctrl-names = "default"; > + pinctrl-0 = <&gmac_pins>; > + phy-mode = "rgmii-id"; > + phy-handle = <&phy>; I'm not sure if it's a generic policy or not, but I don't really like adding a reference to a non-existant node here. I'd move this property to the board files where the phy node is actually defined. /Emil