Enable DM_ETH for DPAA1 PowerPC T-series boards
cover Enable DM_ETH for DPAA1 PowerPC T-series boards
Apologies to those who received this series twice off list due to an e-mail misconfiguration.
This patch series enables DM_ETH and DM_MDIO on the T2080RDB, T4240RDB and T1042D4RDB DPAA1 PowerPC boards. The necessary FMan v3 Ethernet and MDIO nodes are added to each platform's SoC and board device tree.
On T2080RDB, fdt fixups are performed before booting into the OS using a simplified new routine in order to avoid the legacy code path.
Camelia Groza (11):
powerpc: dts: t2080: add QorIQ DPAA 1 FMan v3 nodes
powerpc: dts: t2080rdb: add FMan v3 nodes
board: freescale: t208xrdb: fdt fixups under DM_ETH
configs: T2080RDB: enable DM_ETH
powerpc: dts: t4240: add QorIQ DPAA 1 FMan v3 nodes
powerpc: dts: t4240rdb: add FMan v3 nodes
powerpc: dts: qoriq: update the mdio offsets under the second FMan v3
configs: T4240RDB: enable DM_ETH
powerpc: dts: t1042: add QorIQ DPAA 1 FMan v3 nodes
powerpc: dts: t1042d4rdb: add FMan v3 nodes
configs: T1042D4RDB: enable DM_ETH
arch/powerpc/dts/qoriq-fman3-1-10g-0.dtsi | 2 +- arch/powerpc/dts/qoriq-fman3-1-10g-1.dtsi | 2 +- arch/powerpc/dts/qoriq-fman3-1-1g-0.dtsi | 2 +- arch/powerpc/dts/qoriq-fman3-1-1g-1.dtsi | 2 +- arch/powerpc/dts/qoriq-fman3-1-1g-2.dtsi | 2 +- arch/powerpc/dts/qoriq-fman3-1-1g-3.dtsi | 2 +- arch/powerpc/dts/qoriq-fman3-1-1g-4.dtsi | 2 +- arch/powerpc/dts/qoriq-fman3-1-1g-5.dtsi | 2 +- arch/powerpc/dts/qoriq-fman3-1.dtsi | 4 +- arch/powerpc/dts/t1042d4rdb.dts | 55 ++++++++- arch/powerpc/dts/t1042si-post.dtsi | 46 +++++++ arch/powerpc/dts/t2080rdb.dts | 69 ++++++++++- arch/powerpc/dts/t2080si-post.dtsi | 51 ++++++++ arch/powerpc/dts/t4240rdb.dts | 142 +++++++++++++++++++++- arch/powerpc/dts/t4240si-post.dtsi | 101 +++++++++++++++ board/freescale/t208xrdb/eth_t208xrdb.c | 35 ++++++ board/freescale/t208xrdb/t208xrdb.c | 3 + board/freescale/t208xrdb/t208xrdb.h | 2 + configs/T1042D4RDB_NAND_defconfig | 3 + configs/T1042D4RDB_SDCARD_defconfig | 3 + configs/T1042D4RDB_SECURE_BOOT_defconfig | 4 +- configs/T1042D4RDB_SPIFLASH_defconfig | 3 + configs/T1042D4RDB_defconfig | 3 + configs/T2080RDB_NAND_defconfig | 3 + configs/T2080RDB_SDCARD_defconfig | 3 + configs/T2080RDB_SPIFLASH_defconfig | 3 + configs/T2080RDB_defconfig | 3 + configs/T4240RDB_SDCARD_defconfig | 3 + configs/T4240RDB_defconfig | 3 + 29 files changed, 544 insertions(+), 14 deletions(-) create mode 100644 arch/powerpc/dts/t1042si-post.dtsi create mode 100644 arch/powerpc/dts/t2080si-post.dtsi create mode 100644 arch/powerpc/dts/t4240si-post.dtsi
--
2.17.1
PATCH 1/11 powerpc: dts: t2080: add QorIQ DPAA 1 FMan v3 nodes
From: Camelia Groza <[email protected]>
Add the QorIQ DPAA 1 FMan v3 device tree nodes for the T2080 SoC. The device tree nodes are copied over with little modification from the Linux kernel source code.
--- arch/powerpc/dts/t2080si-post.dtsi | 51 ++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 arch/powerpc/dts/t2080si-post.dtsi
arch/powerpc/dts/t2080si-post.dtsi new file +51 -0
@@ -0,0 +1,51 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * T2080 Silicon/SoC Device Tree Source (post include) + * + * Copyright 2013 Freescale Semiconductor Inc. + * Copyright 2021 NXP + * + */ +&soc { + +/include/ "qoriq-clockgen2.dtsi" +/include/ "qoriq-gpio-0.dtsi" +/include/ "qoriq-gpio-1.dtsi" +/include/ "qoriq-gpio-2.dtsi" +/include/ "qoriq-gpio-3.dtsi" + +/include/ "qoriq-fman3-0.dtsi" +/include/ "qoriq-fman3-0-10g-0-best-effort.dtsi" +/include/ "qoriq-fman3-0-10g-1-best-effort.dtsi" +/include/ "qoriq-fman3-0-1g-2.dtsi" +/include/ "qoriq-fman3-0-1g-3.dtsi" +/include/ "qoriq-fman3-0-10g-0.dtsi" +/include/ "qoriq-fman3-0-10g-1.dtsi" + fman at 400000 { + enet0: ethernet at e0000 { + }; + + enet1: ethernet at e2000 { + }; + + enet2: ethernet at e4000 { + }; + + enet3: ethernet at e6000 { + }; + + enet6: ethernet at f0000 { + }; + + enet7: ethernet at f2000 { + }; + + mdio at fc000 { + interrupts = <100 1 0 0>; + }; + + mdio at fd000 { + interrupts = <101 1 0 0>; + }; + }; +};
Signature · 1 line
2.17.1
PATCH 1/11 powerpc: dts: t2080: add QorIQ DPAA 1 FMan v3 nodes
Quoted 81 lines
-----Original Message-----
From: Camelia Alexandra Groza (OSS) <[email protected]>
Sent: Friday, April 9, 2021 7:53 PM
To: u-boot at lists.denx.de; Priyanka Jain <[email protected]>; wd at denx.de; Shengzhou Liu <[email protected]>; Z.q. Hou <[email protected]>
Cc: Madalin Bucur (OSS) <[email protected]>; Camelia Alexandra Groza <[email protected]>
Subject: [PATCH 01/11] powerpc: dts: t2080: add QorIQ DPAA 1 FMan v3 nodesFrom: Camelia Groza <[email protected]>
Add the QorIQ DPAA 1 FMan v3 device tree nodes for the T2080 SoC. The device tree nodes are copied over with little modification from the Linux kernel source code.
Signed-off-by Camelia Groza <[email protected]>---
arch/powerpc/dts/t2080si-post.dtsi| 51 ++++++++++++++++++++++++++++++1 file changed, 51 insertions(+)create mode 100644
arch/powerpc/dts/t2080si-post.dtsiarch/powerpc/dts/t2080si- renamed from arch/powerpc/dts/t2080si-post.dtsi +0
-0
post.dtsi
new file mode 100644
index 000000000000..d8ef579cb7c0arch/powerpc/dts/t2080si-post.dtsi new file +51
-1@@ -0,0 +1,51 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * T2080 Silicon/SoC Device Tree Source (post include) + * + * Copyright 2013 Freescale Semiconductor Inc. + * Copyright 2021 NXP + * + */ +&soc { + +/include/ "qoriq-clockgen2.dtsi" +/include/ "qoriq-gpio-0.dtsi" +/include/ "qoriq-gpio-1.dtsi" +/include/ "qoriq-gpio-2.dtsi" +/include/ "qoriq-gpio-3.dtsi" + +/include/ "qoriq-fman3-0.dtsi" +/include/ "qoriq-fman3-0-10g-0-best-effort.dtsi" +/include/ "qoriq-fman3-0-10g-1-best-effort.dtsi" +/include/ "qoriq-fman3-0-1g-2.dtsi" +/include/ "qoriq-fman3-0-1g-3.dtsi" +/include/ "qoriq-fman3-0-10g-0.dtsi" +/include/ "qoriq-fman3-0-10g-1.dtsi" + fman at 400000 { + enet0: ethernet at e0000 { + }; + + enet1: ethernet at e2000 { + }; + + enet2: ethernet at e4000 { + }; + + enet3: ethernet at e6000 { + }; + + enet6: ethernet at f0000 { + }; + + enet7: ethernet at f2000 { + }; + + mdio at fc000 { + interrupts = <100 1 0 0>; + }; + + mdio at fd000 { + interrupts = <101 1 0 0>; + }; + }; +}; --
Quoted 1 line
2.17.1
Kindly check build failure of T1042D4RDB_SECURE_BOOT board with this series
Details at https://dev.azure.com/u-boot/a1096300-2999-4ec4-a21a-4c22075e3771/_apis/build/builds/2112/logs/595
Regards
Priyanka
PATCH 1/11 powerpc: dts: t2080: add QorIQ DPAA 1 FMan v3 nodes
Quoted 96 lines
-----Original Message-----
From: Priyanka Jain <[email protected]>
Sent: Tuesday, April 13, 2021 12:48
To: Camelia Alexandra Groza (OSS) <[email protected]>; u- boot at lists.denx.de; wd at denx.de; Shengzhou Liu <[email protected]>; Z.q. Hou <[email protected]>
Cc: Madalin Bucur (OSS) <[email protected]>; Camelia Alexandra Groza <[email protected]>
Subject: RE: [PATCH 01/11] powerpc: dts: t2080: add QorIQ DPAA 1 FMan v3 nodesQuoted 4 lines
-----Original Message-----
From: Camelia Alexandra Groza (OSS) <[email protected]>
Sent: Friday, April 9, 2021 7:53 PM
To: u-boot at lists.denx.de; Priyanka Jain <[email protected]>;wd at denx.de;
Quoted 1 line
Shengzhou Liu <[email protected]>; Z.q. Hou
Quoted 3 lines
Cc: Madalin Bucur (OSS) <[email protected]>; Camelia Alexandra Groza <[email protected]>
Subject: [PATCH 01/11] powerpc: dts: t2080: add QorIQ DPAA 1 FMan v3nodes
Quoted 5 lines
From: Camelia Groza <[email protected]>
Add the QorIQ DPAA 1 FMan v3 device tree nodes for the T2080 SoC. The device tree nodes are copied over with little modification from the
Linux
Quoted 5 lines
kernel source code.
Signed-off-by Camelia Groza <[email protected]>---
arch/powerpc/dts/t2080si-post.dtsi| 51++++++++++++++++++++++++++++++
Review
Quoted 4 lines
1 file changed, 51 insertions(+)create mode 100644
arch/powerpc/dts/t2080si-post.dtsi(quoted diff) +0
-0b/arch/powerpc/dts/t2080si-
Quoted 56 lines
post.dtsi
new file mode 100644
index 000000000000..d8ef579cb7c0arch/powerpc/dts/t2080si-post.dtsi new file +50
-0@@ -0,0 +1,51 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * T2080 Silicon/SoC Device Tree Source (post include) + * + * Copyright 2013 Freescale Semiconductor Inc. + * Copyright 2021 NXP + * + */ +&soc { + +/include/ "qoriq-clockgen2.dtsi" +/include/ "qoriq-gpio-0.dtsi" +/include/ "qoriq-gpio-1.dtsi" +/include/ "qoriq-gpio-2.dtsi" +/include/ "qoriq-gpio-3.dtsi" + +/include/ "qoriq-fman3-0.dtsi" +/include/ "qoriq-fman3-0-10g-0-best-effort.dtsi" +/include/ "qoriq-fman3-0-10g-1-best-effort.dtsi" +/include/ "qoriq-fman3-0-1g-2.dtsi" +/include/ "qoriq-fman3-0-1g-3.dtsi" +/include/ "qoriq-fman3-0-10g-0.dtsi" +/include/ "qoriq-fman3-0-10g-1.dtsi" + fman at 400000 { + enet0: ethernet at e0000 { + }; + + enet1: ethernet at e2000 { + }; + + enet2: ethernet at e4000 { + }; + + enet3: ethernet at e6000 { + }; + + enet6: ethernet at f0000 { + }; + + enet7: ethernet at f2000 { + }; + + mdio at fc000 { + interrupts = <100 1 0 0>; + }; + + mdio at fd000 { + interrupts = <101 1 0 0>; + }; + };
Quoted 8 lines
Quoted 3 lines
arch/powerpc/dts/t2080si-post.dtsi new file +1
-1+}; --2.17.1
Kindly check build failure of
T1042D4RDB_SECURE_BOOTboard with this series
Details at https://dev.azure.com/u-boot/a1096300-2999-4ec4-a21a-
4c22075e3771/_apis/build/builds/2112/logs/595
Sure, I'll send a v2. Thank you.
Camelia
PATCH 2/11 powerpc: dts: t2080rdb: add FMan v3 nodes
In reply to Camelia GrozaFrom: Camelia Groza <[email protected]>
Add the FMan v3 nodes for the T2080RDB. The nodes are copied over with little modification from the Linux kernel source code.
--- arch/powerpc/dts/t2080rdb.dts | 69 ++++++++++++++++++++++++++++++++++- 1 file changed, 68 insertions(+), 1 deletion(-)
arch/powerpc/dts/t2080rdb.dts +68 -1
@@ -3,7 +3,7 @@ * T2080RDB Device Tree Source * * Copyright 2013 - 2015 Freescale Semiconductor Inc. - * Copyright 2019 NXP + * Copyright 2019-2021 NXP */ /include/ "t2080.dtsi"
@@ -20,6 +20,71 @@ }; }; +&soc { + fman at 400000 { + ethernet at e0000 { + phy-handle = <&xg_aq1202_phy3>; + phy-connection-type = "xgmii"; + }; + + ethernet at e2000 { + phy-handle = <&xg_aq1202_phy4>; + phy-connection-type = "xgmii"; + }; + + ethernet at e4000 { + phy-handle = <&rgmii_phy1>; + phy-connection-type = "rgmii"; + }; + + ethernet at e6000 { + phy-handle = <&rgmii_phy2>; + phy-connection-type = "rgmii"; + }; + + ethernet at f0000 { + phy-handle = <&xg_cs4315_phy2>; + phy-connection-type = "xgmii"; + }; + + ethernet at f2000 { + phy-handle = <&xg_cs4315_phy1>; + phy-connection-type = "xgmii"; + }; + + mdio at fc000 { + rgmii_phy1: ethernet-phy at 1 { + reg = <0x1>; + }; + rgmii_phy2: ethernet-phy at 2 { + reg = <0x2>; + }; + }; + + mdio at fd000 { + xg_cs4315_phy1: ethernet-phy at c { + compatible = "ethernet-phy-id13e5.1002"; + reg = <0xc>; + }; + + xg_cs4315_phy2: ethernet-phy at d { + compatible = "ethernet-phy-id13e5.1002"; + reg = <0xd>; + }; + + xg_aq1202_phy3: ethernet-phy at 0 { + compatible = "ethernet-phy-ieee802.3-c45"; + reg = <0x0>; + }; + + xg_aq1202_phy4: ethernet-phy at 1 { + compatible = "ethernet-phy-ieee802.3-c45"; + reg = <0x1>; + }; + }; + }; +}; + &espi0 { status = "okay"; flash at 0 {
@@ -38,3 +103,5 @@ reg = <0x68>; }; }; + +/include/ "t2080si-post.dtsi"
Signature · 1 line
2.17.1
PATCH 3/11 board: freescale: t208xrdb: fdt fixups under DM_ETH
In reply to Camelia GrozaFrom: Camelia Groza <[email protected]>
Disable the FMan mEMAC 5 and 6 nodes from the fdt since they are not available under the supported RCW. Also disable the associated "fsl,dpa-ethernet" nodes that reference them.
This is a simplified version of the fdt_fixup_fman_ethernet call for use under DM_ETH.
--- board/freescale/t208xrdb/eth_t208xrdb.c | 35 +++++++++++++++++++++++++ board/freescale/t208xrdb/t208xrdb.c | 3 +++ board/freescale/t208xrdb/t208xrdb.h | 2 ++ 3 files changed, 40 insertions(+)
board/freescale/t208xrdb/eth_t208xrdb.c +35 -0
@@ -1,6 +1,7 @@// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2014 Freescale Semiconductor, Inc. +* Copyright 2021 NXP * * Shengzhou Liu <[email protected]> */
@@ -104,6 +105,40 @@ int board_eth_init(struct bd_info *bis)return pci_eth_init (bis); } +/* Disable the MAC5 and MAC6 "fsl,fman-memac" nodes and the two +* "fsl,dpa-ethernet" nodes that reference them. +*/ +void fdt_fixup_board_fman_ethernet (void *fdt) +{ +int mac_off, eth_off, i; +char mac_path[2 ][42 ] = { +"/soc at ffe000000/fman at 400000/ethernet at e8000" , +"/soc at ffe000000/fman at 400000/ethernet at ea000" , + }; +u32 eth_ph; + +for (i =0 ; i <2 ; i++) { +/* Disable the MAC node */ + mac_off =fdt_path_offset (fdt, mac_path[i]); +if (mac_off <0 ) +continue ; +fdt_status_disabled (fdt, mac_off); + +/* Disable the fsl,dpa-ethernet node that points to the MAC. +* The fsl,fman-mac property refers to the MAC's phandle. +*/ + eth_ph =fdt_get_phandle (fdt, mac_off); +if (eth_ph <=0 ) +continue ; + + eth_off =fdt_node_offset_by_prop_value (fdt,-1 ,"fsl,fman-mac" , + ð_ph, +sizeof (eth_ph)); +if (eth_off >=0 ) +fdt_status_disabled (fdt, eth_off); + } +} +void fdt_fixup_board_enet (void *fdt) {return ;
board/freescale/t208xrdb/t208xrdb.c +3 -0
@@ -1,6 +1,7 @@// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2009-2013 Freescale Semiconductor, Inc. +* Copyright 2021 NXP */ #include <common.h>
@@ -137,6 +138,8 @@ int ft_board_setup(void *blob, struct bd_info *bd)#ifdef CONFIG_SYS_DPAA_FMAN #ifndef CONFIG_DM_ETH fdt_fixup_fman_ethernet (blob); +#else +fdt_fixup_board_fman_ethernet (blob);#endif fdt_fixup_board_enet (blob);#endif
board/freescale/t208xrdb/t208xrdb.h +2 -0
@@ -1,6 +1,7 @@/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright 2014 Freescale Semiconductor, Inc. +* Copyright 2021 NXP */ #ifndef __CORENET_DS_H__
@@ -8,5 +9,6 @@void fdt_fixup_board_enet (void *blob);void pci_of_setup (void *blob,struct bd_info *bd); +void fdt_fixup_board_fman_ethernet (void *blob);#endif
Signature · 1 line
2.17.1
PATCH 4/11 configs: T2080RDB: enable DM_ETH
In reply to Camelia GrozaFrom: Camelia Groza <[email protected]>
Enable DM_ETH and DM_MDIO for the T2080RDB.
--- configs/T2080RDB_NAND_defconfig | 3 +++ configs/T2080RDB_SDCARD_defconfig | 3 +++ configs/T2080RDB_SPIFLASH_defconfig | 3 +++ configs/T2080RDB_defconfig | 3 +++ 4 files changed, 12 insertions(+)
configs/T2080RDB_NAND_defconfig +3 -0
@@ -33,6 +33,7 @@ CONFIG_HUSH_PARSER=y CONFIG_CMD_IMLS=y CONFIG_CMD_MEMTEST=y CONFIG_SYS_ALT_MEMTEST=y +CONFIG_CMD_DM=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_USB=y
@@ -70,6 +71,8 @@ CONFIG_PHY_AQUANTIA=y CONFIG_PHY_CORTINA=y CONFIG_SYS_CORTINA_FW_IN_NAND=y CONFIG_PHY_REALTEK=y +CONFIG_DM_ETH=y +CONFIG_DM_MDIO=y CONFIG_E1000=y CONFIG_FMAN_ENET=y CONFIG_MII=y
configs/T2080RDB_SDCARD_defconfig +3 -0
@@ -31,6 +31,7 @@ CONFIG_HUSH_PARSER=y CONFIG_CMD_IMLS=y CONFIG_CMD_MEMTEST=y CONFIG_SYS_ALT_MEMTEST=y +CONFIG_CMD_DM=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_USB=y
@@ -67,6 +68,8 @@ CONFIG_PHY_AQUANTIA=y CONFIG_PHY_CORTINA=y CONFIG_SYS_CORTINA_FW_IN_MMC=y CONFIG_PHY_REALTEK=y +CONFIG_DM_ETH=y +CONFIG_DM_MDIO=y CONFIG_E1000=y CONFIG_FMAN_ENET=y CONFIG_MII=y
configs/T2080RDB_SPIFLASH_defconfig +3 -0
@@ -33,6 +33,7 @@ CONFIG_HUSH_PARSER=y CONFIG_CMD_IMLS=y CONFIG_CMD_MEMTEST=y CONFIG_SYS_ALT_MEMTEST=y +CONFIG_CMD_DM=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_USB=y
@@ -69,6 +70,8 @@ CONFIG_PHY_AQUANTIA=y CONFIG_PHY_CORTINA=y CONFIG_SYS_CORTINA_FW_IN_SPIFLASH=y CONFIG_PHY_REALTEK=y +CONFIG_DM_ETH=y +CONFIG_DM_MDIO=y CONFIG_E1000=y CONFIG_FMAN_ENET=y CONFIG_MII=y
configs/T2080RDB_defconfig +3 -0
@@ -18,6 +18,7 @@ CONFIG_HUSH_PARSER=y CONFIG_CMD_IMLS=y CONFIG_CMD_MEMTEST=y CONFIG_SYS_ALT_MEMTEST=y +CONFIG_CMD_DM=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_USB=y
@@ -54,6 +55,8 @@ CONFIG_PHYLIB=y CONFIG_PHY_AQUANTIA=y CONFIG_PHY_CORTINA=y CONFIG_PHY_REALTEK=y +CONFIG_DM_ETH=y +CONFIG_DM_MDIO=y CONFIG_E1000=y CONFIG_FMAN_ENET=y CONFIG_MII=y
Signature · 1 line
2.17.1
PATCH 5/11 powerpc: dts: t4240: add QorIQ DPAA 1 FMan v3 nodes
In reply to Camelia GrozaFrom: Camelia Groza <[email protected]>
Add the QorIQ DPAA 1 FMan v3 device tree nodes for the T4240 SoC. The device tree nodes are copied over with little modification from the Linux kernel source code.
--- arch/powerpc/dts/t4240si-post.dtsi | 101 +++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 arch/powerpc/dts/t4240si-post.dtsi
arch/powerpc/dts/t4240si-post.dtsi new file +101 -0
@@ -0,0 +1,101 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * T4240 Silicon/SoC Device Tree Source (post include) + * + * Copyright 2012 - 2015 Freescale Semiconductor Inc. + * Copyright 2021 NXP + * + */ +&soc { +/include/ "qoriq-clockgen2.dtsi" +/include/ "qoriq-gpio-0.dtsi" +/include/ "qoriq-gpio-1.dtsi" +/include/ "qoriq-gpio-2.dtsi" +/include/ "qoriq-gpio-3.dtsi" + +/include/ "qoriq-fman3-0.dtsi" +/include/ "qoriq-fman3-0-1g-0.dtsi" +/include/ "qoriq-fman3-0-1g-1.dtsi" +/include/ "qoriq-fman3-0-1g-2.dtsi" +/include/ "qoriq-fman3-0-1g-3.dtsi" +/include/ "qoriq-fman3-0-1g-4.dtsi" +/include/ "qoriq-fman3-0-1g-5.dtsi" +/include/ "qoriq-fman3-0-10g-0.dtsi" +/include/ "qoriq-fman3-0-10g-1.dtsi" + fman at 400000 { + enet0: ethernet at e0000 { + }; + + enet1: ethernet at e2000 { + }; + + enet2: ethernet at e4000 { + }; + + enet3: ethernet at e6000 { + }; + + enet4: ethernet at e8000 { + }; + + enet5: ethernet at ea000 { + }; + + enet6: ethernet at f0000 { + }; + + enet7: ethernet at f2000 { + }; + + mdio at fc000 { + status = "disabled"; + }; + + mdio at fd000 { + status = "disabled"; + }; + }; + +/include/ "qoriq-fman3-1.dtsi" +/include/ "qoriq-fman3-1-1g-0.dtsi" +/include/ "qoriq-fman3-1-1g-1.dtsi" +/include/ "qoriq-fman3-1-1g-2.dtsi" +/include/ "qoriq-fman3-1-1g-3.dtsi" +/include/ "qoriq-fman3-1-1g-4.dtsi" +/include/ "qoriq-fman3-1-1g-5.dtsi" +/include/ "qoriq-fman3-1-10g-0.dtsi" +/include/ "qoriq-fman3-1-10g-1.dtsi" + fman at 500000 { + enet8: ethernet at e0000 { + }; + + enet9: ethernet at e2000 { + }; + + enet10: ethernet at e4000 { + }; + + enet11: ethernet at e6000 { + }; + + enet12: ethernet at e8000 { + }; + + enet13: ethernet at ea000 { + }; + + enet14: ethernet at f0000 { + }; + + enet15: ethernet at f2000 { + }; + + mdio at fc000 { + interrupts = <100 1 0 0>; + }; + + mdio at fd000 { + interrupts = <101 1 0 0>; + }; + }; +};
Signature · 1 line
2.17.1
PATCH 6/11 powerpc: dts: t4240rdb: add FMan v3 nodes
In reply to Camelia GrozaFrom: Camelia Groza <[email protected]>
Add the FMan v3 nodes for the T4240RDB. The nodes are copied over with little modification from the Linux kernel source code.
--- arch/powerpc/dts/t4240rdb.dts | 142 +++++++++++++++++++++++++++++++++- 1 file changed, 141 insertions(+), 1 deletion(-)
arch/powerpc/dts/t4240rdb.dts +141 -1
@@ -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"
Signature · 1 line
2.17.1
PATCH 7/11 powerpc: dts: qoriq: update the mdio offsets under the second FMan v3
In reply to Camelia GrozaFrom: Camelia Groza <[email protected]>
When two FMan's are present on a board, the MDIO nodes are found at the same offsets inside each FMan. This causes "non unique device name" errors when registering the MDIO nodes under the second FMan. Fix this by updating the offsets of the MDIO nodes to include the parent FMan's offset.
--- arch/powerpc/dts/qoriq-fman3-1-10g-0.dtsi | 2 +- arch/powerpc/dts/qoriq-fman3-1-10g-1.dtsi | 2 +- arch/powerpc/dts/qoriq-fman3-1-1g-0.dtsi | 2 +- arch/powerpc/dts/qoriq-fman3-1-1g-1.dtsi | 2 +- arch/powerpc/dts/qoriq-fman3-1-1g-2.dtsi | 2 +- arch/powerpc/dts/qoriq-fman3-1-1g-3.dtsi | 2 +- arch/powerpc/dts/qoriq-fman3-1-1g-4.dtsi | 2 +- arch/powerpc/dts/qoriq-fman3-1-1g-5.dtsi | 2 +- arch/powerpc/dts/qoriq-fman3-1.dtsi | 4 ++-- arch/powerpc/dts/t4240rdb.dts | 4 ++-- arch/powerpc/dts/t4240si-post.dtsi | 4 ++-- 11 files changed, 14 insertions(+), 14 deletions(-)
arch/powerpc/dts/qoriq-fman3-1-10g-0.dtsi +1 -1
@@ -30,7 +30,7 @@ fman at 500000 { pcsphy-handle = <&pcsphy14>; }; - mdio at f1000 { + mdio at 5f1000 { #address-cells = <1>; #size-cells = <0>; compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
arch/powerpc/dts/qoriq-fman3-1-10g-1.dtsi +1 -1
@@ -30,7 +30,7 @@ fman at 500000 { pcsphy-handle = <&pcsphy15>; }; - mdio at f3000 { + mdio at 5f3000 { #address-cells = <1>; #size-cells = <0>; compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
arch/powerpc/dts/qoriq-fman3-1-1g-0.dtsi +1 -1
@@ -29,7 +29,7 @@ fman at 500000 { pcsphy-handle = <&pcsphy8>; }; - mdio at e1000 { + mdio at 5e1000 { #address-cells = <1>; #size-cells = <0>; compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
arch/powerpc/dts/qoriq-fman3-1-1g-1.dtsi +1 -1
@@ -29,7 +29,7 @@ fman at 500000 { pcsphy-handle = <&pcsphy9>; }; - mdio at e3000 { + mdio at 5e3000 { #address-cells = <1>; #size-cells = <0>; compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
arch/powerpc/dts/qoriq-fman3-1-1g-2.dtsi +1 -1
@@ -29,7 +29,7 @@ fman at 500000 { pcsphy-handle = <&pcsphy10>; }; - mdio at e5000 { + mdio at 5e5000 { #address-cells = <1>; #size-cells = <0>; compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
arch/powerpc/dts/qoriq-fman3-1-1g-3.dtsi +1 -1
@@ -29,7 +29,7 @@ fman at 500000 { pcsphy-handle = <&pcsphy11>; }; - mdio at e7000 { + mdio at 5e7000 { #address-cells = <1>; #size-cells = <0>; compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
arch/powerpc/dts/qoriq-fman3-1-1g-4.dtsi +1 -1
@@ -29,7 +29,7 @@ fman at 500000 { pcsphy-handle = <&pcsphy12>; }; - mdio at e9000 { + mdio at 5e9000 { #address-cells = <1>; #size-cells = <0>; compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
arch/powerpc/dts/qoriq-fman3-1-1g-5.dtsi +1 -1
@@ -29,7 +29,7 @@ fman at 500000 { pcsphy-handle = <&pcsphy13>; }; - mdio at eb000 { + mdio at 5eb000 { #address-cells = <1>; #size-cells = <0>; compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
arch/powerpc/dts/qoriq-fman3-1.dtsi +2 -2
@@ -61,14 +61,14 @@ fman1: fman at 500000 { reg = <0x87000 0x1000>; }; - mdio1: mdio at fc000 { + mdio1: mdio at 5fc000 { #address-cells = <1>; #size-cells = <0>; compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio"; reg = <0xfc000 0x1000>; }; - mdio at fd000 { + mdio at 5fd000 { #address-cells = <1>; #size-cells = <0>; compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
arch/powerpc/dts/t4240rdb.dts +2 -2
@@ -100,7 +100,7 @@ phy-connection-type = "xgmii"; }; - mdio at fc000 { + mdio at 5fc000 { sgmiiphy21: ethernet-phy at 0 { reg = <0x0>; };
@@ -134,7 +134,7 @@ }; }; - mdio at fd000 { + mdio at 5fd000 { xfiphy1: ethernet-phy at 10 { compatible = "ethernet-phy-id13e5.1002"; reg = <0x10>;
arch/powerpc/dts/t4240si-post.dtsi +2 -2
@@ -90,11 +90,11 @@ enet15: ethernet at f2000 { }; - mdio at fc000 { + mdio at 5fc000 { interrupts = <100 1 0 0>; }; - mdio at fd000 { + mdio at 5fd000 { interrupts = <101 1 0 0>; }; };
Signature · 1 line
2.17.1
PATCH 8/11 configs: T4240RDB: enable DM_ETH
In reply to Camelia GrozaFrom: Camelia Groza <[email protected]>
Enable DM_ETH and DM_MDIO for the T4240RDB.
--- configs/T4240RDB_SDCARD_defconfig | 3 +++ configs/T4240RDB_defconfig | 3 +++ 2 files changed, 6 insertions(+)
configs/T4240RDB_SDCARD_defconfig +3 -0
@@ -28,6 +28,7 @@ CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT=y CONFIG_HUSH_PARSER=y CONFIG_CMD_IMLS=y CONFIG_CMD_GREPENV=y +CONFIG_CMD_DM=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_USB=y
@@ -59,6 +60,8 @@ CONFIG_PHYLIB_10G=y CONFIG_PHY_CORTINA=y CONFIG_PHY_TERANETICS=y CONFIG_PHY_VITESSE=y +CONFIG_DM_ETH=y +CONFIG_DM_MDIO=y CONFIG_PHY_GIGE=y CONFIG_E1000=y CONFIG_FMAN_ENET=y
configs/T4240RDB_defconfig +3 -0
@@ -15,6 +15,7 @@ CONFIG_BOARD_EARLY_INIT_R=y CONFIG_HUSH_PARSER=y CONFIG_CMD_IMLS=y CONFIG_CMD_GREPENV=y +CONFIG_CMD_DM=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_USB=y
@@ -47,6 +48,8 @@ CONFIG_PHYLIB_10G=y CONFIG_PHY_CORTINA=y CONFIG_PHY_TERANETICS=y CONFIG_PHY_VITESSE=y +CONFIG_DM_ETH=y +CONFIG_DM_MDIO=y CONFIG_PHY_GIGE=y CONFIG_E1000=y CONFIG_FMAN_ENET=y
Signature · 1 line
2.17.1
PATCH 9/11 powerpc: dts: t1042: add QorIQ DPAA 1 FMan v3 nodes
In reply to Camelia GrozaFrom: Camelia Groza <[email protected]>
Add the QorIQ DPAA 1 FMan v3 device tree nodes for the T1042 SoC. The device tree nodes are copied over with little modification from the Linux kernel source code.
--- arch/powerpc/dts/t1042si-post.dtsi | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 arch/powerpc/dts/t1042si-post.dtsi
arch/powerpc/dts/t1042si-post.dtsi new file +46 -0
@@ -0,0 +1,46 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * T1042 Silicon/SoC Device Tree Source (post include) + * + * Copyright 2013 - 2014 Freescale Semiconductor Inc. + * Copyright 2021 NXP + * + */ +&soc { +/include/ "qoriq-clockgen2.dtsi" +/include/ "qoriq-gpio-0.dtsi" +/include/ "qoriq-gpio-1.dtsi" +/include/ "qoriq-gpio-2.dtsi" +/include/ "qoriq-gpio-3.dtsi" + +/include/ "qoriq-fman3l-0.dtsi" +/include/ "qoriq-fman3-0-1g-0.dtsi" +/include/ "qoriq-fman3-0-1g-1.dtsi" +/include/ "qoriq-fman3-0-1g-2.dtsi" +/include/ "qoriq-fman3-0-1g-3.dtsi" +/include/ "qoriq-fman3-0-1g-4.dtsi" + fman at 400000 { + enet0: ethernet at e0000 { + }; + + enet1: ethernet at e2000 { + }; + + enet2: ethernet at e4000 { + }; + + enet3: ethernet at e6000 { + }; + + enet4: ethernet at e8000 { + }; + + mdio at fc000 { + interrupts = <100 1 0 0>; + }; + + mdio at fd000 { + status = "disabled"; + }; + }; +};
Signature · 1 line
2.17.1
PATCH 10/11 powerpc: dts: t1042d4rdb: add FMan v3 nodes
In reply to Camelia GrozaFrom: Camelia Groza <[email protected]>
Add the FMan v3 nodes for the T1042D4RDB. The nodes are copied over with little modification from the Linux kernel source code.
--- arch/powerpc/dts/t1042d4rdb.dts | 55 ++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-)
arch/powerpc/dts/t1042d4rdb.dts +54 -1
@@ -3,7 +3,7 @@ * T1042D4RDB Device Tree Source * * Copyright 2013 - 2015 Freescale Semiconductor Inc. - * Copyright 2019 NXP + * Copyright 2019-2021 NXP */ /include/ "t104x.dtsi"
@@ -20,6 +20,57 @@ }; }; +&soc { + fman0: fman at 400000 { + ethernet at e0000 { + phy-handle = <&phy_sgmii_0>; + phy-connection-type = "sgmii"; + }; + + ethernet at e2000 { + phy-handle = <&phy_sgmii_1>; + phy-connection-type = "sgmii"; + }; + + ethernet at e4000 { + phy-handle = <&phy_sgmii_2>; + phy-connection-type = "sgmii"; + }; + + ethernet at e6000 { + phy-handle = <&phy_rgmii_0>; + phy-connection-type = "rgmii"; + }; + + ethernet at e8000 { + phy-handle = <&phy_rgmii_1>; + phy-connection-type = "rgmii"; + }; + + mdio0: mdio at fc000 { + phy_sgmii_0: ethernet-phy at 2 { + reg = <0x02>; + }; + + phy_sgmii_1: ethernet-phy at 3 { + reg = <0x03>; + }; + + phy_sgmii_2: ethernet-phy at 1 { + reg = <0x01>; + }; + + phy_rgmii_0: ethernet-phy at 4 { + reg = <0x04>; + }; + + phy_rgmii_1: ethernet-phy at 5 { + reg = <0x05>; + }; + }; + }; +}; + &espi0 { status = "okay"; flash at 0 {
@@ -30,3 +81,5 @@ spi-max-frequency = <10000000>; /* input clock */ }; }; + +/include/ "t1042si-post.dtsi"
Signature · 1 line
2.17.1
PATCH 11/11 configs: T1042D4RDB: enable DM_ETH
In reply to Camelia GrozaFrom: Camelia Groza <[email protected]>
Enable DM_ETH and DM_MDIO for the T1042D4RDB.
--- configs/T1042D4RDB_NAND_defconfig | 3 +++ configs/T1042D4RDB_SDCARD_defconfig | 3 +++ configs/T1042D4RDB_SECURE_BOOT_defconfig | 4 +++- configs/T1042D4RDB_SPIFLASH_defconfig | 3 +++ configs/T1042D4RDB_defconfig | 3 +++ 5 files changed, 15 insertions(+), 1 deletion(-)
configs/T1042D4RDB_NAND_defconfig +3 -0
@@ -33,6 +33,7 @@ CONFIG_SPL_NAND_SUPPORT=y CONFIG_HUSH_PARSER=y CONFIG_CMD_IMLS=y CONFIG_CMD_GREPENV=y +CONFIG_CMD_DM=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_USB=y
@@ -66,6 +67,8 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y CONFIG_PHY_REALTEK=y CONFIG_PHY_VITESSE=y +CONFIG_DM_ETH=y +CONFIG_DM_MDIO=y CONFIG_PHY_GIGE=y CONFIG_E1000=y CONFIG_FMAN_ENET=y
configs/T1042D4RDB_SDCARD_defconfig +3 -0
@@ -31,6 +31,7 @@ CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT=y CONFIG_HUSH_PARSER=y CONFIG_CMD_IMLS=y CONFIG_CMD_GREPENV=y +CONFIG_CMD_DM=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_USB=y
@@ -63,6 +64,8 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y CONFIG_PHY_REALTEK=y CONFIG_PHY_VITESSE=y +CONFIG_DM_ETH=y +CONFIG_DM_MDIO=y CONFIG_PHY_GIGE=y CONFIG_E1000=y CONFIG_FMAN_ENET=y
configs/T1042D4RDB_SECURE_BOOT_defconfig +3 -1
@@ -17,6 +17,7 @@ CONFIG_BOARD_EARLY_INIT_R=y CONFIG_HUSH_PARSER=y CONFIG_CMD_IMLS=y CONFIG_CMD_GREPENV=y +CONFIG_CMD_DM=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_SF=y
@@ -45,8 +46,9 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y CONFIG_PHY_REALTEK=y CONFIG_PHY_VITESSE=y +CONFIG_DM_ETH=y +CONFIG_DM_MDIO=y CONFIG_PHY_GIGE=y -CONFIG_E1000=y CONFIG_FMAN_ENET=y CONFIG_MII=y CONFIG_SYS_QE_FMAN_FW_IN_NOR=y
configs/T1042D4RDB_SPIFLASH_defconfig +3 -0
@@ -33,6 +33,7 @@ CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT=y CONFIG_HUSH_PARSER=y CONFIG_CMD_IMLS=y CONFIG_CMD_GREPENV=y +CONFIG_CMD_DM=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_USB=y
@@ -65,6 +66,8 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y CONFIG_PHY_REALTEK=y CONFIG_PHY_VITESSE=y +CONFIG_DM_ETH=y +CONFIG_DM_MDIO=y CONFIG_PHY_GIGE=y CONFIG_E1000=y CONFIG_FMAN_ENET=y
configs/T1042D4RDB_defconfig +3 -0
@@ -18,6 +18,7 @@ CONFIG_BOARD_EARLY_INIT_R=y CONFIG_HUSH_PARSER=y CONFIG_CMD_IMLS=y CONFIG_CMD_GREPENV=y +CONFIG_CMD_DM=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y CONFIG_CMD_USB=y
@@ -51,6 +52,8 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y CONFIG_PHY_REALTEK=y CONFIG_PHY_VITESSE=y +CONFIG_DM_ETH=y +CONFIG_DM_MDIO=y CONFIG_PHY_GIGE=y CONFIG_E1000=y CONFIG_FMAN_ENET=y
Signature · 1 line
2.17.1