From nobody Sun Dec 14 19:20:15 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 DD2A6126C03; Sun, 14 Dec 2025 00:41:01 +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=1765672863; cv=none; b=FTuy7Gr7XaUAa0wSiXkI/AtfuI0b6//xBajsrRQrp7fuL3AY61jGuo1cQMFamYmLhe4/vM/D8Vx6+DYFiF3FD6xwV0CeifU4/l7Ld9Ygfes014CToM40E1Bkh2scT0u4JhqPhRcQF7IAa0cTeQIU/24S/6bip0Fl+Kyrh81Ks8Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765672863; c=relaxed/simple; bh=rSmtrqCRP0begjAwLX1Pr9yGcSLoL1QYY5KqvytY4Sk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sfTWCcRh25z340Ci8Gg0lrs0l1gK9DaHaXn9Mhz/VIb/ZxZbwFuO6oYbKiCc0Swinn4C+yIt5sydt/6qB5fYGPfKxcMrWopNWBtu5yiYD4hRFzwZIt9h9/iLzK2nEMqr6qgO3hmoJ8MPo3teg/6D048RVQVk5kv5loEhz0agM1Y= 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 1vUaAT-000000006lI-0nfg; Sun, 14 Dec 2025 00:40:57 +0000 Date: Sun, 14 Dec 2025 00:40:53 +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: [RFC PATCH v2 net-next 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 --- 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