From nobody Fri Dec 19 12:48:00 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2612CC83F15 for ; Mon, 28 Aug 2023 20:12:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232741AbjH1UMH (ORCPT ); Mon, 28 Aug 2023 16:12:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233256AbjH1ULw (ORCPT ); Mon, 28 Aug 2023 16:11:52 -0400 X-Greylist: delayed 2636 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 28 Aug 2023 13:11:48 PDT Received: from finn.localdomain (finn.gateworks.com [108.161.129.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48898194 for ; Mon, 28 Aug 2023 13:11:48 -0700 (PDT) Received: from 068-189-091-139.biz.spectrum.com ([68.189.91.139] helo=tharvey.pdc.gateworks.com) by finn.localdomain with esmtp (Exim 4.93) (envelope-from ) id 1qahsQ-008Oxv-SS; Mon, 28 Aug 2023 19:26:18 +0000 From: Tim Harvey To: Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Tim Harvey , Vladimir Oltean Subject: [PATCH v2] ARM: dts: imx6qdl-gw5904: add internal mdio nodes Date: Mon, 28 Aug 2023 12:26:15 -0700 Message-Id: <20230828192615.1202078-1-tharvey@gateworks.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Complete the switch definition by adding the internal mdio nodes. This does not change behavior on Linux but is required if the dt is used for U-Boot which requires the internal PHY ports to be defined for DSA. Signed-off-by: Tim Harvey Reviewed-by: Vladimir Oltean --- v2: rebase and update commit log --- arch/arm/boot/dts/nxp/imx/imx6qdl-gw5904.dtsi | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/nxp/imx/imx6qdl-gw5904.dtsi b/arch/arm/boot/= dts/nxp/imx/imx6qdl-gw5904.dtsi index 9594bc5745ed..3375b3fd8d4c 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6qdl-gw5904.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-gw5904.dtsi @@ -212,6 +212,27 @@ switch@0 { compatible =3D "marvell,mv88e6085"; reg =3D <0>; =20 + mdio { + #address-cells =3D <1>; + #size-cells =3D <0>; + + sw_phy0: ethernet-phy@0 { + reg =3D <0x0>; + }; + + sw_phy1: ethernet-phy@1 { + reg =3D <0x1>; + }; + + sw_phy2: ethernet-phy@2 { + reg =3D <0x2>; + }; + + sw_phy3: ethernet-phy@3 { + reg =3D <0x3>; + }; + }; + ports { #address-cells =3D <1>; #size-cells =3D <0>; @@ -219,21 +240,29 @@ ports { port@0 { reg =3D <0>; label =3D "lan4"; + phy-handle =3D <&sw_phy0>; + phy-mode =3D "internal"; }; =20 port@1 { reg =3D <1>; label =3D "lan3"; + phy-handle =3D <&sw_phy1>; + phy-mode =3D "internal"; }; =20 port@2 { reg =3D <2>; label =3D "lan2"; + phy-handle =3D <&sw_phy2>; + phy-mode =3D "internal"; }; =20 port@3 { reg =3D <3>; label =3D "lan1"; + phy-handle =3D <&sw_phy3>; + phy-mode =3D "internal"; }; =20 port@5 { --=20 2.25.1