[U-Boot] [PATCH] arm: zynq: zybo z7: fix SPL uart init bitrate

2020-01-19 Thread Luis Araneda
or the UART baudrate generator Signed-off-by: Milan Obuch Signed-off-by: Luis Araneda --- This changes were originally sent by Milan Obuch using a diff format. As he didn't know how to properly send git patches to the mailing list, I converted them to a git commit, rephrased the commit message and

[U-Boot] [PATCH] arm: zynq: zybo z7: fix MIO init issue

2020-01-19 Thread Luis Araneda
. Disable the internal pull-up to fix the issue. Signed-off-by: Milan Obuch Signed-off-by: Luis Araneda --- This changes were originally sent by Milan Obuch using a diff format. As he didn't know how to properly send git patches to the mailing list, I converted them to a git commit, rephrased

Re: Zybo Z7 board - fix MIO init issue

2020-01-14 Thread Luis Araneda
e patch on a Zybo Z7-20 board. The push buttons are now handled correctly. Tested with the command "gpio status -a" When the push buttons are not pressed: > gpio@e000a00050: input: 0 [ ] > gpio@e000a00051: input: 0 [ ] When the push buttons are pressed: > gpio@e000a00050: inpu

Re: Zybo Z7 board - fix SPL uart init bitrate

2020-01-14 Thread Luis Araneda
SCRIPT=y > > Luis: Can you please check? I successfully tested the patch on a Zybo Z7-20 board. As the description said, the text "Debug uart enabled" is now displayed. Once the commit is in shape to be merged, feel free to add my Tested-by tag. Tested-by: Luis Araneda Please pi

[U-Boot] [PATCH] arm: zynq: zybo: migrate CONFIG_DISPLAY to defconfig

2018-09-12 Thread Luis Araneda
Only add CONFIG_DISPLAY to defconfig because CONFIG_I2C_EDID is automatically selected by CONFIG_DISPLAY Signed-off-by: Luis Araneda --- configs/zynq_zybo_defconfig | 1 + include/configs/zynq_zybo.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/configs

Re: [U-Boot] [RFC PATCH] arm: zynq: read mac address from SPI flash memory

2018-08-16 Thread Luis Araneda
Hi, On Tue, Aug 14, 2018 at 11:07 AM Michal Simek wrote: > On 14.8.2018 06:55, Luis Araneda wrote: > > Implement a method for reading the MAC address from an > > SPI flash memory. > > In particular, this method is used by the Zybo Z7 board > > to read the MAC

[U-Boot] [RFC PATCH] arm: zynq: read mac address from SPI flash memory

2018-08-13 Thread Luis Araneda
Implement a method for reading the MAC address from an SPI flash memory. In particular, this method is used by the Zybo Z7 board to read the MAC address from the OTP region in the SPI NOR memory Signed-off-by: Luis Araneda --- I'm trying to implement the reading of the MAC address of the Zybo

Re: [U-Boot] [PATCH] video: kconfig: remove DM_I2C dependency of I2C_EDID

2018-07-30 Thread Luis Araneda
Hi, On Wed, Jul 4, 2018 at 2:40 AM Luis Araneda wrote: > > Drop the DM_I2C dependency, as the library only implements > the parsing of EDID data and doesn't depend on any driver > > One user of this library, the i2c command, implements > support for legacy and DM I2C drivers &g

[U-Boot] [PATCH] arm: zynq: dts: add spi flash node to zedboard

2018-07-27 Thread Luis Araneda
ng the SPI speed to CONFIG_ENV_SPI_MAX_HZ. As this board didn't have a flash node, the default value was applied to the SPI speed, producing an error when probing the flash memory (speed too slow). Signed-off-by: Luis Araneda --- arch/arm/dts/zynq-zed.dts | 7 +++ 1 file changed, 7 insertion

[U-Boot] [PATCH v3] arm: zynq: add support for the zybo z7 board

2018-07-24 Thread Luis Araneda
push-buttons, 4 switches, 5 LEDs - 1 (Z7-10) or 2 (Z7-20) RGB LEDs Signed-off-by: Luis Araneda --- This patch adds support for the Digilent Zybo Z7 board The only thing that I tested and is not working yet, is reading the MAC address from the OTP region of the SPI flash memory, but I'm trying

Re: [U-Boot] [PATCH v2] arm: zynq: add support for the zybo z7 board

2018-07-24 Thread Luis Araneda
them with v2 because the patch were less tha 100 kB. I'll remove silicon version 1_0 and 2_0 with v3, which I'll send in a bit. Thanks, Luis Araneda. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH v2] arm: zynq: add support for the zybo z7 board

2018-07-24 Thread Luis Araneda
push-buttons, 4 switches, 5 LEDs - 1 (Z7-10) or 2 (Z7-20) RGB LEDs Signed-off-by: Luis Araneda --- This patch adds support for the Digilent Zybo Z7 board The only thing that I tested and is not working yet, is reading the MAC address from the OTP region of the SPI flash memory, but I'm trying

Re: [U-Boot] [PATCH 2/2] arm: zynq: add support for the zybo z7 board

2018-07-21 Thread Luis Araneda
Hi Michal, On Fri, Jul 20, 2018 at 3:09 AM Michal Simek wrote: > On 13.7.2018 17:44, Luis Araneda wrote: > > [...] > > +CONFIG_DM_I2C=y > > +CONFIG_SYS_I2C_CADENCE=y > > +CONFIG_MMC_SDHCI=y > > +CONFIG_MMC_SDHCI_ZYNQ=y > > +CONFIG_

Re: [U-Boot] [PATCH 4/4] arm: zynq: use i2c cadence DM driver

2018-07-21 Thread Luis Araneda
Hi Michal, On Fri, Jul 20, 2018 at 6:57 AM Michal Simek wrote: > On 9.7.2018 07:00, Luis Araneda wrote: > > [...] > > --- a/arch/arm/dts/zynq-syzygy-hub.dts > > +++ b/arch/arm/dts/zynq-syzygy-hub.dts > > @@ -15,6 +15,7 @@ > > alia

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

2018-07-21 Thread Luis Araneda
Hi, On Fri, Jul 20, 2018 at 7:09 AM Michal Simek wrote: > > On 20.7.2018 08:12, Luis Araneda wrote: > > [...] > > Anyway, I just wanted to improve the current state of the code, I > > don't need these changes for what I'm doing. So if you like to wait > > for [1] t

Re: [U-Boot] [RFC PATCH 0/4] arm: zynq: implement FPGA load from SPL

2018-07-20 Thread Luis Araneda
Hi Michal, On Fri, Jul 20, 2018 at 6:38 AM Michal Simek wrote: > On 20.7.2018 01:37, Luis Araneda wrote: > > Hi Michal, > > > > On Thu, Jul 19, 2018 at 2:23 AM Michal Simek > > wrote: > We need that functionality first but then enable it for all boards is > f

Re: [U-Boot] [PATCH 0/2] arm: zynq: add support for the zybo z7 board

2018-07-20 Thread Luis Araneda
Hi, On Fri, Jul 13, 2018 at 11:45 AM Luis Araneda wrote: > This series adds support for the Digilent Zybo Z7 board > > The only think, that I tested, and is not working yet, is reading the > MAC address from the OTP region of the SPI flash memory, but I pretend > to work on tha

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

2018-07-20 Thread Luis Araneda
.denx.de/pipermail/u-boot/2017-May/291401.html Thanks, Luis Araneda. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [RFC PATCH 0/4] arm: zynq: implement FPGA load from SPL

2018-07-19 Thread Luis Araneda
Hi Michal, On Thu, Jul 19, 2018 at 2:23 AM Michal Simek wrote: > On 18.7.2018 20:02, Luis Araneda wrote: > > [...] > > I didn't send them because just changing the defconfig isn't enough, > > It should be enough. It is configuration option and just enabling that > f

Re: [U-Boot] [RFC PATCH 4/4] arm: zynq: spl: implement FPGA load from FIT

2018-07-19 Thread Luis Araneda
r, and I found it when analyzing the (generated) .u-boot.img.cmd file. I just tested your patch with and without the "-E" option, and it works on both cases :) Thanks, Luis Araneda. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH 2/3] drivers: fpga: zynqpl: fix compilation with SPL

2018-07-19 Thread Luis Araneda
Disable the use of function zynq_loadfs when compiling the driver for the SPL, as the following filesystem functions are not found by the linker: - fs_set_blk_dev - fs_read - fs_set_blk_dev - fs_read - fs_read Signed-off-by: Luis Araneda --- drivers/fpga/zynqpl.c | 4 ++-- 1 file changed, 2

[U-Boot] [PATCH 3/3] arm: zynq: spl: fix FPGA initialization

2018-07-19 Thread Luis Araneda
Signed-off-by: Luis Araneda --- arch/arm/mach-zynq/spl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-zynq/spl.c b/arch/arm/mach-zynq/spl.c index 83297d6c69..9b7c0be951 100644 --- a/arch/arm/mach-zynq/spl.c +++ b/arch/arm/mach-zynq/spl.c @@ -29,6 +29,9 @@ void board_init_f(u

[U-Boot] [PATCH 1/3] spl: fit: display a message when an FPGA image is loaded

2018-07-19 Thread Luis Araneda
A message should be displayed if an image is loaded to an FPGA, because the hardware might have changed, and the user should be informed Signed-off-by: Luis Araneda --- common/spl/spl_fit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c index

Re: [U-Boot] [PATCH] spl: fpga: Implement fpga bistream loading with fpga_load

2018-07-19 Thread Luis Araneda
said, it will brake Arria10. I'd like to see the functionality merged, but waiting to firmware loader might delay it. So I propose the following: - Keep the spl_load_fpga_image() function for devices like the Arria10. - Apply the first three patches of my series [1], as they fix FPGA (Zynq) support on SPL. - Apply a modified version of Michal's patch, adding a temporary Kconfig option, like he suggested, to choose between the two implementations: fpga_load() for devices with DRAM available, and spl_load_fpga_image() for devices like the Arria10. - Once firmware loader is ready, convert the code to use it and unify the functions if possible. [1] https://lists.denx.de/pipermail/u-boot/2018-July/335127.html Thanks, Luis Araneda ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [RFC PATCH 4/4] arm: zynq: spl: implement FPGA load from FIT

2018-07-18 Thread Luis Araneda
d address was not necessary. On the other hand, the zynpl driver doesn't have functions to program the FPGA by chunks, so I had to allocate memory. Thanks, Luis Araneda. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [RFC PATCH 0/4] arm: zynq: implement FPGA load from SPL

2018-07-18 Thread Luis Araneda
hasn't responded yet, and this series to the @xilinx.com account, which you replied quickly. Maybe you are just waiting for other people to review/test it. Thanks, Luis Araneda. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [RFC PATCH 4/4] arm: zynq: spl: implement FPGA load from FIT

2018-07-18 Thread Luis Araneda
Implement FPGA bitstream loading from SPL. The bitstream is loaded from a FIT image into dynamically allocated memory before programming the FPGA. Signed-off-by: Luis Araneda --- arch/arm/mach-zynq/spl.c | 39 +++ 1 file changed, 39 insertions(+) diff --git

[U-Boot] [RFC PATCH 1/4] spl: fit: display a message when an FPGA image is loaded

2018-07-18 Thread Luis Araneda
A message should be displayed if an image is loaded to an FPGA, because the hardware might have changed, and the user should be informed Signed-off-by: Luis Araneda --- common/spl/spl_fit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c index

[U-Boot] [RFC PATCH 2/4] drivers: fpga: zynqpl: fix compilation with SPL

2018-07-18 Thread Luis Araneda
Disable the use of function zynq_loadfs when compiling the driver for the SPL, as the following filesystem functions are not found by the linker: - fs_set_blk_dev - fs_read - fs_set_blk_dev - fs_read - fs_read Signed-off-by: Luis Araneda --- drivers/fpga/zynqpl.c | 4 ++-- 1 file changed, 2

[U-Boot] [RFC PATCH 0/4] arm: zynq: implement FPGA load from SPL

2018-07-18 Thread Luis Araneda
memory before programming the FPGA. Additionally, some fixes are applied to compile the zynqpl driver for SPL, and to properly detect an FPGA from the SPL. I'm not sure if the fixes are correct or I'm missing something, hence the RFC. Tested on a Digilent Zybo Z7-20 board Luis Araneda (4

[U-Boot] [RFC PATCH 3/4] arm: zynq: spl: fix FPGA initialization

2018-07-18 Thread Luis Araneda
Signed-off-by: Luis Araneda --- arch/arm/mach-zynq/spl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-zynq/spl.c b/arch/arm/mach-zynq/spl.c index 83297d6c69..9b7c0be951 100644 --- a/arch/arm/mach-zynq/spl.c +++ b/arch/arm/mach-zynq/spl.c @@ -29,6 +29,9 @@ void board_init_f(u

[U-Boot] [PATCH 2/2] arm: zynq: add support for the zybo z7 board

2018-07-13 Thread Luis Araneda
push-buttons, 4 switches, 5 LEDs - 1 (Z7-10) or 2 (Z7-20) RGB LEDs The device-tree was taken from Linux with some minor corrections Signed-off-by: Luis Araneda --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/zynq-zybo-z7.dts | 91 ++ configs

[U-Boot] [PATCH 0/2] arm: zynq: add support for the zybo z7 board

2018-07-13 Thread Luis Araneda
solution, or I'll just simply remove additional content (Vivado's comments) Luis Araneda (2): arm: zynq: add ps7_init file for zybo z7 arm: zynq: add support for the zybo z7 board arch/arm/dts/Makefile |3 +- arch/arm/dts/zynq-zybo-z7.dts | 91

[U-Boot] [PATCH 4/4] arm: zynq: use i2c cadence DM driver

2018-07-08 Thread Luis Araneda
I2C multiplexers and require extended validation and testing Signed-off-by: Luis Araneda --- arch/arm/dts/zynq-syzygy-hub.dts | 1 + arch/arm/dts/zynq-zybo.dts| 10 ++ board/xilinx/zynq/board.c | 24 configs/syzygy_hub_defconfig | 5

[U-Boot] [PATCH 2/4] arm: zynq: migrate EEPROM MAC address options to kconfig

2018-07-08 Thread Luis Araneda
Migrate boards to use the generic kconfig options to read the MAC address Signed-off-by: Luis Araneda --- board/xilinx/zynq/board.c| 7 +++ configs/syzygy_hub_defconfig | 4 +++- configs/zynq_zybo_defconfig | 4 +++- include/configs/syzygy_hub.h | 1 - include/configs/zynq_zybo.h | 1

[U-Boot] [PATCH 3/4] arm64: zynqmp: migrate EEPROM MAC address options to kconfig

2018-07-08 Thread Luis Araneda
Migrate boards to use the generic kconfig options to read the MAC address Additionally, remove the ZYNQ_GEM_I2C_MAC_OFFSET kconfig option, since no boards is using it now Signed-off-by: Luis Araneda --- board/xilinx/zynqmp/zynqmp.c | 10 -- configs

[U-Boot] [PATCH 1/4] drivers/misc: add options to read MAC address from EEPROM

2018-07-08 Thread Luis Araneda
Add generic kconfig options to read MAC address(es) from an EEPROM connected to an I2C bus The SYS_I2C_EEPROM_* options can't be used because they depend on I2C_EEPROM, which requires a DM driver, and not all boards have DM I2C drivers yet Signed-off-by: Luis Araneda --- drivers/misc/Kconfig

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

2018-07-08 Thread Luis Araneda
zynq and zynqmp boards, and the same binaries where generated for all boards All commits were tested on a Digilent Zybo board Luis Araneda (4): drivers/misc: add options to read MAC address from EEPROM arm: zynq: migrate EEPROM MAC address options to kconfig arm64: zynqmp: migrate EEPROM

[U-Boot] [PATCH] kconfig: Avoid format overflow warning from GCC 8.1

2018-07-05 Thread Luis Araneda
097 sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid()); ^~~~~~~ Signed-off-by: Luis Araneda --- scripts/kconfig/confdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kconfig/confda

[U-Boot] [PATCH] video: kconfig: remove DM_I2C dependency of I2C_EDID

2018-07-04 Thread Luis Araneda
Drop the DM_I2C dependency, as the library only implements the parsing of EDID data and doesn't depend on any driver One user of this library, the i2c command, implements support for legacy and DM I2C drivers Tested on a Zynq board, whose I2C driver is not ported yet to DM Signed-off-by: Luis