From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C5525CD5BB0 for ; Fri, 22 May 2026 10:03:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dt6kA3YKwhj0oShDsrm+w3qvuBtUZRe70TUf7eefJck=; b=Y4xxa5txfTcWF4 hH5pVAD6oIyw4pkho0ZZ5PoZAKCG/FxWNaDHjPtJGP5RKPGA8yZMniMCnQCUJzYsJsUfN5g9MfQFW ibhXZ58irR4YuZu9vf4B2mNv+Yyop3GfjlzuRMz9XGHb5QyQqb7Ruo1lh0PbbkrcqcjZFgiLGzJpy 16cSTIw6iSro1RfaW/LuwunSK7WfiliDwsKICmJr2NE8HQERwWXkh3ezltk6+60n8ElJxB55s25pG Ye/0BPDRhib4/Qxzc/4xJC6v+gZ0/sf35UWHqF2EzjHeCK8cfoRfkQqVzpPzQLHNYbgn7TvbfJghL lmH/1qBpMg8yLT4XDx+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wQMip-0000000AQJe-0qxo; Fri, 22 May 2026 10:03:15 +0000 Received: from sender4-op-o15.zoho.com ([136.143.188.15]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wQMin-0000000AQJ2-0Rvo for linux-riscv@lists.infradead.org; Fri, 22 May 2026 10:03:14 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1779444187; cv=none; d=zohomail.com; s=zohoarc; b=NEAlU+n6HtcKHaPRlS2cAOoT5YiSc3uHIvNlhdXROthGo19u8KyPWrbi1tTyVv3ndG6M5AgYaOgIIcgTk+zKE3xr0UewmR+kdP8UONI0CAk2X9qZ1Q0pZ/PKdCC8Cbou96iZQYlHuOcqmA4TYzYwFUIo9/aDFXzelgXEjRQy/rQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1779444187; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=CYOxzoZuvfBifsCf4uAL4U46AoKqF5Z8ceyciuumBH8=; b=NmoAEc8BY7b5VaxPMiltjRIPH4v2e+ju9G8Gk5WkonQONjQxmYM7wDR/l57/gsGa2itNWwa+xiedzdvZCWS37d5bbDRAFGHochQpw8aSMXMMObznGdh1LxTXAXj2nkYIz62R0Wy4ZyYRT6aA7UyFcKU6W/OYAIK7IOZKqSmUc9k= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=pigmoral.tech; spf=pass smtp.mailfrom=junhui.liu@pigmoral.tech; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1779444187; s=zmail; d=pigmoral.tech; i=junhui.liu@pigmoral.tech; h=From:From:Date:Date:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Message-Id:References:In-Reply-To:To:To:Cc:Cc:Reply-To; bh=CYOxzoZuvfBifsCf4uAL4U46AoKqF5Z8ceyciuumBH8=; b=J7IzUezShDXhcw2azuHiEZzrGAhd8BUBrIYuBbsyInqLgWUgbAdZ3Q3sV4PHFFvZ H3Wu9g49D4wSNcZTQiTj7E0alFp/iazaEuLm4b0FIbfXz32mDDUQRIAGzep+LP1ehOC yyhasYm+Swxaq1gbMObhylM3Ph78RfKsXjlY5P4s= Received: by mx.zohomail.com with SMTPS id 1779444184804298.6198250046622; Fri, 22 May 2026 03:03:04 -0700 (PDT) From: Junhui Liu Date: Fri, 22 May 2026 18:01:34 +0800 Subject: [PATCH 2/3] riscv: dts: spacemit: k1: Split gmac_clk_ref into independent pinctrl groups MIME-Version: 1.0 Message-Id: <20260522-bpi-cm6-v1-2-707ef1917a30@pigmoral.tech> References: <20260522-bpi-cm6-v1-0-707ef1917a30@pigmoral.tech> In-Reply-To: <20260522-bpi-cm6-v1-0-707ef1917a30@pigmoral.tech> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Yixun Lan , Vivian Wang , Paolo Abeni , Guodong Xu , Yangyu Chen Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, linux-kernel@vger.kernel.org, Junhui Liu X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1779444139; l=2207; i=junhui.liu@pigmoral.tech; s=20251228; h=from:subject:message-id; bh=zkGnRbgCdywlE2nwWJjpaTONdfWD2+fa423VLntImYA=; b=EAEtUXXVswunsrERQoedMSki48bc3bT/J7u477Hd3HP4SGRGlJ+BbO0fJmbbva0sBsss2e2gt uEcfstpWv36CTHuzCwr87SpTVwC2BC/TpV6B0laTCE3AOk5OVDqf4ra X-Developer-Key: i=junhui.liu@pigmoral.tech; a=ed25519; pk=3vU0qIPJAH8blXmLyqBhKx+nLOjcLwwYhZXelEpw7h4= X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260522_030313_202808_0CF21644 X-CRM114-Status: GOOD ( 11.30 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org The gmac_clk_ref signal is optional for the GMAC controller and is not strictly required for all hardware designs. In several already upstreamed K1 boards, this signal remains unconnected or the corresponding resistor is marked as NC. Furthermore, the pins for gmac0_clk_ref (GPIO 45) and gmac1_clk_ref (GPIO 46) may be used as GPIOs for other functions even when the Ethernet controller is active. Splitting these into independent groups avoids pinmux conflicts and allows boards to use the reference clock signal only when it is actually needed. Fixes: 60775f28cfb7 ("riscv: dts: spacemit: Add Ethernet support for K1") Signed-off-by: Junhui Liu --- arch/riscv/boot/dts/spacemit/k1-pinctrl.dtsi | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/arch/riscv/boot/dts/spacemit/k1-pinctrl.dtsi b/arch/riscv/boot/dts/spacemit/k1-pinctrl.dtsi index 4e9a62d0e85b..8c57ca05dabd 100644 --- a/arch/riscv/boot/dts/spacemit/k1-pinctrl.dtsi +++ b/arch/riscv/boot/dts/spacemit/k1-pinctrl.dtsi @@ -27,8 +27,16 @@ gmac0-pins { , /* gmac0_tx_en */ , /* gmac0_mdc */ , /* gmac0_mdio */ - , /* gmac0_int_n */ - ; /* gmac0_clk_ref */ + ; /* gmac0_int_n */ + + bias-pull-up = <0>; + drive-strength = <21>; + }; + }; + + gmac0_clk_ref_cfg: gmac0-clk-ref-cfg { + gmac0-clk-ref-pins { + pinmux = ; /* gmac0_clk_ref */ bias-pull-up = <0>; drive-strength = <21>; @@ -51,8 +59,16 @@ gmac1-pins { , /* gmac1_tx_en */ , /* gmac1_mdc */ , /* gmac1_mdio */ - , /* gmac1_int_n */ - ; /* gmac1_clk_ref */ + ; /* gmac1_int_n */ + + bias-pull-up = <0>; + drive-strength = <21>; + }; + }; + + gmac1_clk_ref_cfg: gmac1-clk-ref-cfg { + gmac1-clk-ref-pins { + pinmux = ; /* gmac1_clk_ref */ bias-pull-up = <0>; drive-strength = <21>; -- 2.54.0 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv