[U-Boot] [PATCH v2 4/5] imx: pinctrl: Add support for i.MX28 mxs pinctrl driver

2019-06-13 Thread Lukasz Majewski
nodes as subnodes, it was necessary to use 'dm_scan_fdt_dev()' (as a .bind method) to also make them 'visible' by the DM's "gpio_mxs" driver. Signed-off-by: Lukasz Majewski --- Changes in v2: None drivers/pinctrl/nxp/Kconfig | 10 +++ drivers/pinctrl

[U-Boot] [PATCH v2 1/5] DTS: imx28: Copy imx28 device tree related files from Linux kernel (v5.1.2)

2019-06-13 Thread Lukasz Majewski
This commit copies from the Linux kernel (tag v5.1.2) i.MX28 related device tree files. Signed-off-by: Lukasz Majewski --- Changes in v2: None arch/arm/dts/imx28-pinfunc.h | 506 arch/arm/dts/imx28.dtsi | 1330 ++ arch/arm/dts/mxs

[U-Boot] [PATCH v2 0/5] DM: Convert i.MX28 gpio, pinmux, spi and eth drivers to DM/DTS

2019-06-13 Thread Lukasz Majewski
And store the received binaries on SPI-NOR memory. Travis-CI: https://travis-ci.org/lmajewski/u-boot-dfu/builds/545476866 Applied on top of u-boot/master branch SHA1: c2ea87883ef309570c8903e6de4b8b78685d73d0 Changes in v2: - Use #if !CONFIG_IS_ENABLED(DM_GPIO) instead of plain #ifdef CONFIG_DM_GP

Re: [U-Boot] [PATCH v2 3/3] fastboot: Check if partition really exist in getvar_has_slot()

2019-06-13 Thread Lukasz Majewski
On Thu, 13 Jun 2019 07:47:19 +0200 Lukasz Majewski wrote: > Hi Sam, > > > Hi Tom, > > > > We have broken fastboot right now... Can we please apply this > > series, so that it appears in v2019.07? > > I'm running Travis-CI on this series, and send PR

Re: [U-Boot] [PATCH v2 3/3] fastboot: Check if partition really exist in getvar_has_slot()

2019-06-12 Thread Lukasz Majewski
; > > + return; > > + } > > + strcat(part_name_wslot, "_a"); > > + > > + /* Check if this partition exists */ > > + r = getvar_get_part_info(part_name_wslot, response, NULL); > > + if (r >= 0) { > &

Re: [U-Boot] [PATCH v2 3/3] fastboot: Check if partition really exist in getvar_has_slot()

2019-06-12 Thread Lukasz Majewski
+ /* Check if this partition exists */ > + r = getvar_get_part_info(part_name_wslot, response, NULL); > + if (r >= 0) { > fastboot_okay("yes", response); > - else > - fastboot_okay("no", response); >

Re: [U-Boot] [PATCH v2 2/3] fastboot: getvar: Refactor fastboot_*_get_part_info() usage

2019-06-12 Thread Lukasz Majewski
size = part_info.size; > -#endif > -#if CONFIG_IS_ENABLED(FASTBOOT_FLASH_NAND) > - struct part_info *part_info; > - > - r = fastboot_nand_get_part_info(part_name, &part_info, > response); > - if (r >= 0) > - size = part_info->size; >

Re: [U-Boot] [PATCH v2 1/3] fastboot: Use const qualifier for char *part_name

2019-06-12 Thread Lukasz Majewski
rt_info: Pointer to returned part_info pointer > * @response: Pointer to fastboot response buffer > */ > -int fastboot_nand_get_part_info(char *part_name, struct part_info > **part_info, > - char *response); > +int fastboot_nand_get_part_info(const char

Re: [U-Boot] [PATCH] rtc: Add DM support to ds3231

2019-06-12 Thread Lukasz Majewski
3231_probe(struct udevice *dev) > +{ > + i2c_set_chip_flags(dev, DM_I2C_CHIP_RD_ADDRESS | > + DM_I2C_CHIP_WR_ADDRESS); > + > + return 0; > +} > + > +static const struct rtc_ops ds3231_rtc_ops = { > + .get = ds3231_rtc_get, > + .set = ds3231_

Re: [U-Boot] Regression in U-boot v2019-07-rcX

2019-06-12 Thread Lukasz Majewski
> > P.S. The board I'm testing with is Intel Edison. I think no need to > > tell that nothing has been changed except the base (I'm rebased my > > stuff on top of latest and greatest U-Boot releases). > > v2019.07-rc1 is NOT affected! > > The time difference with DFU: &

Re: [U-Boot] [PATCH v1] watchdog: move WATCHDOG_TIMEOUT_MSECS to Kconfig

2019-06-12 Thread Lukasz Majewski
25,6 @@ > #define CONFIG_SYS_FSL_ESDHC_HAS_DDR_MODE > > /* Watchdog */ > -#define CONFIG_WATCHDOG_TIMEOUT_MSECS 3 /* 30s */ > > #define CONFIG_SYS_MEMTEST_START 0x8000 > #define CONFIG_SYS_MEMTEST_END > (CONFIG_SYS_MEMTEST_START + SZ_256M) diff --git a/include/wdt.h >

Re: [U-Boot] Default environment file

2019-06-12 Thread Lukasz Majewski
; > Student Telekommunikation Netzwerke und Sicherheit > > Klasse T-3b > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang

Re: [U-Boot] [PATCH v2 3/3] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

2019-06-11 Thread Lukasz Majewski
the VID / PID > he managed to get it to work. > > Lukasz, please confirm. I can confirm that I made it working on v2019-rc3 (on display5) after adjusting VID/PID with NXP's 'uuu' utility to recovery i.MX6Q board. > > Thanks Best regards, Lukasz Majewski

Re: [U-Boot] ARMv8 switching CPUs into EL1

2019-06-11 Thread Lukasz Majewski
nfigure CPUs state. > Kind regards, > > Mels > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirche

[U-Boot] [PATCH v1 3/4] DM: mxs: gpio: Add support for DM/DTS in the mxs_gpio.c driver (DM_GPIO)

2019-06-11 Thread Lukasz Majewski
This commit adds support for DM in the mxs_gpio.c driver when DM_GPIO is enabled in Kconfig. Signed-off-by: Lukasz Majewski --- arch/arm/include/asm/arch-mxs/gpio.h | 28 +++ drivers/gpio/mxs_gpio.c | 149 +++ 2 files changed, 177 insertions

[U-Boot] [PATCH v1 2/4] imx: net: Enable support for i.MX28 DM_ETH in the fec_mxc.c driver

2019-06-11 Thread Lukasz Majewski
The fec_mxc.c driver can be reused by i.MX28 when DM_ETH is enabled. One only needs to add proper compatible and dependency on FEC_MXC in the Kconfig. Signed-off-by: Lukasz Majewski --- drivers/net/Kconfig | 2 +- drivers/net/fec_mxc.c | 1 + 2 files changed, 2 insertions(+), 1 deletion

[U-Boot] [PATCH v1 4/4] imx: pinctrl: Add support for i.MX28 mxs pinctrl driver

2019-06-11 Thread Lukasz Majewski
nodes as subnodes, it was necessary to use 'dm_scan_fdt_dev()' (as a .bind method) to also make them 'visible' by the DM's "gpio_mxs" driver. Signed-off-by: Lukasz Majewski --- drivers/pinctrl/nxp/Kconfig | 10 +++ drivers/pinctrl/nxp/Makefile |

[U-Boot] [PATCH v1 1/4] DTS: imx28: Copy imx28 device tree related files from Linux kernel (v5.1.2)

2019-06-11 Thread Lukasz Majewski
This commit copies from the Linux kernel (tag v5.1.2) i.MX28 related device tree files. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx28-pinfunc.h | 506 arch/arm/dts/imx28.dtsi | 1330 ++ arch/arm/dts/mxs-pinfunc.h | 31

[U-Boot] [PATCH v1 0/4] DM: Convert i.MX28 gpio, pinmux and eth drivers to DM/DTS

2019-06-11 Thread Lukasz Majewski
-ci.org/lmajewski/u-boot-dfu/builds/543773376 Applied on top of u-boot/master branch SHA1: dbbb1c43f26cb28b64df80b72fffbaf2801e8a30 Lukasz Majewski (4): DTS: imx28: Copy imx28 device tree related files from Linux kernel (v5.1.2) imx: net: Enable support for i.MX28 DM_ETH in the fec

Re: [U-Boot] [U-Boot-Board-Maintainers] [ANN] U-Boot v2019.07-rc4 released

2019-06-10 Thread Lukasz Majewski
onth cycle or go > back to 2 months. I do prefer 3 months cycle. IMHO with 3 months cycle, we do have a time to fix things and adding new code is done in merge window. > After the last release while I did get some > feedback, the overall balance is still in the 3 month bucket. > >

Re: [U-Boot] [PATCH v4 12/13] clk: Port Linux common clock framework

2019-06-10 Thread Lukasz Majewski
ng > > necessary for U-boot's DM changes. > > If needed the code can be extended to support the "set" part of the > > clock management. > > Signed-off-by: Lukasz Majewski > > Applied to u-boot-imx, master, thanks ! Thanks for pulling this cod

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (10.06.2019)

2019-06-10 Thread Lukasz Majewski
Hi Marek, > On 6/10/19 2:15 PM, Lukasz Majewski wrote: > > On Mon, 10 Jun 2019 14:09:30 +0200 > > Marek Vasut wrote: > > > >> On 6/10/19 8:16 AM, Lukasz Majewski wrote: > >>> Dear Marek, > >>> > >>> The following c

Re: [U-Boot] [PATCH v1 07/11] DTS: Add imx6q-display5-u-boot.dtsi file with u-boot specific properties

2019-06-10 Thread Lukasz Majewski
Hi Adam, > On Sun, Jun 9, 2019 at 3:55 PM Lukasz Majewski wrote: > > > > This file setups UART5 based serial to be used as pre-relocation > > console in the U-Boot proper. > > > > On purpose pinux configuration is omitted here as it has been > > already don

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (10.06.2019)

2019-06-10 Thread Lukasz Majewski
On Mon, 10 Jun 2019 14:09:30 +0200 Marek Vasut wrote: > On 6/10/19 8:16 AM, Lukasz Majewski wrote: > > Dear Marek, > > > > The following changes since commit > > 6d277fb0ed145f82dd50cc6e99d2fa553a588c3b: > > > > spl: Correct SPL_SIZE_LIMIT Kconfi

[U-Boot] [GIT] Pull request: u-boot-dfu (10.06.2019)

2019-06-09 Thread Lukasz Majewski
fails cmd/usb_gadget_sdp.c | 11 --- common/spl/spl_dfu.c | 2 +- common/spl/spl_sdp.c | 6 +- 3 files changed, 14 insertions(+), 5 deletions(-) Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office

Re: [U-Boot] [PATCH v1 05/11] ARM: display5: Increase the pre-relocation malloc pool size to 4KiB

2019-06-09 Thread Lukasz Majewski
> > > The early malloc memory is necessary for handling parsing and setup > > of e.g. serial port device (and all its ancestors in DT tree). > > > > Signed-off-by: Lukasz Majewski > > --- > > > > configs/display5_defconfig | 3 +++ > > 1 file cha

Re: [U-Boot] [PATCH 1/6] ARM: dts: imx: imx53: Synchronize iMX53 DT with Linux

2019-06-09 Thread Lukasz Majewski
"disabled"; > }; > > - ipu_di1: port@3 { > - #address-cells = <1>; > - #size-cells = <0>; > - reg = <3>; > - > -

[U-Boot] [PATCH v1 09/11] DM: display5: Convert display5 board to use DM/DTS

2019-06-09 Thread Lukasz Majewski
y5_recovery.lst uuu_version 1.2.135 SDP: boot -f /srv/tftp/SPL SDPU: write -f /srv/tftp/u-boot-dtb.img -addr 0x1000 SDPU: jump -addr 0x1000 SDPU: done EOF sudo ./uuu/uuu display5_recovery.lst Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx6q-display5-u-boot.dtsi | 5 + arch/ar

[U-Boot] [PATCH v1 08/11] ARM: display5: Remove U_BOOT_DEVICE definition of serial_mxc

2019-06-09 Thread Lukasz Majewski
from provided DTS description. Signed-off-by: Lukasz Majewski --- board/liebherr/display5/display5.c | 9 - 1 file changed, 9 deletions(-) diff --git a/board/liebherr/display5/display5.c b/board/liebherr/display5/display5.c index d8383170d2..410d5bc782 100644 --- a/board/liebherr

[U-Boot] [PATCH v1 07/11] DTS: Add imx6q-display5-u-boot.dtsi file with u-boot specific properties

2019-06-09 Thread Lukasz Majewski
This file setups UART5 based serial to be used as pre-relocation console in the U-Boot proper. On purpose pinux configuration is omitted here as it has been already done in SPL. For early pre-relocation code we only need the serial device from DTS. Signed-off-by: Lukasz Majewski --- arch/arm

[U-Boot] [PATCH v1 10/11] ARM: display5: Remove UART initialization code after DM/DTS conversion (non-console)

2019-06-09 Thread Lukasz Majewski
This UART is not used in U-Boot, so there is no need to initialize it. Signed-off-by: Lukasz Majewski --- board/liebherr/display5/common.c | 13 - board/liebherr/display5/common.h | 1 - board/liebherr/display5/display5.c | 2 -- 3 files changed, 16 deletions(-) diff --git a

[U-Boot] [PATCH v1 03/11] ARM: display5: Fix CS check after moving some SPI related CONFIGs to Kconfig

2019-06-09 Thread Lukasz Majewski
. This commit fixes this check and allows proper SPI NOR flash operation in SPL. Signed-off-by: Lukasz Majewski --- board/liebherr/display5/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/liebherr/display5/common.c b/board/liebherr/display5/common.c index 4e

[U-Boot] [PATCH v1 11/11] ARM: display5: Remove common.c file (after DM/DTS U-Boot proper conversion)

2019-06-09 Thread Lukasz Majewski
The common.c file content can be safely moved to spl.c file after performing the DM/DTS conversion for the U-Boot proper. It contains the non DM/DTS setup code, which now is only used by SPL. Signed-off-by: Lukasz Majewski --- board/liebherr/display5/Makefile | 4 +- board/liebherr/display5

[U-Boot] [PATCH v1 06/11] DTS: imx: Add display5 board (imx6q based) device tree description (v5.1)

2019-06-09 Thread Lukasz Majewski
This commit ports from Linux kernel - tag: v5.1 - the device tree description for display5 board. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx6q-display5.dts | 352 1 file changed, 352 insertions(+) diff --git a/arch/arm/dts/imx6q-display5.dts b

[U-Boot] [PATCH v1 05/11] ARM: display5: Increase the pre-relocation malloc pool size to 4KiB

2019-06-09 Thread Lukasz Majewski
Porting more DTS code from Linux kernel for display5 board required increase of pre-relocation malloc pool size in U-Boot proper. The early malloc memory is necessary for handling parsing and setup of e.g. serial port device (and all its ancestors in DT tree). Signed-off-by: Lukasz Majewski

[U-Boot] [PATCH v1 04/11] gpio: Add missing parenthesis to the GPIO_TO_PORT define

2019-06-09 Thread Lukasz Majewski
Add missing parenthesis to the GPIO_TO_PORT macro. Signed-off-by: Lukasz Majewski --- drivers/gpio/mxc_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c index 8bd30c75b2..64ab7a303f 100644 --- a/drivers/gpio/mxc_gpio.c

[U-Boot] [PATCH v1 00/11] DM: display5: Convert display5 board to DM/DTS (including 'factory' setup)

2019-06-09 Thread Lukasz Majewski
ng size limit). Applied on top of u-boot/master branch SHA1: 6d277fb0ed145f82dd50cc6e99d2fa553a588c3b Lukasz Majewski (11): cosmetic: display5: Remove not needed comments cosmetic: Update comment in cmd/eeprom.c ARM: display5: Fix CS check after moving some SPI related CONFIGs to Kconfig gpio: Add missing parenthe

[U-Boot] [PATCH v1 02/11] cosmetic: Update comment in cmd/eeprom.c

2019-06-09 Thread Lukasz Majewski
This commit just corrects spelling of 'accessed' word in the EEPROM comment. Signed-off-by: Lukasz Majewski --- cmd/eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/eeprom.c b/cmd/eeprom.c index 7b1f81477f..19953df082 100644 --- a/cmd/eeprom.c +++ b/cm

[U-Boot] [PATCH v1 01/11] cosmetic: display5: Remove not needed comments

2019-06-09 Thread Lukasz Majewski
Some comments are not needed anymore after Kconfig automated conversion. Signed-off-by: Lukasz Majewski --- include/configs/display5.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/configs/display5.h b/include/configs/display5.h index 5e982b8d27..5dbe5b8528 100644 --- a

Re: [U-Boot] [PATCH] spl: imx6: Provide a SPL_SIZE_LIMIT default

2019-06-08 Thread Lukasz Majewski
nt "Maximum size of SPL image" > depends on SPL > + default 69632 if ARCH_MX6 > default 0 > help > Specifies the maximum length of the U-Boot SPL image. Reviewed-by: Lukasz Majewski Best regards, Lukasz Majewski -- DENX Software E

Re: [U-Boot] [PATCH 1/2] watchdog: Split WDT from SPL_WDT

2019-06-07 Thread Lukasz Majewski
Hi Marek, > On 6/6/19 10:16 AM, Lukasz Majewski wrote: > > On Thu, 6 Jun 2019 10:08:04 +0200 > > Marek Vasut wrote: > > > >> On 6/6/19 10:00 AM, Lukasz Majewski wrote: > >>> On Thu, 6 Jun 2019 09:26:04 +0200 > >>> Marek Vasut wrote

Re: [U-Boot] [PATCH 1/2] watchdog: Split WDT from SPL_WDT

2019-06-06 Thread Lukasz Majewski
On Thu, 6 Jun 2019 10:23:06 +0200 Marek Vasut wrote: > On 6/6/19 10:16 AM, Lukasz Majewski wrote: > > On Thu, 6 Jun 2019 10:08:04 +0200 > > Marek Vasut wrote: > > > >> On 6/6/19 10:00 AM, Lukasz Majewski wrote: > >>> On Thu, 6 Jun 20

Re: [U-Boot] [PATCH 1/2] watchdog: Split WDT from SPL_WDT

2019-06-06 Thread Lukasz Majewski
On Thu, 6 Jun 2019 10:08:04 +0200 Marek Vasut wrote: > On 6/6/19 10:00 AM, Lukasz Majewski wrote: > > On Thu, 6 Jun 2019 09:26:04 +0200 > > Marek Vasut wrote: > > > >> On 6/6/19 9:09 AM, Lukasz Majewski wrote: > >>> On Wed, 5 Jun 2019 1

Re: [U-Boot] [PATCH 1/2] watchdog: Split WDT from SPL_WDT

2019-06-06 Thread Lukasz Majewski
On Thu, 6 Jun 2019 09:26:04 +0200 Marek Vasut wrote: > On 6/6/19 9:09 AM, Lukasz Majewski wrote: > > On Wed, 5 Jun 2019 18:24:11 +0200 > > Lukasz Majewski wrote: > > > >> Hi Marek, > >> > >>> On Sun, 12 May 2019 23:34:52 +0

Re: [U-Boot] [PATCH 1/2] watchdog: Split WDT from SPL_WDT

2019-06-06 Thread Lukasz Majewski
On Wed, 5 Jun 2019 18:24:11 +0200 Lukasz Majewski wrote: > Hi Marek, > > > On Sun, 12 May 2019 23:34:52 +0200 > > Marek Vasut wrote: > > > > > Use CONFIG_IS_ENABLED(WDT) to permit use of WDT in SPL without DM, > > > while the full U-Boot can use

Re: [U-Boot] [EXT] Re: [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-06-06 Thread Lukasz Majewski
nts (and it may or may not seem contradictory > > with my opinions in the secure boot thread going on currently on > > the Linaro Boot Architecture list). Yes, it would and IMHO is > > better when we use free and open software to solve our problems > > (and an aside to the

Re: [U-Boot] [PATCH 1/2] watchdog: Split WDT from SPL_WDT

2019-06-05 Thread Lukasz Majewski
e *watchdog_dev; > > #endif > > } gd_t; > > diff --git a/include/wdt.h b/include/wdt.h > > index aa77d3e9b4..5bcff24ab3 100644 > > --- a/include/wdt.h > > +++ b/include/wdt.h > > @@ -106,7 +106,7 @@ struct wdt_ops { > > int (*expire_now)(struct udev

Re: [U-Boot] [PATCH] imx: Select the pinctrl drivers when DM is used

2019-06-05 Thread Lukasz Majewski
t; > select SYS_FSL_SEC_COMPAT_4 > > select SYS_FSL_SEC_LE > > @@ -818,6 +824,8 @@ config ARCH_MX5 > > bool "Freescale MX5" > > select BOARD_EARLY_INIT_F > > select CPU_V7A > > + select PINCTRL if DM > > + select

Re: [U-Boot] [PATCH v2 3/3] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

2019-06-05 Thread Lukasz Majewski
Hi Sjoerd, > On Wed, 2019-06-05 at 11:40 +0200, Lukasz Majewski wrote: > > Hi Fabio, Sjoerd > > > > > On Tue, Jun 4, 2019 at 5:41 PM Sjoerd Simons > > > wrote: > > > > > > > Small steps right; Ooi what imx_usb_loader > > > &

Re: [U-Boot] [PATCH v2 3/3] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

2019-06-05 Thread Lukasz Majewski
o ./imx_usb SPL > > and then > > sudo ./imx_usb u-boot-dtb.img > > I suggest you to try U-Boot 2019.01 on a mx6sabreauto first. > Tested-by: Lukasz Majewski Test HW: i.MX6Q Display5 factory setup. However, one thing puzzles me - the VID / PID used.When I run uuu (mfgto

Re: [U-Boot] [PATCH v2 3/3] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

2019-06-04 Thread Lukasz Majewski
d to find a way to insert IVT in > the FIT image. > > Tested with UUU and it worked, so this is progress :-) > > Tested-by: Fabio Estevam > > Thanks > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/

Re: [U-Boot] [PATCH 1/2] watchdog: Split WDT from SPL_WDT

2019-06-04 Thread Lukasz Majewski
} gd_t; > diff --git a/include/wdt.h b/include/wdt.h > index aa77d3e9b4..5bcff24ab3 100644 > --- a/include/wdt.h > +++ b/include/wdt.h > @@ -106,7 +106,7 @@ struct wdt_ops { > int (*expire_now)(struct udevice *dev, ulong flags); > }; > > -#if defined(CONFIG

Re: [U-Boot] [PATCH 2/2] watchdog: imx: Add DM support

2019-06-04 Thread Lukasz Majewski
; > } > + > +static const struct wdt_ops imx_wdt_ops = { > + .start = imx_wdt_start, > + .reset = imx_wdt_reset, > + .expire_now = imx_wdt_expire_now, > +}; > + > +static const struct udevice_id imx_wdt_ids[] = { > + { .compatible =

[U-Boot] [PATCH] IMX: serial: dm: Set DM_FLAG_PRE_RELOC in the IMX uart driver

2019-06-04 Thread Lukasz Majewski
rresponding device tree description (OF_CONTROL). In such case the aforementioned U_BOOT_DEVICE(mxc_serial) definition is used. Other boards/SoCs have this flag set unconditionally for serial driver. Signed-off-by: Lukasz Majewski --- drivers/serial/serial_mxc.c | 2 -- 1 file changed, 2 deleti

Re: [U-Boot] [PATCH v3 0/7] Add STM32 Cortex-M4 remoteproc driver

2019-06-04 Thread Lukasz Majewski
| 20 ++- > include/fdt_support.h | 24 > include/remoteproc.h | 146 +-- > test/dm/remoteproc.c | 122 > test/dm/test-fdt.c| 12 ++ 20 files changed, 743 > insertions(+), 42

Re: [U-Boot] [EXT] Re: [PATCH 1/2] dm: i2c: Add a flag that not call i2c_setup_offset

2019-06-04 Thread Lukasz Majewski
On Tue, 4 Jun 2019 07:59:44 + Chuanhua Han wrote: > > -Original Message- > > From: Lukasz Majewski > > Sent: 2019年6月4日 15:56 > > To: Chuanhua Han > > Cc: h...@denx.de; u-boot@lists.denx.de; Biwen Li > > Subject: Re: [EXT] Re: [U-Boot] [PATCH 1

Re: [U-Boot] [EXT] Re: [PATCH 1/2] dm: i2c: Add a flag that not call i2c_setup_offset

2019-06-04 Thread Lukasz Majewski
On Tue, 4 Jun 2019 06:48:59 + Chuanhua Han wrote: > > -Original Message- > > From: Lukasz Majewski > > Sent: 2019年6月4日 14:46 > > To: Chuanhua Han > > Cc: h...@denx.de; u-boot@lists.denx.de; Biwen Li > > Subject: Re: [EXT] Re: [U-Boot] [PATCH 1

Re: [U-Boot] [EXT] Re: [PATCH 1/2] dm: i2c: Add a flag that not call i2c_setup_offset

2019-06-03 Thread Lukasz Majewski
On Tue, 4 Jun 2019 02:20:49 + Chuanhua Han wrote: > > -Original Message- > > From: Lukasz Majewski > > Sent: 2019年6月4日 6:08 > > To: Chuanhua Han > > Cc: h...@denx.de; u-boot@lists.denx.de; Biwen Li > > Subject: [EXT] Re: [U-Boot] [PATCH 1/2] d

Re: [U-Boot] [PATCH 1/2] dm: i2c: Add a flag that not call i2c_setup_offset

2019-06-03 Thread Lukasz Majewski
te */ Aren't those two above flags describe exactly what you need? They send address for each read/written byte. (or do you need to send more than a single byte)? > DM_I2C_CHIP_RD_NO_I2C_SETUP_OFFSET = 1 << 3, > /* No i2c_setup_offset*/ }; > > struct udevice;

Re: [U-Boot] [PATCH 4/5] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP

2019-06-03 Thread Lukasz Majewski
Hi Sjoerd, > From: Frieder Schrempf > > Add support for loading u-boot FIT images over the USB SPD protocol in > the SPL > > [Small fixes to build] > Signed-off-by: Sjoerd Simons Reviewed-by: Lukasz Majewski > --- > > common/spl/spl_sdp.c | 11 ++

Re: [U-Boot] [PATCH 0/5] Enable usage of SDP for i.MX6 Sabre Auto Boards

2019-06-03 Thread Lukasz Majewski
F for video > > common/spl/spl_sdp.c | 11 +++-- > configs/mx6sabreauto_defconfig | 8 +-- > drivers/usb/gadget/f_sdp.c | 41 > +- include/sdp.h | > 4 +++- 4 files changed, 53 insertions(+), 11 deletions(-) > Best regards, Lu

Re: [U-Boot] [PATCH v3 00/11] clk: Port Linux common clock framework [CCF] to U-boot (tag: 5.0-rc3)

2019-06-03 Thread Lukasz Majewski
v3 00/11] clk: Port Linux common clock > > framework [CCF] to U-boot (tag: 5.0-rc3) > > > > Hi Lukasz, > > > > On Tue, 21 May 2019 at 08:48, Lukasz Majewski > > wrote: > > > > > > Hi Simon, > > > > > > > Hi L

Re: [U-Boot] [v4, 0/5] Split fsl_esdhc driver for i.MX

2019-05-29 Thread Lukasz Majewski
+- > configs/zc5601_defconfig | 2 +- > drivers/mmc/Kconfig | 10 +- > drivers/mmc/Makefile | 1 + > drivers/mmc/fsl_esdhc.c | 586 > +- drivers/mmc/{fsl_esdhc.c =>

Re: [U-Boot] [v3, 5/5] mmc: fsl_esdhc_imx: drop useless code

2019-05-29 Thread Lukasz Majewski
> #endif > > @@ -1654,7 +1567,6 @@ static const struct udevice_id fsl_esdhc_ids[] > = { { .compatible = "fsl,imx6q-usdhc", }, > { .compatible = "fsl,imx7d-usdhc", .data = > (ulong)&usdhc_imx7d_data,}, { .compatible = "fsl,imx7ulp-usdhc",

Re: [U-Boot] [v3, 4/5] mmc: fsl_esdhc: drop i.MX code

2019-05-29 Thread Lukasz Majewski
MC_MODE_HS_52MHz | MMC_MODE_HS, > -}; > - > static const struct udevice_id fsl_esdhc_ids[] = { > - { .compatible = "fsl,imx53-esdhc", }, > - { .compatible = "fsl,imx6ul-usdhc", }, > - { .compatible = "fsl,imx6sx-usdhc", }, > - { .compatible = "

Re: [U-Boot] [v3, 3/5] Convert to use fsl_esdhc_imx for i.MX platforms

2019-05-29 Thread Lukasz Majewski
On Tue, 21 May 2019 08:52:23 + "Y.b. Lu" wrote: > Converted to use fsl_esdhc_imx for i.MX platforms. > > Signed-off-by: Yangbo Lu > --- > Changes for v2: > - Rebased. > Changes for v3: > - Rebased. > --- > arch/arm/cpu/arm1136/mx35/generic.c | 10 +- > arc

Re: [U-Boot] [v3, 2/5] mmc: split fsl_esdhc driver for i.MX

2019-05-29 Thread Lukasz Majewski
ne int fsl_esdhc_mmc_init(bd_t *bis) { return -ENOSYS; } > static inline void fdt_fixup_esdhc(void *blob, bd_t *bd) {} > -#endif /* CONFIG_FSL_ESDHC */ > +#endif /* CONFIG_FSL_ESDHC_IMX */ > void __noreturn mmc_boot(void); > void mmc_spl_load_image(uint32_t offs, unsigned int siz

Re: [U-Boot] [v3, 1/5] Move CONFIG_FSL_ESDHC to defconfig

2019-05-29 Thread Lukasz Majewski
On Tue, 21 May 2019 08:51:42 + "Y.b. Lu" wrote: > Moved CONFIG_FSL_ESDHC from header files to defconfig files. > > Signed-off-by: Yangbo Lu > --- > Changes for v2: > - Rebased. > Changes for v3: > - Rebased. Reviewed-by:

Re: [U-Boot] [v3, 0/5] Split fsl_esdhc driver for i.MX

2019-05-29 Thread Lukasz Majewski
_defconfig | 2 +- > drivers/mmc/Kconfig | 6 + > drivers/mmc/Makefile | 1 + > drivers/mmc/fsl_esdhc.c | 609 > +- drivers/mmc/{fsl_esdhc.c => fsl_esdhc_imx.c} | &

Re: [U-Boot] [PATCH] configs: Remove CONFIG_SPL_FS_EXT4 for all MX6 platforms

2019-05-26 Thread Lukasz Majewski
Hi Tom, > On Sun, May 26, 2019 at 01:46:53PM +0200, Lukasz Majewski wrote: > > Hi Tom, > > > > > On Sun, May 26, 2019 at 10:22:00AM +0200, Lukasz Majewski wrote: > > > > Dear Marek, Tom, > > > > > > > > > On 5/26/19 1:23 AM

Re: [U-Boot] [PATCH] configs: Remove CONFIG_SPL_FS_EXT4 for all MX6 platforms

2019-05-26 Thread Lukasz Majewski
Hi Tom, > On Sun, May 26, 2019 at 10:22:00AM +0200, Lukasz Majewski wrote: > > Dear Marek, Tom, > > > > > On 5/26/19 1:23 AM, Tom Rini wrote: > > > > On Sun, May 26, 2019 at 01:20:34AM +0200, Marek Vasut wrote: > > > >> On 5/26/19 1:

Re: [U-Boot] [PATCH] configs: Remove CONFIG_SPL_FS_EXT4 for all MX6 platforms

2019-05-26 Thread Lukasz Majewski
; > Novena is certainly a no. Since I use a couple of wandboards, those > are no as well. > > But I do not want to see useful functionality removed from SPL only to > make space for useless DM/DT bloat. Temporarily band-aiding this real > problem by removing functionality is a no-go, n

Re: [U-Boot] [PATCH] imx: Select the pinctrl drivers when DM is used

2019-05-24 Thread Lukasz Majewski
t PINCTRL if DM > + select PINCTRL_IMX6 if DM > select SYS_FSL_HAS_SEC if SECURE_BOOT > select SYS_FSL_SEC_COMPAT_4 > select SYS_FSL_SEC_LE > @@ -818,6 +824,8 @@ config ARCH_MX5 > bool "Freescale MX5" > select BOARD_EARLY_INIT_F > select

Re: [U-Boot] [PATCH v2 2/3] i2c: mxc_i2c: The i2c controller generates a stop signal before reading the register data

2019-05-24 Thread Lukasz Majewski
rn ret; > + > + /* Start I2C transaction */ > + temp = readb(base + (I2CR << reg_shift)); > + temp |= I2CR_MSTA; > + writeb(temp, base + (I2CR << reg_shift)); > + > +

Re: [U-Boot] [v3, 0/5] Split fsl_esdhc driver for i.MX

2019-05-23 Thread Lukasz Majewski
| 2 +- > > configs/variscite_dart6ul_defconfig | 2 +- > > configs/vf610twr_defconfig| 2 +- > > configs/vf610twr_nand_defconfig | 2 +- > > configs/vining_2000_defconfig | 2 +- > > configs/w

Re: [U-Boot] [EXT] Re: [PATCH] i2c: pcf2127: fix bug that read wrong time

2019-05-22 Thread Lukasz Majewski
Hi Heiko, > Hello Chuanhua Han, > > Am 22.05.2019 um 14:45 schrieb Chuanhua Han: > > > > > >> -Original Message----- > >> From: Lukasz Majewski > >> Sent: 2019年5月22日 19:32 > >> To: Chuanhua Han > >> Cc: h...@denx.de

Re: [U-Boot] [EXT] Re: [PATCH] i2c: pcf2127: fix bug that read wrong time

2019-05-22 Thread Lukasz Majewski
On Wed, 22 May 2019 09:31:35 + Chuanhua Han wrote: > > -Original Message- > > From: Lukasz Majewski > > Sent: 2019年5月22日 16:41 > > To: Chuanhua Han > > Cc: h...@denx.de; u-boot@lists.denx.de; Biwen Li ; > > s...@chromium.org; Stefano Babic &g

Re: [U-Boot] [EXT] Re: [PATCH] i2c: pcf2127: fix bug that read wrong time

2019-05-22 Thread Lukasz Majewski
Hi Chuanhua, > > -Original Message- > > From: Lukasz Majewski > > Sent: 2019年5月22日 15:16 > > To: Chuanhua Han > > Cc: h...@denx.de; u-boot@lists.denx.de; Biwen Li ; > > s...@chromium.org > > Subject: [EXT] Re: [PATCH] i2c: pcf2127: fix bug tha

Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-05-22 Thread Lukasz Majewski
payload > images, but I think directly generating a container image is simpler, > because we already have SPL been wrapped into container format. > I just wanted to understand the issue and help to get the simplest possible solution. > Thanks, > Peng. > > > > > > > >

Re: [U-Boot] [PATCH] i2c: pcf2127: fix bug that read wrong time

2019-05-22 Thread Lukasz Majewski
> @@ -104,6 +105,7 @@ static const struct udevice_id pcf2127_rtc_ids[] > = { U_BOOT_DRIVER(rtc_pcf2127) = { > .name = "rtc-pcf2127", > .id = UCLASS_RTC, > + .probe = pcf2127_probe, > .of_match = pcf2127_rtc_ids, > .ops= &pcf2127_rtc_ops,

Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-05-21 Thread Lukasz Majewski
o a > container format file using CST. I do not know how Linux kernel > itself authenticate others. > > Thanks, > Peng. > > > > > > > > > Thanks, > > > Peng. > > > > > > > > > > > > > > > >

Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-05-21 Thread Lukasz Majewski
Hi Peng, > Hi Lukasz, > > > -Original Message- > > From: Lukasz Majewski [mailto:lu...@denx.de] > > Sent: 2019年5月21日 16:33 > > To: Peng Fan > > Cc: Marek Vasut ; Marek Vasut > > ; Simon Glass ; > > u-boot@lists.denx.de; Tien Fong Chee ;

Re: [U-Boot] Cannot boot mx6qsabred with 2019.07-rc2

2019-05-21 Thread Lukasz Majewski
R=0x1200 > > > CONFIG_FASTBOOT_BUF_SIZE=0x1000 > > > > > > SPL: 68608 (67 kB) > > > Result: boots correctly > > > > > > I will send a v2 removing CONFIG_SPL_DM. > > > > So what is the real direction moving to use SPL

[U-Boot] [PATCH v1 4/5] ARM: imx: Convert mccmon6 to use fitImage instead of uImage+DTB

2019-05-21 Thread Lukasz Majewski
This commit enabled support for fitImage on mccmon6 when we switch to DT/DTS (including falcon mode). Signed-off-by: Lukasz Majewski --- board/liebherr/mccmon6/spl.c | 7 ++ configs/mccmon6_nor_defconfig | 8 +- configs/mccmon6_sd_defconfig | 6 - include/configs/mccmon6.h

[U-Boot] [PATCH v1 2/5] ARM: imx: Decouple mccmon6's SPL and u-boot proper code

2019-05-21 Thread Lukasz Majewski
The mccmon6 has been used a "mixed" approach between SPL and U-Boot proper sources. This commit decoupes SPL and u-boot proper, which allows clear distinction between those two code bases and facilitates conversion to DM/DTS on this particular board. Signed-off-by: Lukasz Majewski -

[U-Boot] [PATCH v1 5/5] mccmon6: defconfig: nor: Enable usage of *_TINY_* drivers in SPL

2019-05-21 Thread Lukasz Majewski
After this change the SPL size has been reduced from 38K to 34K. Signed-off-by: Lukasz Majewski --- configs/mccmon6_nor_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/mccmon6_nor_defconfig b/configs/mccmon6_nor_defconfig index 62e957c0cf..ffb1025a13 100644 --- a

[U-Boot] [PATCH v1 3/5] spl: nor: Provide falcon boot support for NOR memories

2019-05-21 Thread Lukasz Majewski
-by: Lukasz Majewski --- common/spl/spl_nor.c | 5 + 1 file changed, 5 insertions(+) diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c index 969e319de0..de58c43101 100644 --- a/common/spl/spl_nor.c +++ b/common/spl/spl_nor.c @@ -48,6 +48,11 @@ static int spl_nor_load_image(struct

[U-Boot] [PATCH v1 1/5] ARM: imx: Covnert mccmon6 to use DM/DTS in the u-boot proper

2019-05-21 Thread Lukasz Majewski
This commit converts mccmon6's u-boot proper (in a single commit to avoid build breaks) to use solely DM/DTS. The DTS description of the mccmon6 has been ported from Linux kernel (v4.20, SHA1: 8fe28cb58bcb235034b64cbbb7550a8a43fd88be) Signed-off-by: Lukasz Majewski --- arch/arm/dts/Mak

[U-Boot] [PATCH v1 0/5] imx: dm: Update mccmon6 board to only use DM/DTS in U-Boot proper

2019-05-21 Thread Lukasz Majewski
h/1100582/ http://patchwork.ozlabs.org/patch/1100584/ http://patchwork.ozlabs.org/patch/1100583/ On top of above patches this series shall be applied. Lukasz Majewski (5): ARM: imx: Covnert mccmon6 to use DM/DTS in the u-boot proper ARM: imx: Decouple mccmon6's SPL and u-boot proper code

Re: [U-Boot] [PATCH v3 00/11] clk: Port Linux common clock framework [CCF] to U-boot (tag: 5.0-rc3)

2019-05-21 Thread Lukasz Majewski
Hi Simon, > Hi Lukasz, > > On Sun, 19 May 2019 at 15:03, Lukasz Majewski wrote: > > > > Hi Simon, > > > > > Hi Lukasz, > > > > > > On Sat, 18 May 2019 at 15:28, Lukasz Majewski > > > wrote: > > > > > > > &g

Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-05-21 Thread Lukasz Majewski
Hi Marek, > On 5/21/19 10:32 AM, Lukasz Majewski wrote: > > Hi Peng, > > > >>> Subject: Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX > >>> container format file > >>> > >>> On 5/21/19 4:55 AM, Peng Fan wrote: > >

Re: [U-Boot] [PATCH v2 00/18] Improvement for the DWC3 USB generic driver and fixes for the K2 platforms

2019-05-21 Thread Lukasz Majewski
| 1 + > test/dm/nop.c | 73 + > 47 files changed, 421 insertions(+), 253 deletions(-) create mode > 100644 arch/arm/dts/keystone-k2l-evm-u-boot.dtsi delete mode 100644 > drivers/usb/host/xhci-zynqmp.c rename {drivers/usb/

Re: [U-Boot] [PATCH v2 2/2] cmd: Add 'bcb' command to read/modify/write BCB fields

2019-05-21 Thread Lukasz Majewski
On Tue, 21 May 2019 11:13:52 +0200 Eugeniu Rosca wrote: > Hi Lukasz, > > On Tue, May 21, 2019 at 10:02:34AM +0100, Alex Kiernan wrote: > > On Tue, May 21, 2019 at 9:37 AM Lukasz Majewski > > wrote: > > > > > > Hi Alex, > > > >

Re: [U-Boot] [PATCH v2 2/2] cmd: Add 'bcb' command to read/modify/write BCB fields

2019-05-21 Thread Lukasz Majewski
rom Linux user space? Now those envs even support setting default values for u-boot (as there is now separate library used for it). Moreover there is OE/Yocto's recipe 'u-boot-fw-utils' which can be easily used and installed. > but this looks like something that might well give

Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-05-21 Thread Lukasz Majewski
e to make use > > of these secure bits if it cannot call the bootrom anymore ? > > sc_seco_authenticate on i.MX8 will always be available. It is > exported by a runtime firmware running on a Cortex-M core inside > i.MX8. The API will do authentication, its accepts

Re: [U-Boot] [PATCH] Revert "mmc: fsl_esdhc: fix sd/mmc ddr mode clock setting issue"

2019-05-20 Thread Lukasz Majewski
bject: RE: [PATCH] Revert "mmc: fsl_esdhc: fix sd/mmc ddr > > > > > mode clock setting issue" > > > > > > > > > > > Subject: Re: [PATCH] Revert "mmc: fsl_esdhc: fix sd/mmc ddr > > > > > > mode clock sett

Re: [U-Boot] [PATCH] Revert "mmc: fsl_esdhc: fix sd/mmc ddr mode clock setting issue"

2019-05-19 Thread Lukasz Majewski
uot; > > > > > > > Subject: Re: [PATCH] Revert "mmc: fsl_esdhc: fix sd/mmc ddr mode > > > > clock setting issue" > > > > > > > > On Wed, 8 May 2019 13:59:14 + > > > > Peng Fan wrote: > > > > > &g

Re: [U-Boot] [PATCH v3 00/11] clk: Port Linux common clock framework [CCF] to U-boot (tag: 5.0-rc3)

2019-05-19 Thread Lukasz Majewski
Hi Simon, > Hi Lukasz, > > On Sat, 18 May 2019 at 15:28, Lukasz Majewski wrote: > > > > Hi Simon, > > > > This is not the newest patch set version of CCF (v3 vs. v4), but the > > comments/issues apply. > > > > > Hi Lukasz, > > > &

Re: [U-Boot] [PATCH v4 00/13] clk: Port Linux common clock framework [CCF] to U-boot (tag: 5.0-rc3)

2019-05-19 Thread Lukasz Majewski
Hi Simon, > Hi Lukasz, > > On Sat, 18 May 2019 at 14:49, Lukasz Majewski wrote: > > > > Hi Simon, > > > > > kHi Lukasz, > > > > > > On Thu, 16 May 2019 at 16:11, Lukasz Majewski > > > wrote: > > > > > > &

Re: [U-Boot] [PATCH v3 00/11] clk: Port Linux common clock framework [CCF] to U-boot (tag: 5.0-rc3)

2019-05-18 Thread Lukasz Majewski
Hi Simon, This is not the newest patch set version of CCF (v3 vs. v4), but the comments/issues apply. > Hi Lukasz, > > On Thu, 25 Apr 2019 at 04:30, Lukasz Majewski wrote: > > > > This patch series brings the files from Linux kernel to provide > > clocks support

<    4   5   6   7   8   9   10   11   12   13   >