[U-Boot] [PATCH v2] mmc: atmel: Properly fix clock configuration

2015-11-05 Thread Gregory CLEMENT
on SAMA5D4. Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> Tested-by: Marek Vasut <ma...@denx.de> # on DENX MA5D4EV --- drivers/mmc/gen_atmel_mci.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/gen_atmel_mci.c b

Re: [U-Boot] [PATCH] mmc: atmel: Properly fix clock configuration

2015-11-05 Thread Gregory CLEMENT
Hi Marek, On jeu., nov. 05 2015, Marek Vasut <ma...@denx.de> wrote: > On Thursday, November 05, 2015 at 03:53:16 PM, Gregory CLEMENT wrote: >> Timing issue occurs on eMMC not only when modifying the frequency but >> also for all the switch command(CMD6). According to the

[U-Boot] [PATCH] Fixing timing issue with eMMC on atmel MCI

2015-11-05 Thread Gregory CLEMENT
clocks wait just after the switch command. Marek, could you test it on your board and confirm that it is still work for you? Thanks, Gregory CLEMENT (1): mmc: atmel: Properly fix clock configuration drivers/mmc/gen_atmel_mci.c | 16 +--- 1 file changed, 13 insertions(+), 3

[U-Boot] [PATCH] mmc: atmel: Properly fix clock configuration

2015-11-05 Thread Gregory CLEMENT
on SAMA5D4. Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- drivers/mmc/gen_atmel_mci.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/gen_atmel_mci.c b/drivers/mmc/gen_atmel_mci.c index da870c6..3f7cfba 100644 --- a/drive

Re: [U-Boot] [PATCH v2] mmc: atmel: Properly fix clock configuration

2015-11-06 Thread Gregory CLEMENT
Hi Marek, On jeu., nov. 05 2015, Marek Vasut <ma...@denx.de> wrote: > On Thursday, November 05, 2015 at 08:58:30 PM, Gregory CLEMENT wrote: >> Timing issue occurs on eMMC not only when modifying the frequency but >> also for all the switch command(CMD6). According to the

[U-Boot] [PATCH] net: macb: sama5d4 is not gigabit capable

2015-12-14 Thread Gregory CLEMENT
. Suggested-by: Nicolas Ferre <nicolas.fe...@atmel.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- drivers/net/macb.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index a5c1880..64

Re: [U-Boot] [PATCH] ARM: Add Support for the VInCo platform

2015-12-16 Thread Gregory CLEMENT
Hi Thomas, On mer., déc. 16 2015, Thomas Petazzoni <thomas.petazz...@free-electrons.com> wrote: > Dear Gregory CLEMENT, > > On Wed, 16 Dec 2015 11:34:00 +0100, Gregory CLEMENT wrote: > >> diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig >>

[U-Boot] [PATCH v3] net: macb: Not all the GEM are gigabit capable

2015-12-16 Thread Gregory CLEMENT
the gmac with these SoCs. Suggested-by: Nicolas Ferre <nicolas.fe...@atmel.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- Hi, in this v3, I fixed the sama5d2 typo and the missing brace. I also took care of the cpu_is_* symbols which may not be defin

Re: [U-Boot] [PATCH v2] net: macb: Not all the GEM are gigabit capable

2015-12-16 Thread Gregory CLEMENT
Hi Nicolas, On mer., déc. 16 2015, Nicolas Ferre <nicolas.fe...@atmel.com> wrote: > Le 16/12/2015 11:27, Gregory CLEMENT a écrit : >> During the initialization of PHY the gigabit bit capable is set if the >> controller is a GEM. However, for sama5d2 and sama5d4, the

[U-Boot] [PATCH v2] ARM: Add Support for the VInCo platform

2015-12-16 Thread Gregory CLEMENT
The Versatile Industrial Communication platform is a community oriented board from Landis + Gyr. It comes with: - an RS-485 port - 2 Ethernet ports - a wireless M-BUS - a 4G modem - a 4MB SPI flash - a 4GB eMMC Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- arch/ar

[U-Boot] [PATCH v3] ARM: Add Support for the VInCo platform

2015-12-16 Thread Gregory CLEMENT
The Versatile Industrial Communication platform is a community oriented board from Landis + Gyr. It comes with: - an RS-485 port - 2 Ethernet ports - a wireless M-BUS - a 4G modem - a 4MB SPI flash - a 4GB eMMC Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> Acked-by: N

Re: [U-Boot] [PATCH] net: macb: sama5d4 is not gigabit capable

2015-12-16 Thread Gregory CLEMENT
Hi Joe, On mar., déc. 15 2015, Joe Hershberger <joe.hershber...@gmail.com> wrote: > Hi Gregory, > > On Mon, Dec 14, 2015 at 10:37 AM, Gregory CLEMENT > <gregory.clem...@free-electrons.com> wrote: >> During the initialization of PHY the gigabit bit capable is set

Re: [U-Boot] [PATCH] net: macb: sama5d4 is not gigabit capable

2015-12-16 Thread Gregory CLEMENT
Hi Andreas, On mer., déc. 16 2015, "Andreas Bießmann" <andreas.de...@googlemail.com> wrote: > Hi all, > > On 16.12.2015 10:19, Nicolas Ferre wrote: >> Le 15/12/2015 20:59, Joe Hershberger a écrit : >>> Hi Gregory, >>> >>> On Mon, D

[U-Boot] [PATCH v2] net: macb: Not all the GEM are gigabit capable

2015-12-16 Thread Gregory CLEMENT
the gmac with these SoCs. Suggested-by: Nicolas Ferre <nicolas.fe...@atmel.com> Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> fix gem --- drivers/net/macb.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/net/macb.c b

[U-Boot] [PATCH] ARM: Add Support for the VInCo platform

2015-12-16 Thread Gregory CLEMENT
The Versatile Industrial Communication platform is a community oriented board from Landis + Gyr. It comes with: - an RS-485 port - 2 Ethernet ports - a wireless M-BUS - a 4G modem - a 4MB SPI flash - a 4GB eMMC Signed-off-by: Gregory CLEMENT <gregory.clem...@free-electrons.com> --- arch/ar

Re: [U-Boot] [PATCH v3] ARM: Add Support for the VInCo platform

2016-01-21 Thread Gregory CLEMENT
Hi Andreas, On jeu., janv. 21 2016, "Andreas Bießmann" <andreas.de...@googlemail.com> wrote: > Hi Gregory, > > On 21.01.2016 12:08, Gregory CLEMENT wrote: >> Hello all, >> >> On mer., déc. 16 2015, Gregory CLEMENT <gregory.clem...@free-e

Re: [U-Boot] [PATCH v3] ARM: Add Support for the VInCo platform

2016-01-21 Thread Gregory CLEMENT
Hello all, On mer., déc. 16 2015, Gregory CLEMENT <gregory.clem...@free-electrons.com> wrote: > The Versatile Industrial Communication platform is a community oriented > board from Landis + Gyr. It comes with: > - an RS-485 port > - 2 Ethernet ports > - a wireless

Re: [U-Boot] [U-Boot,v3] ARM: Add Support for the VInCo platform

2016-02-19 Thread Gregory CLEMENT
Hi Andreas, On jeu., févr. 18 2016, Andreas Bießmann <andreas.de...@googlemail.com> wrote: > Dear Gregory CLEMENT, > > Gregory CLEMENT <gregory.clem...@free-electrons.com> writes: >>The Versatile Industrial Communication platform is a community oriented >>

Re: [U-Boot] [PATCH] Convert CONFIG_USB_ETHER et al to Kconfig

2017-07-27 Thread Gregory CLEMENT
Hi Adam, On mer., juil. 26 2017, Adam Ford <aford...@gmail.com> wrote: > This converts the following to Kconfig: >CONFIG_USB_ETHER >CONFIG_USB_ETHER_RNDIS > > Signed-off-by: Adam Ford <aford...@gmail.com> For the VInCo platform Acked-by: Gregory CL

Re: [U-Boot] [PATCH 2/6] MSCC: add support for VCoreIII SoCs

2018-10-09 Thread Gregory CLEMENT
Hi Daniel, I am bout to send a new version of the series, but befor I am going to answer to the pending point I didn't already address in my email 10 days ago. On mer., sept. 26 2018, Daniel Schwierzeck wrote: > Hi Gregory, > > On 25.09.2018 15:01, Gregory CLEMENT wrote: >>

[U-Boot] [PATCH v2 0/7] Add support for the SoCs found in Microsemi switches

2018-10-09 Thread Gregory CLEMENT
for luton Gregory CLEMENT (7): MIPS: move create_tlb() in an proper header: mipsregs.h MIPS: Allow to prefetch and lock instructions into cache MSCC: add support for Ocelot SoCs MSCC: add support for Luton SoCs MSCC: add board support for the Ocelots based evaluation boards MSCC: add

[U-Boot] [PATCH v2 2/7] MIPS: Allow to prefetch and lock instructions into cache

2018-10-09 Thread Gregory CLEMENT
This path add a new helper allowing to prefetch and lock instructions into cache. This is useful very early in the boot when no RAM is available yet. Signed-off-by: Gregory CLEMENT --- arch/mips/include/asm/cacheops.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch

Re: [U-Boot] [PATCH 3/6] MSCC: add board support for the VCoreIII based evaluation boards

2018-10-09 Thread Gregory CLEMENT
Hi Daniel, On mer., sept. 26 2018, Daniel Schwierzeck wrote: > On 25.09.2018 15:01, Gregory CLEMENT wrote: >> Adding the support for 3 boards sharing common code: >> - PCB120 and PCB 123 for Ocelot chip >> - PCB 91 for Luton chip >> [...] >> diff --

Re: [U-Boot] [PATCH 5/6] MSCC: add configuration for Ocelot and Luton based boards

2018-10-09 Thread Gregory CLEMENT
Hi Daniel, On mer., sept. 26 2018, Daniel Schwierzeck wrote: > On 25.09.2018 15:01, Gregory CLEMENT wrote: >> Add common configuration header for the VCore III SoCs (currently Ocelot >> and Luton), but also the defconfig for the evaluation boards of these >> So

[U-Boot] [PATCH v2 6/7] MSCC: add board support for the Luton based evaluation board

2018-10-09 Thread Gregory CLEMENT
Adding the support for the Luton boards PCB91 which share common code with the Ocelots boards, including board code, device tree and configuration. Signed-off-by: Gregory CLEMENT --- arch/mips/dts/luton_pcb091.dts | 36 ++ arch/mips/dts/mscc,luton.dtsi | 87

[U-Boot] [PATCH v2 5/7] MSCC: add board support for the Ocelots based evaluation boards

2018-10-09 Thread Gregory CLEMENT
Adding the support for 2 boards sharing common code for Ocelot chip: PCB120 and PCB123 Signed-off-by: Gregory CLEMENT --- arch/mips/dts/mscc,ocelot.dtsi | 132 +++ arch/mips/dts/mscc,ocelot_pcb.dtsi | 33 +++ arch/mips/dts/ocelot_pcb120.dts | 12

[U-Boot] [PATCH v2 7/7] MIPS: bootm: Add support for Vcore III linux kernel

2018-10-09 Thread Gregory CLEMENT
yamon, they expect that rd_start and rd_size was passed by the bootloader in the command line of the kernel, and besides that it also wait for the root=/dev/ram0. Signed-off-by: Gregory CLEMENT --- arch/mips/lib/bootm.c | 77 --- 1 file changed, 57

[U-Boot] [PATCH v2] DW SPI: Allow to overload the management of the external CS

2018-10-09 Thread Gregory CLEMENT
, it is possible to manage the CS at platform level and then using the appropriate registers. Signed-off-by: Gregory CLEMENT --- Changelog: v1 -> v2 - Fix ocelot name drivers/spi/designware_spi.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/spi/designware_spi.c b/driv

Re: [U-Boot] [PATCH 4/6] MSCC: add device tree for Ocelot and Luton (boards and SoCs)

2018-10-09 Thread Gregory CLEMENT
Hi Daniel, On mer., sept. 26 2018, Daniel Schwierzeck wrote: > On 25.09.2018 15:01, Gregory CLEMENT wrote: >> Adding device tree for Ocelot SoC (extract from Linux) and the 2 >> evaluation boards using this SoC: PCB120 and PCB132. >> >> Adding device tree for

Re: [U-Boot] [PATCH 6/6] MIPS: bootm: Add support for Vcore III linux kernel

2018-10-09 Thread Gregory CLEMENT
Hi Daniel, On mer., sept. 26 2018, Daniel Schwierzeck wrote: > On 25.09.2018 15:01, Gregory CLEMENT wrote: >> The kernels built for the Vcore III linux kernel have different >> expectation in the way the data were passed. >> >> Unlike with yamon, the command line

[U-Boot] [PATCH v2 1/7] MIPS: move create_tlb() in an proper header: mipsregs.h

2018-10-09 Thread Gregory CLEMENT
Export create_tlb() as an inline function in mipsregs.h. It allows to remove the declaration of the function from the board files. Then it will allow also to use this function very early in the boot when the stack is not usable. Signed-off-by: Gregory CLEMENT --- arch/mips/cpu/cpu.c

[U-Boot] [PATCH v2] pinctrl: mscc: Add gpio and pinctrl driver for MSCC MIPS SoCs (VcoreIII based)

2018-10-09 Thread Gregory CLEMENT
differ. Signed-off-by: Gregory CLEMENT --- Changelog: v1 -> v2: - use clrbits and setbits from MIPS - use const and static when needed - fix style - use dev_remap_addr drivers/pinctrl/Kconfig | 1 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/mscc/Kcon

Re: [U-Boot] [PATCH] DW SPI: Allow to overload the management of the external CS

2018-10-09 Thread Gregory CLEMENT
Hi Daniel, On mer., sept. 26 2018, Daniel Schwierzeck wrote: > On 25.09.2018 15:17, Gregory CLEMENT wrote: >> On some platforms, as the Ocelot ones, when wanting to control the CS >> through software, it is not possible to do it through the GPIO >> controller. Indeed, t

Re: [U-Boot] [PATCH 3/6] MSCC: add board support for the VCoreIII based evaluation boards

2018-10-09 Thread Gregory CLEMENT
Hi Marek, On jeu., sept. 27 2018, Marek Vasut wrote: > On 09/25/2018 03:01 PM, Gregory CLEMENT wrote: >> Adding the support for 3 boards sharing common code: >> - PCB120 and PCB 123 for Ocelot chip >> - PCB 91 for Luton chip >> >> Signed-off-by: Grego

[U-Boot] [PATCH v2 3/7] MSCC: add support for Ocelot SoCs

2018-10-09 Thread Gregory CLEMENT
This family of SoCs are found in the Microsemi Switches solution and have already a support in the linux kernel. Signed-off-by: Gregory CLEMENT --- arch/mips/Kconfig | 6 + arch/mips/Makefile| 1 + arch/mips/mach-mscc/Kconfig

[U-Boot] [PATCH v2 4/7] MSCC: add support for Luton SoCs

2018-10-09 Thread Gregory CLEMENT
As the Ocelots SoCs, this family of SoCs are found in the Microsemi Switches solution. Signed-off-by: Gregory CLEMENT --- arch/mips/mach-mscc/Kconfig | 13 + arch/mips/mach-mscc/Makefile | 1 + arch/mips/mach-mscc/cpu.c | 13 + arch

[U-Boot] [PATCH v2] gpio: mscc-bitbang-spi: Add a simple gpio driver for bitbgang spi

2018-10-09 Thread Gregory CLEMENT
, the management of this pin is done through this simple gpio driver. Even if the main purpose of this driver is to be used by soft-spi, it can still be used as a normal gpio driver but with limitation: for example the first pin can't be used as output. Signed-off-by: Gregory CLEMENT --- Changelog

Re: [U-Boot] [PATCH 0/6] Add support for VCore III SoCs found in Microsemi switches

2018-09-25 Thread Gregory CLEMENT
Hi, On mar., sept. 25 2018, Gregory CLEMENT wrote: > Hello, > > This series add the support of 2 SoCs: Ocelot and Luton from > Microsemi. Both of them belongs to the same family Vcore III. > > We found them on various advanced switches product. > > The support for

[U-Boot] [PATCH 2/6] MSCC: add support for VCoreIII SoCs

2018-09-25 Thread Gregory CLEMENT
-off-by: Gregory CLEMENT --- Hi, Actually this is the second version of this patch. Compared to the previous version which did not reach the mailing list, I remove a lot of unused defines in the header. They can be add later when needed. Sorry for the noise Gregory arch/mips/Kconfig

Re: [U-Boot] [PATCH 2/6] MSCC: add support for VCoreIII SoCs

2018-09-27 Thread Gregory CLEMENT
ory, > > On 25.09.2018 15:01, Gregory CLEMENT wrote: >> These families of SoCs are found in the Microsemi Switches solution. >> >> Currently the support for two families support is added: >> - Ocelot (VSC7513, VSC7514) already supported in Linux >> - Lu

[U-Boot] [PATCH] pinctrl: mscc: Add gpio and pinctrl driver for MSCC MIPS SoCs (VcoreIII based)

2018-09-25 Thread Gregory CLEMENT
differ. Signed-off-by: Gregory CLEMENT --- drivers/pinctrl/Kconfig | 1 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/mscc/Kconfig | 22 +++ drivers/pinctrl/mscc/Makefile | 5 + drivers/pinctrl/mscc/mscc-common.c| 258

[U-Boot] [PATCH 5/6] MSCC: add configuration for Ocelot and Luton based boards

2018-09-25 Thread Gregory CLEMENT
Add common configuration header for the VCore III SoCs (currently Ocelot and Luton), but also the defconfig for the evaluation boards of these SoCs. Signed-off-by: Gregory CLEMENT --- configs/mscc_luton_defconfig | 66 + configs/mscc_ocelot_defconfig| 57

[U-Boot] [PATCH 4/6] MSCC: add device tree for Ocelot and Luton (boards and SoCs)

2018-09-25 Thread Gregory CLEMENT
Adding device tree for Ocelot SoC (extract from Linux) and the 2 evaluation boards using this SoC: PCB120 and PCB132. Adding device tree for Luton SoC (not yet in Linux) and the evaluation boards using this SoC: PCB91. Signed-off-by: Gregory CLEMENT --- arch/mips/dts/luton_pcb091.dts | 36

[U-Boot] [PATCH 3/6] MSCC: add board support for the VCoreIII based evaluation boards

2018-09-25 Thread Gregory CLEMENT
Adding the support for 3 boards sharing common code: - PCB120 and PCB 123 for Ocelot chip - PCB 91 for Luton chip Signed-off-by: Gregory CLEMENT --- board/mscc/common/board.c | 29 + board/mscc/luton/Kconfig | 14 ++ board/mscc/luton/Makefile | 4

[U-Boot] [PATCH 6/6] MIPS: bootm: Add support for Vcore III linux kernel

2018-09-25 Thread Gregory CLEMENT
yamon, they expect that rd_start and rd_size was passed by the bootloader in the command line of the kernel, and besides that it also wait for the root=/dev/ram0. Signed-off-by: Gregory CLEMENT --- arch/mips/lib/bootm.c | 62 +-- 1 file changed, 42

[U-Boot] [PATCH] DW SPI: Allow to overload the management of the external CS

2018-09-25 Thread Gregory CLEMENT
, it is possible to manage the CS at platform level and then using the appropriate registers. Signed-off-by: Gregory CLEMENT --- drivers/spi/designware_spi.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/spi/designware_spi.c b/drivers/spi/designware_spi.c index d8b73ea326

[U-Boot] [PATCH 0/6] Add support for VCore III SoCs found in Microsemi switches

2018-09-25 Thread Gregory CLEMENT
. Thanks, Gregory Gregory CLEMENT (6): MIPS: move create_tlb() in an proper header: mipsregs.h MSCC: add support for VCoreIII SoCs MSCC: add board support for the VCoreIII based evaluation boards MSCC: add device tree for Ocelot and Luton (boards and SoCs) MSCC: add configuration for Ocelot

[U-Boot] [PATCH 1/6] MIPS: move create_tlb() in an proper header: mipsregs.h

2018-09-25 Thread Gregory CLEMENT
Export create_tlb() as an inline function in mipsregs.h. It allows to remove the declaration of the function from the board files. Then it will allow also to use this function very early in the boot when the stack is not usable. Signed-off-by: Gregory CLEMENT --- arch/mips/cpu/cpu.c

[U-Boot] [PATCH] gpio: mscc-bitbang-spi: Add a simple gpio driver for bitbgang spi

2018-09-25 Thread Gregory CLEMENT
, the management of this pin is done through this simple gpio driver. Even if the main purpose of this driver is to be used by soft-spi, it can still be used as a normal gpio driver but with limitation: for example the first pin can't be used as output. Signed-off-by: Gregory CLEMENT --- drivers

Re: [U-Boot] [PATCH v2 2/4] net: add MSCC Ocelot switch support

2019-01-16 Thread Gregory CLEMENT
} >> + >> +return 0; >> +} >> + >> +static int ocelot_probe(struct udevice *dev) >> +{ >> +struct ocelot_private *priv = dev_get_priv(dev); >> +int i; >> + >> +if (!priv) >> +

[U-Boot] [PATCH v2 2/4] net: add MSCC Ocelot switch support

2019-01-16 Thread Gregory CLEMENT
This patch adds support for the Microsemi Ethernet switch present on Ocelot SoCs. Signed-off-by: Gregory CLEMENT --- MAINTAINERS | 1 + drivers/net/Kconfig | 7 + drivers/net/Makefile| 1 + drivers/net/ocelot_switch.c | 837

[U-Boot] [PATCH v2 4/4] configs: mscc_ocelot: add network support

2019-01-16 Thread Gregory CLEMENT
Now that network support is added for the ocelot platform, let's add it in the default configuration. Signed-off-by: Gregory CLEMENT --- configs/mscc_ocelot_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mscc_ocelot_defconfig b/configs/mscc_ocelot_defconfig index

[U-Boot] [PATCH v2 3/4] MIPS: mscc: ocelot: add switch reset support

2019-01-16 Thread Gregory CLEMENT
On some ocelots platform a workaround is needed in order to be able to reset the switch without resetting the DDR. Signed-off-by: Gregory CLEMENT --- board/mscc/ocelot/ocelot.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/board/mscc/ocelot/ocelot.c b/board

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

2019-01-16 Thread Gregory CLEMENT
to the DDR reset is part of the switch subsystem. So we need ensure that the DDR is not reset during the switch reset. Gregory Changelog: v1 -> v2: - Use wait_for_bit_le32() (suggested by Stefan Roese) - Use debug() instead of printf() for the debug messages in mscc_switch_reset. Greg

[U-Boot] [PATCH v2 1/4] MIPS: mscc: ocelot: Add ethernet nodes for Ocelot

2019-01-16 Thread Gregory CLEMENT
Import Ethernet related nodes from Linux Signed-off-by: Gregory CLEMENT --- arch/mips/dts/mscc,ocelot.dtsi | 97 + arch/mips/dts/ocelot_pcb123.dts | 20 +++ 2 files changed, 117 insertions(+) diff --git a/arch/mips/dts/mscc,ocelot.dtsi b/arch/mips/dts/mscc

Re: [U-Boot] [PATCH v2 3/4] MIPS: mscc: ocelot: add switch reset support

2019-01-16 Thread Gregory CLEMENT
Hi Daniel, On mer., janv. 16 2019, Daniel Schwierzeck wrote: > Am 16.01.19 um 14:07 schrieb Gregory CLEMENT: >> On some ocelots platform a workaround is needed in order to be able to >> reset the switch without resetting the DDR. >> >> Signed-off-by: Gregory CLE

[U-Boot] [PATCH v3 4/4] configs: mscc_ocelot: add network support

2019-01-17 Thread Gregory CLEMENT
Now that network support is added for the ocelot platform, let's add it in the default configuration. Signed-off-by: Gregory CLEMENT --- configs/mscc_ocelot_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mscc_ocelot_defconfig b/configs/mscc_ocelot_defconfig index

[U-Boot] [PATCH v3 2/4] net: add MSCC Ocelot switch support

2019-01-17 Thread Gregory CLEMENT
This patch adds support for the Microsemi Ethernet switch present on Ocelot SoCs. Signed-off-by: Gregory CLEMENT --- MAINTAINERS | 1 + drivers/net/Kconfig | 7 + drivers/net/Makefile| 1 + drivers/net/ocelot_switch.c | 765

[U-Boot] [PATCH v3 3/4] MIPS: mscc: ocelot: add switch reset support

2019-01-17 Thread Gregory CLEMENT
On some ocelots platform a workaround is needed in order to be able to reset the switch without resetting the DDR. Signed-off-by: Gregory CLEMENT --- board/mscc/ocelot/ocelot.c | 24 1 file changed, 24 insertions(+) diff --git a/board/mscc/ocelot/ocelot.c b/board/mscc

[U-Boot] [PATCH v3 1/4] MIPS: mscc: ocelot: Add ethernet nodes for Ocelot

2019-01-17 Thread Gregory CLEMENT
Import Ethernet related nodes from Linux Signed-off-by: Gregory CLEMENT --- arch/mips/dts/mscc,ocelot.dtsi | 97 + arch/mips/dts/ocelot_pcb123.dts | 20 +++ 2 files changed, 117 insertions(+) diff --git a/arch/mips/dts/mscc,ocelot.dtsi b/arch/mips/dts/mscc

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

2019-01-17 Thread Gregory CLEMENT
- Use wait_for_bit_le32() (suggested by Stefan Roese) - Use debug() instead of printf() for the debug messages in mscc_switch_reset. Gregory CLEMENT (4): MIPS: mscc: ocelot: Add ethernet nodes for Ocelot net: add MSCC Ocelot switch support MIPS: mscc: ocelot: add switch reset support c

[U-Boot] [PATCH 1/4] MIPS: mscc: ocelot: Add ethernet nodes for Ocelot

2019-01-15 Thread Gregory CLEMENT
Import Ethernet related nodes from Linux Signed-off-by: Gregory CLEMENT --- arch/mips/dts/mscc,ocelot.dtsi | 97 + arch/mips/dts/ocelot_pcb123.dts | 20 +++ 2 files changed, 117 insertions(+) diff --git a/arch/mips/dts/mscc,ocelot.dtsi b/arch/mips/dts/mscc

[U-Boot] [PATCH 3/4] MIPS: mscc: ocelot: add switch reset support

2019-01-15 Thread Gregory CLEMENT
On some ocelots platform a workaround is needed in order to be able to reset the switch without resetting the DDR. Signed-off-by: Gregory CLEMENT --- board/mscc/ocelot/ocelot.c | 28 1 file changed, 28 insertions(+) diff --git a/board/mscc/ocelot/ocelot.c b/board

[U-Boot] [PATCH 2/4] net: add MSCC Ocelot switch support

2019-01-15 Thread Gregory CLEMENT
This patch adds support for the Microsemi Ethernet switch present on Ocelot SoCs. Signed-off-by: Gregory CLEMENT --- MAINTAINERS | 1 + drivers/net/Kconfig | 7 + drivers/net/Makefile| 1 + drivers/net/ocelot_switch.c | 837

[U-Boot] [PATCH 4/4] configs: mscc_ocelot: add network support

2019-01-15 Thread Gregory CLEMENT
Now that network support is added for the ocelot platform, let's add it in the default configuration. Signed-off-by: Gregory CLEMENT --- configs/mscc_ocelot_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mscc_ocelot_defconfig b/configs/mscc_ocelot_defconfig index

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

2019-01-15 Thread Gregory CLEMENT
of the switch subsystem. So we need ensure that the DDR is not reset during the switch reset. Gregory Gregory CLEMENT (4): MIPS: mscc: ocelot: Add ethernet nodes for Ocelot net: add MSCC Ocelot switch support MIPS: mscc: ocelot: add switch reset support configs: mscc_ocelot: add network

Re: [U-Boot] [PATCH v3 4/7] MSCC: add support for Luton SoCs

2018-12-13 Thread Gregory CLEMENT
ATUS0 >> +andiv1, v0, MACRO_CTRL_PLL5G_STATUS_PLL5G_STATUS0_LOCK_STATUS >> +# Keep looping if zero (no lock bit yet) > > should be a C style comment OK Thanks, Gregory -- Gregory Clement, Bootlin Embedded Linux and Kernel engineering http://bootlin.com ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v3 5/7] MSCC: add board support for the Ocelots based evaluation boards

2018-12-13 Thread Gregory CLEMENT
nux.bk)" > > you should recheck all MTD related options due to some recent changes in > mainline It's OK all the MTD related option of this file are aligned with the changes merged in mainline. Thanks, Gregory -- Gregory Clement, Bootlin Emb

Re: [U-Boot] [PATCH v3 3/7] MSCC: add support for Ocelot SoCs

2018-12-13 Thread Gregory CLEMENT
above, it s done now. >> + >> +/* >> + * Target offset base(s) >> + */ >> +#define MSCC_IO_ORIGIN1_OFFSET 0x7000 >> +#define MSCC_IO_ORIGIN1_SIZE 0x0020 >> +#define MSCC_IO_ORIGIN2_OFFSET 0x7100 >> +#define MSCC_IO_ORIGIN2_

Re: [U-Boot] [PATCH v4 6/7] MSCC: add board support for the Luton based evaluation board

2018-12-16 Thread Gregory CLEMENT
Hi Daniel, On sam., déc. 15 2018, Daniel Schwierzeck wrote: > Am 14.12.18 um 16:16 schrieb Gregory CLEMENT: >> Adding the support for the Luton boards PCB91 which share common code with >> the Ocelots boards, including board code, device tree and configuration. >> >

Re: [U-Boot] [PATCH] spi: soft_spi: Fix null ptr when probing soft_spi.

2018-12-26 Thread Gregory CLEMENT
;sclk.flags |= GPIOD_ACTIVE_LOW; > + > + return 0; > +} > + > static const struct udevice_id soft_spi_ids[] = { > { .compatible = "spi-gpio" }, > { } > @@ -254,5 +263,6 @@ U_BOOT_DRIVER(soft_spi) = { > .ofdata_to_platdata = soft_spi_ofdata_to_platdata

Re: [U-Boot] [PATCH v3 7/7] MIPS: bootm: Add support for Vcore III linux kernel

2018-12-14 Thread Gregory CLEMENT
Hi Daniel, On lun., déc. 10 2018, Daniel Schwierzeck wrote: > Am 05.12.18 um 18:10 schrieb Gregory CLEMENT: >> The kernels built for the Vcore III linux kernel have different >> expectation in the way the data were passed. >> >> Unlike with yamon, the command line

Re: [U-Boot] [PATCH v4 6/7] MSCC: add board support for the Luton based evaluation board

2018-12-17 Thread Gregory CLEMENT
Hi Daniel, On dim., déc. 16 2018, Gregory CLEMENT wrote: > Hi Daniel, > > On sam., déc. 15 2018, Daniel Schwierzeck > wrote: > >> Am 14.12.18 um 16:16 schrieb Gregory CLEMENT: >>> Adding the support for the Luton boards PCB91 which share common code with >

Re: [U-Boot] [PATCH v4 6/7] MSCC: add board support for the Luton based evaluation board

2018-12-17 Thread Gregory CLEMENT
Hi Daniel, On lun., déc. 17 2018, Daniel Schwierzeck wrote: > Am 17.12.18 um 10:55 schrieb Gregory CLEMENT: >> Hi Daniel, >> >> On dim., déc. 16 2018, Gregory CLEMENT wrote: >> >>> Hi Daniel, >>> >>> On sam., déc. 15 2018, Daniel

[U-Boot] [PATCH v4 4/7] MSCC: add support for Luton SoCs

2018-12-14 Thread Gregory CLEMENT
As the Ocelots SoCs, this family of SoCs are found in the Microsemi Switches solution. Signed-off-by: Gregory CLEMENT --- arch/mips/mach-mscc/Kconfig | 13 + arch/mips/mach-mscc/Makefile | 1 + arch/mips/mach-mscc/cpu.c | 14 +- arch

[U-Boot] [PATCH v4 6/7] MSCC: add board support for the Luton based evaluation board

2018-12-14 Thread Gregory CLEMENT
Adding the support for the Luton boards PCB91 which share common code with the Ocelots boards, including board code, device tree and configuration. Signed-off-by: Gregory CLEMENT --- MAINTAINERS| 1 + arch/mips/dts/luton_pcb091.dts | 36 ++ arch/mips/dts/mscc

[U-Boot] [PATCH v4 2/7] MIPS: Allow to prefetch and lock instructions into cache

2018-12-14 Thread Gregory CLEMENT
This path add a new helper allowing to prefetch and lock instructions into cache. This is useful very early in the boot when no RAM is available yet. Signed-off-by: Gregory CLEMENT --- arch/mips/include/asm/cacheops.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch

[U-Boot] [PATCH v4 0/7] Add support for the SoCs found in Microsemi switches

2018-12-14 Thread Gregory CLEMENT
rupt disabling - fix the ddr init for luton Gregory CLEMENT (7): MIPS: move create_tlb() in an proper header: mipsregs.h MIPS: Allow to prefetch and lock instructions into cache MSCC: add support for Ocelot SoCs MSCC: add support for Luton SoCs MSCC: add board support for the Ocelots b

[U-Boot] [PATCH v4 1/7] MIPS: move create_tlb() in an proper header: mipsregs.h

2018-12-14 Thread Gregory CLEMENT
Export create_tlb() as an inline function in mipsregs.h. It allows to remove the declaration of the function from the board files. Then it will allow also to use this function very early in the boot when the stack is not usable. Signed-off-by: Gregory CLEMENT --- arch/mips/cpu/cpu.c

[U-Boot] [PATCH v4 3/7] MSCC: add support for Ocelot SoCs

2018-12-14 Thread Gregory CLEMENT
This family of SoCs are found in the Microsemi Switches solution and have already a support in the linux kernel. Signed-off-by: Gregory CLEMENT --- MAINTAINERS | 7 + arch/mips/Kconfig | 6 + arch/mips/Makefile

[U-Boot] [PATCH v4 5/7] MSCC: add board support for the Ocelots based evaluation boards

2018-12-14 Thread Gregory CLEMENT
Adding the support for 2 boards sharing common code for Ocelot chip: PCB120 and PCB123 Signed-off-by: Gregory CLEMENT --- MAINTAINERS | 5 + arch/mips/dts/mscc,ocelot.dtsi | 152 +++ arch/mips/dts/mscc,ocelot_pcb.dtsi | 42

[U-Boot] [PATCH v4 7/7] MIPS: bootm: Add support for compatibility with redboot

2018-12-14 Thread Gregory CLEMENT
. However, like yamon, they expect that rd_start and rd_size was passed by the bootloader in the command line of the kernel. Signed-off-by: Gregory CLEMENT --- arch/mips/Kconfig | 4 +++ arch/mips/lib/bootm.c | 76 +++ 2 files changed, 60 insertions

[U-Boot] [PATCH v3] pinctrl: mscc: Add gpio and pinctrl driver for MSCC MIPS SoCs (VcoreIII based)

2018-12-08 Thread Gregory CLEMENT
differ. Signed-off-by: Gregory CLEMENT --- Hi, I sent the second version _2_ months ago and did not get anyfeedback. I hope this patch could be merge soon. Thanks! Changelog: v2 -> v3: - fix the return value of mscc_gpio_get_direction (reported by Lars Povlsen) v1 -> v2: - use c

Re: [U-Boot] [PATCH v2] gpio: mscc-bitbang-spi: Add a simple gpio driver for bitbgang spi

2018-12-08 Thread Gregory CLEMENT
Hi, On mar., oct. 09 2018, Gregory CLEMENT wrote: > The VCore III SoCs such as the Luton but also the Ocelot can remap an SPI > flash directly in memory. However, for writing in the flash the > communication has to be done by software. > > Each of the signal used for the

Re: [U-Boot] [PATCH v2 7/7] MIPS: bootm: Add support for Vcore III linux kernel

2018-11-30 Thread Gregory CLEMENT
Hi Daniel, On dim., oct. 28 2018, Daniel Schwierzeck wrote: > Hi Gregory, > > sorry for the late response. > > Am 09.10.18 um 13:58 schrieb Gregory CLEMENT: >> The kernels built for the Vcore III linux kernel have different >> expectation in the way the data

Re: [U-Boot] [PATCH v2] DW SPI: Allow to overload the management of the external CS

2018-11-30 Thread Gregory CLEMENT
Hi Jagan, On mar., oct. 09 2018, Gregory CLEMENT wrote: > On some platforms, as the Ocelot ones, when wanting to control the CS > through software, it is not possible to do it through the GPIO > controller. Indeed, this signal is managed through a dedicated range of > registers in

[U-Boot] [PATCH v3 5/7] MSCC: add board support for the Ocelots based evaluation boards

2018-12-05 Thread Gregory CLEMENT
Adding the support for 2 boards sharing common code for Ocelot chip: PCB120 and PCB123 Signed-off-by: Gregory CLEMENT --- MAINTAINERS | 5 + arch/mips/dts/mscc,ocelot.dtsi | 152 +++ arch/mips/dts/mscc,ocelot_pcb.dtsi | 42

[U-Boot] [PATCH v3 3/7] MSCC: add support for Ocelot SoCs

2018-12-05 Thread Gregory CLEMENT
This family of SoCs are found in the Microsemi Switches solution and have already a support in the linux kernel. Signed-off-by: Gregory CLEMENT --- MAINTAINERS | 7 + arch/mips/Kconfig | 6 + arch/mips/Makefile

[U-Boot] [PATCH v3 4/7] MSCC: add support for Luton SoCs

2018-12-05 Thread Gregory CLEMENT
As the Ocelots SoCs, this family of SoCs are found in the Microsemi Switches solution. Signed-off-by: Gregory CLEMENT --- arch/mips/mach-mscc/Kconfig | 13 + arch/mips/mach-mscc/Makefile | 1 + arch/mips/mach-mscc/cpu.c | 14 +- arch

[U-Boot] [PATCH v3 0/7] ] Add support for the SoCs found in Microsemi switches

2018-12-05 Thread Gregory CLEMENT
ersion - remove more unused define in the platform header files - use the automatic cache size detection instead of hard coding it - reduce the tlb init to only two entries for the IO as needed by the kernel - remove the interrupt disabling - fix the ddr init for luton Gregory CLEMENT (7):

[U-Boot] [PATCH v3 2/7] MIPS: Allow to prefetch and lock instructions into cache

2018-12-05 Thread Gregory CLEMENT
This path add a new helper allowing to prefetch and lock instructions into cache. This is useful very early in the boot when no RAM is available yet. Signed-off-by: Gregory CLEMENT --- arch/mips/include/asm/cacheops.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch

[U-Boot] [PATCH v3 7/7] MIPS: bootm: Add support for Vcore III linux kernel

2018-12-05 Thread Gregory CLEMENT
yamon, they expect that rd_start and rd_size was passed by the bootloader in the command line of the kernel, and besides that it also wait for the root=/dev/ram0. Signed-off-by: Gregory CLEMENT --- arch/mips/lib/bootm.c | 78 --- 1 file changed, 58

[U-Boot] [PATCH v3 1/7] MIPS: move create_tlb() in an proper header: mipsregs.h

2018-12-05 Thread Gregory CLEMENT
Export create_tlb() as an inline function in mipsregs.h. It allows to remove the declaration of the function from the board files. Then it will allow also to use this function very early in the boot when the stack is not usable. Signed-off-by: Gregory CLEMENT --- arch/mips/cpu/cpu.c

[U-Boot] [PATCH v3 6/7] MSCC: add board support for the Luton based evaluation board

2018-12-05 Thread Gregory CLEMENT
Adding the support for the Luton boards PCB91 which share common code with the Ocelots boards, including board code, device tree and configuration. Signed-off-by: Gregory CLEMENT --- MAINTAINERS| 1 + arch/mips/dts/luton_pcb091.dts | 35 ++ arch/mips/dts/mscc

Re: [U-Boot] [PATCH v4 1/6] pinctrl: mscc: Add gpio and pinctrl for Jaguar2 SOC family

2019-01-10 Thread Gregory CLEMENT
_of_match), > + .probe = jr2_pinctrl_probe, > + .priv_auto_alloc_size = sizeof(struct mscc_pinctrl), > + .ops = _pinctrl_ops, > +}; > diff --git a/drivers/pinctrl/mscc/pinctrl-luton.c > b/drivers/pinctrl/mscc/pinctrl-luton.c > index 7166588..8c636ff 100644 > --- a/drivers/pinctrl/mscc/pinctrl-luton.c > +++ b/drivers/pinctrl/mscc/pinctrl-luton.c > @@ -123,6 +123,19 @@ static const struct mscc_pin_data luton_pins[] = { > LUTON_PIN(31), > }; > > +const unsigned long luton_gpios[] = { > + [MSCC_GPIO_OUT_SET] = 0x00, > + [MSCC_GPIO_OUT_CLR] = 0x04, > + [MSCC_GPIO_OUT] = 0x08, > + [MSCC_GPIO_IN] = 0x0c, > + [MSCC_GPIO_OE] = 0x10, > + [MSCC_GPIO_INTR] = 0x14, > + [MSCC_GPIO_INTR_ENA] = 0x18, > + [MSCC_GPIO_INTR_IDENT] = 0x1c, > + [MSCC_GPIO_ALT0] = 0x20, > + [MSCC_GPIO_ALT1] = 0x24, > +}; > + > static int luton_gpio_probe(struct udevice *dev) > { > struct gpio_dev_priv *uc_priv; > @@ -146,7 +159,8 @@ int luton_pinctrl_probe(struct udevice *dev) > int ret; > > ret = mscc_pinctrl_probe(dev, FUNC_MAX, luton_pins, > - ARRAY_SIZE(luton_pins), luton_function_names); > + ARRAY_SIZE(luton_pins), luton_function_names, > + luton_gpios); > > if (ret) > return ret; > diff --git a/drivers/pinctrl/mscc/pinctrl-ocelot.c > b/drivers/pinctrl/mscc/pinctrl-ocelot.c > index 10f9b90..fb02061 100644 > --- a/drivers/pinctrl/mscc/pinctrl-ocelot.c > +++ b/drivers/pinctrl/mscc/pinctrl-ocelot.c > @@ -138,6 +138,19 @@ static const struct mscc_pin_data ocelot_pins[] = { > OCELOT_PIN(21), > }; > > +const unsigned long ocelot_gpios[] = { > + [MSCC_GPIO_OUT_SET] = 0x00, > + [MSCC_GPIO_OUT_CLR] = 0x04, > + [MSCC_GPIO_OUT] = 0x08, > + [MSCC_GPIO_IN] = 0x0c, > + [MSCC_GPIO_OE] = 0x10, > + [MSCC_GPIO_INTR] = 0x14, > + [MSCC_GPIO_INTR_ENA] = 0x18, > + [MSCC_GPIO_INTR_IDENT] = 0x1c, > + [MSCC_GPIO_ALT0] = 0x20, > + [MSCC_GPIO_ALT1] = 0x24, > +}; > + > static int ocelot_gpio_probe(struct udevice *dev) > { > struct gpio_dev_priv *uc_priv; > @@ -162,7 +175,8 @@ int ocelot_pinctrl_probe(struct udevice *dev) > > ret = mscc_pinctrl_probe(dev, FUNC_MAX, ocelot_pins, >ARRAY_SIZE(ocelot_pins), > - ocelot_function_names); > + ocelot_function_names, > + ocelot_gpios); > > if (ret) > return ret; > -- > 2.7.4 > -- Gregory Clement, Bootlin Embedded Linux and Kernel engineering http://bootlin.com ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v3 3/7] MSCC: Add device tree for Jaguar2 board

2019-01-09 Thread Gregory CLEMENT
}; > + > + uart2_pins: uart2-pins { > + pins = "GPIO_24", "GPIO_25"; > + function = "uart2"; > + }; > + }; > + > +

Re: [U-Boot] [PATCH v2 3/7] MSCC: add support for Ocelot SoCs

2018-11-30 Thread Gregory CLEMENT
Hi Daniel, On dim., oct. 28 2018, Daniel Schwierzeck wrote: > Am 09.10.18 um 13:58 schrieb Gregory CLEMENT: >> This family of SoCs are found in the Microsemi Switches solution and have >> already a support in the linux kernel. >> >> Signed-off-by: Gregory CL

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

2019-01-28 Thread Gregory CLEMENT
ORT5, "port5" }, > + { PORT6, "port6" }, > + { PORT7, "port7" }, > + { PORT8, "port8" }, > + { PORT9, "port9" }, > + { PORT10, "port10" }, > + { PO

[U-Boot] [PATCH v2] mtd: nand: raw: Fix CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT behavior

2019-04-17 Thread Gregory CLEMENT
l the NAND drivers not providing their own ECC layout this patch fix this situation. It was tested with the lpc32xx_nand_slc driver. Fixes: a38c3af868 ("mtd: nand: raw: allow to disable unneeded ECC layouts") Reviewed-by: Miquel Raynal Signed-off-by: Gregory CLEMENT --- Changelog: v1

[U-Boot] [PATCH] net: lpc32xx: Use IRAM for transmit buffer

2019-04-17 Thread Gregory CLEMENT
-by: Gregory CLEMENT --- drivers/net/lpc32xx_eth.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/net/lpc32xx_eth.c b/drivers/net/lpc32xx_eth.c index 2d15fc8db2..ec5184edf8 100644 --- a/drivers/net/lpc32xx_eth.c +++ b/drivers/net/lpc32xx_eth.c @@ -373,7 +373,8

  1   2   >