Re: [U-Boot] [PATCH v2 6/9] mpc85xx, socrates: disable VIDEO

2019-10-16 Thread Heiko Schocher
Hello Priyanka Jain, Am 16.10.2019 um 08:56 schrieb Priyanka Jain: -Original Message- From: U-Boot On Behalf Of Heiko Schocher Sent: Wednesday, October 16, 2019 9:26 AM To: U-Boot Mailing List Subject: [U-Boot] [PATCH v2 6/9] mpc85xx, socrates: disable VIDEO disable video, as not re

Re: [U-Boot] [PATCH 36/37] dm: pmic: add da9063 PMIC driver and regulators

2019-10-16 Thread Schrempf Frieder
Hi Robert, On 15.10.19 17:53, Robert Beckett wrote: > Add DM driver to support Dialog DA9063. > Currently it support binding regulator children. > > Signed-off-by: Robert Beckett I also have a board with DA9063 and was looking for support in U-Boot. I found patches from Martin Fuzzey [1] and p

Re: [U-Boot] [PATCH v5] cmd: env: extend "env [set|print] -e" to manage UEFI variables

2019-10-16 Thread AKASHI Takahiro
On Tue, Oct 15, 2019 at 06:09:10PM +0900, AKASHI Takahiro wrote: > On Tue, Oct 15, 2019 at 07:54:18AM +0200, Heinrich Schuchardt wrote: > > On 10/15/19 3:42 AM, AKASHI Takahiro wrote: > > >With this patch, when setting UEFI variable with "env set -e" command, > > >we will be able to > > >- specify

[U-Boot] [PATCH 03/19] arch: powerpc: add usb nodes to P1020 dts

2019-10-16 Thread Ran Wang
Signed-off-by: Ran Wang --- Depends on: http://patchwork.ozlabs.org/patch/1176766/ http://patchwork.ozlabs.org/patch/1176767/ arch/powerpc/dts/p1020-post.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/powerpc/dts/p1020-post.dtsi b/arch/powerpc/dts/p1020-post.dtsi

[U-Boot] [PATCH 01/19] arch: powerpc: add usb node in p3041 dts

2019-10-16 Thread Ran Wang
Signed-off-by: Ran Wang --- Depends on: http://patchwork.ozlabs.org/patch/1176766/ http://patchwork.ozlabs.org/patch/1176767/ arch/powerpc/dts/p3041.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/powerpc/dts/p3041.dtsi b/arch/powerpc/dts/p3041.dtsi index 197896d..

[U-Boot] [PATCH 02/19] configs: p3041ds: enable CONFIG_DM_USB support

2019-10-16 Thread Ran Wang
Signed-off-by: Ran Wang --- Depends on: http://patchwork.ozlabs.org/patch/1176766/ http://patchwork.ozlabs.org/patch/1176767/ configs/P3041DS_NAND_SECURE_BOOT_defconfig | 1 + configs/P3041DS_NAND_defconfig | 1 + configs/P3041DS_SDCARD_defconfig | 1 + configs/P3041DS_S

[U-Boot] [PATCH 06/19] configs: P2020: enable CONFIG_DM_USB support

2019-10-16 Thread Ran Wang
Signed-off-by: Ran Wang --- Depends on: http://patchwork.ozlabs.org/patch/1176766/ http://patchwork.ozlabs.org/patch/1176767/ configs/P2020RDB-PC_36BIT_NAND_defconfig | 1 + configs/P2020RDB-PC_36BIT_SDCARD_defconfig | 1 + configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig | 1 + configs/P20

[U-Boot] [PATCH 18/19] arch: powerpc: add usb nodes to P5040 dts

2019-10-16 Thread Ran Wang
Signed-off-by: Ran Wang --- Depends on: http://patchwork.ozlabs.org/patch/1176766/ http://patchwork.ozlabs.org/patch/1176767/ arch/powerpc/dts/p5040.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/powerpc/dts/p5040.dtsi b/arch/powerpc/dts/p5040.dtsi index 8ab123d..

[U-Boot] [PATCH 17/19] configs: T4240: enable CONFIG_DM_USB support

2019-10-16 Thread Ran Wang
Signed-off-by: Ran Wang --- Depends on: http://patchwork.ozlabs.org/patch/1176766/ http://patchwork.ozlabs.org/patch/1176767/ configs/T4240QDS_NAND_defconfig | 1 + configs/T4240QDS_SDCARD_defconfig | 1 + configs/T4240QDS_SECURE_BOOT_defconfig| 1 + configs/T4240QDS_SRI

[U-Boot] [PATCH 05/19] arch: powerpc: add usb node to p2020 dts

2019-10-16 Thread Ran Wang
Signed-off-by: Ran Wang --- Depends on: http://patchwork.ozlabs.org/patch/1176766/ http://patchwork.ozlabs.org/patch/1176767/ arch/powerpc/dts/p2020-post.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/powerpc/dts/p2020-post.dtsi b/arch/powerpc/dts/p2020-post.dtsi index f6

[U-Boot] [PATCH 11/19] powerpc: add usb nodes to T102x dts

2019-10-16 Thread Ran Wang
Signed-off-by: Ran Wang --- Depends on: http://patchwork.ozlabs.org/patch/1176766/ http://patchwork.ozlabs.org/patch/1176767/ arch/powerpc/dts/t102x.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/powerpc/dts/t102x.dtsi b/arch/powerpc/dts/t102x.dtsi index c49fd21..

[U-Boot] [PATCH 10/19] configs: P4080: enable CONFIG_DM_USB support

2019-10-16 Thread Ran Wang
Signed-off-by: Ran Wang --- Depends on: http://patchwork.ozlabs.org/patch/1176766/ http://patchwork.ozlabs.org/patch/1176767/ configs/P4080DS_SDCARD_defconfig | 1 + configs/P4080DS_SECURE_BOOT_defconfig| 1 + configs/P4080DS_SPIFLASH_defconfig | 1 + configs/P4080DS_SRIO_PC

[U-Boot] [PATCH 14/19] configs: T104x: enable CONFIG_DM_USB support

2019-10-16 Thread Ran Wang
Signed-off-by: Ran Wang --- Depends on: http://patchwork.ozlabs.org/patch/1176766/ http://patchwork.ozlabs.org/patch/1176767/ configs/T1040D4RDB_NAND_defconfig | 1 + configs/T1040D4RDB_SDCARD_defconfig| 1 + configs/T1040D4RDB_SPIFLASH_defconfig | 1 + configs/T1040D4RDB_defconfig

[U-Boot] [PATCH 07/19] arch: powerpc: add usb node to p2041 dts

2019-10-16 Thread Ran Wang
Signed-off-by: Ran Wang --- Depends on: http://patchwork.ozlabs.org/patch/1176766/ http://patchwork.ozlabs.org/patch/1176767/ arch/powerpc/dts/p2041.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/powerpc/dts/p2041.dtsi b/arch/powerpc/dts/p2041.dtsi index 55f7adc..

[U-Boot] [PATCH 13/19] arch: powerpc: add usb nodes to T104x dts

2019-10-16 Thread Ran Wang
Signed-off-by: Ran Wang --- Depends on: http://patchwork.ozlabs.org/patch/1176766/ http://patchwork.ozlabs.org/patch/1176767/ arch/powerpc/dts/t104x.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/powerpc/dts/t104x.dtsi b/arch/powerpc/dts/t104x.dtsi index 5998967..

[U-Boot] [PATCH 09/19] arch: powerpc: add usb nodes to P4080 dts

2019-10-16 Thread Ran Wang
Signed-off-by: Ran Wang --- Depends on: http://patchwork.ozlabs.org/patch/1176766/ http://patchwork.ozlabs.org/patch/1176767/ arch/powerpc/dts/p4080.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/powerpc/dts/p4080.dtsi b/arch/powerpc/dts/p4080.dtsi index ab76680..

[U-Boot] [PATCH 08/19] configs: P2041: enable CONFIG_DM_USB support

2019-10-16 Thread Ran Wang
Signed-off-by: Ran Wang --- Depends on: http://patchwork.ozlabs.org/patch/1176766/ http://patchwork.ozlabs.org/patch/1176767/ configs/P2041RDB_NAND_defconfig | 1 + configs/P2041RDB_SDCARD_defconfig | 1 + configs/P2041RDB_SECURE_BOOT_defconfig| 1 + configs/P2041RDB_SPI

[U-Boot] [PATCH 04/19] configs: p1020: enable CONFIG_DM_USB support

2019-10-16 Thread Ran Wang
Signed-off-by: Ran Wang --- Depends on: http://patchwork.ozlabs.org/patch/1176766/ http://patchwork.ozlabs.org/patch/1176767/ configs/P1020MBG-PC_36BIT_SDCARD_defconfig | 1 + configs/P1020MBG-PC_36BIT_defconfig | 1 + configs/P1020MBG-PC_SDCARD_defconfig | 1 + configs/P10

[U-Boot] [PATCH 15/19] configs: T208x: enable CONFIG_DM_USB support

2019-10-16 Thread Ran Wang
Signed-off-by: Ran Wang --- Depends on: http://patchwork.ozlabs.org/patch/1176766/ http://patchwork.ozlabs.org/patch/1176767/ configs/T2080RDB_NAND_defconfig | 1 + configs/T2080RDB_SDCARD_defconfig | 1 + configs/T2080RDB_SECURE_BOOT_defconfig| 1 + configs/T2080RDB_SPI

[U-Boot] [PATCH 19/19] configs: P5040: enable CONFIG_DM_USB support

2019-10-16 Thread Ran Wang
Signed-off-by: Ran Wang --- Depends on: http://patchwork.ozlabs.org/patch/1176766/ http://patchwork.ozlabs.org/patch/1176767/ configs/P5040DS_NAND_SECURE_BOOT_defconfig | 1 + configs/P5040DS_NAND_defconfig | 1 + configs/P5040DS_SDCARD_defconfig | 1 + configs/P5040DS_S

[U-Boot] [PATCH 16/19] arch: powerpc: add usb nodes to T4240 dts

2019-10-16 Thread Ran Wang
Signed-off-by: Ran Wang --- Depends on: http://patchwork.ozlabs.org/patch/1176766/ http://patchwork.ozlabs.org/patch/1176767/ arch/powerpc/dts/t4240.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/powerpc/dts/t4240.dtsi b/arch/powerpc/dts/t4240.dtsi index fc34974..

[U-Boot] [PATCH 12/19] configs: T102x: enable CONFIG_DM_USB support

2019-10-16 Thread Ran Wang
Signed-off-by: Ran Wang --- Depends on: http://patchwork.ozlabs.org/patch/1176766/ http://patchwork.ozlabs.org/patch/1176767/ configs/T1023RDB_NAND_defconfig | 1 + configs/T1023RDB_SDCARD_defconfig | 1 + configs/T1023RDB_SPIFLASH_defconfig | 1 + configs/T1023RDB_defconfig |

Re: [U-Boot] problems with building u-boot-fit-dtb.bin

2019-10-16 Thread Heiko Schocher
Hello Tom, Am 16.10.2019 um 06:56 schrieb Heiko Schocher: Hello Tom, I planned to send my patches which convert the imx6 based aristainetos boards to support DM ... building U-Boot works fine on 2 different build machines at home, also on 2 build machines in munich @ denx ... So I startet as u

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-16 Thread Marek Vasut
On 10/16/19 3:30 AM, Simon Glass wrote: > Hi Marek, Hi, > On Tue, 15 Oct 2019 at 14:43, Marek Vasut wrote: >> >> Add get_timer_us(), which is useful e.g. when we need higher >> precision timestamps. > > Can we use timer_get_us()? It seems confusing to have two. Nope, that one doesn't have the r

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

2019-10-16 Thread Heiko Schocher
Hello Stefan, Am 17.09.2019 um 09:17 schrieb 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

Re: [U-Boot] [PATCH 1/3] ubi: provide a way to skip CRC checks

2019-10-16 Thread Heiko Schocher
Hello Stefan, Am 12.09.2019 um 16:41 schrieb Stefan Roese: From: Quentin Schulz Some users of static UBI volumes implement their own integrity check, thus making the volume CRC check done at open time useless. For instance, this is the case when one use the ubiblock + dm-verity + squashfs comb

Re: [U-Boot] [PATCH 2/3] ubi: Print skip_check in ubi_dump_vol_info()

2019-10-16 Thread Heiko Schocher
Hello Stefan, Am 17.09.2019 um 07:39 schrieb Heiko Schocher: Hello Stefan, Am 12.09.2019 um 16:41 schrieb Stefan Roese: It might be interesting, if "skip_check" is set of not, so lets print s/of/or ? this flag in ubi_dump_vol_info() as well. Signed-off-by: Stefan Roese Cc: Quentin Schulz

Re: [U-Boot] [PATCH] ubi: env: fix redundand management

2019-10-16 Thread Heiko Schocher
Hello Philippe, Am 14.10.2019 um 19:41 schrieb Philippe Reynes: We check (with a #if defined()) the config ENV_UBI_VOLUME_REDUND to know if there is a redundant env. But this config is a string and is always defined with env is in ubi, so we always condider that a redundand env is used. To fix

[U-Boot] [PATCH 0/3] rockchip: rk3328: add CONFIG_RAM_ROCKCHIP_DEBUG support

2019-10-16 Thread Matwey V. Kornilov
It would be great to allow user to get extra information for debugging issues with TPL. We can reuse the existing code for rk3399 which print out results of memory configuration at TPL. Matwey V. Kornilov (3): rockchip: rk3328: use common struct sdram_base_params for struct rk3328_sdram_para

[U-Boot] [PATCH 3/3] rockchip: rk3328: call sdram_print_ddr_info() at init

2019-10-16 Thread Matwey V. Kornilov
Make it possible to use CONFIG_RAM_ROCKCHIP_DEBUG when debuging TPL issues. Signed-off-by: Matwey V. Kornilov --- drivers/ram/rockchip/Makefile | 2 +- drivers/ram/rockchip/sdram_rk3328.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/ram/rockchip/Makefile b/

[U-Boot] [PATCH 2/3] rockchip: rk3328: use common struct sdram_cap_info for struct rk3328_sdram_channel

2019-10-16 Thread Matwey V. Kornilov
Currently, struct sdram_cap_info and struct rk3328_sdram_channel have similar layouts. Signed-off-by: Matwey V. Kornilov --- arch/arm/include/asm/arch-rockchip/sdram_rk3328.h | 13 +--- drivers/ram/rockchip/sdram_rk3328.c | 90 +++ 2 files changed, 46 insertion

[U-Boot] [PATCH 1/3] rockchip: rk3328: use common struct sdram_base_params for struct rk3328_sdram_params

2019-10-16 Thread Matwey V. Kornilov
Currently, struct sdram_base_params and struct rk3328_sdram_params have similar layouts. Signed-off-by: Matwey V. Kornilov --- arch/arm/dts/rk3328-sdram-ddr3-666.dtsi | 2 ++ arch/arm/dts/rk3328-sdram-lpddr3-1600.dtsi| 2 ++ arch/arm/dts/rk3328-sdram-lpddr3-666.dtsi |

[U-Boot] [PATCH 2/2] rockchip: Init driver otg_data for rk3288 usb phy

2019-10-16 Thread Kever Yang
RK3288 needs to init the otg_data in board level to make the phy driver work. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/board.c | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/mach-rockchip/board.c b/arch/arm/mach-rockchip/board.c index c4b0

[U-Boot] [PATCH 1/2] rockchip: usb: Migrate to use ofnode

2019-10-16 Thread Kever Yang
Migrate to use ofnode_* instead of fdt_* so that we may able to use live dt for usb udc driver. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/board.c | 14 ++ drivers/usb/phy/rockchip_usb2_phy.c | 5 ++--- include/usb/dwc2_udc.h | 4 +++- 3 files changed,

[U-Boot] [PATCH] dm: core: Update log method for uclass_find_device_by_seq

2019-10-16 Thread Kever Yang
Use log() insted of debug() for uclass_find_device_by_seq function, since this print is very much and we can filter it out with log() interface. Signed-off-by: Kever Yang --- drivers/core/uclass.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/core/uclass

[U-Boot] [PATCH] rockchip: firefly-rk3288: Enable TPL support

2019-10-16 Thread Kever Yang
This patch enable TPL support for firefly-rk3288 board, which works ths same way with other RK3288 board like Tinker, evb. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3288/Kconfig | 1 + configs/firefly-rk3288_defconfig | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-)

Re: [U-Boot] [PATCH v1 5/5] colibri_t30: disable rs232 serial transceiver forceoff pins

2019-10-16 Thread Igor Opaniuk
Hi Marcel, On Thu, Sep 12, 2019 at 12:15 PM Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > Use gpio_early_init_uart() function to disable RS232 serial transceiver > ForceOFF# pins on Iris. > > Signed-off-by: Marcel Ziswiler > > --- > > board/toradex/colibri_t30/colibri_t30.c | 11 +++

Re: [U-Boot] [PATCH 1/2] libavb: Update libavb to current AOSP master

2019-10-16 Thread Igor Opaniuk
Hi Sam, On Thu, Aug 15, 2019 at 11:04 PM Sam Protsenko wrote: > > Update libavb to commit 5fbb42a189aa in AOSP/master, because new version > has support for super partition [1], which we need for implementing > Android dynamic partitions. All changes from previous patches for libavb > in U-Boot a

Re: [U-Boot] [PATCH v2] cmd: avb: Fix requested partitions list

2019-10-16 Thread Igor Opaniuk
Hi Sam, On Thu, Aug 15, 2019 at 8:49 PM Sam Protsenko wrote: > > The requested_partitions[] array should contain only boot partitions. > Usually it's only 'boot' partition, as can be seen in [1]. Also, seems > like the requested_partitions[] are only used when there is no 'vbmeta' > partition [2]

[U-Boot] [PATCH 2/6] powerpc: p3041: dts: Added Sata DT nodes

2019-10-16 Thread Peng Ma
This patch is to add sata node for P3041 platform Signed-off-by: Peng Ma --- arch/powerpc/dts/p3041.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/powerpc/dts/p3041.dtsi b/arch/powerpc/dts/p3041.dtsi index 197896d..23bde81 100644 --- a/arch/powerpc/dts/p3041.dtsi +++ b/ar

[U-Boot] [PATCH 3/6] powerpc: p5040: dts: Added Sata DT nodes

2019-10-16 Thread Peng Ma
This patch is to add sata node for P5040 platform Signed-off-by: Peng Ma --- arch/powerpc/dts/p5040.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/powerpc/dts/p5040.dtsi b/arch/powerpc/dts/p5040.dtsi index 8ab123d..7b8218a 100644 --- a/arch/powerpc/dts/p5040.dtsi +++ b/ar

[U-Boot] [PATCH 1/6] powerpc: p2041: dts: Added Sata DT nodes

2019-10-16 Thread Peng Ma
This patch is to add sata node for P2041 platform Signed-off-by: Peng Ma --- arch/powerpc/dts/p2041.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/powerpc/dts/p2041.dtsi b/arch/powerpc/dts/p2041.dtsi index 55f7adc..239439d 100644 --- a/arch/powerpc/dts/p2041.dtsi +++ b/ar

[U-Boot] [PATCH 4/6] powerpc: t102x: dts: Added Sata DT nodes

2019-10-16 Thread Peng Ma
This patch is to add sata node for T102x platform Signed-off-by: Peng Ma --- arch/powerpc/dts/t102x.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/powerpc/dts/t102x.dtsi b/arch/powerpc/dts/t102x.dtsi index c49fd21..7d3f7c5 100644 --- a/arch/powerpc/dts/t102x.dtsi +++ b/ar

[U-Boot] [PATCH 5/6] powerpc: t104x: dts: Added Sata DT nodes

2019-10-16 Thread Peng Ma
This patch is to add sata node for T104x platform Signed-off-by: Peng Ma --- arch/powerpc/dts/t104x.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/powerpc/dts/t104x.dtsi b/arch/powerpc/dts/t104x.dtsi index 5998967..fe6cc3c 100644 --- a/arch/powerpc/dts/t104x.dtsi +++ b/ar

[U-Boot] [PATCH 6/6] powerpc: t4240: dts: Added Sata DT nodes

2019-10-16 Thread Peng Ma
This patch is to add sata node for T4240 platform Signed-off-by: Peng Ma --- arch/powerpc/dts/t4240.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/powerpc/dts/t4240.dtsi b/arch/powerpc/dts/t4240.dtsi index fc34974..3bda2fa 100644 --- a/arch/powerpc/dts/t4240.dtsi +++ b/ar

Re: [U-Boot] [PATCH] cmd: avb: Support A/B slots

2019-10-16 Thread Igor Opaniuk
Hi Sam, On Fri, Aug 9, 2019 at 3:38 PM Sam Protsenko wrote: > > Add optional parameter to 'avb verify' sub-command, so that user is able > to specify which slot to use, in case when user's partitions are > slotted. If that parameter is omitted, the behavior of 'avb verify' will > be the same as b

[U-Boot] [PATCH] arm: freescale: ls102xa: add helper Macro to get the SVR

2019-10-16 Thread Pankaj Bansal
32 bit System Version Register (SVR) in NXP SOCs contains information about SOC such as: 1. SOC type (bits 8 - 31) 2. SOC Major Revision (bits 4 - 7) 3. SOC Minor Revision (bits 0 - 3) This Macro (SVR_DEV) strips the Major and Minor revision info, so that SOC can be correctly identified. This Macr

Re: [U-Boot] [PATCH] nvme: add more cache flushes

2019-10-16 Thread Bin Meng
On Mon, Oct 14, 2019 at 7:11 PM Patrick Wildt wrote: > > On an i.MX8MQ our nvme driver doesn't completely work since we are > missing a few cache flushes. One is the prp list, which is an extra > buffer that we need to flush before handing it to the hardware. Also > the block read/write operatio

[U-Boot] [PATCH v2] pci: layerscape: remove multiple definitions of SVR

2019-10-16 Thread Pankaj Bansal
SVR values for various nxp SOCs are defined in asm/arch/soc.h we can use these values in any peripheral driver. we need not to redefine these values in peripheral driver, as this becomes difficult to manage (add or change new values) Signed-off-by: Pankaj Bansal --- Notes: V2: - fixed co

Re: [U-Boot] [PATCH v2] nvme: use page-aligned buffer for identify command

2019-10-16 Thread Bin Meng
On Wed, Oct 16, 2019 at 2:42 PM Patrick Wildt wrote: > > Change the stack-allocated buffer for the identification command > to explicitly allocate page-aligned buffers. Even though the spec > seems to allow having admin queue commands on non page-aligned > buffers, it seems to not be possible on

Re: [U-Boot] [PATCH v2 1/4] dm: spi: Return 0 if driver does not implement ops->cs_info

2019-10-16 Thread Jagan Teki
On Sun, Sep 29, 2019 at 1:34 PM Bin Meng wrote: > > Hi Jagan, > > On Mon, Sep 9, 2019 at 9:00 PM Bin Meng wrote: > > > > If an SPI controller driver does not implement ops->cs_info, that > > probably means any chip select number could be valid, hence let's > > return 0 for spi_cs_info(). > > > >

[U-Boot] [PATCH 00/10] Enable i.MX8MM EVK BD71837 pmic

2019-10-16 Thread Peng Fan
This patch is to enable BD71837 pmic for i.MX8MM EVK. Two i.MX8MQ patches are also included. Peng Fan (10): imx8m: imx8mq: get chip rev for B1 revision imx8m: clock: improve irq response latency imx: imx8mq: add init_nand_clk imx: spl: implement spl_boot_mode for i.MX7/8/8M dt-bindings:

[U-Boot] [PATCH 01/10] imx8m: imx8mq: get chip rev for B1 revision

2019-10-16 Thread Peng Fan
The i.MX8MQ B1 uses OCOTP_HW_OCOTP_READ_FUSE_DATA register for chip id. It returns a magic number 0xff0055aa. update get_cpu_rev to support it, and enable ocotp clock to access ocotp. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/clock_imx8mq.c | 1 + arch/arm/mach-imx/imx8m/soc.c

[U-Boot] [PATCH 02/10] imx8m: clock: improve irq response latency

2019-10-16 Thread Peng Fan
Improve the IRQ response latency by setting GIC root clock source to sys_pll2_200m from osc. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/clock_imx8mq.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mq.c b/arch/arm/mach-imx/imx8m/clock_imx8mq

[U-Boot] [PATCH 05/10] dt-bindings: import usb pd

2019-10-16 Thread Peng Fan
Import usb pd bindings from Linux 5.4.0-rc1. This file will be included by imx8mm-evk.dts. Signed-off-by: Peng Fan --- include/dt-bindings/usb/pd.h | 88 1 file changed, 88 insertions(+) create mode 100644 include/dt-bindings/usb/pd.h diff --git a/i

[U-Boot] [PATCH 04/10] imx: spl: implement spl_boot_mode for i.MX7/8/8M

2019-10-16 Thread Peng Fan
It will be easy to separate SD/EMMC when booting in SPL stage, then no need to bother which device is BOOT_DEVICE_MMC1/2. Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 29 + 1 file changed, 29 insertions(+) diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach

[U-Boot] [PATCH 03/10] imx: imx8mq: add init_nand_clk

2019-10-16 Thread Peng Fan
Add init_nand_clk to enable gpmi nand clock. Since i.MX8MQ not use CCF, so we still use legacy mode to configure the clock. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/clock_imx8mq.h | 2 ++ arch/arm/mach-imx/imx8m/clock_imx8mq.c | 9 + 2 files changed, 11 inserti

[U-Boot] [PATCH 06/10] arm: dts: imx8mm: sync dts from Linux Kernel

2019-10-16 Thread Peng Fan
Sync dts for i.MX8MM from Linux Kernel 5.4.0-rc1 Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 2 +- arch/arm/dts/imx8mm-evk.dts | 285 +++- arch/arm/dts/imx8mm.dtsi| 222 ++-- 3 files changed, 459

[U-Boot] [PATCH 09/10] imx8m: evk: spl: probe clk in spl early stage

2019-10-16 Thread Peng Fan
We are going to add i2c pmic support before dram could be used. So we need enable clk driver earlier, so use spl_early_init and move clock controller probe eariler to board_init_f. Signed-off-by: Peng Fan --- board/freescale/imx8mm_evk/spl.c | 22 +++--- 1 file changed, 11 insert

[U-Boot] [PATCH 08/10] power: pmic: Kconfig: add CONFIG_SPL_DM_PMIC_BD71837

2019-10-16 Thread Peng Fan
Add CONFIG_SPL_DM_PMIC_BD71837 to make this driver could be used in SPL stage Signed-off-by: Peng Fan --- drivers/power/pmic/Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/drivers/power/pmic/Kconfig b/drivers/power/pmic/Kconfig index 586772fdec..4718dc700c 100644 --- a/drive

[U-Boot] [PATCH 07/10] pmic: bd71837: drop DEBUG macro

2019-10-16 Thread Peng Fan
Drop DEBUG macro definition which is used for debug purpose. Signed-off-by: Peng Fan --- drivers/power/pmic/bd71837.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/power/pmic/bd71837.c b/drivers/power/pmic/bd71837.c index e292d42a8c..2e04298273 100644 --- a/drivers/power/pmic/bd71

[U-Boot] [PATCH 10/10] imx8mm: evk: enable bd71837 pmic

2019-10-16 Thread Peng Fan
Enable bd71837 pmic for i.MX8MM EVK board, need to set voltage for DRAM and linux suspend voltage requirement. Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 20 ++ board/freescale/imx8mm_evk/spl.c| 41 + configs/imx8mm_e

Re: [U-Boot] [PATCH v2 14/38] spi: Add support for memory-mapped flash

2019-10-16 Thread Vignesh Raghavendra
Hi Simon, On 12/10/19 10:03 AM, Bin Meng wrote: > Hi Simon, > > On Sat, Oct 12, 2019 at 11:08 AM Simon Glass wrote: >> >> Hi Bin, >> >> On Wed, 9 Oct 2019 at 07:55, Bin Meng wrote: >>> >>> Hi Simon, >>> >>> On Wed, Sep 25, 2019 at 10:12 PM Simon Glass wrote: On x86 platforms the SPI

[U-Boot] [PATCH v3 0/2] imx6ull: Fix missing initial output from UART

2019-10-16 Thread Igor Opaniuk
For Colibri iMX6ULL we have to set pinmux for uart configuration ASAP (ideally before relocation) to get serial console working. Without this we miss almost the half of output (U-boot version, CPU defails, Reset cause, DRAM details etc.). To achieve this we need to force pinctrl-mx6 to get probed

[U-Boot] [PATCH v3 1/2] ARM: dts: imx6ull-colibri: change hierarchy of DTS files

2019-10-16 Thread Igor Opaniuk
From: Igor Opaniuk Introduce imx6ull-colibri-u-boot.dtsi for u-boot specific properties to keep original imx6ull-colibri.dts in sync with Linux. Move all contents of imx6ull-colibri.dts to imx6ull-colibri.dtsi + additionally fix checkpatch warnings. Reviewed-by: Oleksandr Suvorov Reviewed-by:

Re: [U-Boot] [PATCH v2 6/9] mpc85xx, socrates: disable VIDEO

2019-10-16 Thread Heiko Schocher
Hello Priyanka Jain, Am 16.10.2019 um 09:20 schrieb Heiko Schocher: Hello Priyanka Jain, Am 16.10.2019 um 08:56 schrieb Priyanka Jain: -Original Message- From: U-Boot On Behalf Of Heiko Schocher Sent: Wednesday, October 16, 2019 9:26 AM To: U-Boot Mailing List Subject: [U-Boot] [PA

[U-Boot] [PATCH v3 2/2] ARM: dts: imx6ull-colibri: pre-reloc for uart pinmux modes

2019-10-16 Thread Igor Opaniuk
From: Igor Opaniuk Add u-boot,dm-pre-reloc properties for uart pinmux configuration nodes, which enables UART as early as possible (before relocation). Without this we miss almost the half of output (U-boot version, CPU defails, Reset cause, DRAM details etc.). Fixes: cd69e8ef9b ("colibri-imx6u

Re: [U-Boot] [PATCH v2 6/9] mpc85xx, socrates: disable VIDEO

2019-10-16 Thread Priyanka Jain
>-Original Message- >From: Heiko Schocher >Sent: Wednesday, October 16, 2019 4:11 PM >To: Priyanka Jain >Cc: U-Boot Mailing List >Subject: Re: [U-Boot] [PATCH v2 6/9] mpc85xx, socrates: disable VIDEO > >Hello Priyanka Jain, > >Am 16.10.2019 um 09:20 schrieb Heiko Schocher: >> Hello Pri

Re: [U-Boot] [PATCH v2 6/9] mpc85xx, socrates: disable VIDEO

2019-10-16 Thread Heiko Schocher
Hello Priyanka Jain, Am 16.10.2019 um 12:47 schrieb Priyanka Jain: -Original Message- From: Heiko Schocher Sent: Wednesday, October 16, 2019 4:11 PM To: Priyanka Jain Cc: U-Boot Mailing List Subject: Re: [U-Boot] [PATCH v2 6/9] mpc85xx, socrates: disable VIDEO Hello Priyanka Jain,

[U-Boot] [PATCH 1/1] virtio: pci: use correct type in virtio_pci_bind()

2019-10-16 Thread Heinrich Schuchardt
For printing as %u we should use an unsigned int. Signed-off-by: Heinrich Schuchardt --- drivers/virtio/virtio_pci_legacy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/virtio_pci_legacy.c index 08764ee6f2..202e5ab1d3 10

Re: [U-Boot] [PATCH 36/37] dm: pmic: add da9063 PMIC driver and regulators

2019-10-16 Thread Robert Beckett
On Wed, 2019-10-16 at 07:24 +, Schrempf Frieder wrote: > Hi Robert, > > On 15.10.19 17:53, Robert Beckett wrote: > > Add DM driver to support Dialog DA9063. > > Currently it support binding regulator children. > > > > Signed-off-by: Robert Beckett > > I also have a board with DA9063 and was

Re: [U-Boot] [PATCH 36/37] dm: pmic: add da9063 PMIC driver and regulators

2019-10-16 Thread Martin Fuzzey
Hi Robert, On 16/10/2019 13:11, Robert Beckett wrote: Huh, I had not seen that. Martin's versions looks more complete than mine, so I would say go with that one. Martin: any objections to including your patches in here? I dont mind pushing it through and handling any review comments etc. I am

Re: [U-Boot] [PATCH 2/3] ARM: imx: Fix bmode detection from grp10

2019-10-16 Thread Fabio Estevam
Hi Claudius, On Wed, Oct 16, 2019 at 10:28 AM Claudius Heine wrote: > > imx6_is_bmode_from_gpr10 always returns false, because > IMX6_SRC_GPR10_BMODE is 1<<28 and gets casted to u8 on return. > > Instead cast them to a boolean value before return of the function. > > Signed-off-by: Claudius Heine

Re: [U-Boot] [PATCH v2 1/4] dm: spi: Return 0 if driver does not implement ops->cs_info

2019-10-16 Thread Jagan Teki
On Mon, Sep 9, 2019 at 6:30 PM Bin Meng wrote: > > If an SPI controller driver does not implement ops->cs_info, that > probably means any chip select number could be valid, hence let's > return 0 for spi_cs_info(). > > Signed-off-by: Bin Meng > Reviewed-by: Jagan Teki > > --- Applied to u-boot-

Re: [U-Boot] [PATCH 1/1] virtio: pci: use correct type in virtio_pci_bind()

2019-10-16 Thread Bin Meng
On Wed, Oct 16, 2019 at 6:59 PM Heinrich Schuchardt wrote: > > For printing as %u we should use an unsigned int. > > Signed-off-by: Heinrich Schuchardt > --- > drivers/virtio/virtio_pci_legacy.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Bin Meng ___

Re: [U-Boot] [PATCH v2 3/4] dm: spi: Check cs number before accessing slaves

2019-10-16 Thread Jagan Teki
On Mon, Sep 9, 2019 at 6:30 PM Bin Meng wrote: > > Add chip select number check in spi_find_chip_select(). Since we discussed the cs check to common call in spi_find_chip_select. Would you please add some more commit description. > > Signed-off-by: Bin Meng > > --- Tested-by: Jagan Teki # So

Re: [U-Boot] [PATCH v2 4/4] test: dm: spi: Fix sandbox dm_test_spi_find()

2019-10-16 Thread Jagan Teki
On Mon, Sep 9, 2019 at 6:30 PM Bin Meng wrote: > > Per sandbox_cs_info(), sandbox spi controller only supports chip > select 0. Current test case tries to locate devices on chip select > 1, and any call to spi_get_bus_and_cs() or spi_cs_info() with cs > number 1 should not return 0. > > This updat

Re: [U-Boot] [PATCH 3/3] pico-imx7d: polish uart clock id definition

2019-10-16 Thread Jun Nie
Stefano Babic 于2019年10月13日周日 下午9:35写道: > > Hi Jun, > > I am just trying to check if some patch was silently lost, I found yours: > > On 16/07/19 09:42, Jun Nie wrote: > > Polish uart clock id definition. Default IMX7 UART ID is UART1 > > as original parameter in imx_get_uartclk(). > > > > Signed-o

[U-Boot] [PATCH v2 0/5] riscv: sifive/fu540: Enable SPI-NOR support

2019-10-16 Thread Jagan Teki
This is v2 patchset, enable SPI-NOR flash on SiFive hifive-unleashed-a00 board, here is v1 [1]. Changes for v2: - use latest sifive commit from linux-next - fix typos in commit message - rebased on master patch 0001 - 02: support devicetree patch 0003: add is25wp256 chip patch 0004 - 05: enable

[U-Boot] [PATCH v2 3/5] mtd: spi-nor: ids: Add is25wp256 chip

2019-10-16 Thread Jagan Teki
Add is25wp256, chip to spi-nor id table. Tested on SiFive FU540 board. Signed-off-by: Jagan Teki Reviewed-by: Bin Meng Tested-by: Bin Meng --- drivers/mtd/spi/spi-nor-ids.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c inde

[U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2019-10-16 Thread Jagan Teki
HiFive Unleashed A00 support is25wp256 spi-nor flash, So enable the same and add test result log for future reference. Tested on SiFive FU540 board. Signed-off-by: Jagan Teki Reviewed-by: Bin Meng Tested-by: Bin Meng --- .../dts/hifive-unleashed-a00-u-boot.dtsi | 1 + board/sifive/fu540

[U-Boot] [PATCH v2 2/5] sifive: fu540: Enable OF_SEPARATE

2019-10-16 Thread Jagan Teki
Use dts support from U-Boot via OF_SEPARATE instead of depending from opensbi. This would help to make the necessary changes in drivers and devicetrees in uboot tree itself. this feature would also be helpful to not pass dtb during opensbi builds. Signed-off-by: Jagan Teki --- configs/sifive_fu

[U-Boot] [PATCH v2 4/5] riscv: dts: hifive-unleashed-a00: Add -u-boot.dtsi

2019-10-16 Thread Jagan Teki
Add u-boot specific dts file for hifive-unleashed-a00, this would help to add u-boot specific properties and other node changes without touching the base dts(i) files which are easy to sync from Linux. Added spi2 alias for qspi2 as an initial u-boot specific property change. spi probing in curren

[U-Boot] [PATCH v2 1/5] riscv: dts: Add hifive-unleashed-a00 dts from Linux

2019-10-16 Thread Jagan Teki
Sync the hifive-unleashed-a00 dts from Linux with below commit details: commit <2993c9b04e616df0848b655d7202a707a70fc876> ("riscv: dts: HiFive Unleashed: add default chosen/stdout-path") Idea is to periodically sync the dts from Linux instead of tweaking internal changes one after another, so bet

[U-Boot] [PATCH] arm: dts: rk3399-roc-pc: Sync latest dts changes from Linux

2019-10-16 Thread Jagan Teki
Few important regulator power rails fixes are available in linux-next, so sync them same. Here is the last commit details: commit <9f7f9b610e1b7d2dc86c543ab0dfcf781bd42326> ("arm64: dts: rockchip: Fix roc-rk3399-pc regulator input rails") Cc: Kever Yang Cc: Levin Du Signed-off-by: Jagan Teki -

Re: [U-Boot] [PATCH v2 3/4] dm: spi: Check cs number before accessing slaves

2019-10-16 Thread Jagan Teki
Hi Bin, On Mon, Sep 9, 2019 at 6:30 PM Bin Meng wrote: > > Add chip select number check in spi_find_chip_select(). > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - move the chip select number check to spi_find_chip_select() > > drivers/spi/spi-uclass.c | 45 ++-

Re: [U-Boot] [PATCH] nvme: add more cache flushes

2019-10-16 Thread Patrick Wildt
On Wed, Oct 16, 2019 at 06:11:23PM +0800, Bin Meng wrote: > On Mon, Oct 14, 2019 at 7:11 PM Patrick Wildt wrote: > > > > On an i.MX8MQ our nvme driver doesn't completely work since we are > > missing a few cache flushes. One is the prp list, which is an extra > > buffer that we need to flush befo

[U-Boot] [PATCH] cmd: sf: Mark it default if DM_SPI_FLASH enabled

2019-10-16 Thread Jagan Teki
If DM_SPI_FLASH enabled that means it is using sf command for flash interface to access. SPI_FLASH can be used via sf command and board/driver functions to call spi flash ops, so mark it default only for DM_SPI_FLASH. This would prevent explicit adding of CONFIG_CMD_SF when DM_SPI_FLASH being ena

[U-Boot] [PATCH v2] mtd: spi: Kconfig: Imply SPI_FLASH if DM_SPI_FLASH

2019-10-16 Thread Jagan Teki
DM_SPI_FLASH should require spi flash interface code for dm version, so select SPI_FLASH core by default if any board enabled DM_SPI_FLASH. This overcome the explicit enablement of CONFIG_SPI_FLASH on respective boards when DM_SPI_FLASH being used. Cc: Vignesh R Signed-off-by: Jagan Teki --- Ch

Re: [U-Boot] [PATCH 1/2] watchdog: imx: Add DT ext-reset handling

2019-10-16 Thread Robert Hancock
On 2019-08-07 2:28 a.m., Marek Vasut wrote: > On 8/6/19 8:49 PM, Robert Hancock wrote: >> On 2019-08-06 11:11 a.m., Marek Vasut wrote: >>> On 8/6/19 7:05 PM, Robert Hancock wrote: The Linux imx2_wdt driver uses a fsl,ext-reset-output boolean in the device tree to specify whether the board

[U-Boot] [PATCH] spi: Kconfig: Add help text

2019-10-16 Thread Jagan Teki
Add detailed help text for SPI support. Signed-off-by: Jagan Teki --- drivers/spi/Kconfig | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index b8ca2bdedd..0152dff74f 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -1

Re: [U-Boot] [PATCH 1/2] watchdog: imx: Add DT ext-reset handling

2019-10-16 Thread Fabio Estevam
On Wed, Oct 16, 2019 at 1:11 PM Robert Hancock wrote: > Any updates on this patch set? It is still outstanding in patchwork: > > https://patchwork.ozlabs.org/project/uboot/list/?series=123623 Series looks good. Not sure if you added Stefano on Cc. ___

[U-Boot] [PATCH v3 1/3] spi: Kconfig: Enable SPI_SUNXI for SUNXI

2019-10-16 Thread Jagan Teki
SPI_SUNXI driver is fully dm-aware and the Allwinner architecture kconfig would have logic to enable the DM_SPI. So, select default spi sunxi driver for sunxi architecture. Signed-off-by: Jagan Teki --- Changes for v3: - none drivers/spi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH v3 2/3] arm: sunxi: Enable SPI/SPI-FLASH support for A64

2019-10-16 Thread Jagan Teki
SPI is available in Allwinner A64 SoC, so enable it globally in Kconfig. - CONFIG_SPI - CONFIG_DM_SPI - CONFIG_DM_SPI_FLASH Signed-off-by: Jagan Teki --- Changes for v3: - Move to kconfig from defconfig arch/arm/mach-sunxi/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm

[U-Boot] [PATCH v3 3/3] configs: sopine-baseboard: Enable SPI-FLASH

2019-10-16 Thread Jagan Teki
SoPine has winbond SPI-FLASH, so enable the same in defconfig and add aliases for spi0 in -u-boot.dtsi Signed-off-by: Jagan Teki --- Changes for v3: - none arch/arm/dts/sun50i-a64-sopine-baseboard-u-boot.dtsi | 12 configs/sopine_baseboard_defconfig | 1 + 2 file

Re: [U-Boot] [PATCH v2 3/5] mtd: spi-nor: ids: Add is25wp256 chip

2019-10-16 Thread Jagan Teki
On Wed, Oct 16, 2019 at 8:28 PM Jagan Teki wrote: > > Add is25wp256, chip to spi-nor id table. > > Tested on SiFive FU540 board. > > Signed-off-by: Jagan Teki > Reviewed-by: Bin Meng > Tested-by: Bin Meng > --- Applied to u-boot-spi/master ___ U-Boot

Re: [U-Boot] [PATCH v2] sunxi: H6: DRAM: Add support for half DQ

2019-10-16 Thread Jagan Teki
On Fri, Aug 23, 2019 at 10:54 PM Jernej Skrabec wrote: > > Half DQ configuration seems to be very rare for H6 based boards/STBs, > but exists nevertheless. Currently the only known product which needs > this support is Tanix TX6 mini. > > This commit adds support for half DQ configuration. Code wa

[U-Boot] [PATCH 0/5] tools: Support building U-Boot host tools for Windows via MSYS2

2019-10-16 Thread Bin Meng
Per current U-Boot README, building Windows versions of the utilities in the tools directory is done via the MinGW toolchain. But testing shows that it is broken and actually it must have been broken for quite a long time. Fixing MinGW build seems quite amount of work as developers of U-Boot norma

[U-Boot] [PATCH 2/5] tools: mtk_image.h: Use portable uintXX_t instead of linux-specific __leXX

2019-10-16 Thread Bin Meng
__leXX has Linux kernel specific __attribute__((bitwise)) which is not portable. Use corresponding uintXX_t instead. Signed-off-by: Bin Meng --- tools/mtk_image.h | 86 +++ 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/tools/

[U-Boot] [PATCH 3/5] tools: zynqmpbif: Use compiler builtin instead of linux-specific __swab32

2019-10-16 Thread Bin Meng
__swab32() is a Linux specific macro defined in linux/swab.h. Let's use the compiler equivalent builtin function __builtin_bswap32() for better portability. Signed-off-by: Bin Meng --- tools/zynqmpbif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/zynqmpbif.c b/tool

  1   2   >