From nobody Mon Feb 9 01:20:31 2026 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (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 0274E2571BE; Thu, 16 Oct 2025 10:08:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760609342; cv=none; b=FQNKy+kocRHL5lw1e43Dvs2QWNQzyRaKKRcMhBkIIgBFa8UDb2yFrMScuQLeTDW9EHSdZNS0jBndh6XSszhpdkfwKHYa+WLirasn9mhg6coq8rFShrVJyCwTIBCNmcBEhqoeoP2XUvDmLhJYsajYskBJV6WREde66FEm+tgTPr0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760609342; c=relaxed/simple; bh=YvAn2hXGjztM1f4HAy7F7ikwrS8JBglEj5IZ6jjRVbk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=isPmWoutiq+/MktsMuHGZTUBLgnSu7fXj5hBDSZYtPK1iUfmHDy8YTRjf6Hq5UPSFlHSB+vTw1rdnbeYsgyE/ubkuzlyIgoU6a1DswTUvnbcyNDOadRNgI5H435hD0dYkJBuHbilMqrhGDKh7sYksD4nsd66nIWkJz76pfAZ0wo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=FSKOlFpm; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="FSKOlFpm" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1760609335; bh=YvAn2hXGjztM1f4HAy7F7ikwrS8JBglEj5IZ6jjRVbk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=FSKOlFpmwY7sUH1WQ/xDcnfPl7kPCE2PU2w3q6mkklwXimgaee8Lrfd5F55Mueol/ +vRfOg5LBWulaWOqgNwp4tbZz8DM1hp5aVv2CG6DrlOOIPMjP0Fv8uQTUPFmJy8q83 FwB7cwUi3JjrV7fyaCVCBR2LPpVLvN/R5NvbcfUoTDEeZRA96mCmxgyCJmJv507hF4 iljK26EEF8A8iXRqIRRXfYdek6nmA/SH3qy52EUZL9az0VfF3qyHyc3UbI6hsURWWT IDz937cM4t3WGk9cG3z1TCX6Fa/iLrJWHLgq/eTBGXkYW3+L0YXmsiJms6XjtFLywi q04mimivQkHSw== Received: from beast.luon.net (simons.connected.by.freedominter.net [45.83.240.172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sjoerd) by bali.collaboradmins.com (Postfix) with ESMTPSA id F1B3E17E1418; Thu, 16 Oct 2025 12:08:54 +0200 (CEST) Received: by beast.luon.net (Postfix, from userid 1000) id C6ED810C9C798; Thu, 16 Oct 2025 12:08:53 +0200 (CEST) From: Sjoerd Simons Date: Thu, 16 Oct 2025 12:08:48 +0200 Subject: [PATCH 12/15] arm64: dts: mediatek: mt7981b-openwrt-one: Enable Ethernet Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251016-openwrt-one-network-v1-12-de259719b6f2@collabora.com> References: <20251016-openwrt-one-network-v1-0-de259719b6f2@collabora.com> In-Reply-To: <20251016-openwrt-one-network-v1-0-de259719b6f2@collabora.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Ryder Lee , Jianjun Wang , Bjorn Helgaas , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Manivannan Sadhasivam , Chunfeng Yun , Vinod Koul , Kishon Vijay Abraham I , Lee Jones , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lorenzo Bianconi , Felix Fietkau Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-pci@vger.kernel.org, linux-phy@lists.infradead.org, netdev@vger.kernel.org, Daniel Golle , Bryan Hinton , Sjoerd Simons X-Mailer: b4 0.14.3 Enable the Ethernet subsystem on OpenWrt One board with dual-MAC configuration: - GMAC0: Connected to external Airoha EN8811H 2.5GbE PHY via SGMII (2500base-x mode) for WAN connectivity with LED indicators - GMAC1: Connected to internal MT7981 1GbE PHY (GMII mode) for LAN Ethernet aliases are defined to provide consistent network interface naming (ethernet0 =3D LAN, ethernet1 =3D WAN). Signed-off-by: Sjoerd Simons --- .../boot/dts/mediatek/mt7981b-openwrt-one.dts | 58 ++++++++++++++++++= ++++ 1 file changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts b/arch/ar= m64/boot/dts/mediatek/mt7981b-openwrt-one.dts index 9878009385cc6..6e6e4f1515f67 100644 --- a/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts +++ b/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts @@ -3,6 +3,8 @@ /dts-v1/; =20 #include "mt7981b.dtsi" +#include +#include #include "dt-bindings/pinctrl/mt65xx.h" =20 / { @@ -10,6 +12,8 @@ / { model =3D "OpenWrt One"; =20 aliases { + ethernet0 =3D &gmac1; + ethernet1 =3D &gmac0; serial0 =3D &uart0; }; =20 @@ -41,6 +45,56 @@ reg_5v: regulator-5v { }; }; =20 +ð { + status =3D "okay"; + + gmac0: mac@0 { + compatible =3D "mediatek,eth-mac"; + reg =3D <0>; + nvmem-cells =3D <&macaddr_factory_24 0>; + nvmem-cell-names =3D "mac-address"; + phy-mode =3D "2500base-x"; + phy-handle =3D <&phy15>; + }; + + gmac1: mac@1 { + compatible =3D "mediatek,eth-mac"; + reg =3D <1>; + phy-mode =3D "gmii"; + phy-handle =3D <&int_gbe_phy>; + }; +}; + +&mdio_bus { + phy15: ethernet-phy@f { + compatible =3D "ethernet-phy-id03a2.a411"; + reg =3D <0xf>; + interrupt-parent =3D <&pio>; + interrupts =3D <38 IRQ_TYPE_EDGE_FALLING>; + reset-gpios =3D <&pio 39 GPIO_ACTIVE_LOW>; + reset-assert-us =3D <10000>; + reset-deassert-us =3D <20000>; + airoha,pnswap-rx; + + leds { + #address-cells =3D <1>; + #size-cells =3D <0>; + + led@0 { + reg =3D <0>; + function =3D LED_FUNCTION_WAN; + color =3D ; + }; + + led@1 { + reg =3D <1>; + function =3D LED_FUNCTION_WAN; + color =3D ; + }; + }; + }; +}; + &pcie { pinctrl-names =3D "default"; pinctrl-0 =3D <&pcie_pins>; @@ -145,6 +199,10 @@ partition@180000 { }; }; =20 +&sgmiisys0 { + mediatek,pnswap; +}; + &uart0 { pinctrl-names =3D "default"; pinctrl-0 =3D <&uart0_pins>; --=20 2.51.0