Re: [RFC 4/7] pinctrl: mscc: Fix multiple definition error

2021-05-04 Thread Horatiu Vultur
The 05/03/2021 16:48, Tom Rini wrote: > > With gcc-11 we get a multiple errors here as the declarations for > mscc_pinctrl_ops and mscc_gpio_ops are missing an extern. Reviewed-by: Horatiu Vultur > > CC: Gregory CLEMENT > Cc: Lars Povlsen > Cc: Horatiu Vultur >

Re: [PATCH 0/2] net: jr2: Fix for jr2 switch

2021-04-11 Thread Horatiu Vultur
Hi, A gentle ping. Thanks. The 03/10/2021 09:31, Horatiu Vultur wrote: > This patch series contains two patches. The first patch resets the > switch at probe time while the second one fixes an issue with the > serdes6g configuration which is used on jr2_pcb111 board > > Ho

Re: [PATCH] dm: core: Add address translation in fdt_get_resource

2021-04-06 Thread Horatiu Vultur
The 04/06/2021 09:38, Patrick Delaunay wrote: Hi Patrick, I have applied your patches and I have done a basic test on jr2_switch. It seems to work fine. I got some warnings from the function '__of_translate_address' which I need to figure out. But one more important thing is that also luton_swit

[PATCH 2/2] net: jr2: Fix Serdes6G configuration

2021-03-10 Thread Horatiu Vultur
Sometimes no traffic was getting out on the ports, the root cause was a wrong configuration of the Serdes6G, which is used on jr2 pcb111. This patch fixes this issue by applying the correct configuration. Fixes: 5e1d417bec92ac ("net: Add MSCC Jaguar2 network driver.") Signed-off-b

[PATCH 0/2] net: jr2: Fix for jr2 switch

2021-03-10 Thread Horatiu Vultur
This patch series contains two patches. The first patch resets the switch at probe time while the second one fixes an issue with the serdes6g configuration which is used on jr2_pcb111 board Horatiu Vultur (2): net: jr2: Reset switch net: jr2: Fix Serdes6G configuration arch/mips/dts/mscc

[PATCH 1/2] net: jr2: Reset switch

2021-03-10 Thread Horatiu Vultur
Make sure to reset the switch core at probe time. Signed-off-by: Horatiu Vultur --- arch/mips/dts/mscc,jr2.dtsi | 6 -- drivers/net/mscc_eswitch/jr2_switch.c | 16 +++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/arch/mips/dts/mscc,jr2.dtsi b/arch

Re: [U-Boot] [PATCH] net: mscc: serval: Remove delay when serdes is configured

2019-06-09 Thread Horatiu Vultur
Hi, I just wanted to give you a gentle ping. Thanks. The 06/01/2019 20:10, Daniel Schwierzeck wrote: > External E-Mail > > > > Am 23.05.19 um 21:45 schrieb Horatiu Vultur: > > When serdes configuration was written in hardware there was a delay > > of 100ms to be

[U-Boot] [RESEND Patch] net: mscc: refactor mscc_miim

2019-06-09 Thread Horatiu Vultur
Because all MSCC SoC use the same MDIO bus, put the implementation in one common file(mscc_miim) and make all the other MSCC network drivers to use these functions. Signed-off-by: Horatiu Vultur --- drivers/net/mscc_eswitch/Makefile | 10 +-- drivers/net/mscc_eswitch/jr2_switch.c

[U-Boot] [PATCH] net: mscc: serval: Remove delay when serdes is configured

2019-05-23 Thread Horatiu Vultur
configuring the network driver. Signed-off-by: Horatiu Vultur --- drivers/net/mscc_eswitch/serval_switch.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/mscc_eswitch/serval_switch.c b/drivers/net/mscc_eswitch/serval_switch.c index 2559f5d..2c30941 100644 --- a/drivers/net

[U-Boot] [PATCH] net: mscc: refactor mscc_miim

2019-05-23 Thread Horatiu Vultur
Because all MSCC SoC use the same MDIO bus, put the implementation in one common file(mscc_miim) and make all the other MSCC network drivers to use these functions. Signed-off-by: Horatiu Vultur --- drivers/net/mscc_eswitch/Makefile | 10 +-- drivers/net/mscc_eswitch/jr2_switch.c

Re: [U-Boot] [PATCH 1/3] net: mscc: luton: Update network driver for pcb90

2019-05-09 Thread Horatiu Vultur
Hi Joe, The 05/09/2019 21:03, Joe Hershberger wrote: > External E-Mail > > > On Wed, May 1, 2019 at 6:18 AM Horatiu Vultur > wrote: > > > > Update Luton network driver to have support also for pcb90. The pcb90 > > has 24 ports from which 12 ports are co

[U-Boot] [PATCH 3/3] net: mscc: ocelot: Update DTS for Luton pcb90

2019-05-01 Thread Horatiu Vultur
Update device tree for luton to add support for luton pcb90. This pcb has 24 ports from which 12 ports are connected to SerDes6G. Signed-off-by: Horatiu Vultur --- arch/mips/dts/luton_pcb090.dts| 228 +++--- arch/mips/dts/luton_pcb091.dts| 132

[U-Boot] [PATCH 2/3] board: mscc: luton: Update MSCC Luton board

2019-05-01 Thread Horatiu Vultur
Implement method board_phy_config to configure the external phys on the pcb90. Signed-off-by: Horatiu Vultur --- board/mscc/luton/luton.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/board/mscc/luton/luton.c b/board/mscc/luton/luton.c index 807c717..114f7fd

[U-Boot] [PATCH 0/3] Update Luton network driver

2019-05-01 Thread Horatiu Vultur
Update Luton network driver to add support for all the ports on pcb90. The existing support is only for first 12 ports, with this patch adds support for another 12 ports. This patch series is based on u-boot-mips/master. Horatiu Vultur (3): net: mscc: luton: Update network driver for pcb90

[U-Boot] [PATCH 1/3] net: mscc: luton: Update network driver for pcb90

2019-05-01 Thread Horatiu Vultur
Update Luton network driver to have support also for pcb90. The pcb90 has 24 ports from which 12 ports are connected to SerDes6G. Signed-off-by: Horatiu Vultur --- drivers/net/mscc_eswitch/Makefile | 2 +- drivers/net/mscc_eswitch/luton_switch.c | 415 2

[U-Boot] [PATCH] arch: mips: Update initrd_start and initrd_end

2019-04-24 Thread Horatiu Vultur
virt_to_phys before setting up the DT. Signed-off-by: Horatiu Vultur --- arch/mips/lib/bootm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/lib/bootm.c b/arch/mips/lib/bootm.c index 35152cb..6a462f3 100644 --- a/arch/mips/lib/bootm.c +++ b/arch/mips/lib/bootm.c @@ -247,6 +247,8 @@ int

[U-Boot] [PATCH 1/3] net: mscc: ocelot: Update network driver for pcb120

2019-04-24 Thread Horatiu Vultur
Update Ocelot network driver to have support also for pcb120. Signed-off-by: Horatiu Vultur --- .../include/mach/ocelot/ocelot_devcpu_gcb.h| 1 + drivers/net/mscc_eswitch/Makefile | 2 +- drivers/net/mscc_eswitch/ocelot_switch.c | 434

[U-Boot] [PATCH 3/3] net: mscc: ocelot: Update DTS for Ocelot pcb120.

2019-04-24 Thread Horatiu Vultur
Update device tree for ocelot to add support for ocelot pcb120. Signed-off-by: Horatiu Vultur --- MAINTAINERS| 1 + arch/mips/dts/mscc,ocelot.dtsi | 109 + arch/mips/dts/ocelot_pcb120.dts| 75

[U-Boot] [PATCH 0/3] Update Ocelot network driver.

2019-04-24 Thread Horatiu Vultur
Update Ocelot network driver to add support for pcb120. This patch series is based on u-boot-mips/master. Horatiu Vultur (3): net: mscc: ocelot: Update network driver for pcb120 board: mscc: ocelot: Update MSCC Ocelot board. net: mscc: ocelot: Update DTS for Ocelot pcb120. MAINTAINERS

[U-Boot] [PATCH 2/3] board: mscc: ocelot: Update MSCC Ocelot board.

2019-04-24 Thread Horatiu Vultur
Implement method board_phy_config to configure the phy for pcb120. Signed-off-by: Horatiu Vultur --- board/mscc/ocelot/ocelot.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/board/mscc/ocelot/ocelot.c b/board/mscc/ocelot/ocelot.c index 532d06f..bcae8fa 100644 --- a/board

[U-Boot] [PATCH v2 2/2] board: mscc: serval: Fix board detect

2019-04-15 Thread Horatiu Vultur
When detecting the board, it was reading a register in the GPIO page of the phy and based on that value it was making a decision. The bug was that after the GPIO page for the first phy was set it was not reseted back. Signed-off-by: Horatiu Vultur --- board/mscc/serval/serval.c | 2 +- 1 file

[U-Boot] [PATCH v2 1/2] mips: mscc: serval: Fix reset

2019-04-15 Thread Horatiu Vultur
In case the ddr training was failing, it couldn't reset, it was just hanging. Therefore reimplement it, so when ddr training is failing it would call _machine_restart, which power downs the DDR and does a force reset. Signed-off-by: Horatiu Vultur --- arch/mips/mach-mscc/include/mach/ddr.h

[U-Boot] [PATCH v2 0/2] Fix minor issues with Serval SoC.

2019-04-15 Thread Horatiu Vultur
This patch series fix different issues with Serval. - first patch fix resets when DDR training fails. - second patch fix the detection of the board. This patch series is based on u-boot-mips/next. v2-changes: - Update reset based on Daniel's comments Horatiu Vultur (2): mips: mscc: s

[U-Boot] [PATCH 3/4] net: mscc: serval: Add ethernet nodes for Serval

2019-04-11 Thread Horatiu Vultur
Add ethernet nodes for Serval SoCs family. There are 2 pcb in this family: pcb105 and pcb106. Signed-off-by: Horatiu Vultur --- arch/mips/dts/mscc,serval.dtsi | 58 ++ arch/mips/dts/serval_pcb105.dts| 44 ++ arch/mips/dts

[U-Boot] [PATCH 4/4] configs: mscc_serval: Add network support

2019-04-11 Thread Horatiu Vultur
Update default config to use network driver for Serval SoCs. Signed-off-by: Horatiu Vultur --- configs/mscc_serval_defconfig | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/mscc_serval_defconfig b/configs/mscc_serval_defconfig index f2c9563..444fefd 100644 --- a

[U-Boot] [PATCH 1/4] net: Add MSCC Serval network driver.

2019-04-11 Thread Horatiu Vultur
Add network driver for Microsemi Ethernet switch. It is present on Serval SoCs. Signed-off-by: Horatiu Vultur --- drivers/net/mscc_eswitch/Kconfig | 7 + drivers/net/mscc_eswitch/Makefile| 1 + drivers/net/mscc_eswitch/serval_switch.c | 703 +++ 3

[U-Boot] [PATCH 2/4] board: mscc: serval: Update MSCC Serval boards

2019-04-11 Thread Horatiu Vultur
In Serval SoC family there are 2 different pcb, both of them have the same phy, but with different version. Therefore implement board_phy_config and set all the phys in the same way. Signed-off-by: Horatiu Vultur --- board/mscc/serval/serval.c | 12 1 file changed, 12 insertions

[U-Boot] [PATCH 0/4] Add network support for Serval SoCs.

2019-04-11 Thread Horatiu Vultur
This patch series add network support for Serval SoCs family. There are the following pcb: Serval-nid(pcb106), Serval-ref (pcb105). Horatiu Vultur (4): net: Add MSCC Serval network driver. board: mscc: serval: Update MSCC Serval boards net: mscc: serval: Add ethernet nodes for Serval

[U-Boot] [PATCH 1/2] mips: mscc: serval: Fix reset

2019-04-11 Thread Horatiu Vultur
In case the ddr training was failing, it couldn't reset, it was just hanging. Therefore reimplement it, so when ddr training is failing it would call _machine_restart, which power downs the DDR and does a force reset. Signed-off-by: Horatiu Vultur --- arch/mips/mach-mscc/include/mach/ddr.h

[U-Boot] [PATCH 2/2] board: mscc: serval: Fix board detect

2019-04-11 Thread Horatiu Vultur
When detecting the board, it was reading a register in the GPIO page of the phy and based on that value it was making a decision. The bug was that after the GPIO page for the first phy was set it was not reseted back. Signed-off-by: Horatiu Vultur --- board/mscc/serval/serval.c | 2 +- 1 file

[U-Boot] [PATCH 0/2] Fix minor issues with Serval SoC.

2019-04-11 Thread Horatiu Vultur
This patch series fix different issues with Serval. - first patch fix resets when DDR training fails. - second patch fix the detection of the board. This patch series is based on u-boot-mips/next. Horatiu Vultur (2): mips: mscc: serval: Fix reset board: mscc: serval: Fix board detect

[U-Boot] [PATCH] configs: vcoreiii: Change CONFIG_ENV_SIZE

2019-04-08 Thread Horatiu Vultur
takes ~40 msecs. Signed-off-by: Horatiu Vultur --- include/configs/vcoreiii.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/vcoreiii.h b/include/configs/vcoreiii.h index aeef58d..8c68372 100644 --- a/include/configs/vcoreiii.h +++ b/include/configs/vcore

[U-Boot] [PATCH 0/3] Add network support for ServalT SoCs

2019-04-08 Thread Horatiu Vultur
This patch series adds network support for ServalT SoCs family. There is only one pcb in this family: ServalT(pcb116). This patch series is based on: u-boot-mips/next. Horatiu Vultur (3): net: Add MSCC ServalT network driver. net: mscc: servalt: Add ethernet nodes for ServalT configs

[U-Boot] [PATCH 2/3] net: mscc: servalt: Add ethernet nodes for ServalT

2019-04-08 Thread Horatiu Vultur
Add ethernet nodes for ServalT SoCs family. Currently there is only one pcb(pcb116) in this family. Signed-off-by: Horatiu Vultur --- arch/mips/dts/mscc,servalt.dtsi | 40 arch/mips/dts/servalt_pcb116.dts | 25 + 2 files changed

[U-Boot] [PATCH 3/3] configs: mscc_servalt: Add network support

2019-04-08 Thread Horatiu Vultur
Update default config to use network driver for ServalT SoCs. Signed-off-by: Horatiu Vultur --- configs/mscc_servalt_defconfig | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/mscc_servalt_defconfig b/configs/mscc_servalt_defconfig index 027aaa4..33d43de 100644

[U-Boot] [PATCH 1/3] net: Add MSCC ServalT network driver.

2019-04-08 Thread Horatiu Vultur
Add network driver for Microsemi Ethernet switch. It is present on ServalT SoCs. Signed-off-by: Horatiu Vultur --- .../include/mach/servalt/servalt_devcpu_gcb.h | 2 + drivers/net/mscc_eswitch/Kconfig | 7 + drivers/net/mscc_eswitch/Makefile | 1

[U-Boot] [PATCH v4 2/4] board: mscc: jr2: Update MSCC Jaguar2 boards

2019-04-03 Thread Horatiu Vultur
In Jaguar2 SoC family there are 3 different pcb. Each of this needs to configure the phys in different ways. Therefore implement the function board_phy_config and based on pcb configure them accordingly. Signed-off-by: Horatiu Vultur --- board/mscc/jr2/jr2.c | 23 +++ 1 file

[U-Boot] [PATCH v4 4/4] configs: mscc_jr2: Add network support

2019-04-03 Thread Horatiu Vultur
Update default confing to use network driver for Jaguar2 SoCs. Signed-off-by: Horatiu Vultur --- configs/mscc_jr2_defconfig | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/mscc_jr2_defconfig b/configs/mscc_jr2_defconfig index 95562b7..92c22b8 100644 --- a

[U-Boot] [PATCH v4 3/4] net: mscc: jaguar2: Add ethenet nodes for Jaguar2.

2019-04-03 Thread Horatiu Vultur
Add ethernet nodes for Jaguar2 SoCs family. There are 3 pcb in this family: pcb110, pcb111 and pcb112. Signed-off-by: Horatiu Vultur --- arch/mips/dts/jr2_pcb110.dts| 76 +++ arch/mips/dts/jr2_pcb111.dts| 400 arch/mips/dts/mscc,jr2.dtsi

[U-Boot] [PATCH v4 1/4] net: Add MSCC Jaguar2 network driver.

2019-04-03 Thread Horatiu Vultur
Add network driver for Microsemi Ethernet switch. It is present on Jaguar2 SoCs. Reviewed-by: Daniel Schwierzeck Signed-off-by: Horatiu Vultur --- drivers/net/mscc_eswitch/Kconfig |7 + drivers/net/mscc_eswitch/Makefile |1 + drivers/net/mscc_eswitch/jr2_switch.c | 1075

[U-Boot] [PATCH v4 0/4] Add network support for Jaguar2 SoCs

2019-04-03 Thread Horatiu Vultur
v4-changes: - address Daniel comments. v3-changes: - move serdes setup in network driver and read serdes configuration from DT. v2-changes: - create serdes6g_setup and serdes1g_setup functions to be easier to extand for future boards. Horatiu Vultur (4): net: Add MSCC Jaguar2 network

Re: [U-Boot] [PATCH v3 1/4] net: Add MSCC Jaguar2 network driver.

2019-04-03 Thread Horatiu Vultur
Hi Daniel, The 04/03/2019 12:18, Daniel Schwierzeck wrote: > External E-Mail > > > > Am 30.03.19 um 11:17 schrieb Horatiu Vultur: > > Add network driver for Microsemi Ethernet switch. > > It is present on Jaguar2 SoCs. > > > > Signed-off-by: H

[U-Boot] [PATCH v3 4/4] configs: mscc_jr2: Add network support

2019-03-30 Thread Horatiu Vultur
Update default confing to use network driver for Jaguar2 SoCs. Signed-off-by: Horatiu Vultur --- configs/mscc_jr2_defconfig | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/mscc_jr2_defconfig b/configs/mscc_jr2_defconfig index 95562b7..92c22b8 100644 --- a

[U-Boot] [PATCH v3 1/4] net: Add MSCC Jaguar2 network driver.

2019-03-30 Thread Horatiu Vultur
Add network driver for Microsemi Ethernet switch. It is present on Jaguar2 SoCs. Signed-off-by: Horatiu Vultur --- drivers/net/mscc_eswitch/Kconfig |7 + drivers/net/mscc_eswitch/Makefile |1 + drivers/net/mscc_eswitch/jr2_switch.c | 1075

[U-Boot] [PATCH v3 2/4] board: mscc: jr2: Update MSCC Jaguar2 boards

2019-03-30 Thread Horatiu Vultur
In Jaguar2 SoC family there are 3 different pcb. Each of this needs to configure the phys in different ways. Therefore implement the function board_phy_config and based on pcb configure them accordingly. Signed-off-by: Horatiu Vultur --- board/mscc/jr2/jr2.c | 23 +++ 1 file

[U-Boot] [PATCH v3 3/4] net: mscc: jaguar2: Add ethenet nodes for Jaguar2.

2019-03-30 Thread Horatiu Vultur
Add ethernet nodes for Jaguar2 SoCs family. There are 3 pcb in this family: pcb110, pcb111 and pcb112. Signed-off-by: Horatiu Vultur --- arch/mips/dts/jr2_pcb110.dts| 76 +++ arch/mips/dts/jr2_pcb111.dts| 400 arch/mips/dts/mscc,jr2.dtsi

[U-Boot] [PATCH v3 0/4] Add network support for Jaguar2 SoCs

2019-03-30 Thread Horatiu Vultur
v3-changes: - move serdes setup in network driver and read serdes configuration from DT. v2-changes: - create serdes6g_setup and serdes1g_setup functions to be easier to extand for future boards. Horatiu Vultur (4): net: Add MSCC Jaguar2 network driver. board: mscc: jr2: Update MSCC

[U-Boot] [Resend Patch] net: mscc: ocelot: Fix reset of the phys

2019-03-27 Thread Horatiu Vultur
The function mscc_miim_reset resets all the phys, but it is called for each phy separetely. One consequence of this is that the boot time is increased by 2 seconds. The fix consists for calling the mscc_miim_reset function only once for all phys. Signed-off-by: Horatiu Vultur Reviewed-by

Re: [U-Boot] [PATCH] Revert "env: add spi_flash_read_env function"

2019-03-26 Thread Horatiu Vultur
Hi Heiko, Sorry, for late reply. I have seen that this patch was accepted, so I have only few things bellow. The 03/15/2019 05:34, Heiko Schocher wrote: > External E-Mail > > > Hello Horatiu, > > Am 14.03.2019 um 13:53 schrieb Horatiu Vultur: > > Hi Heiko, > >

Re: [U-Boot] [PATCH 2/4] board: mscc: jr2: Update MSCC Jaguar2 boards

2019-03-24 Thread Horatiu Vultur
Hi Daniel, The 03/15/2019 13:02, Daniel Schwierzeck wrote: > External E-Mail > > > Hi Horatio, > > Am 06.03.19 um 23:11 schrieb Horatiu Vultur: > > Hi Daniel, > > > > The 03/06/2019 14:19, Daniel Schwierzeck wrote: > >> > >> > >>

Re: [U-Boot] [PATCH] Revert "env: add spi_flash_read_env function"

2019-03-14 Thread Horatiu Vultur
Hi Heiko, I managed to reproduce the issue that you described. Don't you think it is a little bit too harsh to remove the commit completely? I am not sure but how many cases are where UBoot doesn't store anything in flash? And then lets the linux to update the flash. Or is wouldn't better to up

[U-Boot] [PATCH] net: mscc: ocelot: Fix reset of the phys

2019-03-12 Thread Horatiu Vultur
The function mscc_miim_reset resets all the phys, but it is called for each phy separetely. One consequence of this is that the boot time is increased by 2 seconds. The fix consists for calling the mscc_miim_reset function only once for all phys. Signed-off-by: Horatiu Vultur --- drivers/net

Re: [U-Boot] [PATCH] bootm: mips: Remove boot_reloc_ramdisk

2019-03-08 Thread Horatiu Vultur
Hi Daniel, The 03/07/2019 18:33, Daniel Schwierzeck wrote: > Am Do., 7. März 2019 um 16:49 Uhr schrieb Horatiu Vultur > : > > > > Remove the function boot_reloc_ramdisk in the file arch/mips/lib/bootm > > because it is relocating again the ramdisk. The function do_bo

[U-Boot] [PATCH] bootm: mips: Remove boot_reloc_ramdisk

2019-03-07 Thread Horatiu Vultur
commit c2e7e72bb9f0cb47d024997b381cb64786eb5402 ("bootm: relocate ramdisk if CONFIG_SYS_BOOT_RAMDISK_HIGH set") Signed-off-by: Horatiu Vultur --- arch/mips/lib/bootm.c | 19 --- 1 file changed, 19 deletions(-) diff --git a/arch/mips/lib/bootm.c b/arch/mips/lib/bootm.c ind

[U-Boot] [PATCH v2 3/4] net: mscc: jaguar2: Add ethenet nodes for Jaguar2.

2019-03-07 Thread Horatiu Vultur
Add ethernet nodes for Jaguar2 SoCs family. There are 3 pcb in this family: pcb110, pcb111 and pcb112. Signed-off-by: Horatiu Vultur --- arch/mips/dts/jr2_pcb110.dts | 67 arch/mips/dts/jr2_pcb111.dts | 352 +++ arch/mips/dts/mscc,jr2.dtsi

[U-Boot] [PATCH v2 4/4] configs: mscc_jr2: Add network support

2019-03-07 Thread Horatiu Vultur
Update default confing to use network driver for Jaguar2 SoCs. Signed-off-by: Horatiu Vultur --- configs/mscc_jr2_defconfig | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/mscc_jr2_defconfig b/configs/mscc_jr2_defconfig index 9276df2..d6e4bd4 100644 --- a

[U-Boot] [PATCH v2 2/4] board: mscc: jr2: Update MSCC Jaguar2 boards

2019-03-07 Thread Horatiu Vultur
In Jaguar2 SoC family there are 3 different pcb. Each of this needs to configure the SerDes and the phys in different ways. Therefore implement the function board_phy_config and serdes_cfg and based on pcb configure them accordingly. Signed-off-by: Horatiu Vultur --- board/mscc/jr2/jr2.c | 443

[U-Boot] [PATCH v2 1/4] net: Add MSCC Jaguar2 network driver.

2019-03-07 Thread Horatiu Vultur
Add network driver for Microsemi Ethernet switch. It is present on Jaguar2 SoCs. Signed-off-by: Horatiu Vultur --- drivers/net/mscc_eswitch/Kconfig | 7 + drivers/net/mscc_eswitch/Makefile | 1 + drivers/net/mscc_eswitch/jr2_switch.c | 735

[U-Boot] [PATCH v2 0/4] Add network support for Jaguar2 SoCs

2019-03-07 Thread Horatiu Vultur
This patch series add network support for Jaguar2 SoCs family. There are following pcb: Jaguar2-24(110), Jaguar2-48(pcb111) and Serval2(pcb112). v2-changes: - create serdes6g_setup and serdes1g_setup functions to be easier to extand for future boards. Horatiu Vultur (4): net: Add MSCC

Re: [U-Boot] [PATCH 2/4] board: mscc: jr2: Update MSCC Jaguar2 boards

2019-03-06 Thread Horatiu Vultur
Hi Daniel, The 03/06/2019 14:19, Daniel Schwierzeck wrote: > > > Am 05.03.19 um 12:57 schrieb Horatiu Vultur: > > In Jaguar2 SoC family there are 3 different pcb. Each of this needs > > to configure the SerDes and the phys in different ways. > > Therefore implement th

[U-Boot] [PATCH 1/4] net: Add MSCC Jaguar2 network driver.

2019-03-05 Thread Horatiu Vultur
Add network driver for Microsemi Ethernet switch. It is present on Jaguar2 SoCs. Signed-off-by: Horatiu Vultur --- drivers/net/mscc_eswitch/Kconfig | 7 + drivers/net/mscc_eswitch/Makefile | 1 + drivers/net/mscc_eswitch/jr2_switch.c | 735

[U-Boot] [PATCH 4/4] configs: mscc_jr2: Add network support

2019-03-05 Thread Horatiu Vultur
Update default confing to use network driver for Jaguar2 SoCs. Signed-off-by: Horatiu Vultur --- configs/mscc_jr2_defconfig | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/mscc_jr2_defconfig b/configs/mscc_jr2_defconfig index 9276df2..d6e4bd4 100644 --- a

[U-Boot] [PATCH 3/4] net: mscc: jaguar2: Add ethenet nodes for Jaguar2.

2019-03-05 Thread Horatiu Vultur
Add ethernet nodes for Jaguar2 SoCs family. There are 3 pcb in this family: pcb110, pcb111 and pcb112. Signed-off-by: Horatiu Vultur --- arch/mips/dts/jr2_pcb110.dts | 67 arch/mips/dts/jr2_pcb111.dts | 352 +++ arch/mips/dts/mscc,jr2.dtsi

[U-Boot] [PATCH 2/4] board: mscc: jr2: Update MSCC Jaguar2 boards

2019-03-05 Thread Horatiu Vultur
In Jaguar2 SoC family there are 3 different pcb. Each of this needs to configure the SerDes and the phys in different ways. Therefore implement the function board_phy_config and serdes_cfg and based on pcb configure them accordingly. Signed-off-by: Horatiu Vultur --- board/mscc/jr2/jr2.c | 542

[U-Boot] [PATCH 0/4] Add network support for Jaguar2 SoCs

2019-03-05 Thread Horatiu Vultur
This patch series add network support for Jaguar2 SoCs family. There are following pcb: Jaguar2-24(110), Jaguar2-48(pcb111) and Serval2(pcb112). Horatiu Vultur (4): net: Add MSCC Jaguar2 network driver. board: mscc: jr2: Update MSCC Jaguar2 boards net: mscc: jaguar2: Add ethenet nodes for

[U-Boot] [PATCH v3 8/8] configs: mscc_luton: Add network support.

2019-01-31 Thread Horatiu Vultur
Update default config to use network driver for Luton SoCs. Signed-off-by: Horatiu Vultur --- configs/mscc_luton_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mscc_luton_defconfig b/configs/mscc_luton_defconfig index 7154e97..0fdd9b8 100644 --- a/configs

[U-Boot] [PATCH v3 7/8] net: Add MSCC Luton networkd driver.

2019-01-31 Thread Horatiu Vultur
Add network driver for Microsemi Ethernet switch, it is present on Luton SoCs. Signed-off-by: Horatiu Vultur --- drivers/net/mscc_eswitch/Kconfig| 7 + drivers/net/mscc_eswitch/Makefile | 1 + drivers/net/mscc_eswitch/luton_switch.c | 736 3

[U-Boot] [PATCH v3 6/8] mips: mscc: luton: Add ethernet nodes for Luton.

2019-01-31 Thread Horatiu Vultur
Add nodes for pcb090 and pcb091. There is currently no support in Linux for this SoC. Signed-off-by: Horatiu Vultur --- arch/mips/dts/luton_pcb090.dts | 51 + arch/mips/dts/luton_pcb091.dts | 51 + arch/mips/dts/mscc,luton.dtsi | 165

[U-Boot] [PATCH v3 4/8] net: mscc: Move mac_table_add function into different file.

2019-01-31 Thread Horatiu Vultur
Move the function mac_table_add into a different file, so it can be reused. Signed-off-by: Horatiu Vultur --- drivers/net/mscc_eswitch/Makefile | 2 +- drivers/net/mscc_eswitch/mscc_mac_table.c | 74 + drivers/net/mscc_eswitch/mscc_mac_table.h | 19

[U-Boot] [PATCH v3 5/8] net: mscc: Remove unused variables

2019-01-31 Thread Horatiu Vultur
Remove unused variables in the struct ocelot_private and make miim variable static. Signed-off-by: Horatiu Vultur --- drivers/net/mscc_eswitch/ocelot_switch.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/net/mscc_eswitch/ocelot_switch.c b/drivers

[U-Boot] [PATCH v3 3/8] net: mscc: Move ocelot_send and ocelot_recv in a different file.

2019-01-31 Thread Horatiu Vultur
This functions can be reused by other MSCC SoCs therefore, make them more generic and move them in separate files. Signed-off-by: Horatiu Vultur --- drivers/net/mscc_eswitch/Makefile| 2 +- drivers/net/mscc_eswitch/mscc_xfer.c | 139 +++ drivers/net

[U-Boot] [PATCH v3 1/8] net: mscc: Move ocelot_switch to mscc_eswitch folder

2019-01-31 Thread Horatiu Vultur
Move file ocelot_switch to mscc_eswitch to prepare to add new net drivers for other MSCC SoCs. Signed-off-by: Horatiu Vultur --- MAINTAINERS| 2 +- drivers/net/Kconfig| 7 +-- drivers/net/Makefile

[U-Boot] [PATCH v3 2/8] net: mscc: Move miim commands into separate file.

2019-01-31 Thread Horatiu Vultur
Move miim functions that can be shared in a different file inside mscc_eswitch. Signed-off-by: Horatiu Vultur --- drivers/net/mscc_eswitch/Makefile| 2 +- drivers/net/mscc_eswitch/mscc_miim.c | 74 drivers/net/mscc_eswitch/mscc_miim.h | 12

[U-Boot] [PATCH v3 0/8] Add network support for Luton SoCs

2019-01-31 Thread Horatiu Vultur
This series adds network support for Luton SoCs. Currently there is not support for Luton SoCs in Linux. v3-changes: - reorder the changes of the commits and add Kconfig in mscc_eswitch folder v2-changes: - reuse functions from ocelot for luton network driver Horatiu Vultur (8): net

[U-Boot] [PATCH v2 2/8] net: mscc: Move miim commands into separate file.

2019-01-30 Thread Horatiu Vultur
Move miim functions that can be shared in a different file inside mscc_eswitch. Signed-off-by: Horatiu Vultur --- drivers/net/mscc_eswitch/Makefile| 2 +- drivers/net/mscc_eswitch/mscc_miim.c | 74 drivers/net/mscc_eswitch/mscc_miim.h | 12

[U-Boot] [PATCH v2 7/8] net: Add MSCC Luton networkd driver.

2019-01-30 Thread Horatiu Vultur
Add network driver for Microsemi Ethernet switch, it is present on Luton SoCs. Signed-off-by: Horatiu Vultur --- drivers/net/Kconfig | 7 + drivers/net/Makefile| 2 +- drivers/net/mscc_eswitch/Makefile | 1 + drivers/net/mscc_eswitch

[U-Boot] [PATCH v2 8/8] configs: mscc_luton: Add network support.

2019-01-30 Thread Horatiu Vultur
Update default config to use network driver for Luton SoCs. Signed-off-by: Horatiu Vultur --- configs/mscc_luton_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mscc_luton_defconfig b/configs/mscc_luton_defconfig index 7154e97..0fdd9b8 100644 --- a/configs

[U-Boot] [PATCH v2 6/8] mips: mscc: luton: Add ethernet nodes for Luton.

2019-01-30 Thread Horatiu Vultur
Add nodes for pcb090 and pcb091. There is currently no support in Linux for this SoC. Signed-off-by: Horatiu Vultur --- arch/mips/dts/luton_pcb090.dts | 51 + arch/mips/dts/luton_pcb091.dts | 51 + arch/mips/dts/mscc,luton.dtsi | 165

[U-Boot] [PATCH v2 5/8] net: mscc: Remove unused variables

2019-01-30 Thread Horatiu Vultur
Remove unused variables in the struct ocelot_private. Signed-off-by: Horatiu Vultur --- drivers/net/mscc_eswitch/ocelot_switch.c | 12 1 file changed, 12 deletions(-) diff --git a/drivers/net/mscc_eswitch/ocelot_switch.c b/drivers/net/mscc_eswitch/ocelot_switch.c index 40152e6

[U-Boot] [PATCH v2 4/8] net: mscc: Move mac_table_add function into different file.

2019-01-30 Thread Horatiu Vultur
Move the function mac_table_add into a different file, so it can be reused. Signed-off-by: Horatiu Vultur --- drivers/net/mscc_eswitch/Makefile | 2 +- drivers/net/mscc_eswitch/mscc_mac_table.c | 74 + drivers/net/mscc_eswitch/mscc_mac_table.h | 19

[U-Boot] [PATCH v2 3/8] net: mscc: Move ocelot_send and ocelot_recv in a different file.

2019-01-30 Thread Horatiu Vultur
This functions can be reused by other MSCC SoCs therefore, make them more generic and move them in separate files. Signed-off-by: Horatiu Vultur --- drivers/net/mscc_eswitch/Makefile| 2 +- drivers/net/mscc_eswitch/mscc_xfer.c | 139 +++ drivers/net

[U-Boot] [PATCH v2 0/8] Add network support for Luton SoCs

2019-01-30 Thread Horatiu Vultur
This series adds network support for Luton SoCs. Currently there is not support for Luton SoCs in Linux. v2-changes: - reuse functions from ocelot for luton network driver Horatiu Vultur (8): net: mscc: Move ocelot_switch to mscc_switch folder. net: mscc: Move miim commands into separate

[U-Boot] [PATCH v2 1/8] net: mscc: Move ocelot_switch to mscc_switch folder.

2019-01-30 Thread Horatiu Vultur
Move file ocelot_switch to mscc_switch to prepare to add new net drivers for other MSCC SoCs. Signed-off-by: Horatiu Vultur --- MAINTAINERS| 2 +- drivers/net/Makefile | 2 +- drivers/net/mscc_eswitch/Makefile | 2

[U-Boot] [PATCH] MSCC: Fix Jaguar2 board detection.

2019-01-29 Thread Horatiu Vultur
When power cycle the Jaguar2 boards, it couldn't read the phys, therefore it always deduce that the board type is pcb111. Add a small delay after setting the gpio pins, fix the issue. Signed-off-by: Horatiu Vultur --- board/mscc/jr2/jr2.c | 3 +++ 1 file changed, 3 insertions(+) diff --

[U-Boot] [PATCH] MSCC: Jaguar2 enable debug uart

2019-01-29 Thread Horatiu Vultur
Enable debug uart for Jaguar2 SoC family. Signed-off-by: Horatiu Vultur --- board/mscc/jr2/jr2.c | 7 +++ configs/mscc_jr2_defconfig | 6 ++ 2 files changed, 13 insertions(+) diff --git a/board/mscc/jr2/jr2.c b/board/mscc/jr2/jr2.c index eac4dca..226181f 100644 --- a/board/mscc

[U-Boot] [PATCH 3/3] configs: mscc_luton: add network support.

2019-01-28 Thread Horatiu Vultur
Update default config to use network driver for Luton SoC. Signed-off-by: Horatiu Vultur --- configs/mscc_luton_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mscc_luton_defconfig b/configs/mscc_luton_defconfig index 7154e97..0fdd9b8 100644 --- a/configs

[U-Boot] [PATCH 2/3] net: add MSCC Luton switch support

2019-01-28 Thread Horatiu Vultur
Add network driver for Microsemi Ethernet switch is present on Luton SoCs. Signed-off-by: Horatiu Vultur --- MAINTAINERS| 1 + drivers/net/Kconfig| 7 + drivers/net/Makefile | 1 + drivers/net/luton_switch.c | 972

[U-Boot] [PATCH 1/3] MIPS: mscc: luton: Add ethernet nodes for Luton.

2019-01-28 Thread Horatiu Vultur
Add nodes for pcb090 and pcb091. There is currently no support in Linux for this SoC. Signed-off-by: Horatiu Vultur --- arch/mips/dts/luton_pcb090.dts | 51 + arch/mips/dts/luton_pcb091.dts | 51 + arch/mips/dts/mscc,luton.dtsi | 165

[U-Boot] [PATCH 0/3] Add network support for Luton SoCs

2019-01-28 Thread Horatiu Vultur
This series adds network support for Luton SoCs. Currently there is not support for Luton SoCs in Linux. Horatiu Vultur (3): MIPS: mscc: luton: Add ethernet nodes for Luton. net: add MSCC Luton switch support configs: mscc_luton: add network support. MAINTAINERS| 1

Re: [U-Boot] [PATCH 0/5] MSCC: Add Serval SoC family.

2019-01-23 Thread Horatiu Vultur
Hi Daniel, The 01/23/2019 17:38, Daniel Schwierzeck wrote: > > > Am 23.01.19 um 16:39 schrieb Horatiu Vultur: > > This patch series adds support for MSCC Serval SoC family. In this > > family there are the following boards: pcb105 and pcb106. > > > > Thi

[U-Boot] [PATCH 5/5] MSCC: Add board support for Serval SoC family.

2019-01-23 Thread Horatiu Vultur
Add board support and configuration for Jaguar2 SoC family. The detection of the board type is based on the phy ids. Signed-off-by: Horatiu Vultur --- arch/mips/dts/Makefile| 1 + arch/mips/mach-mscc/Makefile | 1 + board/mscc/serval/Kconfig | 14 board/mscc/serval

[U-Boot] [PATCH 4/5] MSCC: Add device tree for Serval pcb106 board

2019-01-23 Thread Horatiu Vultur
Add device tree based on evaluation board pcb106. Signed-off-by: Horatiu Vultur --- arch/mips/dts/serval_pcb106.dts | 56 + 1 file changed, 56 insertions(+) create mode 100644 arch/mips/dts/serval_pcb106.dts diff --git a/arch/mips/dts/serval_pcb106.dts

[U-Boot] [PATCH 3/5] MSCC: add device tree for Serval pcb105 board

2019-01-23 Thread Horatiu Vultur
Add device tree based on evaluation board pcb105. Signed-off-by: Horatiu Vultur --- arch/mips/dts/mscc,serval.dtsi | 149 arch/mips/dts/serval_pcb105.dts | 56 +++ 2 files changed, 205 insertions(+) create mode 100644 arch/mips/dts/mscc

[U-Boot] [PATCH 2/5] MSCC: Add support for Serval SoC family.

2019-01-23 Thread Horatiu Vultur
As Ocelot, Servalt, Luton and Jaguar2, this family of SoCs are found in Microsemi Switches solution. Signed-off-by: Horatiu Vultur --- arch/mips/mach-mscc/Kconfig| 9 + arch/mips/mach-mscc/cpu.c | 2 +- arch/mips/mach-mscc/dram.c

[U-Boot] [PATCH 1/5] pinctrl: mscc: Add gpio and pinctrl for Serval SoC family.

2019-01-23 Thread Horatiu Vultur
The Serval SoC family has 32 pins. Currently there is no support for Serval in Linux kernel. Signed-off-by: Horatiu Vultur --- drivers/pinctrl/mscc/Kconfig | 10 ++ drivers/pinctrl/mscc/Makefile | 1 + drivers/pinctrl/mscc/pinctrl-serval.c | 233

[U-Boot] [PATCH 0/5] MSCC: Add Serval SoC family.

2019-01-23 Thread Horatiu Vultur
This patch series adds support for MSCC Serval SoC family. In this family there are the following boards: pcb105 and pcb106. This is based off the patch series[1]. [1] https://lists.denx.de/pipermail/u-boot/2019-January/355031.html Horatiu Vultur (5): pinctrl: mscc: Add gpio and pinctrl for

Re: [U-Boot] [PATCH v2 00/11] SF: Migrate to Linux SPI NOR framework

2019-01-21 Thread Horatiu Vultur
Hi Vignesh, I have done few small tests on Ocelot and Luton boards which have SPI NOR: mx25l25635f and m25p128. I have not seen any issues. So if you want, you can add: Tested-by: Horatiu Vultur The 12/21/2018 12:08, Vignesh R wrote: > U-Boot SPI NOR support (sf layer) is quite outdated as

Re: [U-Boot] commit 9a9d66f5ef break U-Boot Env

2019-01-18 Thread Horatiu Vultur
Hi Heiko, The 01/18/2019 09:34, Heiko Schocher wrote: > Hello Horatiu, > > just tried current mainline U-Boot on imx6ull based board with > Env in SPI NOR. Your commit "9a9d66f5eff0" > > env: add spi_flash_read_env function > > breaks reading Env from SPI NOR in my case... > > If I interprete

[U-Boot] [PATCH v2 3/3] MSCC: Add board support for Servalt SoC family

2019-01-17 Thread Horatiu Vultur
Add board support, configuration and DTS for Servalt SoC family. Currently there is one board in this family. Reviewed-by: Daniel Schwierzeck Signed-off-by: Horatiu Vultur --- arch/mips/dts/Makefile | 1 + arch/mips/dts/mscc,servalt.dtsi | 149

[U-Boot] [PATCH v2 2/3] MSCC: Add support for Servalt SoC family.

2019-01-17 Thread Horatiu Vultur
As Ocelot, Luton and Jaguar2, this family of SoCs are found in Microsemi Switches solution. Reviewed-by: Daniel Schwierzeck Signed-off-by: Horatiu Vultur --- arch/mips/mach-mscc/Kconfig| 8 + arch/mips/mach-mscc/cpu.c | 2 +- arch/mips/mach

  1   2   >