[PATCHv1 1/5] cpu: add release_core callback

2024-07-23 Thread Zhiqiang Hou
From: Hou Zhiqiang Add a new callback release_core to the cpu_ops, which is used to release a CPU core to run baremetal or RTOS application on a SoC with multiple CPU cores. Signed-off-by: Hou Zhiqiang --- drivers/cpu/cpu-uclass.c | 10 ++ include/cpu.h| 15 +++

[PATCHv1 3/5] cmd: cpu: add release subcommand

2024-07-23 Thread Zhiqiang Hou
From: Hou Zhiqiang Add a new subcommand 'release' to bring up a core to run baremetal and RTOS applications. For example on i.MX8M Plus EVK, release the LAST core to run a RTOS application, passing the sequence number of the CPU core to release, here it is 3: u-boot=> cpu list 0:

[PATCHv1 5/5] configs: imx93: enable the 'cpu' command

2024-07-23 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the 'cpu' command to display the CPU info and release CPU core to run baremetal or RTOS applications. Signed-off-by: Hou Zhiqiang --- configs/imx93_11x11_evk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx93_11x11_evk_defconfig

[PATCHv1 4/5] configs: imx8m: enable the 'cpu' command

2024-07-23 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the 'cpu' command and the depended imx CPU driver to display the CPU info and release CPU core to run baremetal or RTOS applications. Signed-off-by: Hou Zhiqiang --- configs/imx8mm_evk_defconfig | 3 +++ configs/imx8mn_evk_defconfig | 3 +++

[PATCHv1 2/5] cpu: imx: implement release_core callback

2024-07-23 Thread Zhiqiang Hou
From: Hou Zhiqiang Release the secondary cores through the PSCI request. Signed-off-by: Hou Zhiqiang --- drivers/cpu/imx8_cpu.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c index

[PATCHv1 0/5] Add a subcommand 'release' to cmd/cpu.c

2024-07-23 Thread Zhiqiang Hou
From: Hou Zhiqiang This patch set is to add a subcommand 'release' to the 'cpu' command in cmd/cpu.c, making the command is able to release a core to run baremetal and RTOS applications. And enabled the 'cpu' command and imx CPU driver for i.MX 8M series EVK boards and i.MX 93 EVK board. Hou

[PATCHv1 3/3] configs: imx93-11x11-evk: enable CONFIG_MP to support cpu command

2024-07-19 Thread Zhiqiang Hou
From: Tao Yang Enable the cpu command support for the default config. Signed-off-by: Tao Yang Signed-off-by: Hou Zhiqiang --- configs/imx93_11x11_evk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx93_11x11_evk_defconfig b/configs/imx93_11x11_evk_defconfig index

[PATCHv1 2/3] imx93_evk: add definition MAX_CPUS

2024-07-19 Thread Zhiqiang Hou
From: Tao Yang Add definition for determining the implemented CPU numbers. Signed-off-by: Tao Yang Signed-off-by: Hou Zhiqiang --- include/configs/imx93_evk.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/configs/imx93_evk.h b/include/configs/imx93_evk.h

[PATCHv1 1/3] mp: imx9: add cpu command support

2024-07-19 Thread Zhiqiang Hou
From: Tao Yang Implement the cpu command to kick cpu core to run barematel or RTOS applications. Signed-off-by: Tao Yang Signed-off-by: Hou Zhiqiang --- arch/arm/mach-imx/imx9/Makefile | 4 +- arch/arm/mach-imx/imx9/mp.c | 81 + 2 files changed, 84

[PATCHv1 0/3] Enable the 'cpu' command for i.MX93 EVK board

2024-07-19 Thread Zhiqiang Hou
From: Hou Zhiqiang This patch set is to enable the 'cpu' command for i.MX93 EVK, so that it can kick one CPU core to run the barematel or RTOS applicatons under U-Boot. Tao Yang (3): mp: imx9: add cpu command support imx93_evk: add definition CONFIG_MAX_CPUS configs: imx93-11x11-evk:

[PATCHv1 1/2] mp: imx8m: add cpu command support

2024-07-19 Thread Zhiqiang Hou
From: Hou Zhiqiang Implement the cpu command to kick cpu core to run barematel or RTOS applications. Signed-off-by: Hou Zhiqiang Signed-off-by: Yi Zhao Signed-off-by: Jiafei Pan --- arch/arm/mach-imx/imx8m/Makefile | 3 +- arch/arm/mach-imx/imx8m/mp.c | 100

[PATCHv1 2/2] mp: imx8m: enable CONFIG_MP to support cpu command

2024-07-19 Thread Zhiqiang Hou
From: Jiafei Pan Enable the cpu command support for the default config. Signed-off-by: Jiafei Pan Signed-off-by: Hou Zhiqiang --- configs/imx8mm_evk_defconfig | 1 + configs/imx8mn_ddr4_evk_defconfig | 1 + configs/imx8mp_evk_defconfig | 1 + 3 files changed, 3 insertions(+) diff

[PATCHv1 0/2] Enable the 'cpu' command for i.MX8M series EVK boards

2024-07-19 Thread Zhiqiang Hou
From: Hou Zhiqiang This patch set is to enable the 'cpu' command for i.MX8M Plus, Mini and Nano EVK, so that it can kick one CPU core to run the barematel or RTOS applicatons under U-Boot. Hou Zhiqiang (1): mp: imx8m: add cpu command support Jiafei Pan (1): mp: imx8m: enable CONFIG_MP to

[PATCH] arch: arm: recode the initialization of GICv3 ITS Re-Distributor tables

2022-02-25 Thread Zhiqiang Hou
From: Hou Zhiqiang The current implementation needs the caller provides the memory region for the property and pending tables and the number of re-distibutor, and it doesn't handle the address alignment of the tables and doesn't help to add the reserved-memory node for the tables. This patch

[PATCH] tools: pblimage: fix image header verification function

2022-02-16 Thread Zhiqiang Hou
From: Hou Zhiqiang The Layerscape platforms have different RCW header value from FSL PowerPC platforms, the current image header verification callback is only working on PowerPC, it will fail on Layerscape, this patch is to fix this issue. This is a historical problem and exposed by the

[PATCH] checkpatch: report ERROR only on disabling of fdt and initrd relocation

2021-12-14 Thread Zhiqiang Hou
From: Hou Zhiqiang Let the check pass when patches have these patterns in their context. Signed-off-by: Hou Zhiqiang --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 5696d3a5f3..cf59e2bb70 100755

[PATCHv2] pci: layerscape: update the searching compatible of LX2160A PCIe

2021-12-07 Thread Zhiqiang Hou
From: Hou Zhiqiang The current fixup of LX2160A PCIe nodes is based on non-production rev1 silicon, and in Linux the nodes have been updated for rev2 silicon, so update the searching compatible string to match the kernel changes. And for compatibility with the rev1 nodes, move forward the board

[PATCH] pci: layerscape: update the searching compatible of LX2160A PCIe

2021-11-23 Thread Zhiqiang Hou
From: Hou Zhiqiang The current fixup of LX2160A PCIe nodes is based on non-production rev1 silicon, and in Linux the nodes have been updated for rev2 silicon, so update the searching compatible string to match the kernel changes. And for compatibility with the rev1 nodes, move forward the board

[PATCHv2] pci: layerscape: Fix the LUT and msi-map mismatch issue

2021-09-10 Thread Zhiqiang Hou
From: Hou Zhiqiang In the current code, it doesn't reset the cursors of LUT entry and StreamID at the beginning of the fixup, so it can result in LUT entry setup and msi-map mismatch and LUT entries and StreamID leaking when reload and fixup the DTB. This patch move the initialization of LUT

[PATCH] pci: layerscape: Fix the LUT and msi-map mismatch issue

2021-09-08 Thread Zhiqiang Hou
From: Hou Zhiqiang In the current code, it doesn't reset the cursors of LUT entry and StreamID at the beginning of the fixup, so it can result in LUT entry setup and msi-map mismatch and LUT entries and StreamID leaking when reload and fixup the DTB. This patch move the initialization of LUT

[PATCHv2] configs: Layerscape: Remove the 'fdt_addr' env

2021-08-30 Thread Zhiqiang Hou
From: Hou Zhiqiang On Layerscape platforms, the DTB is loaded from boot filesystem, per the fdt_addr description in doc/README.distro, it must be removed. Signed-off-by: Hou Zhiqiang --- V2: - Removed unrelated description in change log. include/configs/ls1012a2g5rdb.h | 1 -

[PATCH] configs: Layerscape: Remove the 'fdt_addr' env

2021-08-12 Thread Zhiqiang Hou
From: Hou Zhiqiang On Layerscape platforms, the DTB is loaded from boot filesystem, per the fdt_addr description in doc/README.distro, it must be removed. And on many platforms, like ls1046a, ls1088a, ls2088a and lx216xa, the 'fdt_addr' pointed address is not accessible. And with the current

[PATCH] configs: layerscape: Disable the EFI_LOADER feature

2021-07-22 Thread Zhiqiang Hou
From: Hou Zhiqiang The feature BOOTENV_SHARED_EFI is not supported on layerscape boards, it didn't result kernel boot crash previously since there isn't the efi/boot/"BOOTEFI_NAME" and it skip calling of 'boot_efi_binary'. But since the commit f3866909e350 ("distro_bootcmd: call EFI bootmgr

[PATCH] net: fm: Fix a memory leak issue

2021-06-02 Thread Zhiqiang Hou
From: Hou Zhiqiang Fix a memory leak issue in the RX port initialization. Signed-off-by: Hou Zhiqiang --- drivers/net/fm/eth.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/fm/eth.c b/drivers/net/fm/eth.c index 0e89e663f7..7c23ccc1f0 100644 ---

[PATCH] net: e1000: Fix Unchecked return value coverity

2021-05-31 Thread Zhiqiang Hou
From: Hou Zhiqiang Added check for return value of e1000_read_phy_reg(). Signed-off-by: Hou Zhiqiang --- drivers/net/e1000.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c index 694114eca7..1f0d559415 100644 ---

[PATCH] pci: layerscape: Change to allocate zeroed memery for struct ls_pcie

2021-03-10 Thread Zhiqiang Hou
From: Hou Zhiqiang As on some incipient Layerscape platforms (LS1043A series) there isn't separate PF control register block, these registers reside in the LUT register block, so when the driver detected there isn't 'ctrl', it will assign the 'lut' address to the ls_pcie->ctrl. The current code

[PATCHv3] arm64: gic-v3-its: Clear the Pending table before enabling LPIs

2021-03-04 Thread Zhiqiang Hou
From: Hou Zhiqiang The GICv3 RM requires "The first 1KB of memory for the LPI Pending tables must contain only zeros on initial allocation, and this must be visible to the Redistributors, or else the effect is UNPREDICTABLE". And as the following statement, we here clear the whole Pending

[PATCHv2] arm64: gic-v3-its: Clear the Pending table before enabling LPIs

2021-03-04 Thread Zhiqiang Hou
From: Hou Zhiqiang The GICv3 RM requires "The first 1KB of memory for the LPI Pending tables must contain only zeros on initial allocation, and this must be visible to the Redistributors, or else the effect is UNPREDICTABLE". And as the following statement, we here clear the whole Pending

[PATCH] arm64: gic-v3-its: Clear the Pending talbe before enabling LPIs

2021-03-02 Thread Zhiqiang Hou
From: Hou Zhiqiang The GICv3 RM requires "The first 1KB of memory for the LPI Pending tables must contain only zeros on initial allocation, and this must be visible to the Redistributors, or else the effect is UNPREDICTABLE". And as the following statement, we here clear the whole Pending

[PATCH] configs: T1042: Drop the CONFIG_VIDEO

2021-02-05 Thread Zhiqiang Hou
From: Hou Zhiqiang Drop the CONFIG_VIDEO to fix the following build warning. = WARNING == This board does not use CONFIG_DM_VIDEO Please update the board to use CONFIG_DM_VIDEO before the v2019.07 release. UPD include/generated/dt.h Failure to update

[PATCH] armv7: ls102xa: Enable I-Cache to speed up the boot time

2021-02-04 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the I-Cache to speed up the boot time, especailly for the NOR boot, currently it takes about 15 seconds from power up to the U-Boot prompt, and with the I-Cache enabled it only takes around 2.5 seconds. Signed-off-by: Hou Zhiqiang --- arch/arm/cpu/armv7/ls102xa/cpu.c

[PATCH] pci: kconfig: layerscape: Change LX2162A PCIe node compatible string

2021-01-28 Thread Zhiqiang Hou
From: Hou Zhiqiang LX2162A is not like LX2160A which has different PCIe controller in rev1 and rev2 silicon. It supports only one configuration of PCIe controller, which is same as LS2088A. So update PCIe compatible string same as LS2088A. Signed-off-by: Hou Zhiqiang --- drivers/pci/Kconfig |

[PATCHv2] pci: layerscape: Remove the shadow SVR definitions

2021-01-28 Thread Zhiqiang Hou
From: Hou Zhiqiang This patch moves the SVR definitions to a new svr.h for Layerscape armv7 and armv8 platforms respectively, so that the PCIe driver can reuse them. Signed-off-by: Hou Zhiqiang --- V2: - rebase the patch and correct the typos in the subject

[PATCH] pci: layerscape: fix a dead loop issue

2020-10-25 Thread Zhiqiang Hou
From: Hou Zhiqiang The commit 8ec619f8fd84 added the PCIe EP nodes fixup of LX2160A, but it didn't update the condition value when there isn't a property 'apio-wins'. Fixes: 8ec619f8fd84 ("pci: layerscape: Fixup PCIe EP mode DT nodes for LX2160A rev2") Signed-off-by: Hou Zhiqiang ---

[PATCH] dm: pci: fsl: Correct the workaround of erratum A-007815

2020-10-15 Thread Zhiqiang Hou
From: Hou Zhiqiang The register to enable/disable the write-permission of DBI RO registers should be accessed via the CFG_ADDR/CFG_DATA registers instead of accessing directly. Signed-off-by: Hou Zhiqiang --- drivers/pci/pcie_fsl.c | 20 drivers/pci/pcie_fsl.h | 2 ++ 2

[PATCHv2] pci: layerscape: Fixup PCIe EP mode DT nodes for LX2160A rev2

2020-09-27 Thread Zhiqiang Hou
From: Hou Zhiqiang LX2160A rev2 uses different PCIe controller, so EP mode DT nodes also need to be fixed up. Signed-off-by: Hou Zhiqiang --- V2: - Fix a dead loop issue. drivers/pci/pcie_layerscape_fixup_common.c | 28 ++ 1 file changed, 28 insertions(+) diff --git

[PATCHv6 16/18] dts: powerpc: p2020rdb: Add eTSEC DT nodes

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang P2020RDB implements 3 enhanced three-speed Ethernet controllers, and the connection is shown below: eTSEC1: Connected to RGMII switch VSC7385 eTSEC2: Connected to SGMII PHY VSC8221 eTSEC3: Connected to SGMII PHY AR8021 Signed-off-by: Hou Zhiqiang --- V6: - No

[PATCHv6 13/18] dts: powerpc: p1010rdb: Add eTSEC DT nodes

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang P1010RDB implements 3 enhanced three-speed Ethernet controllers, and the connection is shown below: eTSEC1: Connected to RGMII PHY AR8033 eTSEC2: Connected to SGMII PHY AR8033 eTSEC3: Connected to SGMII PHY AR8033 Signed-off-by: Hou Zhiqiang --- V6: - No change.

[PATCHv6 15/18] configs: P1010RDB: Enable DM_ETH config

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the DM_ETH and DM_MDIO config. Signed-off-by: Hou Zhiqiang --- V6: - No change. configs/P1010RDB-PA_36BIT_NAND_defconfig | 2 ++ configs/P1010RDB-PA_36BIT_NOR_defconfig | 2 ++ configs/P1010RDB-PA_36BIT_SDCARD_defconfig | 2 ++

[PATCHv6 14/18] powerpc: p1010rdb: Compile legacy ethernet init function when no DM_ETH

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang The board_eth_init() is only used by legacy ethernet driver framework, so do not compile it when DM_ETH config has been selected. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V6: - No change. board/freescale/p1010rdb/p1010rdb.c | 2 ++ 1 file changed, 2

[PATCHv6 18/18] configs: enable DM_MDIO for LS1021A-TWR and LS1021A-TSN

2020-09-22 Thread Zhiqiang Hou
From: Vladimir Oltean The tsec driver now requires DM_MDIO when DM_ETH is enabled. To avoid build errors, enable DM_MDIO in these boards' configs before we actually add DM_MDIO support to tsec. Signed-off-by: Vladimir Oltean Signed-off-by: Hou Zhiqiang --- V6: - No code change, just move it

[PATCHv6 17/18] configs: P2020RDB: Enable DM_ETH config

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the DM_ETH and DM_MDIO config. On P2020RDB, the eTSEC1 is connecting with a switch VSC7385, so also enable the fixed PHY support. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V6: - No change. configs/P2020RDB-PC_36BIT_NAND_defconfig | 3 +++

[PATCHv6 12/18] configs: P1020RDB: Enable DM_ETH config

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the DM_ETH and DM_MDIO config. On P1020RDB, the eTSEC1 is connecting with a switch VSC7385, so also enable the fixed PHY support. Signed-off-by: Hou Zhiqiang --- V6: - No change. configs/P1020RDB-PC_36BIT_NAND_defconfig | 3 +++

[PATCHv6 04/18] net: tsec: convert to use DM_MDIO when DM_ETH enabled

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang For the platforms on which the eTSEC driver uses DM_ETH, convert its MDIO controller code to also use DM_MDIO. Note that for handling the TBI PHY (the MAC PCS for SGMII), we still don't register a udevice for it, since we can drive it locally and there is no point in doing

[PATCHv6 10/18] dts: powerpc: p1020rdb: Add eTSEC DT nodes

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang P1020RDB implements 3 enhanced three-speed Ethernet controllers, and the connection is shown below: eTSEC1: Connected to RGMII switch VSC7385 eTSEC2: Connected to SGMII PHY VSC8221 eTSEC3: Connected to SGMII PHY AR8021 Signed-off-by: Hou Zhiqiang Reviewed-by:

[PATCHv6 09/18] configs: p1_p2_rdb: Add the default address of vsc7385 firmware

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang Add the environment 'vscfw_addr' to assign a default address for vsc7385 firmware uploading. Signed-off-by: Hou Zhiqiang --- V6: - No change. include/configs/p1_p2_rdb_pc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/p1_p2_rdb_pc.h

[PATCHv6 11/18] powerpc: p1_p2_rdb: Don't compile board_eth_init() when DM_ETH enabled

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang The board_eth_init() is only used by legacy ethernet driver framework, so do not compile it when DM_ETH config has been selected. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V6: - No change. board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 2 ++ 1 file

[PATCHv6 07/18] powerpc: mpc8xxx: Don't compile cpu_eth_init() when DM_ETH enabled

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang The cpu_eth_init() is only used by the legacy ethernet driver framework. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V6: - No change. arch/powerpc/cpu/mpc8xxx/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/cpu/mpc8xxx/cpu.c

[PATCHv6 01/18] phy: make phy_connect_fixed work with a null mdio bus

2020-09-22 Thread Zhiqiang Hou
From: Vladimir Oltean It is utterly pointless to require an MDIO bus pointer for a fixed PHY device. The fixed.c implementation does not require it, only phy_device_create. Fix that. Signed-off-by: Vladimir Oltean Signed-off-by: Hou Zhiqiang Reviewed-by: Hou Zhiqiang --- V6: - No change.

[PATCHv6 08/18] fsl: p1_p2_rdb: Move vsc7835 firmware uploading to board_early_init_r()

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang Move vsc7835 firmware uploading to board_early_init_r(), so that the switch also can work in DM eTSEC driver. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V6: - No change. board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 35 +++-- 1 file

[PATCHv6 05/18] net: tsec: Add fixed-link PHY support

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang The info of fixed-link PHY is described in DT node instead of getting from MII, so detect the fixed-link PHY DT node first, if it doesn't exist then probe the MII. Signed-off-by: Vladimir Oltean Signed-off-by: Hou Zhiqiang --- V6: - No change. drivers/net/tsec.c | 5

[PATCHv6 03/18] net: fsl_mdio: Correct the MII management register block address

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang The MII management register block offset is different between gianfar and etsec2 compatible devices, this patch is to fix this issue by adding driver data for different compatible string. Fixes: 2932c5a802a9 ("net: tsec: fsl_mdio: add DM MDIO support") Signed-off-by: Hou

[PATCHv6 02/18] net: fsl_mdio: Change to use virtual address

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang Use virtual address to access the MII block registers instead of physical address. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V6: - No change. drivers/net/fsl_mdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCHv6 06/18] net: tsec: Add the compatible string "gianfar" support

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang Add compatible string "gianfar" support and update the device-tree-bindings doc. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V6: - No change. doc/device-tree-bindings/net/fsl-tsec-phy.txt | 2 +- drivers/net/tsec.c| 16

[PATCHv6 00/18] powerpc: convert p1010, p1020 and p2020 RDB boards to DM_ETH

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang This patchset is to convert P1010, P1020 and P2020 RDB boards to DM_ETH. V5: Merged the following thread: https://patchwork.ozlabs.org/project/uboot/list/?series=174343=both=* Hou Zhiqiang (16): net: fsl_mdio: Change to use virtual address net: fsl_mdio: Correct the MII

[PATCHv6 18/18] configs: enable DM_MDIO for LS1021A-TWR and LS1021A-TSN

2020-09-22 Thread Zhiqiang Hou
From: Vladimir Oltean The tsec driver now requires DM_MDIO when DM_ETH is enabled. To avoid build errors, enable DM_MDIO in these boards' configs before we actually add DM_MDIO support to tsec. Signed-off-by: Vladimir Oltean Signed-off-by: Hou Zhiqiang --- V6: - No code change, just move it

[PATCHv6 16/18] dts: powerpc: p2020rdb: Add eTSEC DT nodes

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang P2020RDB implements 3 enhanced three-speed Ethernet controllers, and the connection is shown below: eTSEC1: Connected to RGMII switch VSC7385 eTSEC2: Connected to SGMII PHY VSC8221 eTSEC3: Connected to SGMII PHY AR8021 Signed-off-by: Hou Zhiqiang --- V6: - No

[PATCHv6 15/18] configs: P1010RDB: Enable DM_ETH config

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the DM_ETH and DM_MDIO config. Signed-off-by: Hou Zhiqiang --- V6: - No change. configs/P1010RDB-PA_36BIT_NAND_defconfig | 2 ++ configs/P1010RDB-PA_36BIT_NOR_defconfig | 2 ++ configs/P1010RDB-PA_36BIT_SDCARD_defconfig | 2 ++

[PATCHv6 17/18] configs: P2020RDB: Enable DM_ETH config

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the DM_ETH and DM_MDIO config. On P2020RDB, the eTSEC1 is connecting with a switch VSC7385, so also enable the fixed PHY support. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V6: - No change. configs/P2020RDB-PC_36BIT_NAND_defconfig | 3 +++

[PATCHv6 10/18] dts: powerpc: p1020rdb: Add eTSEC DT nodes

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang P1020RDB implements 3 enhanced three-speed Ethernet controllers, and the connection is shown below: eTSEC1: Connected to RGMII switch VSC7385 eTSEC2: Connected to SGMII PHY VSC8221 eTSEC3: Connected to SGMII PHY AR8021 Signed-off-by: Hou Zhiqiang Reviewed-by:

[PATCHv6 12/18] configs: P1020RDB: Enable DM_ETH config

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the DM_ETH and DM_MDIO config. On P1020RDB, the eTSEC1 is connecting with a switch VSC7385, so also enable the fixed PHY support. Signed-off-by: Hou Zhiqiang --- V6: - No change. configs/P1020RDB-PC_36BIT_NAND_defconfig | 3 +++

[PATCHv6 14/18] powerpc: p1010rdb: Compile legacy ethernet init function when no DM_ETH

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang The board_eth_init() is only used by legacy ethernet driver framework, so do not compile it when DM_ETH config has been selected. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V6: - No change. board/freescale/p1010rdb/p1010rdb.c | 2 ++ 1 file changed, 2

[PATCHv6 11/18] powerpc: p1_p2_rdb: Don't compile board_eth_init() when DM_ETH enabled

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang The board_eth_init() is only used by legacy ethernet driver framework, so do not compile it when DM_ETH config has been selected. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V6: - No change. board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 2 ++ 1 file

[PATCHv6 13/18] dts: powerpc: p1010rdb: Add eTSEC DT nodes

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang P1010RDB implements 3 enhanced three-speed Ethernet controllers, and the connection is shown below: eTSEC1: Connected to RGMII PHY AR8033 eTSEC2: Connected to SGMII PHY AR8033 eTSEC3: Connected to SGMII PHY AR8033 Signed-off-by: Hou Zhiqiang --- V6: - No change.

[PATCHv6 06/18] net: tsec: Add the compatible string "gianfar" support

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang Add compatible string "gianfar" support and update the device-tree-bindings doc. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V6: - No change. doc/device-tree-bindings/net/fsl-tsec-phy.txt | 2 +- drivers/net/tsec.c| 16

[PATCHv6 07/18] powerpc: mpc8xxx: Don't compile cpu_eth_init() when DM_ETH enabled

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang The cpu_eth_init() is only used by the legacy ethernet driver framework. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V6: - No change. arch/powerpc/cpu/mpc8xxx/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/cpu/mpc8xxx/cpu.c

[PATCHv6 09/18] configs: p1_p2_rdb: Add the default address of vsc7385 firmware

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang Add the environment 'vscfw_addr' to assign a default address for vsc7385 firmware uploading. Signed-off-by: Hou Zhiqiang --- V6: - No change. include/configs/p1_p2_rdb_pc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/p1_p2_rdb_pc.h

[PATCHv6 08/18] fsl: p1_p2_rdb: Move vsc7835 firmware uploading to board_early_init_r()

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang Move vsc7835 firmware uploading to board_early_init_r(), so that the switch also can work in DM eTSEC driver. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V6: - No change. board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 35 +++-- 1 file

[PATCHv6 05/18] net: tsec: Add fixed-link PHY support

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang The info of fixed-link PHY is described in DT node instead of getting from MII, so detect the fixed-link PHY DT node first, if it doesn't exist then probe the MII. Signed-off-by: Vladimir Oltean Signed-off-by: Hou Zhiqiang --- V6: - No change. drivers/net/tsec.c | 5

[PATCHv6 01/18] phy: make phy_connect_fixed work with a null mdio bus

2020-09-22 Thread Zhiqiang Hou
From: Vladimir Oltean It is utterly pointless to require an MDIO bus pointer for a fixed PHY device. The fixed.c implementation does not require it, only phy_device_create. Fix that. Signed-off-by: Vladimir Oltean Signed-off-by: Hou Zhiqiang Reviewed-by: Hou Zhiqiang --- V6: - No change.

[PATCHv6 03/18] net: fsl_mdio: Correct the MII management register block address

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang The MII management register block offset is different between gianfar and etsec2 compatible devices, this patch is to fix this issue by adding driver data for different compatible string. Fixes: 2932c5a802a9 ("net: tsec: fsl_mdio: add DM MDIO support") Signed-off-by: Hou

[PATCHv6 02/18] net: fsl_mdio: Change to use virtual address

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang Use virtual address to access the MII block registers instead of physical address. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V6: - No change. drivers/net/fsl_mdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCHv6 04/18] net: tsec: convert to use DM_MDIO when DM_ETH enabled

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang For the platforms on which the eTSEC driver uses DM_ETH, convert its MDIO controller code to also use DM_MDIO. Note that for handling the TBI PHY (the MAC PCS for SGMII), we still don't register a udevice for it, since we can drive it locally and there is no point in doing

[PATCHv6 00/18] powerpc: convert p1010, p1020 and p2020 RDB boards to DM_ETH

2020-09-22 Thread Zhiqiang Hou
From: Hou Zhiqiang This patchset is to convert P1010, P1020 and P2020 RDB boards to DM_ETH. V5: Merged the following thread: https://patchwork.ozlabs.org/project/uboot/list/?series=174343=both=* Hou Zhiqiang (16): net: fsl_mdio: Change to use virtual address net: fsl_mdio: Correct the MII

[PATCH] pci: layerscape: Remove the shadow SVR definitiones

2020-09-18 Thread Zhiqiang Hou
From: Hou Zhiqiang This patch moves the SVR definitiones to a new svr.h for Layerscape armv7 and armv8 platforms respectively, so that the PCIe driver can reuse them. Signed-off-by: Hou Zhiqiang --- .../arm/include/asm/arch-fsl-layerscape/soc.h | 30 +---

[PATCH] pci: layerscape: Fixup PCIe EP mode DT nodes for LX2160A rev2

2020-09-13 Thread Zhiqiang Hou
From: Hou Zhiqiang LX2160A rev2 uses different PCIe controller, so EP mode DT nodes also need to be fixed up. Signed-off-by: Hou Zhiqiang --- drivers/pci/pcie_layerscape_fixup_common.c | 26 ++ 1 file changed, 26 insertions(+) diff --git

[PATCH] arm64: Layerscape: Survive LPI one-way reset workaround

2020-08-06 Thread Zhiqiang Hou
From: Hou Zhiqiang The workaround of LPI one-way reset issue is broken by the series: https://patchwork.ozlabs.org/project/uboot/list/?series=192398 This patch is to add DT node for GIC RD tables and create corresponding reserved-memory node in kernel DT to fix it. Signed-off-by: Hou Zhiqiang

[PATCHv5 11/18] dts: powerpc: p1020rdb: Add eTSEC DT nodes

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang P1020RDB implements 3 enhanced three-speed Ethernet controllers, and the connection is shown below: eTSEC1: Connected to RGMII switch VSC7385 eTSEC2: Connected to SGMII PHY VSC8221 eTSEC3: Connected to SGMII PHY AR8021 Signed-off-by: Hou Zhiqiang Reviewed-by:

[PATCHv5 18/18] configs: P2020RDB: Enable DM_ETH config

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the DM_ETH and DM_MDIO config. On P2020RDB, the eTSEC1 is connecting with a switch VSC7385, so also enable the fixed PHY support. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V5: - No change. configs/P2020RDB-PC_36BIT_NAND_defconfig | 3 +++

[PATCHv5 17/18] dts: powerpc: p2020rdb: Add eTSEC DT nodes

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang P2020RDB implements 3 enhanced three-speed Ethernet controllers, and the connection is shown below: eTSEC1: Connected to RGMII switch VSC7385 eTSEC2: Connected to SGMII PHY VSC8221 eTSEC3: Connected to SGMII PHY AR8021 Signed-off-by: Hou Zhiqiang --- V5: - No

[PATCHv5 09/18] fsl: p1_p2_rdb: Move vsc7835 firmware uploading to board_early_init_r()

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang Move vsc7835 firmware uploading to board_early_init_r(), so that the switch also can work in DM eTSEC driver. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V5: - No change. board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 35 +++-- 1 file

[PATCHv5 15/18] powerpc: p1010rdb: Compile legacy ethernet init function when no DM_ETH

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang The board_eth_init() is only used by legacy ethernet driver framework, so do not compile it when DM_ETH config has been selected. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V5: - No change. board/freescale/p1010rdb/p1010rdb.c | 2 ++ 1 file changed, 2

[PATCHv5 16/18] configs: P1010RDB: Enable DM_ETH config

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the DM_ETH and DM_MDIO config. Signed-off-by: Hou Zhiqiang --- V5: - No change. configs/P1010RDB-PA_36BIT_NAND_defconfig | 2 ++ configs/P1010RDB-PA_36BIT_NOR_defconfig | 2 ++ configs/P1010RDB-PA_36BIT_SDCARD_defconfig | 2 ++

[PATCHv5 14/18] dts: powerpc: p1010rdb: Add eTSEC DT nodes

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang P1010RDB implements 3 enhanced three-speed Ethernet controllers, and the connection is shown below: eTSEC1: Connected to RGMII PHY AR8033 eTSEC2: Connected to SGMII PHY AR8033 eTSEC3: Connected to SGMII PHY AR8033 Signed-off-by: Hou Zhiqiang --- V5: - No change.

[PATCHv5 10/18] configs: p1_p2_rdb: Add the default address of vsc7385 firmware

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang Add the environment 'vscfw_addr' to assign a default address for vsc7385 firmware uploading. Signed-off-by: Hou Zhiqiang --- V5: - No change. include/configs/p1_p2_rdb_pc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/p1_p2_rdb_pc.h

[PATCHv5 13/18] configs: P1020RDB: Enable DM_ETH config

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang Enable the DM_ETH and DM_MDIO config. On P1020RDB, the eTSEC1 is connecting with a switch VSC7385, so also enable the fixed PHY support. Signed-off-by: Hou Zhiqiang --- V5: - No change. configs/P1020RDB-PC_36BIT_NAND_defconfig | 3 +++

[PATCHv5 12/18] powerpc: p1_p2_rdb: Don't compile board_eth_init() when DM_ETH enabled

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang The board_eth_init() is only used by legacy ethernet driver framework, so do not compile it when DM_ETH config has been selected. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V5: - No change. board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 2 ++ 1 file

[PATCHv5 06/18] net: tsec: Add fixed-link PHY support

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang The info of fixed-link PHY is described in DT node instead of getting from MII, so detect the fixed-link PHY DT node first, if it doesn't exist then probe the MII. Signed-off-by: Vladimir Oltean Signed-off-by: Hou Zhiqiang --- V5: - No change. drivers/net/tsec.c | 5

[PATCHv5 05/18] net: tsec: convert to use DM_MDIO when DM_ETH enabled

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang For the platforms on which the eTSEC driver uses DM_ETH, convert its MDIO controller code to also use DM_MDIO. Note that for handling the TBI PHY (the MAC PCS for SGMII), we still don't register a udevice for it, since we can drive it locally and there is no point in doing

[PATCHv5 07/18] net: tsec: Add the compatible string "gianfar" support

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang Add compatible string "gianfar" support and update the device-tree-bindings doc. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V5: - No change. doc/device-tree-bindings/net/fsl-tsec-phy.txt | 2 +- drivers/net/tsec.c| 16

[PATCHv5 08/18] powerpc: mpc8xxx: Don't compile cpu_eth_init() when DM_ETH enabled

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang The cpu_eth_init() is only used by the legacy ethernet driver framework. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V5: - No change. arch/powerpc/cpu/mpc8xxx/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/cpu/mpc8xxx/cpu.c

[PATCHv5 02/18] configs: enable DM_MDIO for LS1021A-TWR and LS1021A-TSN

2020-07-16 Thread Zhiqiang Hou
From: Vladimir Oltean The tsec driver now requires DM_MDIO when DM_ETH is enabled. To avoid build errors, enable DM_MDIO in these boards' configs before we actually add DM_MDIO support to tsec. Signed-off-by: Vladimir Oltean Signed-off-by: Hou Zhiqiang --- V5: - Pick from

[PATCHv5 01/18] phy: make phy_connect_fixed work with a null mdio bus

2020-07-16 Thread Zhiqiang Hou
From: Vladimir Oltean It is utterly pointless to require an MDIO bus pointer for a fixed PHY device. The fixed.c implementation does not require it, only phy_device_create. Fix that. Signed-off-by: Vladimir Oltean Reviewed-by: Hou Zhiqiang Signed-off-by: Hou Zhiqiang --- V5: - Pick from

[PATCHv5 03/18] net: fsl_mdio: Change to use virtual address

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang Use virtual address to access the MII block registers instead of physical address. Signed-off-by: Hou Zhiqiang Reviewed-by: Vladimir Oltean --- V5: - No change. drivers/net/fsl_mdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCHv5 04/18] net: fsl_mdio: Correct the MII management register block address

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang The MII management register block offset is different between gianfar and etsec2 compatible devices, this patch is to fix this issue by adding driver data for different compatible string. Fixes: 2932c5a802a9 ("net: tsec: fsl_mdio: add DM MDIO support") Signed-off-by: Hou

[PATCHv5 00/18] powerpc: convert p1010, p1020 and p2020 RDB boards to DM_ETH

2020-07-16 Thread Zhiqiang Hou
From: Hou Zhiqiang This patchset is to convert P1010, P1020 and P2020 RDB boards to DM_ETH. V5: Merged the following thread: https://patchwork.ozlabs.org/project/uboot/list/?series=174343=both=* Hou Zhiqiang (16): net: fsl_mdio: Change to use virtual address net: fsl_mdio: Correct the MII

[PATCHv2 10/10] pci: layerscape: Add specific config entry for RC and EP mode driver

2020-07-09 Thread Zhiqiang Hou
From: Hou Zhiqiang Add Root Complex and Endpoint mode specific config entries, such that it's feasible to enable the RC and/or EP mode driver indepently. Signed-off-by: Hou Zhiqiang --- V2: - New patch. configs/ls1012afrdm_qspi_defconfig| 2 +- configs/ls1012afrdm_tfa_defconfig

[PATCHv2 07/10] pci_ep: layerscape: Add the SRIOV VFs of PF support

2020-07-09 Thread Zhiqiang Hou
From: Xiaowei Bao Add the INBOUND configuration for VFs of PF. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V2: - Rebase the patch without change intent. drivers/pci/pcie_layerscape.c| 8 +--- drivers/pci/pcie_layerscape.h| 13 +++-

[PATCHv2 09/10] pci_ep: layerscape: Add the PCIe EP mode support for lx2160a-v2

2020-07-09 Thread Zhiqiang Hou
From: Xiaowei Bao Add the PCIe EP mode support for lx2160a-v2 platform. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V2: - Rebase the patch without change intent. drivers/pci/pcie_layerscape.h| 9 - drivers/pci/pcie_layerscape_ep.c | 8 +++- 2 files changed,

[PATCHv2 08/10] pci: layerscaple: Modify the ls_pcie_dump_atu function

2020-07-09 Thread Zhiqiang Hou
From: Xiaowei Bao Modify the ls_pcie_dump_atu function, make it can print the INBOUND windows registers. Signed-off-by: Xiaowei Bao Signed-off-by: Hou Zhiqiang --- V2: - Rebase the patch without change intent. drivers/pci/pcie_layerscape.c| 25 +

  1   2   3   4   5   6   >