[PATCH] zynq/spl: Explain unsupported boot mode more

2020-01-23 Thread Olliver Schinagl
-by: Olliver Schinagl --- arch/arm/mach-zynq/spl.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-zynq/spl.c b/arch/arm/mach-zynq/spl.c index 96ba90fb7a..4cc0324ba6 100644 --- a/arch/arm/mach-zynq/spl.c +++ b/arch/arm/mach-zynq/spl.c @@ -40,8 +40,10 @@ void

[PATCH] Kconfig/zynq: Set default SPL_STACK_R_ADDR

2020-01-23 Thread Olliver Schinagl
The zynq architecture depends on SPL_STACK_R_ADDR to be set, and thus it makes sense for the ARCH_ZYNQ to depend on SPL_STACK_R. Further more that address needs to have a sane default. So lets follow the OMAP2PLUS and set a default for the Zynq as well. Signed-off-by: Olliver Schinagl --- arch

[PATCH] Kconfig/ehci/zynq: Add ULPI dependency

2020-01-23 Thread Olliver Schinagl
: undefined reference to `ulpi_write' drivers/usb/host/ehci-zynq.c:63: undefined reference to `ulpi_write' drivers/usb/host/ehci-zynq.c:66: undefined reference to `ulpi_write' drivers/usb/host/ehci-zynq.c:69: undefined reference to `ulpi_write' Signed-off-by: Olliver Schinagl

[PATCH] Kconfig/debug_uart: Enable proper drivers for debug on Zynq

2020-01-23 Thread Olliver Schinagl
also. Signed-off-by: Olliver Schinagl --- drivers/serial/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index bd95f70b61..292bdb2a2f 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -292,6 +292,7 @@ config

[PATCH] Kconfig/fpga_zynq: Depend on FPGA

2020-01-23 Thread Olliver Schinagl
].fpga_size; ^ Signed-off-by: Olliver Schinagl --- drivers/fpga/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig index fe398a1d49..1d2df617d0 100644 --- a/drivers/fpga/Kconfig +++ b/drivers/fpga/Kconfig

[PATCH] Kconfig/fpgad: Add dependencies

2020-01-22 Thread Olliver Schinagl
-by: Olliver Schinagl --- cmd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 6e1efaaf85..0925236c0c 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -924,6 +924,7 @@ config CMD_FPGA_LOAD_SECURE config CMD_FPGAD bool "fpgad - dump FPGA regi

Re: [U-Boot] [linux-sunxi] [PATCH] Revert "sunxi: board: Print error after power initialization fails"

2018-12-31 Thread Olliver Schinagl
Hey André, On 31-12-2018 14:10, André Przywara wrote: On 31/12/2018 11:27, Michael Trimarchi wrote: Hi On Mon, Dec 31, 2018 at 11:34:51AM +0100, Olliver Schinagl wrote: Hey André, On 31-12-2018 00:23, André Przywara wrote: On 29/12/2018 22:10, Olliver Schinagl wrote: Hi Olliver, Luckily

Re: [U-Boot] [linux-sunxi] [PATCH] Revert "sunxi: board: Print error after power initialization fails"

2018-12-31 Thread Olliver Schinagl
Hey André, On 31-12-2018 00:23, André Przywara wrote: On 29/12/2018 22:10, Olliver Schinagl wrote: Hi Olliver, Luckily we have had no problem with this on our boards, but its sad to see this patch reverted due to the buggy ddr implementation ... This whole SPL is quite a sensitive

Re: [U-Boot] [linux-sunxi] [PATCH] Revert "sunxi: board: Print error after power initialization fails"

2018-12-29 Thread Olliver Schinagl
Luckily we have had no problem with this on our boards, but its sad to see this patch reverted due to the buggy ddr implementation ... Curiosity is getting the better of me and I cant seem to be able to reproduce the problem. So could you be a little bit more specific on the bug please? On

Re: [U-Boot] [PATCH v3 0/9] Stop AXP from crashing when enabling LDO3

2018-11-22 Thread Olliver Schinagl
On 21-11-18 19:13, Priit Laes wrote: > On Wed, Nov 21, 2018 at 08:05:24PM +0200, Priit Laes wrote: >> This is a resend/v2 of a "Stop AXP from crashing when enabling LDO3" series, >> posted by Olliver Schinagl in March 2017. Unfortunately it never got past >> initial

Re: [U-Boot] [PATCH v3 27/58] fastboot: sunxi: Update fastboot mmc default device

2018-08-22 Thread Olliver Schinagl
gh mmc3 some boards used as eMMC. >>> >>> So, update the default fastboot device as 2 to make the >>> standard usage irrespective of DT node status. >>> >>> Other corner cases like different device usage, or specific >>> mmc node status is not enabled in order

Re: [U-Boot] [PATCH 0/4] arm: zynq: migrate to DM I2C driver

2018-08-17 Thread Olliver Schinagl
Hi all, On 20-07-18 13:09, Michal Simek wrote: On 20.7.2018 08:12, Luis Araneda wrote: Hi Michal, On Thu, Jul 19, 2018 at 3:28 AM Michal Simek wrote: Please take a look at https://lists.denx.de/pipermail/u-boot/2016-November/274068.html which was the series which should replace all these

Re: [U-Boot] [PATCHv4 0/2] ARM: sunxi: Add support for OLinuXino Lime2 eMMC

2017-07-10 Thread Olliver Schinagl
Ping, any reason this hasn't been merged yet? :) Olliver On 12-05-17 18:52, Maxime Ripard wrote: On Fri, May 12, 2017 at 11:38:52AM +0200, Olliver Schinagl wrote: This patch series adds support for the Olimex OLinuXino Lime2 eMMC. This assembly variant uses eMMC flash instead of NAND

Re: [U-Boot] [PATCHv6 14/28] net: cosmetic: A MAC address is not limited to SROM

2017-05-15 Thread Olliver Schinagl
Hey Tom, On 15-05-17 14:53, Tom Rini wrote: On Mon, May 15, 2017 at 10:02:30AM +0200, Olliver Schinagl wrote: Currently, we print that the MAC from the SROM does not match. It can be many forms of ROM, so lets drop the S. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --

Re: [U-Boot] [PATCHv6 25/28] net: sun7i_mac: Add read_rom_hwaddr hook

2017-05-15 Thread Olliver Schinagl
Hey Maxime, On 15-05-17 10:22, Maxime Ripard wrote: On Mon, May 15, 2017 at 10:02:41AM +0200, Olliver Schinagl wrote: With this patch sun7i_mac can now get the MAC address from the board in a predetermined board specific manner. Signed-off-by: Olliver Schinagl <oli...@schinagl

Re: [U-Boot] [PATCHv6 12/28] net: Add ability to set MAC address via EEPROM

2017-05-15 Thread Olliver Schinagl
Hey Maxime, On 15-05-17 10:18, Maxime Ripard wrote: On Mon, May 15, 2017 at 10:02:28AM +0200, Olliver Schinagl wrote: This patch allows Kconfig to enable and set parameters to make it possible to read the MAC address from an EEPROM. The net core layer then uses this information to read MAC

[U-Boot] [PATCHv6 26/28] net: sun8i_gmac: Add read_rom_hwaddr hook

2017-05-15 Thread Olliver Schinagl
With this patch sun8i_emac can now get the MAC address from the board in a predetermined board specific manner. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/Makefile | 2 +- drivers/net/sun8i_emac.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff

[U-Boot] [PATCHv6 28/28] net: sunxi: Enable eeprom on OLinuXino Lime boards (again)

2017-05-15 Thread Olliver Schinagl
With commit 2681e78a5ee ("configs: Re-sync") we lost the EEPROM settings from the defconfig files. Let us re-add them. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- configs/A10-OLinuXino-Lime_defconfig | 3 +++ configs/A20-OLinuXino-Lime2-eMMC_defconfig | 3

Re: [U-Boot] [PATCHv6 00/28] Retrieve MAC address from EEPROM

2017-05-15 Thread Olliver Schinagl
Hey all, On 15-05-17 10:02, Olliver Schinagl wrote: This patch-series introduces methods to retrieve the MAC address from an onboard EEPROM. The series does a few small cleanups at the start, as either I ran into them while doing this series and fixed them along the way or actually depended

[U-Boot] [PATCHv6 18/28] arm: sunxi: Expose function to generate sunxi-specific a MAC address

2017-05-15 Thread Olliver Schinagl
in the FDT. Once that is changed, we can clean up some more. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- arch/arm/include/asm/arch-sunxi/sys_proto.h | 2 + board/sunxi/board.c | 146 ++-- 2 files changed, 95 insertions(+), 53 del

[U-Boot] [PATCHv6 08/28] net: cosmetic: Do not use magic values for ARP_HLEN

2017-05-15 Thread Olliver Schinagl
Previously overlooked magic value in commit a40db6d51171 ("net: cosmetic: Do not use magic values for ARP_HLEN") Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- include/net.h| 4 ++-- net/eth_common.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff

[U-Boot] [PATCHv6 11/28] net: core: Add MAC address helper functions

2017-05-15 Thread Olliver Schinagl
both these helper functions Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- include/net.h | 43 --- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/include/net.h b/include/net.h index ad2a8a3678..00677a0a89 100644 --- a/include

[U-Boot] [PATCHv6 24/28] net: dw: Expose designware_eth_start

2017-05-15 Thread Olliver Schinagl
Commit e72ced234045f ("net: designware: Export the operation functions") started to expose some of the net_ops. The sunxi_gmac glue driver also needs the start function, so let us expose that as well. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/

[U-Boot] [PATCHv6 10/28] net: core: Inform the user of the device MAC address

2017-05-15 Thread Olliver Schinagl
print the final MAC address of the device with which it has been setup. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- net/eth-uclass.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/net/eth-uclass.c b/net/eth-uclass.c index c3cc3152a2..781376955a

[U-Boot] [PATCHv6 21/28] net: sunxi: Have sunxi common functions together

2017-05-15 Thread Olliver Schinagl
The sun[8x]i network drivers have some common functions. Let's introduce a common file with the reading of the MAC address as a start. In the future, we can move more sunxi shared/common code into this file. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/sunxi_co

[U-Boot] [PATCHv6 12/28] net: Add ability to set MAC address via EEPROM

2017-05-15 Thread Olliver Schinagl
. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- arch/arm/mach-sunxi/Kconfig| 8 +-- configs/A10-OLinuXino-Lime_defconfig | 1 - configs/A20-OLinuXino-Lime2-eMMC_defconfig | 1 - configs/A20-OLinuXino-Lime2_defconfig | 1 - configs/A20-OLinuXino-Lime_def

[U-Boot] [PATCHv6 25/28] net: sun7i_mac: Add read_rom_hwaddr hook

2017-05-15 Thread Olliver Schinagl
With this patch sun7i_mac can now get the MAC address from the board in a predetermined board specific manner. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/Makefile| 2 +- drivers/net/sun7i_mac.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff

[U-Boot] [PATCHv6 07/28] net: sunxi: Move GMAC_TX_DELAY to the driver

2017-05-15 Thread Olliver Schinagl
The GMAC_TX_DELAY symbol sets and is dependent on the SUN7I_GMAC driver. Move it from the generic ARCH section to the driver specific section. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- arch/arm/mach-sunxi/Kconfig | 6 -- drivers/net/Kconfig | 7 +++ 2 files c

[U-Boot] [PATCHv6 20/28] net: sunxi: Rename sunxi_emac to a more specific sun4i_mac

2017-05-15 Thread Olliver Schinagl
for bitfields as well. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/Makefile | 2 +- drivers/net/{sunxi_emac.c => sun4i_mac.c} | 260 +++--- 2 files changed, 133 insertions(+), 129 deletions(-) rename dr

[U-Boot] [PATCHv6 01/28] ARM: dts: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc

2017-05-15 Thread Olliver Schinagl
ed-off-by: Emmanuel Vadot <m...@bidouilliste.com> Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- arch/arm/dts/sun7i-a20-olinuxino-lime2-emmc.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCHv6 14/28] net: cosmetic: A MAC address is not limited to SROM

2017-05-15 Thread Olliver Schinagl
Currently, we print that the MAC from the SROM does not match. It can be many forms of ROM, so lets drop the S. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- net/eth_legacy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/eth_legacy.c b/net/eth_legacy.c

[U-Boot] [PATCHv6 13/28] net: core: print the source of the MAC address

2017-05-15 Thread Olliver Schinagl
With many potential places where a MAC address can be read from, the user may not know where the MAC address originated from. Print the MAC source after initializing the Ethernet device. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- include/net.h| 14 ++ n

[U-Boot] [PATCHv6 19/28] net: sunxi_emac: Write HW address via net_ops hook

2017-05-15 Thread Olliver Schinagl
Expose the write_hwaddr net_ops hook to write the Ethernet address. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/sunxi_emac.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/net/sunxi_emac.c b/drivers/net/sunxi_emac.c index 99339db4bf..0dc3

[U-Boot] [PATCHv6 15/28] net: core: Check return value of read_rom_hwaddr

2017-05-15 Thread Olliver Schinagl
Currently, we silently ignore the return value of netops->read_rom_hwaddr(). This naturally is bad and we should check if the code ran successfully. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- net/eth-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) d

[U-Boot] [PATCHv6 05/28] net: sunxi: Re-add RTL8211X_PHY_FORCE_MASTER

2017-05-15 Thread Olliver Schinagl
Commit 8728c97eff5bd9 (" configs: Re-sync") potentially broke the lime2 as it removed the RTL8211X_PHY_FORCE_MASTER flag. Re-add this flag. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- configs/A20-OLinuXino-Lime2_defconfig | 1 + configs/A20-Olimex-SOM-EVB_defconfig

[U-Boot] [PATCHv6 02/28] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

2017-05-15 Thread Olliver Schinagl
This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash storage. https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/ It is a assembly variant of the regular Lime2 but featuring eMMC for storage. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> ---

[U-Boot] [PATCHv6 09/28] net: core: Sanitize get/set operations for enetaddr

2017-05-15 Thread Olliver Schinagl
ength. Additionally use the define in fdt parser where the ethaddr variables are also used. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- common/fdt_support.c | 2 +- include/net.h| 1 + net/eth_common.c | 14 +- 3 files changed, 11 insertions(+), 6 deletio

[U-Boot] [PATCHv6 03/28] net: core: Add PHY_GIGE as a Kconfig symbol

2017-05-15 Thread Olliver Schinagl
Add the CONFIG_PHY_GIGE option as a hidden Kconfig symbol so that we can select it from the menu as a dependency. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/Kconfig| 4 include/configs/sunxi-common.h | 1 - 2 files changed, 4 insertions(+), 1 de

[U-Boot] [PATCHv6 00/28] Retrieve MAC address from EEPROM

2017-05-15 Thread Olliver Schinagl
: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc Olliver Schinagl (27): sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC net: core: Add PHY_GIGE as a Kconfig symbol net: sunxi simplify defconfig net: sunxi: Re-add RTL8211X_PHY_FORCE_MASTER net: sunxi: Restore sunxi_

[U-Boot] [PATCHv6 23/28] net: sun7i_mac: Make the sun7i a dw driver subclass

2017-05-15 Thread Olliver Schinagl
This patch removes the old sunxi_gmac glue layer and turns it into a proper sub-class driver. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- arch/arm/mach-sunxi/board.c | 1 - board/sunxi/Makefile | 1 - drivers/net/Ma

[U-Boot] [PATCHv6 27/28] net: sun8i: fix whitespace

2017-05-15 Thread Olliver Schinagl
Fix a few whitespaces errors in the sun8i driver. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/Kconfig | 8 drivers/net/sun8i_emac.c | 12 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/net/Kconfig b/drive

[U-Boot] [PATCHv6 22/28] net: sun4i_mac: Add read_rom_hwaddr hook

2017-05-15 Thread Olliver Schinagl
With this patch sun4i_mac can now get the MAC address from the board in a predetermined board specific manner. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/Makefile| 2 +- drivers/net/sun4i_mac.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff

[U-Boot] [PATCHv6 17/28] fdt: fixup_eth: improve error catching/reduce identation

2017-05-15 Thread Olliver Schinagl
Currently when checking for an error in ethernet aliases in the fdt, we only check for the error case -1. It is safer to ignore anything < 0. By rearranging logic a bit we can now also reduce identation. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- common/fdt_suppo

[U-Boot] [PATCHv6 16/28] fdt: fixup_eth: Remove code duplication with a function

2017-05-15 Thread Olliver Schinagl
In fdt_support.c we use a loop to parse the mac address string from the fdt blob, net.h has a function for this however, so lets use it. Also, rename the variable from tmp to something more descriptive. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- common/fdt_support.

[U-Boot] [PATCHv6 04/28] net: sunxi simplify defconfig

2017-05-15 Thread Olliver Schinagl
the CONFIG_SUNXI_GMAC symbol into the SUN7I_GMAC and the SUN7I_EMAC symbol, where the SUN7I_EMAC indicates a MII connected designware IP. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- configs/A20-OLinuXino-Lime2-eMMC_defconfig | 2 -- configs/A20-OLinuXino-Lime2_defconfig | 2 -- c

[U-Boot] [PATCHv6 06/28] net: sunxi: Restore sunxi_[eg]mac behavior

2017-05-15 Thread Olliver Schinagl
to a safe default. This patch restores that behavior by adding the PHY_REALTEK to the defconfigs, where they belong and by setting the address based on the new config symbols. Additionally, we use the new renamed symbol in the Makefiles to actually compile the drivers. Signed-off-by: Olliver Sch

[U-Boot] [PATCHv4 2/2] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

2017-05-12 Thread Olliver Schinagl
This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash storage. https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/ It is a assembly variant of the regular Lime2 but featuring eMMC for storage. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> ---

[U-Boot] [PATCHv4 1/2] ARM: dts: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc

2017-05-12 Thread Olliver Schinagl
ed-off-by: Emmanuel Vadot <m...@bidouilliste.com> Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- arch/arm/dts/sun7i-a20-olinuxino-lime2-emmc.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCHv4 0/2] ARM: sunxi: Add support for OLinuXino Lime2 eMMC

2017-05-12 Thread Olliver Schinagl
-by to Emanuel's upstream kernel pach Changes since v2: * Converted these two patches into a patch-series Changes since v1: * Rebased with master Emmanuel Vadot (1): ARM: dts: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc Olliver Schinagl (1): sun7i: Add support for Olimex

Re: [U-Boot] [PATCHv3 1/2] ARM: dts: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc

2017-05-05 Thread Olliver Schinagl
I can resend it if everything else is okay On 05-05-17 10:02, Maxime Ripard wrote: On Thu, May 04, 2017 at 11:57:06AM +0200, Olliver Schinagl wrote: From: Emmanuel Vadot <m...@bidouilliste.com> The node name for the power seq pin is mmc2@0 like the mmc2_pins_a one. This makes the or

[U-Boot] [PATCHv3 1/2] ARM: dts: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc

2017-05-04 Thread Olliver Schinagl
From: Emmanuel Vadot The node name for the power seq pin is mmc2@0 like the mmc2_pins_a one. This makes the original node (mmc2_pins_a) scrapped out of the dtb and result in a unusable eMMC if U-Boot didn't configured the pins to the correct functions. Signed-off-by:

[U-Boot] [PATCHv3 2/2] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

2017-05-04 Thread Olliver Schinagl
This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash storage. https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/ It is a assembly variant of the regular Lime2 but featuring eMMC for storage. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> ---

[U-Boot] [PATCHv3 0/2] ARM: sunxi: Add support for OLinuXino Lime2 eMMC

2017-05-04 Thread Olliver Schinagl
node name for pwrseq pin on Olinuxino-lime2-emmc Olliver Schinagl (1): sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC arch/arm/dts/sun7i-a20-olinuxino-lime2-emmc.dts | 2 +- board/sunxi/MAINTAINERS | 5 configs/A20-OLinuXino-Lime2-eMMC_defconfig

Re: [U-Boot] [PATCH] ARM: dts: OLinuXino Lime2 eMMC dts sync

2017-05-04 Thread Olliver Schinagl
Hey Maxime, On 04-05-17 11:43, Maxime Ripard wrote: Hi, On Thu, May 04, 2017 at 11:00:31AM +0200, Olliver Schinagl wrote: Sync the sun7i-a20-olinuxino-lime2-emmc.dts with the upstream kernel, which fixes the power-sequencing pin being wrongfully set up. You have a dependency between two

[U-Boot] [PATCH] ARM: dts: OLinuXino Lime2 eMMC dts sync

2017-05-04 Thread Olliver Schinagl
Sync the sun7i-a20-olinuxino-lime2-emmc.dts with the upstream kernel, which fixes the power-sequencing pin being wrongfully set up. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- arch/arm/dts/sun7i-a20-olinuxino-lime2-emmc.dts | 8 +++- 1 file changed, 3 insertions(+), 5 del

Re: [U-Boot] [linux-sunxi] Re: [PATCHv2] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

2017-05-04 Thread Olliver Schinagl
Hey ChenYu On 04-05-17 10:48, Chen-Yu Tsai wrote: On Thu, May 4, 2017 at 4:44 PM, Olliver Schinagl <oli...@schinagl.nl> wrote: Hey Maxime, On 04-05-17 10:43, Maxime Ripard wrote: On Wed, May 03, 2017 at 04:40:02PM +0200, Olliver Schinagl wrote: This patch adds support for the

Re: [U-Boot] [PATCHv2] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

2017-05-04 Thread Olliver Schinagl
Hey Maxime, On 04-05-17 10:43, Maxime Ripard wrote: On Wed, May 03, 2017 at 04:40:02PM +0200, Olliver Schinagl wrote: This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash storage. https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/ It is a assembly

[U-Boot] [PATCHv2] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

2017-05-03 Thread Olliver Schinagl
This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash storage. https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/ It is a assembly variant of the regular Lime2 but featuring eMMC for storage. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- Jag

[U-Boot] [PATCH] sun7i: Add support for Olimex A20-OLinuXino-LIME2-eMMC

2017-05-03 Thread Olliver Schinagl
This patch adds support for the Olimex OLinuXino Lime2 with eMMC flash storage. https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2-eMMC/ It is a assembly variant of the regular Lime2 but featuring eMMC for storage. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> ---

Re: [U-Boot] [PATCH 5/6] arm: sunxi: Use board hooks to obtain MAC address

2017-04-11 Thread Olliver Schinagl
Hey Joe, On 11-04-17 00:56, Joe Hershberger wrote: On Fri, Apr 7, 2017 at 8:57 AM, <o.schin...@ultimaker.com> wrote: On Fri, 2017-04-07 at 15:45 +0200, Olliver Schinagl wrote: Hey Joe, On 30-11-16 22:36, Joe Hershberger wrote: On Fri, Nov 25, 2016 at 9:38 AM, Olliver Schinagl &

Re: [U-Boot] [PATCHv2 04/21] net: core: Add function to check/set MAC locality

2017-04-11 Thread Olliver Schinagl
A first comment I have myself, which will go in a v3 (or as a separate patch after this has been merged): On 10-04-17 17:33, Olliver Schinagl wrote: Universally administered and locally administered addresses are distinguished by setting the second-least-significant bit of the first octet

Re: [U-Boot] [PATCHv5 00/21] Retrieve MAC address from EEPROM

2017-04-10 Thread Olliver Schinagl
Hey York, On 10-04-17 17:52, York Sun wrote: On 04/10/2017 08:34 AM, Olliver Schinagl wrote: First off: P.S. Joe, for some reason my previous patches where added with me as: "oli...@schinagl.nl <oli...@schinagl.nl>" I see that it comes from patchwork as such. Is there

Re: [U-Boot] [PATCH 12/14] fdt: eth_fixup: Add hook for board to override MAC

2017-04-10 Thread Olliver Schinagl
Resend with maxime's correct e-mail address and Jagain added to CC On 10-04-17 17:46, Olliver Schinagl wrote: Hey Simon, On 01-12-16 03:20, Simon Glass wrote: Hi, On 25 November 2016 at 08:30, Olliver Schinagl <oli...@schinagl.nl> wrote: This patch adds a method for the board

Re: [U-Boot] [PATCH 12/14] fdt: eth_fixup: Add hook for board to override MAC

2017-04-10 Thread Olliver Schinagl
Hey Simon, On 01-12-16 03:20, Simon Glass wrote: Hi, On 25 November 2016 at 08:30, Olliver Schinagl <oli...@schinagl.nl> wrote: This patch adds a method for the board to set the MAC address if the environment is not yet set. The environment based MAC addresses are not touched, but if t

[U-Boot] [PATCHv2 15/21] net: sunxi_emac: Add read_rom_hwaddr hook

2017-04-10 Thread Olliver Schinagl
With this patch sunxi_emac can now get the MAC address from the board in a predetermined board specific manner. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/Makefile | 2 +- drivers/net/sunxi_emac.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff

[U-Boot] [PATCHv2 17/21] net: dw: Expose designware_eth_start

2017-04-10 Thread Olliver Schinagl
Commit e72ced234045f ("net: designware: Export the operation functions") started to expose some of the net_ops. The sunxi_gmac glue driver also needs the start function, so let us expose that as well. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/

[U-Boot] [PATCHv2 20/21] net: sun8i: fix whitespace

2017-04-10 Thread Olliver Schinagl
Fix a few whitespaces errors in the sun8i driver. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/Kconfig | 8 drivers/net/sun8i_emac.c | 12 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/net/Kconfig b/drive

[U-Boot] [PATCHv2 16/21] net: sunxi_gmac: Make the sunxi variant of dw driver a subclass

2017-04-10 Thread Olliver Schinagl
This patch removes the old sunxi_gmac glue layer and turns it into a proper sub-class driver. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- arch/arm/include/asm/arch-sunxi/sys_proto.h| 7 arch/arm/mach-sunxi/board.c| 1 - board/sunxi/Ma

[U-Boot] [PATCHv2 13/21] net: sunxi_emac: Write HW address via net_ops hook

2017-04-10 Thread Olliver Schinagl
Expose the write_hwaddr net_ops hook to write the Ethernet address. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/sunxi_emac.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/net/sunxi_emac.c b/drivers/net/sunxi_emac.c index 99339db4bf..0dc3

[U-Boot] [PATCHv2 18/21] net: sunxi_gmac: Add read_rom_hwaddr hook

2017-04-10 Thread Olliver Schinagl
With this patch sunxi_gmac can now get the MAC address from the board in a predetermined board specific manner. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/Makefile | 2 +- drivers/net/sunxi_gmac.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff

[U-Boot] [PATCHv2 21/21] net: core: Check return value of read_rom_hwaddr

2017-04-10 Thread Olliver Schinagl
Currently, we silently ignore the return value of netops->read_rom_hwaddr(). This naturally is bad and we should check if the code ran successfully. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- net/eth-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) d

[U-Boot] [PATCHv2 09/21] fdt: fixup_eth: improve error catching/reduce identation

2017-04-10 Thread Olliver Schinagl
Currently when checking for an error in ethernet aliases in the fdt, we only check for the error case -1. It is safer to ignore anything < 0. By rearranging logic a bit we can now also reduce identation. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- common/fdt_suppo

[U-Boot] [PATCHv2 14/21] net: sunxi: Have sunxi common functions together

2017-04-10 Thread Olliver Schinagl
The sun[8x]i network drivers have some common functions. Let's introduce a common file with the reading of the MAC address as a start. In the future, we can move more sunxi shared/common code into this file. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/sunxi_co

[U-Boot] [PATCHv2 04/21] net: core: Add function to check/set MAC locality

2017-04-10 Thread Olliver Schinagl
to ensure they are locally administered. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- include/net.h | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/include/net.h b/include/net.h index b4af8eaae4..b1d6f05a76 100644 --- a/include/net.h +++ b/i

[U-Boot] [PATCHv2 03/21] net: core: Inform the user of the device MAC address

2017-04-10 Thread Olliver Schinagl
print the final MAC address of the device with which it has been setup. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- net/eth-uclass.c | 9 ++--- net/eth_legacy.c | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/net/eth-uclass.c b/net/eth-uclass.c

[U-Boot] [PATCHv2 19/21] net: sun8i_gmac: Add read_rom_hwaddr hook

2017-04-10 Thread Olliver Schinagl
With this patch sun8i_emac can now get the MAC address from the board in a predetermined board specific manner. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/net/Makefile | 2 +- drivers/net/sun8i_emac.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff

[U-Boot] [PATCHv2 07/21] net: cosmetic: A MAC address is not limited to SROM

2017-04-10 Thread Olliver Schinagl
Currently, we print that the MAC from the SROM does not match. It can be many forms of ROM, so lets drop the S. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- net/eth_legacy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/eth_legacy.c b/net/eth_legacy.c

[U-Boot] [PATCHv2 11/21] net: sunxi_[eg]mac: Convert to Kconfig

2017-04-10 Thread Olliver Schinagl
Convert both the sunxi_emac and sunxi_gmac drivers to use KConfig. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- configs/A10-OLinuXino-Lime_defconfig | 3 ++- configs/A10s-OLinuXino-M_defconfig | 2 +- configs/A20-OLinuXino-Lime2_defconfig | 4 ++-- confi

[U-Boot] [PATCHv2 05/21] net: Add ability to set MAC address via EEPROM

2017-04-10 Thread Olliver Schinagl
. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- doc/README.enetaddr | 99 + include/net.h | 14 net/Kconfig | 59 +++ net/eth-uclass.c| 42 +++ net/eth_co

[U-Boot] [PATCHv2 10/21] net: sunxi: Enable I2C bus set via NET_ETHADDR_EEPROM_I2C_BUS

2017-04-10 Thread Olliver Schinagl
A user may select the connected eeprom address via NET_ETHADDR_EEPROM_I2C_BUS, but not enable it (I2Cn_ENABLE). To prevent this mistake, enable the I2C controller selected via NET_ETHADDR_EEPROM_I2C_BUS. This in turn simplifies the defconfig. Signed-off-by: Olliver Schinagl <oli...@schinagl

[U-Boot] [PATCHv2 12/21] arm: sunxi: Expose function to generate sunxi-specific a MAC address

2017-04-10 Thread Olliver Schinagl
in the FDT. Once that is changed, we can clean up some more. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- arch/arm/include/asm/arch-sunxi/sys_proto.h | 2 + board/sunxi/board.c | 145 ++-- 2 files changed, 94 insertions(+), 53 del

[U-Boot] [PATCHv2 08/21] fdt: fixup_eth: Remove code duplication with a function

2017-04-10 Thread Olliver Schinagl
In fdt_support.c we use a loop to parse the mac address string from the fdt blob, net.h has a function for this however, so lets use it. Also, rename the variable from tmp to something more descriptive. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- common/fdt_support.

[U-Boot] [PATCHv2 06/21] net: core: print the source of the MAC address

2017-04-10 Thread Olliver Schinagl
With many potential places where a MAC address can be read from, the user may not know where the MAC address originated from. Print the MAC source after initializing the Ethernet device. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- include/net.h| 14 ++ n

[U-Boot] [PATCHv2 02/21] net: core: Sanitize get/set operations for enetaddr

2017-04-10 Thread Olliver Schinagl
ength. Additionally use the define in fdt parser where the ethaddr variables are also used. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- common/fdt_support.c | 2 +- include/net.h| 1 + net/eth_common.c | 14 +- 3 files changed, 11 insertions(+), 6 deletio

[U-Boot] [PATCHv2 01/21] net: cosmetic: Do not use magic values for ARP_HLEN

2017-04-10 Thread Olliver Schinagl
Previously overlooked magic value in commit a40db6d51171 ("net: cosmetic: Do not use magic values for ARP_HLEN") Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- net/eth_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/eth_common.c b/net/et

[U-Boot] [PATCHv5 00/21] Retrieve MAC address from EEPROM

2017-04-10 Thread Olliver Schinagl
First off: P.S. Joe, for some reason my previous patches where added with me as: "oli...@schinagl.nl <oli...@schinagl.nl>" I see that it comes from patchwork as such. Is there some way to fix this to "Olliver Schinagl <oli...@schinagl.nl>"? Below the updated summar

Re: [U-Boot] [PATCH 5/6] arm: sunxi: Use board hooks to obtain MAC address

2017-04-07 Thread Olliver Schinagl
Hey Joe, On 30-11-16 22:36, Joe Hershberger wrote: On Fri, Nov 25, 2016 at 9:38 AM, Olliver Schinagl <oli...@schinagl.nl> wrote: Add board hooks allowing to get ethernet addresses in a board specific manner. Currently this is done by generating a MAC address from the SID and inj

Re: [U-Boot] [PATCHv2] net: zynq_gem: Do not return -ENOSYS on success

2017-04-05 Thread Olliver Schinagl
Not yet, i rebased against u-boot-net/master. As it is it is a bug however so we should just put the fix in for now. On April 5, 2017 8:29:22 AM CEST, Michal Simek <michal.si...@xilinx.com> wrote: >On 3.4.2017 16:18, Olliver Schinagl wrote: >> The .read_rom_hwaddr net_ops hook

[U-Boot] [PATCHv2] net: zynq_gem: Do not return -ENOSYS on success

2017-04-04 Thread Olliver Schinagl
-by: Olliver Schinagl <oli...@schinagl.nl> --- Changes since v1: Check pdata for NULL before dereferencing. drivers/net/zynq_gem.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 86dd03feda..52beedfad0

Re: [U-Boot] [PATCH 12/14] fdt: eth_fixup: Add hook for board to override MAC

2017-04-04 Thread Olliver Schinagl
Hey Joe, On 26-03-17 16:10, Joe Hershberger wrote: Hi Oliver, On Sun, Dec 11, 2016 at 3:27 PM, Simon Glass <s...@chromium.org> wrote: Hi Oliver, On 9 December 2016 at 02:25, Olliver Schinagl <oli...@schinagl.nl> wrote: Hey simon On December 8, 2016 11:21:32 PM CET, Si

Re: [U-Boot] [linux-sunxi] [PATCH 06/17] tools: mksunxiboot: allow larger SPL binaries

2017-04-04 Thread Olliver Schinagl
Hey Andre, On 01-03-17 03:25, Andre Przywara wrote: mksunxiboot limits the size of the resulting SPL binaries to pretty conservative values to cover all SoCs and all boot media (NAND). It turns out that we have limit checks in place in the build process, so mksunxiboot can be relaxed and allow

Re: [U-Boot] [PATCH 0/8] Stop AXP from crashing when enabeling LDO3

2017-03-06 Thread Olliver Schinagl
Hey Jagan, FYI, I used the wrong e-mail address, I think it is still listed in some of the u-boot sources. Olliver On 01-03-17 15:06, Olliver Schinagl wrote: Hey Maxime, Jagan, On 01-03-17 14:00, Maxime Ripard wrote: Hi Oliver, On Wed, Mar 01, 2017 at 01:52:16PM +0100, Olliver Schinagl

Re: [U-Boot] [PATCH 0/8] Stop AXP from crashing when enabeling LDO3

2017-03-06 Thread Olliver Schinagl
Hey Maxime, Jagan, On 01-03-17 14:00, Maxime Ripard wrote: Hi Oliver, On Wed, Mar 01, 2017 at 01:52:16PM +0100, Olliver Schinagl wrote: Hi list, When powering up an AXP209, the default value for LDO3 output is enabled. This works fine. However if for whatever reason, LDO3 is disabled

Re: [U-Boot] [linux-sunxi] [PATCH 6/8] power: axp209: Add support for voltage rate control on LDO3

2017-03-06 Thread Olliver Schinagl
Hey Marcus, On 01-03-17 16:10, Marcus Weseloh wrote: Hi Oliver, 2017-03-01 13:52 GMT+01:00 Olliver Schinagl <oli...@schinagl.nl <mailto:oli...@schinagl.nl>>: +#define AXP209_VRC_LDO3_EN BIT(3) +#define AXP209_VRC_DCDC2_ENBIT(2)

Re: [U-Boot] [PATCH 0/8] Stop AXP from crashing when enabeling LDO3

2017-03-06 Thread Olliver Schinagl
Hey Maxime, On 01-03-17 14:00, Maxime Ripard wrote: Hi Oliver, On Wed, Mar 01, 2017 at 01:52:16PM +0100, Olliver Schinagl wrote: Hi list, When powering up an AXP209, the default value for LDO3 output is enabled. This works fine. However if for whatever reason, LDO3 is disabled, for example

[U-Boot] [PATCH 5/8] power: axp209: Reduce magic values by adding defines for LDO[234]

2017-03-01 Thread Olliver Schinagl
The AXP209 has a few 'magisc-ish' values that are better served with clear defines. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/power/axp209.c | 10 -- include/axp209.h | 14 ++ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/d

[U-Boot] [PATCH 6/8] power: axp209: Add support for voltage rate control on LDO3

2017-03-01 Thread Olliver Schinagl
' is a voltage rise of 0.0167 V/uS, a 1.6 mV/uS and a 0.8 mV/uS voltage rise. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/power/Kconfig | 33 + drivers/power/axp209.c | 24 include/axp209.h | 16 +

[U-Boot] [PATCH 4/8] power: axp209: Define the chip version mask

2017-03-01 Thread Olliver Schinagl
Use a define for the chip version mask on the axp209. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/power/axp209.c | 5 + include/axp209.h | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/power/axp209.c b/drivers/power/axp209.c

[U-Boot] [PATCH 7/8] power: axp209: Limit inrush current for broken boards

2017-03-01 Thread Olliver Schinagl
r at 0.7 V, but this did not work. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- drivers/power/Kconfig | 9 + drivers/power/axp209.c | 22 ++ 2 files changed, 31 insertions(+) diff --git a/drivers/power/Kconfig b/drivers/power/Kconfig index 3f10f84a89..6

[U-Boot] [PATCH 8/8] arm: sunxi: Enable inrush quirk on Olimex OLinuXino-A20-Lime2

2017-03-01 Thread Olliver Schinagl
The lime2 features a too large capacitor on the LDO3 output, which causes the PMIC to shutdown when enabling power. To be able to still boot up however, we must gradually enable power on LDO3 for this board. Signed-off-by: Olliver Schinagl <oli...@schinagl.nl> --- configs/A20-OLi

  1   2   3   >