All of lore.kernel.org
 help / color / mirror / Atom feed
From: Camelia Groza <camelia.groza@nxp.com>
To: u-boot@lists.denx.de
Subject: [PATCH 06/11] powerpc: dts: t4240rdb: add FMan v3 nodes
Date: Fri,  9 Apr 2021 16:41:54 +0300	[thread overview]
Message-ID: <4e8a91a6c35180adfb78a34c6924b19b8d4a6fa4.1617971788.git.camelia.groza@nxp.com> (raw)
In-Reply-To: <cover.1617971788.git.camelia.groza@nxp.com>

Add the FMan v3 nodes for the T4240RDB. The nodes are copied over with
little modification from the Linux kernel source code.

Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
---
 arch/powerpc/dts/t4240rdb.dts | 142 +++++++++++++++++++++++++++++++++-
 1 file changed, 141 insertions(+), 1 deletion(-)

diff --git a/arch/powerpc/dts/t4240rdb.dts b/arch/powerpc/dts/t4240rdb.dts
index 635065a03685..6d31675c5ead 100644
--- a/arch/powerpc/dts/t4240rdb.dts
+++ b/arch/powerpc/dts/t4240rdb.dts
@@ -3,7 +3,7 @@
  * T4240RDB Device Tree Source
  *
  * Copyright 2013 - 2015 Freescale Semiconductor Inc.
- * Copyright 2019 NXP
+ * Copyright 2019-2021 NXP
  */
 
 /include/ "t4240.dtsi"
@@ -20,6 +20,144 @@
 	};
 };
 
+&soc {
+	fman at 400000 {
+		ethernet at e0000 {
+			phy-handle = <&sgmiiphy21>;
+			phy-connection-type = "sgmii";
+		};
+
+		ethernet at e2000 {
+			phy-handle = <&sgmiiphy22>;
+			phy-connection-type = "sgmii";
+		};
+
+		ethernet at e4000 {
+			phy-handle = <&sgmiiphy23>;
+			phy-connection-type = "sgmii";
+		};
+
+		ethernet at e6000 {
+			phy-handle = <&sgmiiphy24>;
+			phy-connection-type = "sgmii";
+		};
+
+		ethernet at e8000 {
+			status = "disabled";
+		};
+
+		ethernet at ea000 {
+			status = "disabled";
+		};
+
+		ethernet at f0000 {
+			phy-handle = <&xfiphy1>;
+			phy-connection-type = "xgmii";
+		};
+
+		ethernet at f2000 {
+			phy-handle = <&xfiphy2>;
+			phy-connection-type = "xgmii";
+		};
+	};
+
+	fman at 500000 {
+		ethernet at e0000 {
+			phy-handle = <&sgmiiphy41>;
+			phy-connection-type = "sgmii";
+		};
+
+		ethernet at e2000 {
+			phy-handle = <&sgmiiphy42>;
+			phy-connection-type = "sgmii";
+		};
+
+		ethernet at e4000 {
+			phy-handle = <&sgmiiphy43>;
+			phy-connection-type = "sgmii";
+		};
+
+		ethernet at e6000 {
+			phy-handle = <&sgmiiphy44>;
+			phy-connection-type = "sgmii";
+		};
+
+		ethernet at e8000 {
+			status = "disabled";
+		};
+
+		ethernet at ea000 {
+			status = "disabled";
+		};
+
+		ethernet at f0000 {
+			phy-handle = <&xfiphy3>;
+			phy-connection-type = "xgmii";
+		};
+
+		ethernet at f2000 {
+			phy-handle = <&xfiphy4>;
+			phy-connection-type = "xgmii";
+		};
+
+		mdio at fc000 {
+			sgmiiphy21: ethernet-phy at 0 {
+				reg = <0x0>;
+			};
+
+			sgmiiphy22: ethernet-phy at 1 {
+				reg = <0x1>;
+			};
+
+			sgmiiphy23: ethernet-phy at 2 {
+				reg = <0x2>;
+			};
+
+			sgmiiphy24: ethernet-phy at 3 {
+				reg = <0x3>;
+			};
+
+			sgmiiphy41: ethernet-phy at 4 {
+				reg = <0x4>;
+			};
+
+			sgmiiphy42: ethernet-phy at 5 {
+				reg = <0x5>;
+			};
+
+			sgmiiphy43: ethernet-phy at 6 {
+				reg = <0x6>;
+			};
+
+			sgmiiphy44: ethernet-phy at 7 {
+				reg = <0x7>;
+			};
+		};
+
+		mdio at fd000 {
+			xfiphy1: ethernet-phy at 10 {
+				compatible = "ethernet-phy-id13e5.1002";
+				reg = <0x10>;
+			};
+
+			xfiphy2: ethernet-phy at 11 {
+				compatible = "ethernet-phy-id13e5.1002";
+				reg = <0x11>;
+			};
+
+			xfiphy3: ethernet-phy at 13 {
+				compatible = "ethernet-phy-id13e5.1002";
+				reg = <0x13>;
+			};
+
+			xfiphy4: ethernet-phy at 12 {
+				compatible = "ethernet-phy-id13e5.1002";
+				reg = <0x12>;
+			};
+		};
+	};
+};
+
 &espi0 {
 	status = "okay";
 	flash at 0 {
@@ -30,3 +168,5 @@
 		spi-max-frequency = <10000000>; /* input clock */
 	};
 };
+
+/include/ "t4240si-post.dtsi"
-- 
2.17.1

  parent reply	other threads:[~2021-04-09 13:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-09 13:41 [PATCH 00/11] Enable DM_ETH for DPAA1 PowerPC T-series boards Camelia Groza
2021-04-09 13:41 ` [PATCH 01/11] powerpc: dts: t2080: add QorIQ DPAA 1 FMan v3 nodes Camelia Groza
2021-04-09 13:41 ` [PATCH 02/11] powerpc: dts: t2080rdb: add " Camelia Groza
2021-04-09 13:41 ` [PATCH 03/11] board: freescale: t208xrdb: fdt fixups under DM_ETH Camelia Groza
2021-04-09 13:41 ` [PATCH 04/11] configs: T2080RDB: enable DM_ETH Camelia Groza
2021-04-09 13:41 ` [PATCH 05/11] powerpc: dts: t4240: add QorIQ DPAA 1 FMan v3 nodes Camelia Groza
2021-04-09 13:41 ` Camelia Groza [this message]
2021-04-09 13:41 ` [PATCH 07/11] powerpc: dts: qoriq: update the mdio offsets under the second FMan v3 Camelia Groza
2021-04-09 13:41 ` [PATCH 08/11] configs: T4240RDB: enable DM_ETH Camelia Groza
2021-04-09 13:41 ` [PATCH 09/11] powerpc: dts: t1042: add QorIQ DPAA 1 FMan v3 nodes Camelia Groza
2021-04-09 13:41 ` [PATCH 10/11] powerpc: dts: t1042d4rdb: add " Camelia Groza
2021-04-09 13:41 ` [PATCH 11/11] configs: T1042D4RDB: enable DM_ETH Camelia Groza
2021-04-09 14:23 [PATCH 00/11] Enable DM_ETH for DPAA1 PowerPC T-series boards Camelia Groza
2021-04-09 14:23 ` [PATCH 06/11] powerpc: dts: t4240rdb: add FMan v3 nodes Camelia Groza

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4e8a91a6c35180adfb78a34c6924b19b8d4a6fa4.1617971788.git.camelia.groza@nxp.com \
    --to=camelia.groza@nxp.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.