From nobody Thu Dec 18 23:30:06 2025 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (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 BEBFE1FB1; Mon, 15 Dec 2025 00:11:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765757492; cv=none; b=J7HnFpaxCcLIPVEYZEEZdpii9BKUmgxeUpAQBxWJkd7N4ah7r5Ecn+RhNC1bGv45t6x0IVYuCd8mT6vPcbpy+Zerxm0JyadTfRtXi8wj/NMRpl4JWOco6n37R0EvfqFNlEDBZZprJwyp+kzkzaP6fMLCK1E87+KV0qJGG7a93Gs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765757492; c=relaxed/simple; bh=hIyISU9h3K08ZadbsG/uLIEceNWeHbr8DXu5kD6ZMD8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PCr4E5C+GLm5ncmrQxgcvpUog1AckhcTWWpBekzg/ezMU1uOKZPZRBEL7DI51oCmD9iZQtTNItGdY48QSBGXEynYttUXTe5ZCBAa+KDPXiv5cfCeDYbhEz0rRHWQzisZD5fqnX0olUvkJB20TLXvK47lGrb+MehXUpCEI1Yv+RM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.99) (envelope-from ) id 1vUwBS-000000002Ih-0Suc; Mon, 15 Dec 2025 00:11:26 +0000 Date: Mon, 15 Dec 2025 00:11:22 +0000 From: Daniel Golle To: Daniel Golle , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiner Kallweit , Russell King , Simon Horman , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Frank Wunderlich , Chad Monroe , Cezary Wilmanski , Avinash Jayaraman , Bing tao Xu , Liang Xu , Juraj Povazanec , "Fanni (Fang-Yi) Chan" , "Benny (Ying-Tsan) Weng" , "Livia M. Rosu" , John Crispin Subject: [PATCH RFC net-next v3 1/4] dt-bindings: net: dsa: add bindings for MaxLinear MxL862xx Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add documentation and an example for MaxLinear MxL86282 and MxL86252 switches. Signed-off-by: Daniel Golle Reviewed-by: Rob Herring (Arm) --- RFC v3: no changes RFC v2: better description in dt-bindings doc .../bindings/net/dsa/maxlinear,mxl862xx.yaml | 162 ++++++++++++++++++ MAINTAINERS | 6 + 2 files changed, 168 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/dsa/maxlinear,mxl= 862xx.yaml diff --git a/Documentation/devicetree/bindings/net/dsa/maxlinear,mxl862xx.y= aml b/Documentation/devicetree/bindings/net/dsa/maxlinear,mxl862xx.yaml new file mode 100644 index 0000000000000..159b64d5474b4 --- /dev/null +++ b/Documentation/devicetree/bindings/net/dsa/maxlinear,mxl862xx.yaml @@ -0,0 +1,162 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/dsa/maxlinear,mxl862xx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MaxLinear MxL862xx Ethernet Switch Family + +maintainers: + - Daniel Golle + +description: + The MaxLinear MxL862xx switch family are multi-port Ethernet switches wi= th + integrated 2.5GE PHYs. The MxL86252 has five PHY ports and the MxL86282 + has eight PHY ports. Both models come with two 10 Gigabit/s SerDes + interfaces to be used to connect external PHYs or SFP cages, or as CPU + port. + +allOf: + - $ref: dsa.yaml#/$defs/ethernet-ports + +properties: + compatible: + enum: + - maxlinear,mxl86252 + - maxlinear,mxl86282 + + reg: + maxItems: 1 + description: MDIO address of the switch + + mdio: + $ref: /schemas/net/mdio.yaml# + unevaluatedProperties: false + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + mdio { + #address-cells =3D <1>; + #size-cells =3D <0>; + + switch@0 { + compatible =3D "maxlinear,mxl86282"; + reg =3D <0>; + + ethernet-ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + label =3D "lan1"; + phy-handle =3D <&phy0>; + phy-mode =3D "internal"; + }; + + port@1 { + reg =3D <1>; + label =3D "lan2"; + phy-handle =3D <&phy1>; + phy-mode =3D "internal"; + }; + + port@2 { + reg =3D <2>; + label =3D "lan3"; + phy-handle =3D <&phy2>; + phy-mode =3D "internal"; + }; + + port@3 { + reg =3D <3>; + label =3D "lan4"; + phy-handle =3D <&phy3>; + phy-mode =3D "internal"; + }; + + port@4 { + reg =3D <4>; + label =3D "lan5"; + phy-handle =3D <&phy4>; + phy-mode =3D "internal"; + }; + + port@5 { + reg =3D <5>; + label =3D "lan6"; + phy-handle =3D <&phy5>; + phy-mode =3D "internal"; + }; + + port@6 { + reg =3D <6>; + label =3D "lan7"; + phy-handle =3D <&phy6>; + phy-mode =3D "internal"; + }; + + port@7 { + reg =3D <7>; + label =3D "lan8"; + phy-handle =3D <&phy7>; + phy-mode =3D "internal"; + }; + + port@8 { + reg =3D <8>; + label =3D "cpu"; + ethernet =3D <&gmac0>; + phy-mode =3D "usxgmii"; + + fixed-link { + speed =3D <10000>; + full-duplex; + }; + }; + }; + + mdio { + #address-cells =3D <1>; + #size-cells =3D <0>; + + phy0: ethernet-phy@0 { + reg =3D <0>; + }; + + phy1: ethernet-phy@1 { + reg =3D <1>; + }; + + phy2: ethernet-phy@2 { + reg =3D <2>; + }; + + phy3: ethernet-phy@3 { + reg =3D <3>; + }; + + phy4: ethernet-phy@4 { + reg =3D <4>; + }; + + phy5: ethernet-phy@5 { + reg =3D <5>; + }; + + phy6: ethernet-phy@6 { + reg =3D <6>; + }; + + phy7: ethernet-phy@7 { + reg =3D <7>; + }; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 9707f53d62935..c433a15d9797a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15604,6 +15604,12 @@ S: Supported F: drivers/net/phy/mxl-86110.c F: drivers/net/phy/mxl-gpy.c =20 +MAXLINEAR MXL862XX SWITCH DRIVER +M: Daniel Golle +L: netdev@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/net/dsa/maxlinear,mxl862xx.yaml + MCAN DEVICE DRIVER M: Markus Schneider-Pargmann L: linux-can@vger.kernel.org --=20 2.52.0