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

2019-10-23 Thread Patrick DELAUNAY
> > 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

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

2019-10-23 Thread Patrick DELAUNAY
> > 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

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

2019-10-23 Thread Patrick DELAUNAY
> > 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

Re: [U-Boot] [EXT] Re: [PATCH 1/6] spi: fsl_qspi: Fix DDR mode setting for latest iMX platforms

2019-10-23 Thread Stefan Roese
On 23.10.19 12:34, Schrempf Frieder wrote: BTW: Using the "spi-mem" driver version from Ashish with the fix suggested by Frieder to clear the DDR bit in TDH (reset to 00) still works without any problems. There is some cleanup work that needs to be done (e.g. [1]). After that I will send an

Re: [U-Boot] [PATCH] board: stm32mp1: fixup the usb product id for USB download gadget

2019-10-23 Thread Patrick DELAUNAY
> > Select the correct USB product id used by the download gadget for ST stm32mp1 > boards. > > The board stm32mp1 select the correct product id, as defined in > http://www.linux- > usb.org/usb.ids for the STMicroelectronics vendor id = 0x0483 > (CONFIG_USB_GADGET_VENDOR_NUM): > - dfu = 0xdf11

Re: [U-Boot] [PATCH] ARM: mvebu: don't dereference null bd pointer

2019-10-23 Thread Stefan Roese
On 23.10.19 09:48, Chris Packham wrote: On Wed, Oct 23, 2019 at 1:15 AM Stefan Roese wrote: Hi Chris, On 22.10.19 09:05, Chris Packham wrote: As mentioned in doc/README.arm-relocation gd->bd is not available in dram_init() so we shouldn't attempt to access it. Signed-off-by: Chris Packham

Re: [U-Boot] [PATCH v2 5/5] imx: nandbcb: add support for writing BCB only

2019-10-23 Thread Oleksandr Suvorov
On Mon, Oct 21, 2019 at 4:41 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Add subcommand for add writing BCB only, where we provide appropriate > offsets for firmware1 and firmware2 and size. > > Example of usage: > - nandbcb bcbonly 0x0018 0x0008 0x0020 > Writing 1024 bytes to

Re: [U-Boot] [PATCH] spl: spl_mmc: fix getting raw_sect when boot from emmc boot partition

2019-10-23 Thread Peng Fan
> Subject: Re: [PATCH] spl: spl_mmc: fix getting raw_sect when boot from > emmc boot partition > > Hi Peng, > > > On i.MX8, when booting from eMMC boot partition, the whole flash.bin > > is stored in boot partition, however SPL switches to user partition > > during the init of mmc driver: > >

[U-Boot] [v2 2/2] ata: sata_sil: Add DM support for Silicon sata driver

2019-10-23 Thread Peng Ma
Add DM support for Silicon(SIL3131 / SIL3132 / SIL3124) sata driver as few of the PowerPC platforms such as P series based boards need to use SATA_SIL with DM, Also fix below warning while PowerPC P series boards compilation, = WARNING ==" This board does

Re: [U-Boot] [PATCH v2 4/9] mpc85xx, socrates: add DM support

2019-10-23 Thread 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 4/9] mpc85xx, socrates: add DM support > >enable CONFIG_DM for the socrates board. > >Signed-off-by: Heiko Schocher >--- >

Re: [U-Boot] [PATCH v2 2/5] nand: mxs_nand: add API for switching different BCH layouts

2019-10-23 Thread Oleksandr Suvorov
On Mon, Oct 21, 2019 at 4:41 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > On i.MX7 in a sake of reducing the disturbances caused by a neighboring > cells in the FCB page in the NAND chip, a randomizer is enabled when > reading the FCB page by ROM bootloader. > > Add API for setting BCH to

Re: [U-Boot] [PATCH v2 1/5] imx: gpmi: add defines for hw randominizer

2019-10-23 Thread Oleksandr Suvorov
On Mon, Oct 21, 2019 at 4:41 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Extend GPMI Integrated ECC Control Register Description, include > additional defines for enabling randomizer function and providing > proper randomizer type. > > For additional details check i.MX7 APR, section >

Re: [U-Boot] [PATCH v2 4/5] imx: nandbcb: refactor update function

2019-10-23 Thread Oleksandr Suvorov
On Mon, Oct 21, 2019 at 4:41 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Move code for writing FCB/DBBT pages to a separate function > > Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov > --- > > arch/arm/mach-imx/cmd_nandbcb.c | 221 ++-- > 1

Re: [U-Boot] [PATCH v2 3/5] imx: nandbcb: add support for i.MX7

2019-10-23 Thread Oleksandr Suvorov
On Mon, Oct 21, 2019 at 4:40 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Add support for updating FCB/DBBT on i.MX7: > - additional new fields in FCB structure > - Leverage hardware BCH/randomizer for writing FCB > > Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov > --- > >

Re: [U-Boot] [PATCH V1 6/6] imx: imx8mm-evk: enable ethernet

2019-10-23 Thread Peng Fan
> Subject: Re: [PATCH V1 6/6] imx: imx8mm-evk: enable ethernet > > Hi Peng, > > On Tue, Oct 22, 2019 at 12:30 AM Peng Fan wrote: > > > > add phy-reset-gpios to reset phy > > Add board_phy_config to configure phy > > Enable DM_ETH > > > > Signed-off-by: Peng Fan > > --- > >

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

2019-10-23 Thread Patrick DELAUNAY
Hi, > > 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

Re: [U-Boot] [PATCH 2/2] spi: cadence-qspi: Add direct mode support

2019-10-23 Thread Vignesh Raghavendra
On 18/10/19 6:12 PM, Simon Goldschmidt wrote: > On Fri, Oct 18, 2019 at 2:40 PM Vignesh Raghavendra wrote: >> >> Hi, >> >> On 18/10/19 2:34 PM, Simon Goldschmidt wrote: >>> On Thu, Oct 17, 2019 at 2:55 PM Simon Goldschmidt >>> wrote: On Thu, Oct 17, 2019 at 2:44 PM Vignesh

Re: [U-Boot] [PATCH 2/2] spi: cadence-qspi: Add direct mode support

2019-10-23 Thread Simon Goldschmidt
On Wed, Oct 23, 2019 at 12:00 PM Vignesh Raghavendra wrote: > > > > On 18/10/19 6:12 PM, Simon Goldschmidt wrote: > > On Fri, Oct 18, 2019 at 2:40 PM Vignesh Raghavendra wrote: > >> > >> Hi, > >> > >> On 18/10/19 2:34 PM, Simon Goldschmidt wrote: > >>> On Thu, Oct 17, 2019 at 2:55 PM Simon

Re: [U-Boot] [EXT] Re: [PATCH 1/6] spi: fsl_qspi: Fix DDR mode setting for latest iMX platforms

2019-10-23 Thread Schrempf Frieder
Hi Ashish, On 22.10.19 18:11, Ashish Kumar wrote: > > >> -Original Message- >> From: Stefan Roese >> Sent: Tuesday, October 22, 2019 9:12 PM >> To: Schrempf Frieder ; Ashish Kumar >> ; Ye Li ; >> ja...@amarulasolutions.com >> Cc: Fabio Estevam ; u-boot@lists.denx.de; dl- >> uboot-imx

[U-Boot] [v2 3/6] powerpc: p5040: dts: Add Sata DT nodes

2019-10-23 Thread Peng Ma
This patch is to add sata node for P5040 platform Signed-off-by: Peng Ma --- Changed for v2: - Change "Added" to "Add" 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

[U-Boot] Confusion about "u-boot/doc/uImage.FIT/signature.txt"

2019-10-23 Thread Lang Yu
Hi, sjg, I'm YuLang, a software engineer in Hesai Tech. I really appreciate your contribution to secure boot. But I'm confused with your explanation about signature with FIT image in "u-boot/doc/uImage.FIT/signature.txt". As following, / { images { kernel@1 { data = hash@1 { algo =

Re: [U-Boot] [PATCH 1/7] image: android: Add functions for handling dtb field

2019-10-23 Thread Sam Protsenko
Hi Simon, On Fri, Sep 20, 2019 at 8:45 PM Simon Glass wrote: > > Hi Sam, > > On Thu, 19 Sep 2019 at 12:28, Sam Protsenko > wrote: > > > > Android Boot Image v2 adds "DTB" payload (and corresponding field in the > > image header). Provide functions for its handling: > > > > -

Re: [U-Boot] [PATCH] configs: stm32f746-disco: Fix ramdisk_addr_r

2019-10-23 Thread Patrick DELAUNAY
> > Set ramdisk_addr_r to 0xC060. > > Reported-by: Christophe Priouzeau > Signed-off-by: Patrice Chotard > --- Applied to u-boot-stm32/master, thanks! ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [BUG] efi_driver: crash while reading from iSCSI drive

2019-10-23 Thread AKASHI Takahiro
On Tue, Oct 22, 2019 at 10:29:09PM +0200, Heinrich Schuchardt wrote: > The patch > > commit 867400677cda0fac4a411f1549fe3a61bb5ed172 > efi_loader: disk: install FILE_SYSTEM_PROTOCOL only if available > > breaks booting my Pine A64 LTS board via iPXE and GRUB. But I assume > this is not at the

[U-Boot] [PATCH] net: phy: micrel: make sure the factory test bit is cleared

2019-10-23 Thread Eugen.Hristev
From: Nicolas Ferre The KSZ8081 PHY has a factory test mode which is set at the de-assertion of the reset line based on the RXER (KSZ8081RNA/RND) or TXC (KSZ8081MNX/RNB) pin. If a pull-down is missing, or if the pin has a pull-up, the factory test mode should be cleared by manually writing a 0

[U-Boot] [v2 1/2] ata: fsl_sata: Add DM support for Freescale PowerPC SATA driver

2019-10-23 Thread Peng Ma
Add DM support for Freescale PowerPC sata driver used for PowerPC T series SoCs, CONFIG_BLK needs to be enabled on these platforms. It adds the SATA controller as AHCI device, which is strictly speaking not correct, as the controller is not AHCI compatible, But the U-Boot AHCI uclass interface

[U-Boot] [v2 1/6] powerpc: p2041: dts: Add Sata DT nodes

2019-10-23 Thread Peng Ma
This patch is to add sata node for P2041 platform Signed-off-by: Peng Ma --- Changed for v2: - Change "Added" to "Add" 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

[U-Boot] [v2 5/6] powerpc: t104x: dts: Add Sata DT nodes

2019-10-23 Thread Peng Ma
This patch is to add sata node for T104x platform Signed-off-by: Peng Ma --- Changed for v2: - Change "Added" to "Add" 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

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

2019-10-23 Thread Patrick DELAUNAY
> > 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

Re: [U-Boot] [PATCH 1/3] cmd: fru: Add support for FRU commands

2019-10-23 Thread Michal Simek
On 22. 10. 19 16:43, Michael Walle wrote: > Am 2019-10-22 15:45, schrieb Michal Simek: >> On 22. 10. 19 15:09, Michael Walle wrote: >>> Am 2019-10-14 15:29, schrieb Michal Simek: From: Siva Durga Prasad Paladugu This patch adds support for fru commands "fru capture" and "fru

[U-Boot] [v2 4/6] powerpc: t102x: dts: Add Sata DT nodes

2019-10-23 Thread Peng Ma
This patch is to add sata node for T102x platform Signed-off-by: Peng Ma --- Changed for v2: - Change "Added" to "Add" 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

[U-Boot] [v2 2/6] powerpc: p3041: dts: Add Sata DT nodes

2019-10-23 Thread Peng Ma
This patch is to add sata node for P3041 platform Signed-off-by: Peng Ma --- Changed for v2: - Change "Added" to "Add" 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

[U-Boot] [v2 6/6] powerpc: t4240: dts: Add Sata DT nodes

2019-10-23 Thread Peng Ma
This patch is to add sata node for T4240 platform Signed-off-by: Peng Ma --- Changed for v2: - Change "Added" to "Add" 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

Re: [U-Boot] [PATCH v5 00/26]MTD defconfigs/Kconfigs/Makefiles heavy cleanup

2019-10-23 Thread Tom Rini
On Mon, Oct 21, 2019 at 01:42:08PM +0530, Jagan Teki wrote: > Hi Miquel, > > On Mon, Oct 21, 2019 at 1:38 PM Miquel Raynal > wrote: > > > > Hi Jagan, > > > > Gentle ping. > > > > As discussed half a year ago, please do not trash this series :) > > Please give us sometime, will update

[U-Boot] [PATCH 2/2] warp7: Remove duplicate "mmc dev" command

2019-10-23 Thread Fabio Estevam
The "mmc dev" command is being called twice. Remove the extra call. Signed-off-by: Fabio Estevam --- include/configs/warp7.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/warp7.h b/include/configs/warp7.h index 9c6ee6997f..f1fc6c714f 100644 --- a/include/configs/warp7.h

Re: [U-Boot] [PATCH v2 05/11] ufs: Add Initial Support for UFS subsystem

2019-10-23 Thread Bin Meng
+Simon On Tue, Oct 15, 2019 at 8:59 PM Faiz Abbas wrote: > > Add Support for UFS Host Controller Interface (UFSHCI) for communicating > with Universal Flash Storage (UFS) devices. The steps to initialize the > host controller interface are the following: > > - Initiate the Host Controller

Re: [U-Boot] [PATCH v2 3/4] image: fdt: copy possible optee nodes to a loaded devicetree

2019-10-23 Thread Patrick DELAUNAY
Hi Heiko, > > Hi Patrick, > > Am Mittwoch, 23. Oktober 2019, 09:10:52 CEST schrieb Patrick DELAUNAY: > > Hi Jens and Heiko, > > > > > From: U-Boot On Behalf Of Jens > > > Wiklander > > > Sent: mercredi 23 octobre 2019 08:46 > > > > > > On Tue, Oct 22, 2019 at 09:04:27PM +0200, Heiko Stuebner

[U-Boot] [PATCH 3/5] stm32mp1: activate CONFIG_GPIO_HOG and update the gpio hog support

2019-10-23 Thread Patrick Delaunay
This patch migrates the current gpio hog implementation with the new configuration CONFIG_GPIO_HOG. Signed-off-by: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c| 10 ++ configs/stm32mp15_basic_defconfig | 1 + configs/stm32mp15_optee_defconfig | 1 +

[U-Boot] [PATCH 1/5] pinctrl: stmfx: add information on pin configuration

2019-10-23 Thread Patrick Delaunay
Add information on pin configuration used for pinmux command. Signed-off-by: Patrick Delaunay --- drivers/pinctrl/pinctrl-stmfx.c | 35 - 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-stmfx.c

[U-Boot] [PATCH 2/5] pinctrl: stm32: add information on pin configuration

2019-10-23 Thread Patrick Delaunay
Add information on pin configuration used for pinmux command: - bias configuration for output (disable, pull up, pull down) - otype for input (open drain or push pull) Signed-off-by: Patrick Delaunay --- drivers/pinctrl/pinctrl_stm32.c | 27 --- 1 file changed, 24

[U-Boot] [PATCH 5/5] gpio: stmfx: add set_config ops

2019-10-23 Thread Patrick Delaunay
Manage the flags for GPIO configuration: - open_drain, push_pull - pull_up, pull_down Signed-off-by: Patrick Delaunay --- drivers/pinctrl/pinctrl-stmfx.c | 105 +--- 1 file changed, 69 insertions(+), 36 deletions(-) diff --git a/drivers/pinctrl/pinctrl-stmfx.c

[U-Boot] [PATCH 4/5] gpio: stm32: add set_config ops

2019-10-23 Thread Patrick Delaunay
Manage flags for GPIO configuration: - open_drain, open_source, push_pull - pull_up, pull_down Signed-off-by: Patrick Delaunay --- drivers/gpio/stm32_gpio.c | 58 +++ 1 file changed, 58 insertions(+) diff --git a/drivers/gpio/stm32_gpio.c

[U-Boot] [PATCH] clk: imx: imx8mm: Fix the first root clock in imx8mm_ahb_sels[]

2019-10-23 Thread Schrempf Frieder
From: Frieder Schrempf The 24MHz oscillator clock is referenced by "clock-osc-24m" and not "osc_24m". Signed-off-by: Frieder Schrempf --- drivers/clk/imx/clk-imx8mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx8mm.c

[U-Boot] [PATCH 01/13] pinctrol: dm: remove the function pinctrl_decode_pin_config

2019-10-23 Thread Patrick Delaunay
Remove the pinctrl_decode_pin_config() API, because this function is unused and not compatible with livetree (it uses fdtdec_get_bool instead of ofnode API). Signed-off-by: Patrick Delaunay --- drivers/pinctrl/pinctrl-uclass.c | 12 include/dm/pinctrl.h | 13

[U-Boot] [PATCH 06/13] gpio: add support for new flags on gpio configuration

2019-10-23 Thread Patrick Delaunay
This commit manages the flags that can be used in GPIO specifiers to indicate if a pull-up resistor or pull-down resistor should be enabled for output GPIO and the Open Drain/Open Source configuration for input GPIO. It is managed in driver with a new ops in gpio uclass set_config. These flags

[U-Boot] [PATCH 08/13] pinctrl: sandbox: Add mux information in get_pin_muxing

2019-10-23 Thread Patrick Delaunay
Add param information in pin information output. This update prepare unitary test for pin configuration in pinctrl node. Signed-off-by: Patrick Delaunay --- drivers/pinctrl/pinctrl-sandbox.c | 30 ++ 1 file changed, 30 insertions(+) diff --git

[U-Boot] [PATCH 09/13] test: dm: update test for pins configuration in pinctrl node

2019-10-23 Thread Patrick Delaunay
Add test for "pins" configuration in gpio uclass with set_state() ops and test for generic parsing of pinconf_param array). set_state() is called by: - pinctrl_generic_set_state |- pinctrl_generic_set_state_subnode Signed-off-by: Patrick Delaunay --- arch/sandbox/dts/test.dts | 25

[U-Boot] [PATCH 10/13] gpio: sandbox: cleanup flag support

2019-10-23 Thread Patrick Delaunay
Replace the GPIOF_ defines of gpio UCLASS (they are not bitfields but enum gpio_func_t = State of a GPIO, as reported by get_function()) by GPIO_FLAG to access to the bitfield 'flags' of struct gpio_state. This patch avoid confusion between sandbox and gpio UCLASS defines. Signed-off-by: Patrick

[U-Boot] [PATCH v2 0/8] am57xx: Implement Android 10 boot flow

2019-10-23 Thread Sam Protsenko
Android 10 brings a lot of new requirements for bootloaders: [1]. This patch series attempts to implement such a boot process on BeagleBoard X15 platform. Some common code is added too, which can be reused later for other platforms. This patch series denends on next (still not merged) patches:

[U-Boot] [PATCH v2 2/8] image: android: Add routine to get dtbo params

2019-10-23 Thread Sam Protsenko
Android Boot Image v1 adds "Recovery DTB" field in image header and associate payload in boot image itself [1]. Payload should be in Android DTB/DTBO format [2]. That "Recovery DTB" area should be only populated for non-A/B devices, and only in recovery image. Add function to get an address and

Re: [U-Boot] [RFC PATCH v2 08/18] socfpga: gen5: add new tool to create handoff dtsi files

2019-10-23 Thread Dalon L Westergreen
On Tue, 2019-10-22 at 19:13 +0200, Simon Goldschmidt wrote: > Dalon L Westergreen schrieb am Di., 22. > Okt. 2019, 19:10: > > I mentioned this before, it would be great to not rely on the generated > > files > > and do this based purely on the handoff data generated during a quartus > > build.

[U-Boot] [PATCH 05/13] dt-bindings: gpio: document the new pull-up/pull-down flags

2019-10-23 Thread Patrick Delaunay
This commit extends the flags that can be used in GPIO specifiers to indicate if a pull-up resistor or pull-down resistor should be enabled. It is the backport of linux commit ede033e1e863c ('dt-bindings: gpio: document the new pull-up/pull-down flags') from Thomas Petazzoni and integrated in

[U-Boot] [PATCH 02/13] dm: pinctrl: convert pinctrl-single to livetree

2019-10-23 Thread Patrick Delaunay
Convert 'pinctrl-single' using livetree functions - ofnode_get_property - ofnode_read_u32_default - ofnode_read_u32_array - ofnode_read_bool - dev_read_addr and get rid of DECLARE_GLOBAL_DATA_PTR. Signed-off-by: Patrick Delaunay --- drivers/pinctrl/pinctrl-single.c | 33

[U-Boot] [PATCH 13/13] test: pinmux: add pincontrol-gpio for pin configuration

2019-10-23 Thread Patrick Delaunay
Add a simple pincontrol associated to the sandbox gpio driver, that allow to check pin configuration check with the command pinmux. The pinux test is also updated to test behavior with 2 pincontrols. Example to check LED pin configuration: => pinmux list | Device| Driver

[U-Boot] [PATCH 07/13] dt-bindings: gpio: alignment with kernel v5.3

2019-10-23 Thread Patrick Delaunay
Update the binding file for gpio, it is just an alignment with kernel v5.3. The U-Boot code example for gpio-hog (not directly linked to binding) is moved in a new file doc/README.gpio. [commit 21676b706e99 ("gpio: fixes for gpio-hog support") & 'commit 4762a9988ede ("gpio: add gpio-hog

Re: [U-Boot] [PATCH 3/7] cmd: bootimg: Add bootimg command

2019-10-23 Thread Sam Protsenko
Hi Simon, On Wed, Sep 25, 2019 at 10:15 PM Simon Glass wrote: > > Hi Sam, > > On Tue, 24 Sep 2019 at 11:41, Sam Protsenko > wrote: > > > > Hi Igor, > > > > On Mon, Sep 23, 2019 at 11:36 PM Igor Opaniuk > > wrote: > > > > > > Hi Simon, > > > > > > On Fri, Sep 20, 2019 at 8:45 PM Simon Glass

[U-Boot] [PATCH v2 8/8] arm: ti: boot: Use correct dtb and dtbo on Android boot

2019-10-23 Thread Sam Protsenko
Read correct dtb file from boot.img/recovery.img and apply correct dtbo files from dtbo partition. Signed-off-by: Sam Protsenko --- Changes in v2: - rebase on top of master include/configs/ti_armv7_common.h | 7 + include/environment/ti/boot.h | 44 --- 2

[U-Boot] [PATCH v2 3/8] cmd: bootimg: Add bootimg command

2019-10-23 Thread Sam Protsenko
This command can be used to extract fields and image payloads from Android Boot Image. It can be used for example to implement boot flow where dtb is taken from boot.img (as v2 incorporated dtb inside of boot.img). Using this command, one can obtain needed dtb file from boot.img in scripting

[U-Boot] [PATCH v2 6/8] env: ti: boot: Respect slot_suffix in AVB commands

2019-10-23 Thread Sam Protsenko
Signed-off-by: Sam Protsenko --- Changes in v2: - rebase on top of master include/environment/ti/boot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/environment/ti/boot.h b/include/environment/ti/boot.h index 684a744f31..da99215fbd 100644 ---

[U-Boot] [PATCH v2 1/8] image: android: Add functions for handling dtb field

2019-10-23 Thread Sam Protsenko
Android Boot Image v2 adds "DTB" payload (and corresponding field in the image header). Provide functions for its handling: - android_image_get_dtb_by_index(): Obtain DTB file from "DTB" part of boot image, by file index - android_image_print_dtb_contents(): Iterate over all DTB files in

[U-Boot] [PATCH v2 4/8] test/py: android: Add test for bootimg

2019-10-23 Thread Sam Protsenko
Unit test for 'bootimg' command. Right now it covers dtb/dtbo functionality in Android Boot Image v2, which was added recently. Running test: $ ./test/py/test.py --bd sandbox --build -k test_bootimg shows that 1/1 tests passes successfully. Signed-off-by: Sam Protsenko --- Changes in v2:

Re: [U-Boot] [PATCH 2/2] warp7: Remove duplicate "mmc dev" command

2019-10-23 Thread Pierre-Jean Texier
Hi Fabio, Le 23/10/2019 à 16:20, Fabio Estevam a écrit : The "mmc dev" command is being called twice. Remove the extra call. Signed-off-by: Fabio Estevam --- include/configs/warp7.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/warp7.h b/include/configs/warp7.h index

Re: [U-Boot] [PATCH 1/2] warp7: Remove CONFIG_SYS_FSL_ESDHC_ADDR

2019-10-23 Thread Pierre-Jean Texier
Hi Fabio, Le 23/10/2019 à 16:20, Fabio Estevam a écrit : warp7 uses the driver model and it retrieves the ESDHC base address from device tree. Remove the unneeded CONFIG_SYS_FSL_ESDHC_ADDR definition. Signed-off-by: Fabio Estevam --- include/configs/warp7.h | 1 - 1 file changed, 1

[U-Boot] [PATCH 0/5] stm32mp1: activate gpio hog support and add new pinctrl ops

2019-10-23 Thread Patrick Delaunay
Hi, This serie updates the two pincontrol drivers for stm32mp1 and activates the gpio hog support to prepare the rebase on the v5.4 linux kernel device tree. The 2 last commits have dependency with the previous serie "dm: add support of new binding in gpio and pincontrol"

Re: [U-Boot] [PATCH V1 1/6] clk: imx8mm: add enet clk

2019-10-23 Thread Schrempf Frieder
On 22.10.19 05:29, Peng Fan wrote: > Add enet ref/timer/PHY_REF/root clk which are required to make enet > function well. > > Signed-off-by: Peng Fan Reviewed-by: Frieder Schrempf Tested-by: Frieder Schrempf > --- > drivers/clk/imx/clk-imx8mm.c | 27 +++ > 1 file

Re: [U-Boot] [PATCH V1 2/6] clk: imx: imx8mm: add set_parent callback

2019-10-23 Thread Schrempf Frieder
On 22.10.19 05:29, Peng Fan wrote: > Add set_parent callback, then assigned-clock-parents in dts could > be work. > > Signed-off-by: Peng Fan Reviewed-by: Frieder Schrempf Tested-by: Frieder Schrempf > --- > drivers/clk/imx/clk-imx8mm.c | 19 +++ > 1 file changed, 19

[U-Boot] [PATCH 1/2] warp7: Remove CONFIG_SYS_FSL_ESDHC_ADDR

2019-10-23 Thread Fabio Estevam
warp7 uses the driver model and it retrieves the ESDHC base address from device tree. Remove the unneeded CONFIG_SYS_FSL_ESDHC_ADDR definition. Signed-off-by: Fabio Estevam --- include/configs/warp7.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/warp7.h

Re: [U-Boot] Regression in fastboot on X15 due to CDCE913 enabling

2019-10-23 Thread Sam Protsenko
+ fixed U-Boot mailing list address On Wed, Oct 23, 2019 at 3:13 PM Sam Protsenko wrote: > > Hi Tero, > > This patch was merged in U-Boot/master recently: > > e8e683d33b0c ("board: ti: am57xx-idk: Configure the CDCE913 clock > synthesizer") > > Unfortunately it leads to a regression in

[U-Boot] [PATCH v2 7/8] env: ti: boot: Boot Android with dynamic partitions

2019-10-23 Thread Sam Protsenko
Changes: - use boot.img instead of boot_fit.img - use .dtb from boot.img v2 - implement recovery boot - always boot ramdisk from boot.img, we can't mount system as root now, as system is a logical partition inside of super partition - don't add "skip_initramfs" to cmdline anymore -

[U-Boot] [PATCH v2 5/8] configs: am57xx_evm: Enable Android commands

2019-10-23 Thread Sam Protsenko
Enable Android commands that will be needed for Android 10 boot flow implementation, for all AM57x variants. Commands enabled: 1. 'bootimg': - CONFIG_CMD_BOOTIMG=y 2. 'ab_select': - CONFIG_ANDROID_AB=y - CONFIG_CMD_AB_SELECT=y 3. 'avb': - CONFIG_LIBAVB=y -

Re: [U-Boot] [PATCH V1 5/6] net: fec_mxc: support i.MX8M with CLK_CCF

2019-10-23 Thread Schrempf Frieder
On 22.10.19 05:30, Peng Fan wrote: > Add more clks for fec_mxc according to Linux Kernel 5.4.0-rc1 > drivers/net/ethernet/freescale/fec_main.c. > > Since i.MX8MQ not support CLK_CCF, so add a check to restrict > the code only effect when CONFIG_IMX8M and CONFIG_CLK_CCF both defined. > >

Re: [U-Boot] [PATCH V1 4/6] net: Kconfig: FEC: Add dependency on i.MX8M

2019-10-23 Thread Schrempf Frieder
On 22.10.19 05:29, Peng Fan wrote: > Make FEC driver could be used by i.MX8M when CONFIG_FEC_MXC defined > in defconfig. > > Signed-off-by: Peng Fan Reviewed-by: Frieder Schrempf Tested-by: Frieder Schrempf > --- > drivers/net/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1

[U-Boot] [PATCH 03/13] dm: core: add ofnode function to iterate on node property

2019-10-23 Thread Patrick Delaunay
Add functions to iterate on all property with livetree - ofnode_get_first_property - ofnode_get_next_property - ofnode_get_property_by_prop For example: for (prop = ofnode_get_first_property(dev_ofnode(dev)); prop; prop = ofnode_get_next_property(dev_ofnode(dev),prop)) { value =

[U-Boot] [PATCH 00/13] dm: add support of new binding in gpio and pincontrol

2019-10-23 Thread Patrick Delaunay
Hi, I create this patchset to prepare alignment of stm32mp157c-ev1 device-tree with the linux kernel v5.4. One node for touch screen support use the IRQ line configuration using the new kernel binding introduced by the linux kernel commit ede033e1e863c from v5.1 ('dt-bindings: gpio: document

[U-Boot] [PATCH 04/13] dm: pinctrl: migrate pinctrl-generic to livetree

2019-10-23 Thread Patrick Delaunay
Migrate pinctrl-generic to livetree: - ofnode_get_first_property - ofnode_get_next_property - ofnode_get_property_by_prop - ofnode_read_string_count - ofnode_read_string_index and get rid of DECLARE_GLOBAL_DATA_PTR. This solve parsing issue during test in sandbox for pin configuration (OF_LIVE is

[U-Boot] [PATCH 12/13] test: dm: update test for pins configuration in gpio

2019-10-23 Thread Patrick Delaunay
Add tests for new API gpio_get_config and gpio_set_config and associated code in gpio uclass. Test support for new flags GPIO_OPEN_DRAIN, GPIO_OPEN_SOURCE GPIO_PULL_UP and GPIO_PULL_DOWN. Signed-off-by: Patrick Delaunay --- arch/sandbox/dts/test.dts | 16 + drivers/gpio/sandbox.c

[U-Boot] [PATCH 11/13] gpio: sandbox: cleanup binding support

2019-10-23 Thread Patrick Delaunay
Cleanup binding support, use the generic binding by default (test u-class gpio_xlate_offs_flags function) and add specific binding for added value. Signed-off-by: Patrick Delaunay --- arch/sandbox/dts/test.dts | 14 ++ drivers/gpio/sandbox.c | 13

[U-Boot] [PATCH 1/3] mx7ulp_evk: Disable CONFIG_NET

2019-10-23 Thread Fabio Estevam
Currently the following build warning is seen: = 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 release. Failure to update by the deadline may result in

[U-Boot] [PATCH 3/3] mx7ulp: Move SoC base address to a common file

2019-10-23 Thread Fabio Estevam
SoC base addresses should better go into a common SoC file instead of repeating the definition in each board file. Signed-off-by: Fabio Estevam --- arch/arm/include/asm/arch-mx7ulp/imx-regs.h | 4 include/configs/mx7ulp_evk.h| 4 2 files changed, 4 insertions(+), 4

[U-Boot] [PATCH 2/3] mx7ulp_evk: Remove unneeded SDHC definitions

2019-10-23 Thread Fabio Estevam
As we use the driver model for ESDHC there is no need for defining CONFIG_SYS_FSL_USDHC_NUM and CONFIG_SYS_FSL_ESDHC_ADDR, so simply remove them. Signed-off-by: Fabio Estevam --- include/configs/mx7ulp_evk.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/configs/mx7ulp_evk.h

Re: [U-Boot] [PATCH v2 00/11] Add Support for UFS subsystem for TI's J721e

2019-10-23 Thread Faiz Abbas
Tom, On 15/10/19 6:24 PM, Faiz Abbas wrote: > The following patches add support for the Universal Flash Storage (UFS) > subsystem and its implementation on TI's J721e platform. > > The UFS Application Layer (UAP) uses SCSI SAM-4 command set for > communication with the device. Therefore, the

[U-Boot] [PATCH v3 4/4] tests: add OP-TEE test suite

2019-10-23 Thread Heiko Stuebner
From: Heiko Stuebner OP-TEE can get supplied with a devicetree and will then insert its firmware node and reserved-memory sections into it. As this devicetree often is not the one supplied to a later loaded kernel, a previous commit added functionality to transfer these nodes onto that new

[U-Boot] [PATCH v3 1/4] fdtdec: protect against another NULL phandlep in fdtdec_add_reserved_memory()

2019-10-23 Thread Heiko Stuebner
From: Heiko Stuebner The change adding fdtdec_add_reserved_memory() already protected the added phandle against the phandlep being NULL - making the phandlep var optional. But in the early code checking for an already existing carveout this check was not done and thus the phandle assignment

[U-Boot] [PATCH v3 2/4] fdtdec: only create phandle if caller wants it in fdtdec_add_reserved_memory()

2019-10-23 Thread Heiko Stuebner
From: Heiko Stuebner The phandlep pointer returning the phandle to the caller is optional and if it is not set when calling fdtdec_add_reserved_memory() it is highly likely that the caller is not interested in a phandle to the created reserved-memory area and really just wants that area added.

[U-Boot] [PATCH v3 3/4] image: fdt: copy possible optee nodes to a loaded devicetree

2019-10-23 Thread Heiko Stuebner
From: Heiko Stuebner The loading convention for optee or any other tee on arm64 is as bl32 parameter to the trusted-firmware. So TF-A gets invoked with the TEE as bl32 and main u-boot as bl33. Once it has done its startup TF-A jumps into the bl32 for the TEE startup, returns to TF-A and then

Re: [U-Boot] [PATCHv2 10/13] test/py: Rework test.py to be a different kind of wrapper

2019-10-23 Thread Tom Rini
On Wed, Oct 23, 2019 at 10:55:57AM -0600, Stephen Warren wrote: > On 10/22/19 9:20 PM, Tom Rini wrote: > > Now that we have moved to being based on pytest for python3 we need to > > make our test.py wrapper more robust in terms of only calling python3 > > rather than possibly finding and using

Re: [U-Boot] [PATCH 2/2] warp7: Remove duplicate "mmc dev" command

2019-10-23 Thread Joris Offouga
Hi Fabio, Le 23/10/2019 à 16:20, Fabio Estevam a écrit : The "mmc dev" command is being called twice. Remove the extra call. Signed-off-by: Fabio Estevam --- include/configs/warp7.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/warp7.h b/include/configs/warp7.h index

[U-Boot] [PATCH 1/2] rockchip: clk: rv1108: remove duplicate reset init

2019-10-23 Thread Heiko Stuebner
rockchip_reset_bind() already does the needed init for the reset registers, only referenced the wrong cru structure. So we can get rid of the open-coded reset init and just fix the correct cru reference. Signed-off-by: Heiko Stuebner --- drivers/clk/rockchip/clk_rv1108.c | 13 + 1

[U-Boot] [PATCH v2 13/41] board: ge: bx50v3: use DM I2C

2019-10-23 Thread Robert Beckett
Remove old (pre-DM) i2c setup code. Enable DM i2c. Enable compat i2c api while we migrate other i2c devices to DM i2c. Signed-off-by: Robert Beckett --- board/ge/bx50v3/bx50v3.c| 43 - configs/ge_bx50v3_defconfig | 5 + include/configs/ge_bx50v3.h |

[U-Boot] [PATCH v2 39/41] power: pmic: add driver for Dialog DA9063 PMIC

2019-10-23 Thread Robert Beckett
From: Martin Fuzzey This adds the basic register access operations and child regulator binding (if a regulator driver exists). Robert Beckett: simplify accesses by using bottom bit of address as offset overflow. This avoids the need to track which page we are on. Signed-off-by: Martin Fuzzey

[U-Boot] [PATCH v2 34/41] board: ge: mx53ppd: Use DM for ethernet

2019-10-23 Thread Robert Beckett
Add fec ethernet and pinctrl DT config. Remove legacy iomux setup for fec. Enable phylib and DM fec. Use Kconfig for enabling fec. Signed-off-by: Robert Beckett --- arch/arm/dts/imx53-ppd.dts | 24 board/ge/mx53ppd/mx53ppd.c | 26 --

[U-Boot] [PATCH v2 16/41] i2c: add support for offset overflow in to address

2019-10-23 Thread Robert Beckett
Some devices (2 wire eeproms for example) use some bits from the chip address to represent the high bits of the offset instead of or as well as using multiple bytes for the offset, effectively stealing chip addresses on the bus. Add a chip offset mask that can be set for any i2c chip which gets

Re: [U-Boot] [PATCH v2 4/5] imx: nandbcb: refactor update function

2019-10-23 Thread Max Krummenacher
On Mon, 2019-10-21 at 16:38 +0300, Igor Opaniuk wrote: > From: Igor Opaniuk > > Move code for writing FCB/DBBT pages to a separate function > > Signed-off-by: Igor Opaniuk Tested-by: Max Krummenacher ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] [PATCH v2 38/41] pmic: allow dump command for non contiguous register maps

2019-10-23 Thread Robert Beckett
From: Martin Fuzzey Some PMICs (such as the DA9063) have non-contiguous register maps. Attempting to read the non implemented registers returns an error rather than a dummy value which causes 'pmic dump' to terminate prematurely. Fix this by allowing the PMIC driver to return -ENODATA for such

Re: [U-Boot] [PATCHv2 06/13] test/py: Manual python3 fixes

2019-10-23 Thread Tom Rini
On Wed, Oct 23, 2019 at 12:50:12PM -0600, Stephen Warren wrote: > On 10/22/19 9:20 PM, Tom Rini wrote: > > - Modern pytest is more visible in telling us about parameters that we > >had not described, so describe a few more. > > - ConfigParser.readfp(...) is now configparser.read_file(...) > >

Re: [U-Boot] [PATCH v5 00/26]MTD defconfigs/Kconfigs/Makefiles heavy cleanup

2019-10-23 Thread Jagan Teki
On Wed, Oct 23, 2019 at 5:28 PM Tom Rini wrote: > > On Mon, Oct 21, 2019 at 01:42:08PM +0530, Jagan Teki wrote: > > Hi Miquel, > > > > On Mon, Oct 21, 2019 at 1:38 PM Miquel Raynal > > wrote: > > > > > > Hi Jagan, > > > > > > Gentle ping. > > > > > > As discussed half a year ago, please do not

Re: [U-Boot] [PATCH v3 0/3] spi-nor: spi-nor-ids: Fix 4 Byte addressing for n25q*

2019-10-23 Thread Jagan Teki
On Fri, Oct 11, 2019 at 1:28 PM Vignesh Raghavendra wrote: > > n25q variants do not support stateless 4 byte addressing opcodes by default, > therefore first patch disables this flag for those parts. Second patch > adds entries for mt25q variants which are similar to n25q but supports > stateless

Re: [U-Boot] [PATCHv2 10/13] test/py: Rework test.py to be a different kind of wrapper

2019-10-23 Thread Stephen Warren
On 10/22/19 9:20 PM, Tom Rini wrote: Now that we have moved to being based on pytest for python3 we need to make our test.py wrapper more robust in terms of only calling python3 rather than possibly finding and using python2. To do this, change from execvp()'ing pytest to invoking the package

Re: [U-Boot] [PATCH v2 1/5] imx: gpmi: add defines for hw randominizer

2019-10-23 Thread Max Krummenacher
On Mon, 2019-10-21 at 16:38 +0300, Igor Opaniuk wrote: > From: Igor Opaniuk > > Extend GPMI Integrated ECC Control Register Description, include > additional defines for enabling randomizer function and providing > proper randomizer type. > > For additional details check i.MX7 APR, section >

Re: [U-Boot] [PATCHv2 10/13] test/py: Rework test.py to be a different kind of wrapper

2019-10-23 Thread Tom Rini
On Wed, Oct 23, 2019 at 12:04:30PM -0600, Stephen Warren wrote: > On 10/23/19 11:29 AM, Stephen Warren wrote: > > On 10/23/19 11:12 AM, Tom Rini wrote: > > > On Wed, Oct 23, 2019 at 11:03:38AM -0600, Stephen Warren wrote: > > > > On 10/23/19 10:58 AM, Tom Rini wrote: > > > > > On Wed, Oct 23, 2019

  1   2   3   >