board: fsl: ls1046afrwy: complete DM_ETH enablement
cover board: fsl: ls1046afrwy: complete DM_ETH enablement
With DM_ETH enabled by default, the FMan Ethernet isn't configured at present. This patch set adds the missing dts nodes, enables remaining build configs and initializes PCI devices.
Camelia Groza (3):
arm: dts: ls1046afrwy: add the FMan Ethernet nodes
board: freescale: ls1046afrwy: enumerate PCI devices
configs: ls1046afrwy: enable DM_MDIO and DM_CMD
arch/arm/dts/fsl-ls1046a-frwy.dts | 48 ++++++++++++++++++- board/freescale/ls1046afrwy/ls1046afrwy.c | 3 ++ configs/ls1046afrwy_tfa_SECURE_BOOT_defconfig | 2 + configs/ls1046afrwy_tfa_defconfig | 2 + 4 files changed, 54 insertions(+), 1 deletion(-)
--
2.17.1
PATCH 1/3 arm: dts: ls1046afrwy: add the FMan Ethernet nodes
Describe the FMan Ethernet interfaces present on the board.
--- arch/arm/dts/fsl-ls1046a-frwy.dts | 48 ++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-)
arch/arm/dts/fsl-ls1046a-frwy.dts +47 -1
@@ -2,7 +2,7 @@ /* * Device Tree Include file for NXP Layerscape-1046A family SoC. * - * Copyright 2019 NXP + * Copyright 2019-2023 NXP * */
@@ -34,3 +34,49 @@ &i2c0 { status = "okay"; }; + +#include "fsl-ls1046-post.dtsi" + +&fman0 { + ethernet@e0000 { + phy-handle = <&qsgmii_phy4>; + phy-connection-type = "qsgmii"; + status = "okay"; + }; + + ethernet@e8000 { + phy-handle = <&qsgmii_phy2>; + phy-connection-type = "qsgmii"; + status = "okay"; + }; + + ethernet@ea000 { + phy-handle = <&qsgmii_phy1>; + phy-connection-type = "qsgmii"; + status = "okay"; + }; + + ethernet@f2000 { + phy-handle = <&qsgmii_phy3>; + phy-connection-type = "qsgmii"; + status = "okay"; + }; + + mdio@fd000 { + qsgmii_phy1: ethernet-phy@1c { + reg = <0x1c>; + }; + + qsgmii_phy2: ethernet-phy@1d { + reg = <0x1d>; + }; + + qsgmii_phy3: ethernet-phy@1e { + reg = <0x1e>; + }; + + qsgmii_phy4: ethernet-phy@1f { + reg = <0x1f>; + }; + }; +};
Signature · 1 line
2.17.1
PATCH 2/3 board: freescale: ls1046afrwy: enumerate PCI devices
In reply to Camelia GrozaCall pci_init() from board_init() to force PCI enumeration at probe time.
--- board/freescale/ls1046afrwy/ls1046afrwy.c | 3 +++ 1 file changed, 3 insertions(+)
board/freescale/ls1046afrwy/ls1046afrwy.c +3 -0
@@ -134,6 +134,9 @@ val = (in_le32(SMMU_SCR0) | SCR0_CLIENTPD_MASK) & ~(SCR0_USFCFG_MASK);out_le32 (SMMU_NSCR0 , val);#endif +if (!IS_ENABLED (CONFIG_SYS_EARLY_PCI_INIT )) +pci_init (); +select_i2c_ch_pca9547 (I2C_MUX_CH_DEFAULT ,0 );return 0 ; }
Signature · 1 line
2.17.1
PATCH 3/3 configs: ls1046afrwy: enable DM_MDIO and DM_CMD
In reply to Camelia GrozaWith DM_ETH configured by default, complete the Ethernet enablement for LS1046AFRWY by activating DM_MDIO.
--- configs/ls1046afrwy_tfa_SECURE_BOOT_defconfig | 2 ++ configs/ls1046afrwy_tfa_defconfig | 2 ++ 2 files changed, 4 insertions(+)
configs/ls1046afrwy_tfa_SECURE_BOOT_defconfig +2 -0
@@ -30,6 +30,7 @@ CONFIG_MISC_INIT_R=y CONFIG_SYS_MAXARGS=64 CONFIG_SYS_PBSIZE=532 CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS=5 +CONFIG_CMD_DM=y CONFIG_CMD_GPT=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y
@@ -61,6 +62,7 @@ CONFIG_SPI_FLASH_STMICRO=y # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set CONFIG_PHYLIB=y CONFIG_PHY_VITESSE=y +CONFIG_DM_MDIO=y CONFIG_PHY_GIGE=y CONFIG_E1000=y CONFIG_FMAN_ENET=y
configs/ls1046afrwy_tfa_defconfig +2 -0
@@ -34,6 +34,7 @@ CONFIG_MISC_INIT_R=y CONFIG_SYS_MAXARGS=64 CONFIG_SYS_PBSIZE=532 CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS=5 +CONFIG_CMD_DM=y CONFIG_CMD_GPT=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y
@@ -67,6 +68,7 @@ CONFIG_SPI_FLASH_STMICRO=y # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set CONFIG_PHYLIB=y CONFIG_PHY_VITESSE=y +CONFIG_DM_MDIO=y CONFIG_PHY_GIGE=y CONFIG_E1000=y CONFIG_FMAN_ENET=y
Signature · 1 line
2.17.1