From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sendmail.purelymail.com (sendmail.purelymail.com [34.202.193.197]) (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 B0F7B314A95 for ; Mon, 8 Jun 2026 19:30:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=34.202.193.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780947032; cv=none; b=drnk9pIxZL4KFQi/I8wHqUSTe9S38ujWYMb2fUG5ZJZpPPpQVuiznjxvyMcuQnwe1NMcVVyGH0YQlnz+hdIpxv8FXB8zjY6PBbkrdvZ+el79bmXD/1zF7U591mcn9hOmICgUkncDPGPnUGemoD2kOiahVaQ9jeM4RLXqAATChbI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780947032; c=relaxed/simple; bh=hzzuI+m1ZMqYpN7/Z1xREb/l5asqccEetkZ7Qt2IVPE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PauAM2KZlL5rfyPDQn6A6Qmjol+ob/ng5J6Nw4uqTqgYVeFY7G25gA4/OdaCWsnqb10CqAhT4cDy3GooEx0d2Jmv0bxiunUWa8FvJwX30/xZCmVQLZr5nXFN9+hS3qKxGMBBoke5uIZHJ8HA8yl/COEJmBlbi6aVlbfMA5d4JKM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=tinyisr.com; spf=pass smtp.mailfrom=tinyisr.com; dkim=pass (2048-bit key) header.d=tinyisr.com header.i=@tinyisr.com header.b=hMa03NrA; dkim=pass (2048-bit key) header.d=purelymail.com header.i=@purelymail.com header.b=RK4QpAsy; arc=none smtp.client-ip=34.202.193.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=tinyisr.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tinyisr.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tinyisr.com header.i=@tinyisr.com header.b="hMa03NrA"; dkim=pass (2048-bit key) header.d=purelymail.com header.i=@purelymail.com header.b="RK4QpAsy" Authentication-Results: purelymail.com; auth=pass DKIM-Signature: a=rsa-sha256; b=hMa03NrA+OZebmBBcq+l0f5/nXPAWGsmKe8N4o9fRqn5+PNmZJ12mu3W3nobpP+KDmdWBfer1JORRJMwTi9ua5V3ApboCPNWMsSmNdJqF7x0KoqTnyyid+3x7AkhLdtLMTRDF3lG1ttoa2lMsItfH96SeUtgOReEuxUg3XjqTXL1q9Tvu7pyX1EKxaVIadmU2LUM6M/t1IhcMe0CebUn5qGTLd2sP+s88SXiv7sdLxpi3bIHKnuUMgko0J2VCH7qVBAkdiiVsorA0s73fTxuO+xvBRNA7vI1+ceOKpNhqH+BdMpXL//lq2UDuBHp/mputDGhDL9I0efcvmYrPzS1Yw==; s=purelymail2; d=tinyisr.com; v=1; bh=hzzuI+m1ZMqYpN7/Z1xREb/l5asqccEetkZ7Qt2IVPE=; h=Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=RK4QpAsyrmiMivaXJEfZWeZM/2HbrolseIEAVfIiHJrNGXdN5xmmo0mqwn4wWTTog0m3r81vcrJ293omxY8sTGAtjTMAoSJ7RB1G/OSqCGQBF39LdHcyD0vui8U3cyetZWqTJx1EHW7PFYc2VWC9NCpSwnZOJxkECQp69Y5CwhluvQDcPqwebRwFeMPZkG9SUVSy9SYtXAm9c55ZyADgCHB0WycBu2kNPMIy0wDwZyiTjWggl9ixEpWv8k2wnfMx2oBGlNgI5DEor5xPGLPCNIkddNfO6v1CRFuxiYBylT278ijNW5PlK+D5z4bx7fCdk7tTeCxJNggLsWepxzkF9A==; s=purelymail2; d=purelymail.com; v=1; bh=hzzuI+m1ZMqYpN7/Z1xREb/l5asqccEetkZ7Qt2IVPE=; h=Feedback-ID:Received:From:To:Subject:Date; Feedback-ID: 99681:12517:null:purelymail X-Pm-Original-To: netdev@vger.kernel.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 305744462; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 08 Jun 2026 19:30:22 +0000 (UTC) From: Joris Vaisvila To: netdev@vger.kernel.org Cc: horms@kernel.org, pabeni@redhat.com, kuba@kernel.org, edumazet@google.com, davem@davemloft.net, olteanv@gmail.com, Andrew Lunn , devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , Joris Vaisvila Subject: [PATCH net-next v4 1/4] dt-bindings: net: dsa: add MT7628 ESW Date: Mon, 8 Jun 2026 22:29:45 +0300 Message-ID: <20260608192948.289745-2-joey@tinyisr.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260608192948.289745-1-joey@tinyisr.com> References: <20260608192948.289745-1-joey@tinyisr.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by Purelymail Content-Type: text/plain; charset=UTF-8 Add device tree bindings for the MediaTek MT7628 embedded Ethernet Switch. The switch provides 5 external user ports and 1 internal CPU port, with integrated 10/100 PHYs and fixed port to PHY mapping. Signed-off-by: Joris Vaisvila --- .../bindings/net/dsa/mediatek,mt7628-esw.yaml | 97 +++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/dsa/mediatek,mt76= 28-esw.yaml diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7628-esw.= yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7628-esw.yaml new file mode 100644 index 000000000000..0c16cf858035 --- /dev/null +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7628-esw.yaml @@ -0,0 +1,97 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/dsa/mediatek,mt7628-esw.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mediatek MT7628 Embedded Ethernet Switch + +maintainers: + - Joris Vaisvila + +description: + The MT7628 SoC's built-in Ethernet Switch has five user ports and one + internally connected CPU port. The user ports are all connected to the S= oC's + integrated Fast Ethernet PHYs. The switch registers are directly mapped = in + the SoC's memory. + +unevaluatedProperties: false + +allOf: + - $ref: dsa.yaml#/$defs/ethernet-ports + +properties: + compatible: + const: mediatek,mt7628-esw + + reg: + maxItems: 1 + + resets: + items: + - description: internal switch block reset + - description: internal phy package reset + + reset-names: + items: + - const: esw + - const: ephy + +required: + - compatible + - reg + - resets + - reset-names + - ethernet-ports + +examples: + - | + switch@10110000 { + compatible =3D "mediatek,mt7628-esw"; + + reg =3D <0x10110000 0x8000>; + + resets =3D <&sysc 23>, <&sysc 24>; + reset-names =3D "esw", "ephy"; + + ethernet-ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + ethernet-port@0 { + reg =3D <0>; + phy-mode =3D "internal"; + }; + + ethernet-port@1 { + reg =3D <1>; + phy-mode =3D "internal"; + }; + + ethernet-port@2 { + reg =3D <2>; + phy-mode =3D "internal"; + }; + + ethernet-port@3 { + reg =3D <3>; + phy-mode =3D "internal"; + }; + + ethernet-port@4 { + reg =3D <4>; + phy-mode =3D "internal"; + }; + + ethernet-port@6 { + reg =3D <6>; + phy-mode =3D "internal"; + ethernet =3D <ðernet>; + + fixed-link { + speed =3D <1000>; + full-duplex; + }; + }; + }; + }; --=20 2.54.0