[U-Boot] [PATCH 5/7] configs: tinker: Drop explicit SPL_TEXT

2019-09-17 Thread Jagan Teki
SPL_TEXT_BASE is 0x0 by default, based on the kconfig definition move in below commit. "configs: move CONFIG_SPL_TEXT_BASE to Kconfig" (sha1: f89d6133eef2e068f9c33853b6584d7fcbfa9d2e) So, don't define it explicitly. Signed-off-by: Jagan Teki --- configs/tinker-rk3288_defconfig | 1 - 1 file

[U-Boot] [PATCH 7/7] rockchip: rk3288-tinker: Attach missing peripherals at SPL

2019-09-17 Thread Jagan Teki
From: Michael Trimarchi Tinker board needs to mux all the sdmmc gpio and activate the regulator connected to bank 7. Remove all the bank that are not in use and mark them as dm,spl so-that it would initialize at SPL. Signed-off-by: Michael Trimarchi Signed-off-by: Jagan Teki ---

[U-Boot] [PATCH 6/7] configs: tinker: Enable SDRAM, SPL stack

2019-09-17 Thread Jagan Teki
SPL sets up SDRAM while in its board_init_f() function, it is possible for the stack to move there before board_init_r() is reached. So it is required to reserve the stack for SDRAM, with a proper location and size otherwise any operations during SPL handoff would leads to failure. On, this

[U-Boot] [PATCH 2/7] configs: vyasa-rk3288: Fix SPL_TEXT_BASE

2019-09-17 Thread Jagan Teki
The initial Vyasa-rk3288 TPL implementation is to reuse the SPL_TEXT_BASE for TPL and SPL as 0x0 and 0xff704000 respectively. But the below commit implements the reverse way of using TEXT_BASE's like 0xff704000 for TPL and 0x0 for SPL and which indeed update the SPL_TEXT_BASE for vyasa-rk3288

[U-Boot] [PATCH 1/7] rockchip: rk3288: vyasa: Drop ROCKCHIP_BROM_HELPER selection

2019-09-17 Thread Jagan Teki
ROCKCHIP_BROM_HELPER is selected as if TPL/SPL ROCKCHIP_BACK_TO_BROM has been defined, so drop the explicit enablement for vyasa board. This change is supposed to missed during config move to other locations, and missed to drop the same. Signed-off-by: Jagan Teki ---

[U-Boot] [PATCH v2 3/3] ubi: Add "skipcheck" command to set/clear this bit in the UBI volume hdr

2019-09-17 Thread Stefan Roese
U-Boot now supports the "skip_check" flag to optionally skip the CRC check at open time. Currently its only possible to set this bit upon UBI volume creation. But it might be very useful to also set this bit on already installed systems (e.g. field upgrade) to make also use of the boot-time

Re: [U-Boot] [PATCH v2] cmd: pxe: Use internal FDT if retrieving from FDTDIR fails

2019-09-17 Thread Anton Leontiev
2019-09-03 19:18, Stephen Warren : > Is it possible/sensible to distinguish between "file not found" and > "error during retrieval"? "File not found" indicates the case you care > about, and continuing to use a built-in DT makes sense here. "Error > during retrieval" indicates that the file was

Re: [U-Boot] [PATCH] core: device: support multiple power domains for one device

2019-09-17 Thread Peng Fan
Hi Simon, > Subject: Re: [PATCH] core: device: support multiple power domains for one > device > > Hi Peng, > > On Mon, 2 Sep 2019 at 04:19, Peng Fan wrote: > > > > When device has multiple power domains, power_domain_get could not > > able to support that. So let's iterate each power domain

[U-Boot] [PATCH] armv7: ls102xa: Correct entry of SCFG_QSPI_CLKSEL

2019-09-17 Thread Kuldeep Singh
Previous value "0xC" was reserved. Hence correcting it to new value "0x5" which is ClusterPLL/16. Signed-off-by: Ashish Kumar Signed-off-by: Kuldeep Singh --- arch/arm/include/asm/arch-ls102xa/immap_ls102xa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [U-Boot] [PATCH v2 3/7] clk: imx8: Update imx8 clock driver

2019-09-17 Thread Peng Fan
Hi All, > Subject: [PATCH v2 3/7] clk: imx8: Update imx8 clock driver Sorry to bring back this topic. This patch is not converting to CCF following Linux, but it could satisfy u-boot usage and make more feature work. I checked Linux i.MX8 CCF recently, although Linux upstream has i.MX8 CCF

Re: [U-Boot] [PATCH 3/4] imx6: spl: Reduce SPL limit size in case CONFIG_SECURE_BOOT is enabled

2019-09-17 Thread Jagan Teki
Hi Breno, On Thu, Jul 18, 2019 at 6:06 PM Breno Matheus Lima wrote: > > In case CONFIG_SECURE_BOOT is enabled we need to limit the SPL size to > avoid a possible HAB failure event: > > - HAB Event 1 - > event data: > 0xdb 0x00 0x14 0x42 0x33 0x22 0x33 0x00 >

Re: [U-Boot] [PATCH v2 3/7] clk: imx8: Update imx8 clock driver

2019-09-17 Thread Lukasz Majewski
Hi Peng, > Hi All, > > > Subject: [PATCH v2 3/7] clk: imx8: Update imx8 clock driver > > Sorry to bring back this topic. > > This patch is not converting to CCF following Linux, but it could > satisfy u-boot usage and make more feature work. > > I checked Linux i.MX8 CCF recently, although

Re: [U-Boot] imx6dl_mamoj broken

2019-09-17 Thread Stefano Babic
Hi Robert, On 17/09/19 01:37, Robert Hancock wrote: > On 2019-09-16 3:08 p.m., Stefano Babic wrote: >> Hi Anatolji, >> >> On 16/09/19 22:20, Anatolij Gustschin wrote: >>> Hi Jagan, >>> >>> On Mon, 16 Sep 2019 13:36:03 +0530 >>> Jagan Teki ja...@amarulasolutions.com wrote: >>> ... >   

[U-Boot] [PATCH 1/5] configs: stm32f429-discovery: Disable CONFIG_NET flag

2019-09-17 Thread Patrice Chotard
Network support was never added on this board, disable CONFIG_NET flag to avoid following warning: = WARNING == This board does not use CONFIG_DM_ETH (Driver Model for Ethernet drivers). Please update the board to use CONFIG_DM_ETH before the v2020.07

[U-Boot] [PATCH 5/5] configs: stm32h743-eval: Disable CONFIG_NET flag

2019-09-17 Thread Patrice Chotard
Network support was never added on this board, disable CONFIG_NET flag to avoid following warning: = WARNING == This board does not use CONFIG_DM_ETH (Driver Model for Ethernet drivers). Please update the board to use CONFIG_DM_ETH before the v2020.07

[U-Boot] [PATCH 0/5] Disable CONFIG_NET flag for STM32F4 and STM32H7 boards

2019-09-17 Thread Patrice Chotard
All STM32F4 and STM32H7 boards have CONFIG_NET flags enable in their defconfig whereas network support was never added. Simply disable CONFIG_NET to avoid following compilation warning: = WARNING == This board does not use CONFIG_DM_ETH (Driver Model for

Re: [U-Boot] [PATCH v2 8/9] spl: Introduce SPL_DM_GPIO Kconfig define

2019-09-17 Thread Lukasz Majewski
Hi Simon, > On Sun, 18 Aug 2019 at 19:30, Peng Fan wrote: > > > > > Subject: [PATCH v2 8/9] spl: Introduce SPL_DM_GPIO Kconfig define > > > > > > This define indicates if DM_GPIO shall be supported in SPL. This > > > allows proper operation of DM converted GPIO drivers in SPL, > > > which use

[U-Boot] [PATCH 0/7] rk3288: tinker/vyasa: Fixes for TPL/SPL boot

2019-09-17 Thread Jagan Teki
These boot failure as encounter even from v2019.07 release, I have seen them now due to some requirement on feature additions. All these patches are fixing the respective TPL/SPL boot failures on tinker and vyasa rk3288 boards. patch 3/7 make dram init available for TPL build, if TPL/SPL

[U-Boot] [PATCH 4/7] rockchip: spi-boot-order: Trival fix to newline missing

2019-09-17 Thread Jagan Teki
newline \n was missed in fdt_path_offset, error loop. Signed-off-by: Jagan Teki --- arch/arm/mach-rockchip/spl-boot-order.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/spl-boot-order.c b/arch/arm/mach-rockchip/spl-boot-order.c index

[U-Boot] [PATCH 3/7] ram: rk3288: Initialize dram for TPL builds

2019-09-17 Thread Jagan Teki
Few of the rk3288 boards like tinker, vyasa are using TPL, SPL bootchain so the dram initialization must needed during TPL stage. So add proper ifconstruct to satisfy both TPL, SPL and SPL-only bootchain boards. This eventually fixing TPL to SPL handoff, otherwise missing dram initilaztion at TPL

[U-Boot] [PATCH] configs: rk3288: Increase bootm length

2019-09-17 Thread Jagan Teki
Increase bootm length to 64MB satisfy max gunzip size, even other rockchip and know SoC are following same length check. Reported-by: Michael Trimarchi Signed-off-by: Jagan Teki --- include/configs/rk3288_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [U-Boot] [PATCH v2 2/4] libfdt: return correct value if #size-cells property is not present

2019-09-17 Thread Matthias Brugger
Hi Simon, On 17/09/2019 07:48, Simon Glass wrote: > Hi, > > On Thu, 5 Sep 2019 at 02:49, wrote: >> >> From: Matthias Brugger >> >> According to the device tree specification, the default value for >> was not present. >> >> This patch also makes fdt_address_cells() and fdt_size_cells() conform

Re: [U-Boot] imx6dl_mamoj broken

2019-09-17 Thread Stefano Babic
Hi Fabio, On 16/09/19 23:21, Fabio Estevam wrote: > Hi Anatolij/Stefano/Jagan, > > On Mon, Sep 16, 2019 at 5:20 PM Anatolij Gustschin wrote: > >> This check fails since the recent changes in SPL size limit check, >> see commit 25d38f9b34be (imx6: spl: Reduce SPL limit size in case >>

Re: [U-Boot] [PATCH v4 1/1] board: arm: Add support for Broadcom BCM7445

2019-09-17 Thread Simon Glass
Hi Bin, On Thu, 5 Sep 2019 at 06:10, Bin Meng wrote: > > Hi Simon, > > On Thu, Aug 29, 2019 at 11:24 PM Bin Meng wrote: > > > > +Simon > > > > On Thu, Aug 29, 2019 at 1:24 AM Thomas Fitzsimmons > > wrote: > > > > > > Hi Bin, > > > > > > Bin Meng writes: > > > > > > > Hi Thomas, > > > > > > >

Re: [U-Boot] [PATCH v1 1/7] dm: regulator: support regulator more state

2019-09-17 Thread Simon Glass
Hi Elaine, On Wed, 4 Sep 2019 at 01:09, Elaine Zhang wrote: > > From: Joseph Chen > > support parse regulator standard property: > regulator-off-in-suspend; > regulator-init-microvolt; > regulator-suspend-microvolt: > regulator_get_suspend_enable > regulator_set_suspend_enable >

Re: [U-Boot] imx6dl_mamoj broken

2019-09-17 Thread Jagan Teki
On Tue, Sep 17, 2019 at 2:51 AM Fabio Estevam wrote: > > Hi Anatolij/Stefano/Jagan, > > On Mon, Sep 16, 2019 at 5:20 PM Anatolij Gustschin wrote: > > > This check fails since the recent changes in SPL size limit check, > > see commit 25d38f9b34be (imx6: spl: Reduce SPL limit size in case > >

[U-Boot] [PATCH 2/5] configs: stm32f429-evaluation: Disable CONFIG_NET flag

2019-09-17 Thread Patrice Chotard
Network support was never added on this board, disable CONFIG_NET flag to avoid following warning: = WARNING == This board does not use CONFIG_DM_ETH (Driver Model for Ethernet drivers). Please update the board to use CONFIG_DM_ETH before the v2020.07

[U-Boot] [PATCH 4/5] configs: stm32h743-disco: Disable CONFIG_NET flag

2019-09-17 Thread Patrice Chotard
Network support was never added on this board, disable CONFIG_NET flag to avoid following warning: = WARNING == This board does not use CONFIG_DM_ETH (Driver Model for Ethernet drivers). Please update the board to use CONFIG_DM_ETH before the v2020.07

[U-Boot] [PATCH 3/5] configs: stm32f469-discovery: Disable CONFIG_NET flag

2019-09-17 Thread Patrice Chotard
Network support was never added on this board, disable CONFIG_NET flag to avoid following warning: = WARNING == This board does not use CONFIG_DM_ETH (Driver Model for Ethernet drivers). Please update the board to use CONFIG_DM_ETH before the v2020.07

Re: [U-Boot] [PATCH 2/4] habv4: tools: Avoid hardcoded CSF size for SPL targets

2019-09-17 Thread Stefano Babic
On 17/09/19 05:26, Breno Matheus Lima wrote: > Hi Stefano, > > Em seg, 16 de set de 2019 às 05:17, Stefano Babic escreveu: >> >> Hi Breno, >> >> On 12/09/19 03:07, Peng Fan wrote: >>> Hi Breno, >>> Subject: [PATCH 2/4] habv4: tools: Avoid hardcoded CSF size for SPL targets >>> >>> I saw

Re: [U-Boot] rockchip: rk3399: TPL: rockpro64: Wrong memory size detected

2019-09-17 Thread Jagan Teki
On Thu, Aug 29, 2019 at 3:15 AM Kurt Miller wrote: > > The board has 4G memory but only 2G is detected by TPL. Please > let me know if additional information is needed. > > With u-boot master TPL output: > > U-Boot TPL 2019.10-rc3-00020-ge4b8dd9b34-dirty (Aug 28 2019 - 17:26:44) > LPDDR4, 50MHz >

Re: [U-Boot] rockchip: rk3399: TPL: rockpro64: Wrong memory size detected

2019-09-17 Thread Jagan Teki
On Thu, Aug 29, 2019 at 3:15 AM Kurt Miller wrote: > > The board has 4G memory but only 2G is detected by TPL. Please > let me know if additional information is needed. > > With u-boot master TPL output: > > U-Boot TPL 2019.10-rc3-00020-ge4b8dd9b34-dirty (Aug 28 2019 - 17:26:44) > LPDDR4, 50MHz >

Re: [U-Boot] [PATCH] armv8: ls1028a: add more personalities support

2019-09-17 Thread Priyanka Jain
>-Original Message- >From: U-Boot On Behalf Of Yuantian Tang >Sent: Tuesday, September 17, 2019 8:21 AM >To: Prabhakar Kushwaha >Cc: Andy Tang ; u-boot@lists.denx.de >Subject: [U-Boot] [PATCH] armv8: ls1028a: add more personalities support Be more specific about which personalities in

Re: [U-Boot] [PATCH v1 18/20] configs: enable eSDHC device module for T1042D4RDB board

2019-09-17 Thread Priyanka Jain
>-Original Message- >From: Yinbo Zhu >Sent: Tuesday, September 17, 2019 8:26 AM >To: Wolfgang Denk ; Priyanka Jain ; >Shengzhou Liu ; u-boot@lists.denx.de >Cc: Yinbo Zhu ; Xiaobo Xie ; >Jiafei Pan ; Prabhakar Kushwaha >; Bin Meng ; Simon >Goldschmidt ; Adam Ford >; Patrick Delaunay ;

Re: [U-Boot] [PATCH 04/14] dfu: allow to manage DFU on several devices

2019-09-17 Thread Lukasz Majewski
Hi Patrick, > Add support of DFU for several interface/device > with one command. > > The format for "dfu_alt_info" in this case is : > interface with devstring'='alternate list (';' separated) > and each interface is separated by '&' > > The previous behavior is always supported. > > One

Re: [U-Boot] [PATCH 07/14] dfu: add partition support for MTD backend

2019-09-17 Thread Lukasz Majewski
Hi Patrick, > Add the support of MTD partition for the MTD backend. > > The expected dfu_alt_info for one alternate on the mtd device : >part > partubi > > "partubi" also erase up to the end of the partition after write > operation. > > For example: dfu_alt_info = "spl part

[U-Boot] [PATCH] spi: Fix manual relocation calling more times

2019-09-17 Thread Michal Simek
From: Ashok Reddy Soma When two instances of AXI QSPI with flash are added and tested simultaneously the spi driver operations are relocated twice. As a result code is accessing addresses outside of RAM when relocated second time which is causing a crash. Tested on Microblaze. Similar change

Re: [U-Boot] [PATCH 04/14] dfu: allow to manage DFU on several devices

2019-09-17 Thread Patrick DELAUNAY
Hi Lukasz, > From: Lukasz Majewski > Sent: mardi 17 septembre 2019 12:26 > To: Patrick DELAUNAY > Cc: u-boot@lists.denx.de; U-Boot STM32 mailman.stormreply.com> > Subject: Re: [PATCH 04/14] dfu: allow to manage DFU on several devices > Importance: High > > Hi Patrick, > > > Add support of

Re: [U-Boot] [PATCH 08/14] dfu: add DFU virtual backend

2019-09-17 Thread Lukasz Majewski
Hi Patrick, > Add a virtual DFU backend to allow board specific read and write > (for OTP update for example). > > Signed-off-by: Patrick Delaunay > --- > > drivers/dfu/Kconfig| 7 ++ > drivers/dfu/Makefile | 1 + > drivers/dfu/dfu.c | 5 - > drivers/dfu/dfu_virt.c | 49

[U-Boot] [PATCH V2 1/2] power: domain: add dev_power_domain_on

2019-09-17 Thread Peng Fan
Add this new API to power on multiple domains attached to a device. Signed-off-by: Peng Fan --- V2: New patch drivers/power/domain/power-domain-uclass.c | 19 +++ include/power-domain.h | 17 + 2 files changed, 36 insertions(+) diff --git

[U-Boot] [PATCH V2 2/2] core: device: use dev_power_domain_on

2019-09-17 Thread Peng Fan
When multiple power domains attached to a device, need power on them all, so use dev_power_domain_on to do that. Signed-off-by: Peng Fan --- V2: use dev_power_domain_on in patch 1/2 drivers/core/device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [U-Boot] [PATCH 05/14] dfu: allow read with 0 data for EOF indication

2019-09-17 Thread Lukasz Majewski
Hi Patrick, > This patch allows into the DFU backend to indicate that there is no > remaining data (for EOF for example). That allows users to read a > buffer greater than the device size; the dfu stack stops the read > request when the backend return a length=0 without error. > > Signed-off-by:

Re: [U-Boot] [PATCH 06/14] dfu: add backend for MTD device

2019-09-17 Thread Lukasz Majewski
Hi Patrick, > Add DFU backend for MTD device: allow to read > and write on any MTD device (RAW or SPI) > > For example : > > set dfu_alt_info "nand_raw raw 0x0 0x10" > > dfu 0 mtd nand0 > > This MTD backend provides the same level than dfu nand ^ -

Re: [U-Boot] [PATCH 09/14] dfu: add callback for flush and initiated operation

2019-09-17 Thread Lukasz Majewski
Hi Patrick, > Add weak callback to allow board specific behavior > - flush > - initiated > > This patch prepare usage of DFU back end for communication with > STM32CubeProgrammer on stm32mp1 platform with stm32prog command. As I've said previously - please add this use case and info to

Re: [U-Boot] [PATCH 06/14] dfu: add backend for MTD device

2019-09-17 Thread Patrick DELAUNAY
Hi, > From: Lukasz Majewski > Sent: mardi 17 septembre 2019 12:36 > > Hi Patrick, > > > Add DFU backend for MTD device: allow to read and write on any MTD > > device (RAW or SPI) > > > > For example : > > > set dfu_alt_info "nand_raw raw 0x0 0x10" > > > dfu 0 mtd nand0 > > > > This MTD

Re: [U-Boot] [PATCH] Revert "mx6sabresd: convert to DM_VIDEO"

2019-09-17 Thread Otavio Salvador
On Tue, Sep 17, 2019 at 10:03 AM Fabio Estevam wrote: > > The conversion to CONFIG_DM_VIDEO causes no output at all > in the LVDS panel. > > Switch back to the non-DM video option until this is resolved, > to avoid splashscreen functionality regression. > > This reverts commit

Re: [U-Boot] [PATCH 09/17] mx6sabresd: convert to DM_VIDEO

2019-09-17 Thread Fabio Estevam
Hi Anatolij, On Mon, Sep 16, 2019 at 4:21 PM Anatolij Gustschin wrote: > Most probably this is because there was no user of the video > device when booting and therefore the video driver was not > probed/bound. Please try do display some bitmap with bmp > command or try to switch to the video

Re: [U-Boot] [PATCH] spi: Fix manual relocation calling more times

2019-09-17 Thread Jagan Teki
On Tue, Sep 17, 2019 at 4:52 PM Michal Simek wrote: > > From: Ashok Reddy Soma > > When two instances of AXI QSPI with flash are added and tested > simultaneously the spi driver operations are relocated twice. > As a result code is accessing addresses outside of RAM when > relocated second time

Re: [U-Boot] [PATCH] spi: Fix manual relocation calling more times

2019-09-17 Thread Simon Goldschmidt
On Tue, Sep 17, 2019 at 1:22 PM Michal Simek wrote: > > From: Ashok Reddy Soma > > When two instances of AXI QSPI with flash are added and tested > simultaneously the spi driver operations are relocated twice. > As a result code is accessing addresses outside of RAM when > relocated second time

Re: [U-Boot] [PATCH] spi: Fix manual relocation calling more times

2019-09-17 Thread Michal Simek
On 17. 09. 19 14:43, Simon Goldschmidt wrote: > On Tue, Sep 17, 2019 at 1:22 PM Michal Simek wrote: >> >> From: Ashok Reddy Soma >> >> When two instances of AXI QSPI with flash are added and tested >> simultaneously the spi driver operations are relocated twice. >> As a result code is accessing

Re: [U-Boot] [PATCH 09/14] dfu: add callback for flush and initiated operation

2019-09-17 Thread Patrick DELAUNAY
Hi, > From: Lukasz Majewski > Sent: mardi 17 septembre 2019 12:45 > > Hi Patrick, > > > Add weak callback to allow board specific behavior > > - flush > > - initiated > > > > This patch prepare usage of DFU back end for communication with > > STM32CubeProgrammer on stm32mp1 platform with

Re: [U-Boot] [PATCH] spi: Fix manual relocation calling more times

2019-09-17 Thread Simon Goldschmidt
On Tue, Sep 17, 2019 at 2:48 PM Michal Simek wrote: > > On 17. 09. 19 14:43, Simon Goldschmidt wrote: > > On Tue, Sep 17, 2019 at 1:22 PM Michal Simek > > wrote: > >> > >> From: Ashok Reddy Soma > >> > >> When two instances of AXI QSPI with flash are added and tested > >> simultaneously the

Re: [U-Boot] [PATCH] spi: Fix manual relocation calling more times

2019-09-17 Thread Michal Simek
On 17. 09. 19 14:41, Jagan Teki wrote: > On Tue, Sep 17, 2019 at 4:52 PM Michal Simek wrote: >> >> From: Ashok Reddy Soma >> >> When two instances of AXI QSPI with flash are added and tested >> simultaneously the spi driver operations are relocated twice. >> As a result code is accessing

[U-Boot] [PATCH] Revert "mx6sabresd: convert to DM_VIDEO"

2019-09-17 Thread Fabio Estevam
The conversion to CONFIG_DM_VIDEO causes no output at all in the LVDS panel. Switch back to the non-DM video option until this is resolved, to avoid splashscreen functionality regression. This reverts commit f3592ceac9810b34801772b6d335d8f7cff4c287. Signed-off-by: Fabio Estevam ---

Re: [U-Boot] [PATCH 07/14] dfu: add partition support for MTD backend

2019-09-17 Thread Patrick DELAUNAY
Hi, > From: Lukasz Majewski > Sent: mardi 17 septembre 2019 12:39 > > Hi Patrick, > > > Add the support of MTD partition for the MTD backend. > > > > The expected dfu_alt_info for one alternate on the mtd device : > > part > > partubi > > > > "partubi" also erase up to the end

Re: [U-Boot] [PATCH] spl: add a generic function board_init_r

2019-09-17 Thread Simon Goldschmidt
On Thu, Sep 5, 2019 at 6:50 PM Philippe Reynes wrote: > > This commit add a generic function board_init_r that > only initialize some device (for example serial). It > avoid to define a board function only to launch the > serial configuration. > > Signed-off-by: Philippe Reynes > --- >

Re: [U-Boot] [PATCH v2 1/2] dm: core: Add functions to read 64-bit dt properties

2019-09-17 Thread Michal Simek
On 17. 09. 19 7:47, Simon Glass wrote: > On Mon, 2 Sep 2019 at 09:24, Bin Meng wrote: >> >> On Mon, Sep 2, 2019 at 10:34 PM Michal Simek wrote: >>> >>> From: T Karthik Reddy >>> >>> This patch adds functions dev_read_u64_default & dev_read_u64 >>> to read unsigned 64-bit values from devicetree.

Re: [U-Boot] [PATCH v2 1/2] efi_loader: variable: support APPEND_WRITE

2019-09-17 Thread Heinrich Schuchardt
On 9/6/19 8:09 AM, AKASHI Takahiro wrote: If EFI_VARIABLE_APPEND_WRITE is specified in attributes at efi_set_variable(), specified data will be appended to the variable's original value. Attributes other than APPEND_WRITE should not be modified. With this patch, APPEND_WRITE test in 'variables'

Re: [U-Boot] rockchip: rk3399: TPL: rockpro64: Wrong memory size detected

2019-09-17 Thread Kurt Miller
On Tue, 2019-09-17 at 10:57 +0800, Kever Yang wrote: > Hi Kurt, > > Could you try with below update: > > > diff --git a/arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi  > b/arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi > index 4a4414a960..dc9db047cb 100644 > ---

Re: [U-Boot] [PATCH] dm: pinctrl: Skip not associated gpio phandle and rise an error message

2019-09-17 Thread Michael Nazzareno Trimarchi
Hi On Tue, Sep 17, 2019 at 7:48 AM Simon Glass wrote: > > Hi Michael, > > On Sun, 15 Sep 2019 at 04:45, Michael Trimarchi > wrote: > > > > Skip not associated gpio phandle let register the other gpios and > > the error message add some information to debug the problem using > > a decompiled

Re: [U-Boot] [PATCH] mmc: dw_mmc: Clean up variable name

2019-09-17 Thread Michael Nazzareno Trimarchi
Hi On Mon, Sep 16, 2019 at 3:24 AM Peng Fan wrote: > > > Subject: [PATCH] mmc: dw_mmc: Clean up variable name > I will resend. Michael > Please at least write some commit message here. > > Thanks, > Peng. > > > > > Signed-off-by: Michael Trimarchi > > --- > > drivers/mmc/dw_mmc.c | 4 ++-- >

Re: [U-Boot] Raspberry PI Compute Module - UART Issue

2019-09-17 Thread Belisko Marek
Hi Lee, On Tue, Sep 17, 2019 at 4:45 PM Lee Annamalai wrote: > > Hi > > I am using a Raspberry PI compute module (CM 3+), which seems to be running > U-Boot - U-Boot 2019.04-dirty (Aug 21 2019 - 14:41:54 +) > > The CM3+ is communicating on the UART at boot, before the Kernel loads: > >

Re: [U-Boot] [PATCH v2 1/2] Revert "configs: Remove am335x_boneblack_defconfig"

2019-09-17 Thread Sam Protsenko
On Tue, Sep 17, 2019 at 7:50 AM Lokesh Vutla wrote: > > > > On 16/09/19 4:53 PM, Sam Protsenko wrote: > > Hi Lokesh, > > > > On Mon, Sep 16, 2019 at 11:34 AM Lokesh Vutla wrote: > >> > >> > >> > >> On 12/09/19 11:20 PM, Sam Protsenko wrote: > >>> Commit 8fa7f65dd02c ("configs: Remove

Re: [U-Boot] [PATCH v2 8/9] spl: Introduce SPL_DM_GPIO Kconfig define

2019-09-17 Thread Adam Ford
On Tue, Sep 17, 2019 at 1:34 PM Simon Glass wrote: > > Hi Lukasz, > > On Tue, 17 Sep 2019 at 00:22, Lukasz Majewski wrote: > > > > Hi Simon, > > > > > On Sun, 18 Aug 2019 at 19:30, Peng Fan wrote: > > > > > > > > > Subject: [PATCH v2 8/9] spl: Introduce SPL_DM_GPIO Kconfig define > > > > > > >

[U-Boot] [PATCH V2] dm: pinctrl: Skip not associated gpio phandle and rise a warning message

2019-09-17 Thread Michael Trimarchi
Skip not associated gpio phandle let register the other gpios on a group. We need anyway to send out a warning to the user to fix their uboot-board.dtsi. Thhe handle id can be found inside the decompiled dtb dtc -I dtb -O dts -o devicetree.dts spl/u-boot-spl.dtb Signed-off-by: Michael Trimarchi

Re: [U-Boot] [PATCH v2 8/9] spl: Introduce SPL_DM_GPIO Kconfig define

2019-09-17 Thread Simon Glass
Hi Lukasz, On Tue, 17 Sep 2019 at 00:22, Lukasz Majewski wrote: > > Hi Simon, > > > On Sun, 18 Aug 2019 at 19:30, Peng Fan wrote: > > > > > > > Subject: [PATCH v2 8/9] spl: Introduce SPL_DM_GPIO Kconfig define > > > > > > > > This define indicates if DM_GPIO shall be supported in SPL. This > >

Re: [U-Boot] [PATCH v2 2/4] libfdt: return correct value if #size-cells property is not present

2019-09-17 Thread Simon Glass
Hi Matthias, On Tue, 17 Sep 2019 at 00:29, Matthias Brugger wrote: > > Hi Simon, > > On 17/09/2019 07:48, Simon Glass wrote: > > Hi, > > > > On Thu, 5 Sep 2019 at 02:49, wrote: > >> > >> From: Matthias Brugger > >> > >> According to the device tree specification, the default value for > >> was

Re: [U-Boot] [PATCH 1/4] mx6: clock: Allow enable_ipu_clock() to be built for SPL code

2019-09-17 Thread Fabio Estevam
Hi Stefano, Could this series be applied, please? On Fri, Jul 12, 2019 at 9:32 AM Fabio Estevam wrote: > > Allow enable_ipu_clock() to be built for SPL code. This is done > in preparation for configuring the NoC registers on i.MX6QP in SPL. > > Signed-off-by: Fabio Estevam > --- >

[U-Boot] [PATCH] configs: ti: Use addr_fit for run_fit environment variable

2019-09-17 Thread Andrew F. Davis
When running 'run_fit' the FIT file should have been loaded at 'addr_fit', although at this point they should be the same use this variable instead of 'loadaddr'. Signed-off-by: Andrew F. Davis --- include/configs/ti_armv7_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[U-Boot] [PATCH 2/3] tools: fit_image: Use fit_image_get_data_and_size for getting offset/size

2019-09-17 Thread Andrew F. Davis
This is very similar to fit_image_get_data but has the benefit of working on FIT images with external data unlike fit_image_get_data. This is useful for extracting sub-images from type of FIT image as this would previously just silently fail. Add an error message also so if this still fails it is

[U-Boot] [PATCH 3/3] tools: dumpimage: Fall-though to print usage for help command

2019-09-17 Thread Andrew F. Davis
This has the same result but some compilers will warn about this fall-through if there are statements as part of the label block. Signed-off-by: Andrew F. Davis --- tools/dumpimage.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/dumpimage.c b/tools/dumpimage.c index

Re: [U-Boot] [PATCH] net: Always build the string_to_enetaddr() helper

2019-09-17 Thread Joe Hershberger
Hi Simon, On Sat, Sep 14, 2019 at 1:55 PM Simon Goldschmidt wrote: > > Joe Hershberger schrieb am Sa., 14. Sep. 2019, > 20:46: > > > On Sat, Sep 14, 2019 at 1:32 PM Tom Rini wrote: > > > > > > On Sat, Sep 14, 2019 at 04:05:44PM +0200, Ondřej Jirman wrote: > > > > Hi, > > > > > > > > On Fri,

Re: [U-Boot] Pull request: u-boot-spi/master

2019-09-17 Thread Tom Rini
On Mon, Sep 16, 2019 at 08:15:49AM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this for v2019.10 release. > > Summary: > - fix mvebu_a3700_spi clock prescale (Marek Behún) > - unmark MXS_SPI, DEPRECATED (Lukasz) > - add spi_write_then_read (Jagan) > - fix SST26* flash ICs (Eugeniy) > -

Re: [U-Boot] [PATCH 1/2] am335x, guardian: update guardian board

2019-09-17 Thread Tom Rini
On Tue, Sep 17, 2019 at 02:25:37PM +, bollavarapumoses.christop...@in.bosch.com wrote: > From: Moses Christopher > > - add BOARD_LATE_INIT function calls in board.c > - add swi_status detection in board.c > - mux: add guardian interfaces to single pinmux structure > - am33xx,

Re: [U-Boot] [PATCH v2 1/2] efi_loader: variable: support APPEND_WRITE

2019-09-17 Thread AKASHI Takahiro
On Tue, Sep 17, 2019 at 10:38:47PM +0200, Heinrich Schuchardt wrote: > On 9/6/19 8:09 AM, AKASHI Takahiro wrote: > >If EFI_VARIABLE_APPEND_WRITE is specified in attributes at > >efi_set_variable(), specified data will be appended to the variable's > >original value. Attributes other than

[U-Boot] [RFC 10/15] efi_loader: image_loader: support image authentication

2019-09-17 Thread AKASHI Takahiro
With this commit, image validation can be enforced, as UEFI specification section 32.5 describes, if CONFIG_EFI_SECURE_BOOT is enabled. Currently we support * authentication based on db and dbx, so dbx-validated image will always be rejected. * following signature types:

[U-Boot] [RFC 11/15] efi_loader: initialize secure boot state

2019-09-17 Thread AKASHI Takahiro
We call efi_init_secure_boot() after loading saved UEFI variables so that the initial secure boot status will be initialized. Signed-off-by: AKASHI Takahiro --- lib/efi_loader/efi_setup.c | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/efi_loader/efi_setup.c

Re: [U-Boot] [PATCH V2] [RFC] usb: storage: Limit transfer size to 120 kiB

2019-09-17 Thread Bin Meng
On Tue, Sep 17, 2019 at 10:43 PM Marek Vasut wrote: > > Due to constant influx of more and more weird and broken USB sticks, > do as Linux does in commit 779b457f66e10de3471479373463b27fd308dc85 > > usb: storage: scsiglue: further describe our 240 sector limit > > Just so we have some

[U-Boot] [PATCH v2 06/28] dts: mtmips: add clock node for mt7628

2019-09-17 Thread Weijie Gao
This patch adds clkctrl node for mt7628 and adds clocks property for some node. Signed-off-by: Weijie Gao --- v2: Changed clkgate node to clkctrl node. Replaced clock-frequency with < CLK_UARTx> for uarts and spi. --- arch/mips/dts/mt7628a.dtsi | 21 + 1 file changed, 17

[U-Boot] [PATCH v2 17/20] configs: enable eSDHC device module for T1024RDB board

2019-09-17 Thread Yinbo Zhu
Enable eSDHC device module for T1024RDB board Signed-off-by: Yinbo Zhu --- configs/T1024RDB_NAND_defconfig | 1 + configs/T1024RDB_SDCARD_defconfig | 1 + configs/T1024RDB_SPIFLASH_defconfig | 1 + configs/T1024RDB_defconfig | 1 + 4 files changed, 4 insertions(+) diff --git

[U-Boot] [PATCH v2 06/20] arch: powerpc: add eSDHC node to p5040 dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to p5040 dts Signed-off-by: Yinbo Zhu --- arch/powerpc/dts/p5040.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/powerpc/dts/p5040.dtsi b/arch/powerpc/dts/p5040.dtsi index 8ab123dca4..8128ac2376 100644 --- a/arch/powerpc/dts/p5040.dtsi +++

[U-Boot] [PATCH] board: ti: am654: Disable TRNG node for HS devices

2019-09-17 Thread Andrew F. Davis
On HS devices the access to TRNG is restricted on the non-secure ARM side, disable the node in DT to prevent firewall violations. Signed-off-by: Andrew F. Davis --- arch/arm/mach-k3/common.c | 20 arch/arm/mach-k3/include/mach/sys_proto.h | 2 ++

Re: [U-Boot] [PATCH 09/17] mx6sabresd: convert to DM_VIDEO

2019-09-17 Thread Anatolij Gustschin
Hi Fabio, On Tue, 17 Sep 2019 09:32:37 -0300 Fabio Estevam feste...@gmail.com wrote: > Hi Anatolij, > > On Mon, Sep 16, 2019 at 4:21 PM Anatolij Gustschin wrote: > > > Most probably this is because there was no user of the video > > device when booting and therefore the video driver was not >

[U-Boot] [PATCH v2 25/28] dts: mtmips: add default pinctrl to eth nodes for all boards

2019-09-17 Thread Weijie Gao
This patch adds default eth pinctrl for all boards. There are two pinctrl nodes used for two scenarios: ephy_iot_mode- for IOT boards which have only one port (PHY0) ephy_router_mode - For routers which have more than one ports Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao ---

[U-Boot] [PATCH v2 26/28] mips: mtmips: change baudrate table for all boards

2019-09-17 Thread Weijie Gao
This patch changes baudrate table for all boards preparing for using mtk highspeed uart driver. Signed-off-by: Weijie Gao --- v2: Removed configs in defconfig files. --- include/configs/gardena-smart-gateway-mt7688.h | 2 +- include/configs/linkit-smart-7688.h| 2 +- 2 files

[U-Boot] [PATCH v2 23/28] dts: mtmips: add mmc related nodes for mt7628an.dtsi

2019-09-17 Thread Weijie Gao
This patch adds mmc related nodes for mt7628an.dtsi Signed-off-by: Weijie Gao --- arch/mips/dts/mt7628a.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/mips/dts/mt7628a.dtsi b/arch/mips/dts/mt7628a.dtsi index 5fd83c1623..76a80c8952 100644 ---

[U-Boot] [PATCH v2 27/28] mips: mtmips: select essential drivers in Kconfig

2019-09-17 Thread Weijie Gao
Some drivers (clk, pinctrl, reset, ...) are necessary for reset of the system, they should be always selected. Signed-off-by: Weijie Gao --- v2: newly added --- arch/mips/Kconfig | 6 ++ arch/mips/mach-mtmips/Kconfig | 2 ++ 2 files changed, 8 insertions(+) diff --git

[U-Boot] [PATCH v2 04/20] arch: powerpc: add eSDHC node to p3041 dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to p3041 dts Signed-off-by: Yinbo Zhu --- arch/powerpc/dts/p3041.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/powerpc/dts/p3041.dtsi b/arch/powerpc/dts/p3041.dtsi index 197896d35a..6ab60a4ced 100644 --- a/arch/powerpc/dts/p3041.dtsi +++

[U-Boot] [PATCH v2 08/20] arch: powerpc: add eSDHC node to t104x dts

2019-09-17 Thread Yinbo Zhu
Add eSDHC node to t104x dts Signed-off-by: Yinbo Zhu --- arch/powerpc/dts/t104x.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/powerpc/dts/t104x.dtsi b/arch/powerpc/dts/t104x.dtsi index 59989677a2..c37a80f006 100644 --- a/arch/powerpc/dts/t104x.dtsi +++

Re: [U-Boot] Raspberry PI Compute Module - UART Issue

2019-09-17 Thread Lee Annamalai
Thanks. Tried that (set to -2) ... will let you know if this works. Lee -Original Message- From: Belisko Marek Sent: Tuesday, 17 September 2019 21:02 To: Lee Annamalai Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] Raspberry PI Compute Module - UART Issue Hi Lee, On Tue, Sep 17,

Re: [U-Boot] [PATCH v2 8/9] spl: Introduce SPL_DM_GPIO Kconfig define

2019-09-17 Thread Lukasz Majewski
Hi Simon, > Hi Lukasz, > > On Tue, 17 Sep 2019 at 00:22, Lukasz Majewski wrote: > > > > Hi Simon, > > > > > On Sun, 18 Aug 2019 at 19:30, Peng Fan wrote: > > > > > > > > > Subject: [PATCH v2 8/9] spl: Introduce SPL_DM_GPIO Kconfig > > > > > define > > > > > > > > > > This define

Re: [U-Boot] [PATCH v2 0/4] arm: socfpga: Convert drivers from struct to defines

2019-09-17 Thread Dinh Nguyen
On 9/10/19 3:37 AM, Ley Foon Tan wrote: > This is 2nd version of patchset to convert reset, system and clock manager > drivers to use #define instead of struct. > > Tested on Cyclone 5, Arria 10 and Stratix 10 devices. > > Patch 1 is new one, patch 2 to 4 have changes. > > Main changes in

[U-Boot] [RFC 03/15] include: pe.h: add image-signing-related definitions

2019-09-17 Thread AKASHI Takahiro
The index (IMAGE_DIRECTORY_ENTRY_CERTTABLE) in a table points to a region containing authentication information (image's signature) in PE format. WIN_CERTIFICATE structure defines an embedded signature format. Those definitions will be used in my UEFI secure boot patch. Signed-off-by: AKASHI

[U-Boot] [RFC 08/15] efi_loader: variable: support variable authentication

2019-09-17 Thread AKASHI Takahiro
With this commit, EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS is supported for authenticated variables and the system secure state will transfer between setup mode and user mode as UEFI specification section 32.3 describes. Internally, authentication data is stored as part of authenticated

[U-Boot] [RFC 04/15] include: image.h: add key info to image_sign_info

2019-09-17 Thread AKASHI Takahiro
For FIT verification, all the properties of a public key come from "control fdt" pointed to by fdt_blob. In UEFI secure boot, on the other hand, a public key is located and retrieved from dedicated signature database stored as UEFI variables. Added two fields may hold values of a public key if

[U-Boot] [PATCH v2 13/28] reset: add reset controller driver for MediaTek MIPS platform

2019-09-17 Thread Weijie Gao
This patch adds reset controller driver for MediaTek MIPS platform and header file for mt7628. Signed-off-by: Weijie Gao --- drivers/reset/Kconfig| 7 ++ drivers/reset/Makefile | 1 + drivers/reset/reset-mtmips.c | 82

[U-Boot] [PATCH v2 16/28] net: mt7628-eth: remove hardcoded gpio settings and regmap-based phy reset

2019-09-17 Thread Weijie Gao
This patch removes hardcoded gpio settings as they have been replaced by pinctrl in dts, and also replaces regmap-based phy reset with a more generic reset controller. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- drivers/net/mt7628-eth.c | 45 +++-

[U-Boot] [PATCH v2 12/28] dts: mtmips: add default pinctrl for uart nodes

2019-09-17 Thread Weijie Gao
This patch adds default pinctrl for uart nodes Signed-off-by: Weijie Gao --- arch/mips/dts/mt7628a.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/mips/dts/mt7628a.dtsi b/arch/mips/dts/mt7628a.dtsi index 8afea1865d..44fbbd5b25 100644 --- a/arch/mips/dts/mt7628a.dtsi +++

[U-Boot] [PATCH v2 05/28] clk: add clock driver for MediaTek MT76x8 platform

2019-09-17 Thread Weijie Gao
This patch adds a clock driver for MediaTek MT7628/7688 SoC. It provides clock gate control as well as getting clock frequency for CPU/SYS/XTAL and some peripherals. Signed-off-by: Weijie Gao --- v2: Changed to a more generic clock driver rather than a gateing only driver. Now supports

[U-Boot] [PATCH v2 24/28] dts: mtmips: add default pinctrl for gardena-smart-gateway-mt7688

2019-09-17 Thread Weijie Gao
This adds default pinctrl (dual SPI chip select) for gardena smart gateway Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- arch/mips/dts/gardena-smart-gateway-mt7688.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/dts/gardena-smart-gateway-mt7688.dts

  1   2   >