[U-Boot] [PATCH] arm: configs: helios4: Change U-Boot offset on SPI Flash

2018-12-18 Thread Aditya Prayoga
spl.kwb' failed make: *** [u-boot-spl.kwb] Error 1 Let's increase the u-boot offset to 0x3 to accommodate SPL changes and leave some margin for future changes. [1] https://patchwork.ozlabs.org/patch/1007762/ Signed-off-by: Aditya Prayoga --- Notes * After doing git bisect, I found out

[U-Boot] [PATCH v3 6/6] arm: mvebu: helios4: Reset uSOM onboard phy during board init

2018-12-04 Thread Aditya Prayoga
Similar to Clearfog rev 2.1, GPIO 19 also used to reset onboard ethernet PHY. This patch depend on net: mvneta: Add GPIO configuration support [URL: https://patchwork.ozlabs.org/patch/1007736/] Signed-off-by: Aditya Prayoga --- v2: * Use generic gpio_* API (Baruch Siach) v3: * Use named gpios

[U-Boot] [PATCH v3 5/6] arm: mvebu: helios4: Enable SPI flash support

2018-12-04 Thread Aditya Prayoga
CONFIG_ENV_IS_IN_SPI_FLASH Signed-off-by: Aditya Prayoga --- v2: * Move u-boot specific properties into armada-388-helios4-u-boot.dtsi (Dennis Gilmore) --- arch/arm/dts/armada-388-helios4-u-boot.dtsi | 10 ++ configs/helios4_defconfig | 1 - include/configs/helios4.h

[U-Boot] [PATCH v3 3/6] arm: mvebu: helios4: Enable mvebu GPIO

2018-12-04 Thread Aditya Prayoga
Make use of U-Boot's GPIO DM to control native GPIO and I2C IO expander. Signed-off-by: Aditya Prayoga --- v2: * Rearrange the patch, move I2C IO expander DM convertion together with I2C. --- configs/helios4_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/co

[U-Boot] [PATCH v3 4/6] arm: mvebu: helios4: Reduce U-Boot image size

2018-12-04 Thread Aditya Prayoga
Remove unused I2C support in SPL and use simple_malloc functions to reduce SPL image size. Since Helios4 does not have any PCIe allocated on SerDes, remove PCI support. MTD layer on top of SPI flash is not needed, remove it also. Signed-off-by: Aditya Prayoga --- configs/helios4_defconfig | 5

[U-Boot] [PATCH v3 2/6] arm: mvebu: helios4: Enable I2C and IO Expander

2018-12-04 Thread Aditya Prayoga
Enable Marvell I2C driver and I2C IO expander. Set default bus to external I2C bus. Define I2C aliases in device tree so it can be recognized by the driver. Signed-off-by: Aditya Prayoga --- v2: * Rearrange the patch, enabling I2C and convert I2C IO expander to DM should applied together

[U-Boot] [PATCH v3 1/6] arm: mvebu: helios4: mmc: move environment before 1M

2018-12-04 Thread Aditya Prayoga
Store the environment before 1M into the block device. This constant is easier to remember, saves a little space, and is in line with what SolidRun's 2018.01-based fork does for the clearfog. Signed-off-by: Josua Mayer [ Aditya Prayoga: * Port forward] Signed-off-by: Aditya Prayoga --- in

[U-Boot] [PATCH v3 0/6] Update support for Helios4 board

2018-12-04 Thread Aditya Prayoga
388-helios4-u-boot.dtsi (Dennis Gilmore) * Use generic gpio_* API to do phy reset (Baruch Siach) Changes v2 -> v3: * Use named gpios for PHY reset (Stefan Roese) --- Aditya Prayoga (6): arm: mvebu: helios4: mmc: move environment before 1M arm: mvebu: helios4: Enable I2C and IO Expan

[U-Boot] [PATCH 1/1] net: mvneta: Add GPIO configuration support

2018-12-04 Thread Aditya Prayoga
/] Signed-off-by: Aditya Prayoga --- drivers/net/mvneta.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c index 8cb04b5..333be8f 100644 --- a/drivers/net/mvneta.c +++ b/drivers/net/mvneta.c @@ -27,6 +27,7 @@ #include #include #include

Re: [U-Boot] [PATCH v2 6/6] arm: mvebu: helios4: Reset uSOM onboard phy during board init

2018-12-04 Thread Aditya Prayoga
Hi Stefan, On Tue, Dec 4, 2018 at 10:51 PM Stefan Roese wrote: > > On 04.12.18 16:37, Aditya Prayoga wrote: > > > > >>>> Yes. As mentioned above, please look at the mvpp2 driver. And e.g. > >>>> at the armada-8040-clearfog-gt-8k.dts DT file:

Re: [U-Boot] [PATCH v2 6/6] arm: mvebu: helios4: Reset uSOM onboard phy during board init

2018-12-04 Thread Aditya Prayoga
Hi Baruch, On Tue, Dec 4, 2018 at 9:40 PM Baruch Siach wrote: > > Hi Aditya, > > On Mon, Dec 03, 2018 at 09:39:56AM +0700, Aditya Prayoga wrote: > > On Fri, Nov 30, 2018 at 3:25 PM Stefan Roese wrote: > > > On 30.11.18 09:14, Aditya Prayoga wrote: > > > >

Re: [U-Boot] [PATCH v2 6/6] arm: mvebu: helios4: Reset uSOM onboard phy during board init

2018-12-02 Thread Aditya Prayoga
Hi Stefan, On Fri, Nov 30, 2018 at 3:25 PM Stefan Roese wrote: > > On 30.11.18 09:14, Aditya Prayoga wrote: > > Hi Stefan, > > > > On Fri, Nov 30, 2018 at 2:44 PM Stefan Roese wrote: > >> > >> On 30.11.18 03:54, Aditya Prayoga wrote: > >>> S

Re: [U-Boot] [PATCH v2 6/6] arm: mvebu: helios4: Reset uSOM onboard phy during board init

2018-11-30 Thread Aditya Prayoga
Hi Stefan, On Fri, Nov 30, 2018 at 2:44 PM Stefan Roese wrote: > > On 30.11.18 03:54, Aditya Prayoga wrote: > > Similar to Clearfog rev 2.1, GPIO 19 also used to reset onboard ethernet > > PHY. > > > > Signed-off-by: Aditya Prayoga > > --- > > v2:

[U-Boot] [PATCH v2 4/6] arm: mvebu: helios4: Reduce U-Boot image size

2018-11-29 Thread Aditya Prayoga
Remove unused I2C support in SPL and use simple_malloc functions to reduce SPL image size. Since Helios4 does not have any PCIe allocated on SerDes, remove PCI support. MTD layer on top of SPI flash is not needed, remove it also. Signed-off-by: Aditya Prayoga --- configs/helios4_defconfig | 5

[U-Boot] [PATCH v2 2/6] arm: mvebu: helios4: Enable I2C and IO Expander

2018-11-29 Thread Aditya Prayoga
Enable Marvell I2C driver and I2C IO expander. Set default bus to external I2C bus. Define I2C aliases in device tree so it can be recognized by the driver. Signed-off-by: Aditya Prayoga --- v2: * Rearrange the patch, enabling I2C and convert I2C IO expander to DM should applied together

[U-Boot] [PATCH v2 5/6] arm: mvebu: helios4: Enable SPI flash support

2018-11-29 Thread Aditya Prayoga
CONFIG_ENV_IS_IN_SPI_FLASH Signed-off-by: Aditya Prayoga --- v2: * Move u-boot specific properties into armada-388-helios4-u-boot.dtsi (Dennis Gilmore) --- arch/arm/dts/armada-388-helios4-u-boot.dtsi | 10 ++ configs/helios4_defconfig | 1 - include/configs/helios4.h

[U-Boot] [PATCH v2 6/6] arm: mvebu: helios4: Reset uSOM onboard phy during board init

2018-11-29 Thread Aditya Prayoga
Similar to Clearfog rev 2.1, GPIO 19 also used to reset onboard ethernet PHY. Signed-off-by: Aditya Prayoga --- v2: * Use generic gpio_* API (Baruch Siach) --- board/kobol/helios4/helios4.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/board/kobol/helios4

[U-Boot] [PATCH v2 1/6] arm: mvebu: helios4: mmc: move environment before 1M

2018-11-29 Thread Aditya Prayoga
Store the environment before 1M into the block device. This constant is easier to remember, saves a little space, and is in line with what SolidRun's 2018.01-based fork does for the clearfog. Signed-off-by: Josua Mayer [ Aditya Prayoga: * Port forward] Signed-off-by: Aditya Prayoga --- in

[U-Boot] [PATCH v2 3/6] arm: mvebu: helios4: Enable mvebu GPIO

2018-11-29 Thread Aditya Prayoga
Make use of U-Boot's GPIO DM to control native GPIO and I2C IO expander. Signed-off-by: Aditya Prayoga --- v2: * Rearrange the patch, move I2C IO expander DM convertion together with I2C. --- configs/helios4_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/co

[U-Boot] [PATCH v2 0/6] Update support for Helios4 board

2018-11-29 Thread Aditya Prayoga
ic gpio_* API to do phy reset (Baruch Siach) --- Aditya Prayoga (6): arm: mvebu: helios4: mmc: move environment before 1M arm: mvebu: helios4: Enable I2C and IO Expander arm: mvebu: helios4: Enable mvebu GPIO arm: mvebu: helios4: Reduce U-Boot image size arm: mvebu: helios4: Enable SPI

Re: [U-Boot] [PATCH 6/7] arm: mvebu: helios4: Enable SPI flash support

2018-11-28 Thread Aditya Prayoga
On Wed, Nov 28, 2018 at 9:10 PM Baruch Siach wrote: > > Hi Dennis, > > On Wed, Nov 28, 2018 at 07:53:44AM -0600, Dennis Gilmore wrote: > > On Wed, 2018-11-28 at 17:00 +0800, Aditya Prayoga wrote: > > > Enable SPI flash support under U-Boot and SPL. The ENV size and >

Re: [U-Boot] [PATCH 6/7] arm: mvebu: helios4: Enable SPI flash support

2018-11-28 Thread Aditya Prayoga
On Wed, Nov 28, 2018 at 8:53 PM Dennis Gilmore wrote: > > On Wed, 2018-11-28 at 17:00 +0800, Aditya Prayoga wrote: > > Enable SPI flash support under U-Boot and SPL. The ENV size and > > offset, > > ported from U-Boot 2013.01 Marvell version: 2015_T1.0p16 > > >

Re: [U-Boot] [PATCH 7/7] arm: mvebu: helios4: Reset uSOM onboard phy during board init

2018-11-28 Thread Aditya Prayoga
Hi Baruch, On Wed, Nov 28, 2018 at 8:56 PM Baruch Siach wrote: > > Hi Aditya, > > On Wed, Nov 28, 2018 at 05:00:39PM +0800, Aditya Prayoga wrote: > > Similar to Clearfog rev 2.1, GPIO 19 also used to reset onboard ethernet > > PHY. > > > > Signed-off-by: Adit

Re: [U-Boot] [PATCH 3/7] arm: mvebu: helios4: Enable I2C

2018-11-28 Thread Aditya Prayoga
On Wed, Nov 28, 2018 at 8:44 PM Dennis Gilmore wrote: > > On Wed, 2018-11-28 at 16:59 +0800, Aditya Prayoga wrote: > > Enable Marvell I2C driver and set default bus to external I2C bus. > > Define I2C aliases in device tree so it can be recognized by the > > driver. >

Re: [U-Boot] [PATCH 1/7] arm: mvebu: helios4: Update Load address

2018-11-28 Thread Aditya Prayoga
tting your feedback, I re-tested it without this patch and it's running fine. So no reason to apply this patch anymore. I will remove it on next version. Thanks Aditya > Dennis > > On Wed, 2018-11-28 at 16:59 +0800, Aditya Prayoga wrote: > > Use the values from U-Boot 2013.01 Ma

[U-Boot] [PATCH 6/7] arm: mvebu: helios4: Enable SPI flash support

2018-11-28 Thread Aditya Prayoga
CONFIG_ENV_IS_IN_SPI_FLASH Signed-off-by: Aditya Prayoga --- arch/arm/dts/armada-388-helios4.dts | 7 +++ configs/helios4_defconfig | 1 - include/configs/helios4.h | 31 +++ 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/arch

[U-Boot] [PATCH 4/7] arm: mvebu: helios4: Enable mvebu GPIO and IO Expander

2018-11-28 Thread Aditya Prayoga
Make use of U-Boot's GPIO DM and device tree to control the I2C IO expander. While at it, also enable the native GPIO. Signed-off-by: Aditya Prayoga --- board/kobol/helios4/helios4.c | 32 configs/helios4_defconfig | 4 2 files changed, 4 inser

[U-Boot] [PATCH 1/7] arm: mvebu: helios4: Update Load address

2018-11-28 Thread Aditya Prayoga
Use the values from U-Boot 2013.01 Marvell version: 2015_T1.0p16 Signed-off-by: Aditya Prayoga --- include/configs/helios4.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/configs/helios4.h b/include/configs/helios4.h index ce912ea..c289490 100644 --- a

[U-Boot] [PATCH 7/7] arm: mvebu: helios4: Reset uSOM onboard phy during board init

2018-11-28 Thread Aditya Prayoga
Similar to Clearfog rev 2.1, GPIO 19 also used to reset onboard ethernet PHY. Signed-off-by: Aditya Prayoga --- board/kobol/helios4/helios4.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/board/kobol/helios4/helios4.c b/board/kobol/helios4/helios4.c index 37c46a5..7c1a7a8 100644

[U-Boot] [PATCH 5/7] arm: mvebu: helios4: Reduce U-Boot image size

2018-11-28 Thread Aditya Prayoga
Remove unused I2C support in SPL and use simple_malloc functions to reduce SPL image size. Since Helios4 does not have any PCIe allocated on SerDes, remove PCI support. MTD layer on top of SPI flash is not needed, remove it also. Signed-off-by: Aditya Prayoga --- configs/helios4_defconfig | 5

[U-Boot] [PATCH 2/7] arm: mvebu: helios4: mmc: move environment before 1M

2018-11-28 Thread Aditya Prayoga
Store the environment before 1M into the block device. This constant is easier to remember, saves a little space, and is in line with what SolidRun's 2018.01-based fork does for the clearfog. Signed-off-by: Josua Mayer [ Aditya Prayoga: * Port forward] Signed-off-by: Aditya Prayoga --- in

[U-Boot] [PATCH 3/7] arm: mvebu: helios4: Enable I2C

2018-11-28 Thread Aditya Prayoga
Enable Marvell I2C driver and set default bus to external I2C bus. Define I2C aliases in device tree so it can be recognized by the driver. Signed-off-by: Aditya Prayoga --- arch/arm/dts/armada-388-helios4.dts | 2 ++ configs/helios4_defconfig | 3 +++ 2 files changed, 5 insertions

[U-Boot] [PATCH 0/7] Update support for Helios4 board

2018-11-28 Thread Aditya Prayoga
added new peripheral support and improvement - helios4: Enable mvebu GPIO and IO Expander - helios4: Enable SPI flash support - helios4: Reduce U-Boot image size --- Aditya Prayoga (7): arm: mvebu: helios4: Update Load address arm: mvebu: helios4: mmc: move environment before 1M arm: mvebu