Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6946116rdb; Fri, 15 Dec 2023 12:42:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IE6GkPg8Fa3UkqHMBwl40jUTNZpFNWdtA6XFmilK3UoZKYSyUUhvDuj8+7imn7KKkwU5rNB X-Received: by 2002:a05:6a00:1254:b0:6ce:71ae:a26d with SMTP id u20-20020a056a00125400b006ce71aea26dmr13271313pfi.55.1702672966001; Fri, 15 Dec 2023 12:42:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702672965; cv=none; d=google.com; s=arc-20160816; b=olnRHiTZ7V73sxJcI2LFSvoQyRLJE4HK9aAnZjKwJDXJsjCO6b7qK0INwns4VWZPSu jslLBHtUfAU2MHQ1q0Mp2MB5i83zdnEuUHWeNfLrJpPryl/bEy5dm7L/BewB4nsmdat+ m/4zOYdyvHFErxvzpoS7+9FI1NYLJpN5h0f4nwDS22MO5AaNEmusv4OXtfpj+3D562Hg eV+nPdXEDGR5zSRif6+sINuCeb/tO0P2g6kOfedNGUUmqoSmEg5ABiSKYBQHF10wV7Pq AtXOERmDK/WNTqxYaKoXdxjswvQH5NTh/QYHtL3bfiA2GhAwmYMdCOddcFAKVMRjQCq4 8i/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=uVe1sCH8odSJZVBTPwU6lhbX4pDpPv1qIb826OP/l58=; fh=MOJyzNMsFAJQqEQehvdnrwT/huG78rLnZqS8spAjFqo=; b=E+3tszA7tRv9jl8Qk+qizgLUFjt61h7BfsCHuXPYDE1hgPh9cqhhLbd6Wot9mUozcI cl4H7qPA4uqr8vkVmbirI0XK+2sdejR6cR2g0z5GSRnN5KUu9t0vZaRkL5MTAJWN7v8X HIJkK/KWyTwJmCRHihw+ZGtzsC1B/6b0B+YfERAvvmJ1UeY0XJuyTYjnlEbRVrsJfGZW BpGu0rx78/FyrBPBW1bLANiDKHfkcJVzOlnEe15bBVxwvx8AjmGk03gGE3YLxT7u54+u KEHxKn2xRd/v/fRt4flUzK8UKeEDGFCEYtC9aW7Vpt7REzpwuEXFir6QvfX+lGHA3+DH YgHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=K7VbS9RR; spf=pass (google.com: domain of linux-kernel+bounces-1636-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1636-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b5-20020a6567c5000000b005bdbcff21f5si13275624pgs.501.2023.12.15.12.42.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 12:42:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1636-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=K7VbS9RR; spf=pass (google.com: domain of linux-kernel+bounces-1636-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1636-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A9C1E283EA6 for ; Fri, 15 Dec 2023 20:42:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 69D285644D; Fri, 15 Dec 2023 20:41:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="K7VbS9RR" 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 3A7D8495F6; Fri, 15 Dec 2023 20:40:59 +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=1702672857; bh=IFa49JzpSi/BzGbymN8hqKqmj592DFz7UCEiaxLgfsA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K7VbS9RRJ1bSXDMiww8osDVqzOWXgZykW2QNe/1eP7XDwlnZCluVDJ7q+BvAo1fOv ux+WdATJ0TCdk/RqWkYez2xhe7ewSy/ezzvUQlC5RqxjXN1MSm8+IZ+jKesuhR1ZKs oWzkN8IrWre9/X/MFJTxAKmxyHzmZ0XjyTb7tuItutphf3ycYdF8grJolWgVUTPMba wSMkufkvxDNyNZzoiOFD0BljHIGOgH7QeR+GdHbF4D3supzAg+G9o9k0UYVE+/sA7D 4QFNI2fz7FTx16fwqNwkiRFOp2baE7/n7VH6suky98BSVkENutSr2gBNdkLjjB1d7j z6Iuj5qG965bQ== Received: from localhost (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 6EA803781FF1; Fri, 15 Dec 2023 20:40:57 +0000 (UTC) From: Cristian Ciocaltea To: "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 Subject: [PATCH v3 5/9] riscv: dts: starfive: jh7100-common: Setup pinmux and enable gmac Date: Fri, 15 Dec 2023 22:40:44 +0200 Message-ID: <20231215204050.2296404-6-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231215204050.2296404-1-cristian.ciocaltea@collabora.com> References: <20231215204050.2296404-1-cristian.ciocaltea@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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>; + status = "okay"; + + mdio: mdio { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + }; +}; + &gpio { + gmac_pins: gmac-0 { + gtxclk-pins { + pins = ; + bias-pull-up; + drive-strength = <35>; + input-enable; + input-schmitt-enable; + slew-rate = <0>; + }; + miitxclk-pins { + pins = ; + bias-pull-up; + drive-strength = <14>; + input-enable; + input-schmitt-disable; + slew-rate = <0>; + }; + tx-pins { + pins = , + , + , + , + , + , + , + , + ; + bias-pull-up; + drive-strength = <35>; + input-disable; + input-schmitt-disable; + slew-rate = <0>; + }; + rxclk-pins { + pins = ; + bias-pull-up; + drive-strength = <14>; + input-enable; + input-schmitt-disable; + slew-rate = <6>; + }; + rxer-pins { + pins = ; + bias-pull-up; + drive-strength = <14>; + input-enable; + input-schmitt-disable; + slew-rate = <0>; + }; + rx-pins { + pins = , + , + , + , + , + , + , + , + , + , + , + , + ; + bias-pull-up; + drive-strength = <14>; + input-enable; + input-schmitt-enable; + slew-rate = <0>; + }; + }; + i2c0_pins: i2c0-0 { i2c-pins { pinmux =