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 2071F3DEAC1 for ; Mon, 30 Mar 2026 18:40:56 +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=1774896058; cv=none; b=FzlA9rGy642FPNm40gi7U8pAV5QQ7I35s/ryDpddkzCKGkequkB6LpDZFUF+bBJtPCFVjjo6QdpEsXdVKmn+HT1NrrkCItbjZjSVhFsc2+3eWyZLlzqGzqAiWkkeRkfVh+mN75rqik+kQhyesItxnwLvr8rIdd+RZkqxkmHRRIU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774896058; c=relaxed/simple; bh=ONH4qX4DHV4JBhJcpinBPBxK+OeMVLHsURxnEqYM8Co=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GEX89X/35tcOvWdDJ395Luf1Txb6rvVrR9tN2feubnmeKAWn9ACgVyypHrzGpHpF4Jk+ZrW8PdeqManzGRz9DT/FAOmaoIfQZT82a8WhE2B877dwPq/YEhlog6KQEfR1g6Ym8Z4KxW6TB0hVcYnWcy1+LLTtBGK1Sk4DB7AcFuY= 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=FtDHxWDa; dkim=pass (2048-bit key) header.d=purelymail.com header.i=@purelymail.com header.b=qjsli1Ms; 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="FtDHxWDa"; dkim=pass (2048-bit key) header.d=purelymail.com header.i=@purelymail.com header.b="qjsli1Ms" Authentication-Results: purelymail.com; auth=pass DKIM-Signature: a=rsa-sha256; b=FtDHxWDazz41RbrNjNORhP3fvxR9GTGib3mlgbzAhK47BlmY+hdBKqXO3/vReAfRJtxWG4W8XHgAkWGkTNON16fKXcsL3ChwNigGFy2Ym5DIkeANKc96L57npU69n138CocUl58j+h6v1vop4mUeq/nA2WTVoxaIfp+lbHJwwSTnGL42nlCxbyydqEwTI9JAm68qve7pD3f/ZA5n5M1muk/jTIT6jbia9AsRg/6PQdkH9JnDauxTme409JSXEWyV5cMkG4caZdM2aa/G/dhHKjq3f4o6ww8LD8FDQVa7P9lb9FZIITA8uCZ+qfNG7X/GUq08wS123qYdIT7ga4+2WA==; s=purelymail1; d=tinyisr.com; v=1; bh=ONH4qX4DHV4JBhJcpinBPBxK+OeMVLHsURxnEqYM8Co=; h=Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=qjsli1MsM4Lt80Ak9nAOpa6bMbdKcQdngCM1+PspIiOPoedxqvfVtpEhj95nOzf4LjmNuW0LPvg9+/BCd43/nurxwT/7Og/8TUOdQYTyb/NB05ggi4/6KSMEtMJtQ/sAQxHOxjGHNK3F0ooTucpGBN+DS9OSXkyKAjyq0tNr0EtHzLkAJCkGLCev8LA9fKrEKb8UUwhOJjFG5pN+PX7g0RDlqj6Ti1jsJQh4w73mVcp/pxOJ1p+RYdtHX8GLX8qNsSouSk9giVqm42GjHuZDT2OogMtRshMpB3IXku4jhBDz/nlpD0LMaYiivO0vtBN1NCeHOg3FkpBzzlD9v82flQ==; s=purelymail1; d=purelymail.com; v=1; bh=ONH4qX4DHV4JBhJcpinBPBxK+OeMVLHsURxnEqYM8Co=; h=Feedback-ID:Received:From:To:Subject:Date; Feedback-ID: 99681:12517:null:purelymail X-Pm-Original-To: devicetree@vger.kernel.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 1431054842; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 30 Mar 2026 18:40:35 +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 , Joris Vaisvila Subject: [PATCH net-next v2 1/4] dt-bindings: net: dsa: add MT7628 ESW Date: Mon, 30 Mar 2026 21:40:14 +0300 Message-ID: <20260330184017.766200-2-joey@tinyisr.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260330184017.766200-1-joey@tinyisr.com> References: <20260330184017.766200-1-joey@tinyisr.com> Precedence: bulk X-Mailing-List: devicetree@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 bindings for MT7628 SoC's Embedded Switch. Signed-off-by: Joris Vaisvila --- .../bindings/net/dsa/mediatek,mt7628-esw.yaml | 101 ++++++++++++++++++ 1 file changed, 101 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..d6c66ab677d0 --- /dev/null +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7628-esw.yaml @@ -0,0 +1,101 @@ +# 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 is a five port switch with + integrated 10/100 PHYs. The switch registers are directly mapped in the = SoC's + memory. The switch has an internally connected 1G CPU port and 5 user po= rts + connected to the built-in Fast Ethernet PHYs. + +unevaluatedProperties: false + +allOf: + - $ref: dsa.yaml#/$defs/ethernet-ports + +properties: + compatible: + const: mediatek,mt7628-esw + + reg: + maxItems: 1 + description: MMIO address of the switch + + resets: + items: + - description: Phandle of system reset controller with ESW reset ind= ex + - description: Phandle of system reset controller with EPHY reset in= dex + + reset-names: + items: + - const: esw + - const: ephy + + mdio: + $ref: /schemas/net/mdio.yaml# + unevaluatedProperties: false + +required: + - compatible + - reg + - resets + - reset-names + +examples: + - | + switch0: switch@10110000 { + reg =3D <0x10110000 0x8000>; + + resets =3D <&sysc 23>, <&sysc 24>; + reset-names =3D "esw", "ephy"; + + compatible =3D "mediatek,mt7628-esw"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + phy-mode =3D "internal"; + }; + + port@1 { + reg =3D <1>; + phy-mode =3D "internal"; + }; + + port@2 { + reg =3D <2>; + phy-mode =3D "internal"; + }; + + port@3 { + reg =3D <3>; + phy-mode =3D "internal"; + }; + + port@4 { + reg =3D <4>; + phy-mode =3D "internal"; + }; + + port@6 { + reg =3D <6>; + phy-mode =3D "internal"; + ethernet =3D <ðernet>; + + fixed-link { + speed =3D <1000>; + full-duplex; + }; + }; + }; + }; --=20 2.53.0