Re: [U-Boot] [PATCH 11/20] w1: enumerate sandbox driver if configured

2018-07-23 Thread Maxime Ripard
On Mon, Jul 23, 2018 at 05:48:25PM -0600, Simon Glass wrote: > Hi, > > On 20 July 2018 at 08:01, Lukasz Majewski wrote: > > Hi Eugen, > > > > Thanks for (re-)bringing the One wire support to u-boot. > > > >> Add a sandbox eeprom on the bus as a device, if sandbox driver is > >> configured. > >> >

Re: [U-Boot] [RFC PATCH] gpio: zynq: Setup bank_name to dev->name

2018-07-23 Thread Michal Simek
On 23.7.2018 20:41, Simon Glass wrote: > Hi Michal, > > On 23 July 2018 at 03:08, Michal Simek wrote: >> >> On 20.7.2018 21:31, Stefan Herbrechtsmeier wrote: >>> Hi Michal, >>> >>> Am 12.07.2018 um 16:04 schrieb Michal Simek: There should be proper bank name setup to distiguish between diffe

Re: [U-Boot] ext4: massive corruption with ext4write

2018-07-23 Thread Aaron Williams
On Monday, July 23, 2018 11:15:59 PM PDT Aaron Williams wrote: > External Email > > Hi all, > > It looks like after a certain amount of data has been written that all hell > breaks loose with the ext4 filesystem. > > In my case, I have the following files on a 64G USB thumb drive with two > part

[U-Boot] [PATCH] tools: genboardscfg: move buildman path to first

2018-07-23 Thread Peng Fan
To system which has kconfiglib installed, genboardscfg will use system kconfiglib, we need it use U-Boot owned version, so move the buildman path to first. Signed-off-by: Peng Fan Cc: Masahiro Yamada Cc: Simon Glass Cc: Tom Rini --- tools/genboardscfg.py | 2 +- 1 file changed, 1 insertion(+)

Re: [U-Boot] ext4: massive corruption with ext4write

2018-07-23 Thread Aaron Williams
Hi all, It looks like after a certain amount of data has been written that all hell breaks loose with the ext4 filesystem. In my case, I have the following files on a 64G USB thumb drive with two partitions, a small FAT partition with the rest of the space dedicated to ext4 created using mkfs.

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

2018-07-23 Thread Luis Araneda
The board is manufactured by Digilent Main features: - Soc: XC7Z010 (Z7-10) or XC7Z020 (Z7-20) - RAM: 1 GB DDR3L - FLASH: 16 MB QSPI - 1 Gbps Ethernet - USB 2.0 - microSD slot - Pcam camera connector - HDMI Tx and Rx - Audio codec: stereo out, stereo in, mic - 5 (Z7-10) or 6 (Z7-20) Pmod ports - 6

Re: [U-Boot] [PATCH 2/3] rockchip: add support for veyron-speedy (ASUS Chromebook C201)

2018-07-23 Thread Marty E. Plummer
On Fri, Jul 13, 2018 at 12:31:49PM +0200, Dr. Philipp Tomsich wrote: > > > On 7 May 2018, at 02:20, Marty E. Plummer wrote: > > > > On Mon, May 07, 2018 at 12:12:54AM +0200, klaus.go...@theobroma-systems.com > > wrote: > >> > >>> On 06.05.2018, at 16:

Re: [U-Boot] [PATCH 14/17] cmd: fat: add fatmkdir command

2018-07-23 Thread AKASHI Takahiro
On Fri, Jul 20, 2018 at 07:09:17PM +0200, Heinrich Schuchardt wrote: > On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > > In this patch, a new command, fatmkdir, is added. > > > > Please note that, as there is no notion of "current directory" on u-boot, > > a directory name specified must contains

Re: [U-Boot] [PATCH 13/17] fs: fat: support mkdir

2018-07-23 Thread AKASHI Takahiro
On Fri, Jul 20, 2018 at 07:14:21PM +0200, Heinrich Schuchardt wrote: > On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > > In this patch, mkdir support is added to FAT file system. > > A newly created directory contains only "." and ".." entries. > > > > Signed-off-by: AKASHI Takahiro > > The pat

Re: [U-Boot] [PATCH 11/17] fs: add mkdir interface

2018-07-23 Thread AKASHI Takahiro
On Mon, Jul 23, 2018 at 07:56:58PM -0400, Tom Rini wrote: > On Mon, Jul 23, 2018 at 05:48:13PM -0600, Simon Glass wrote: > > Hi, > > > > On 20 July 2018 at 11:35, Heinrich Schuchardt wrote: > > > On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > > >> "mkdir" interface is added to file operations.

Re: [U-Boot] [PATCH] imx8qxp_mek: add README

2018-07-23 Thread Peng Fan
> -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2018年7月23日 21:44 > To: Peng Fan > Cc: Stefano Babic ; Fabio Estevam > ; U-Boot-Denx ; Diego Dorta > > Subject: Re: [U-Boot] [PATCH] imx8qxp_mek: add README > > Hi Peng, > > On Mon, Jul 23, 2018 at 7:00 AM,

Re: [U-Boot] [PATCH 11/17] fs: add mkdir interface

2018-07-23 Thread AKASHI Takahiro
On Fri, Jul 20, 2018 at 07:35:18PM +0200, Heinrich Schuchardt wrote: > On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > > "mkdir" interface is added to file operations. > > This is a preparatory change as mkdir support for FAT file system > > will be added in next patch. > > > > Signed-off-by: AKA

Re: [U-Boot] [PATCH V2 29/32] fsl_esdhc: Update usdhc driver to support i.MX8

2018-07-23 Thread Fabio Estevam
Hi Peng, On Mon, Jul 23, 2018 at 9:45 PM, Peng Fan wrote: > In V1, I use CONFIG_IMX8, but I think there is no need to use it, because > CONFIG_ARCH_IMX8 could do same thing. Yes, I prefer to drop "ARCH" for consistency. > I could revert to use CONFIG_IMX8, since you prefer it. Yes, that would

Re: [U-Boot] [PATCH V2 29/32] fsl_esdhc: Update usdhc driver to support i.MX8

2018-07-23 Thread Peng Fan
Hi Fabio, > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2018年7月24日 3:27 > To: Peng Fan > Cc: Stefano Babic ; Fabio Estevam > ; U-Boot-Denx ; dl-linux-imx > > Subject: Re: [U-Boot] [PATCH V2 29/32] fsl_esdhc: Update usdhc driver to > support i.MX8 > > Hi

Re: [U-Boot] [PATCH 11/17] fs: add mkdir interface

2018-07-23 Thread Tom Rini
On Mon, Jul 23, 2018 at 05:48:13PM -0600, Simon Glass wrote: > Hi, > > On 20 July 2018 at 11:35, Heinrich Schuchardt wrote: > > On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > >> "mkdir" interface is added to file operations. > >> This is a preparatory change as mkdir support for FAT file system

Re: [U-Boot] [PATCH v1 3/6] configs: stm32f769-disco: Enable CONFIG_BLK

2018-07-23 Thread Simon Glass
On 20 July 2018 at 01:44, Patrice Chotard wrote: > CONFIG_BLK config flag becomes mandatory, enable it. > > Signed-off-by: Patrice Chotard > --- > > configs/stm32f469-discovery_defconfig | 1 - > 1 file changed, 1 deletion(-) Reviewed-by: Simon Glass ___

Re: [U-Boot] [PATCH v1 6/6] mmc: arm_pl180_mmci: Add "cd_inverted" DT property read

2018-07-23 Thread Simon Glass
On 20 July 2018 at 01:44, Patrice Chotard wrote: > Add missing read of "cd_inverted" property in DT. > > Signed-off-by: Patrice Chotard > --- > > drivers/mmc/arm_pl180_mmci.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass ___ U-Boot

Re: [U-Boot] [PATCH v1 5/6] mmc: arm_pl180_mmci: Add missing clk_free

2018-07-23 Thread Simon Glass
On 20 July 2018 at 01:44, Patrice Chotard wrote: > Add missing clk_free() call in case of failure > when enabling the clock. > > Signed-off-by: Patrice Chotard > --- > > drivers/mmc/arm_pl180_mmci.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass __

Re: [U-Boot] [RFC PATCH v2 3/6] dm: usb: Add UCLASS_USB_DEV_GENERIC shutdown

2018-07-23 Thread Simon Glass
Hi Jagan, On 20 July 2018 at 01:13, Jagan Teki wrote: > Some OTG controllers which operates on Peripheral > mode are registered as UCLASS_USB_DEV_GENERIC. > > So add support to shutdown them as well. shutdown > happened during 'usb reset' and U-Boot handoff code > for Linux boot. > > controller r

Re: [U-Boot] [PATCH 4/6] adc: Add driver for STM32 ADC

2018-07-23 Thread Simon Glass
Hi Fabrice, On 23 July 2018 at 06:35, Fabrice Gasnier wrote: > This patch adds support for STMicroelectronics STM32 ADC (analog to > digital converter). It's originally based on Linux kernel v4.18-rcs > drivers/iio/adc/stm32-adc*. It's composed of: > - core driver (UCLASS_SIMPLE_BUS) manages comm

Re: [U-Boot] [PATCH v1 4/6] mmc: arm_pl180_mmci: Update to support CONFIG_BLK

2018-07-23 Thread Simon Glass
Hi Patrice, On 20 July 2018 at 01:44, Patrice Chotard wrote: > Config flag CONFIG_BLK becomes mandatory, update arm_pl180_mmci > to support this config. > > This driver is used by STM32Fx and by Vexpress platforms. > Only STM32Fx are DM ready. No DM code is isolated and will be > removed easily w

Re: [U-Boot] [PATCH 11/20] w1: enumerate sandbox driver if configured

2018-07-23 Thread Simon Glass
Hi, On 20 July 2018 at 08:01, Lukasz Majewski wrote: > Hi Eugen, > > Thanks for (re-)bringing the One wire support to u-boot. > >> Add a sandbox eeprom on the bus as a device, if sandbox driver is >> configured. >> >> Signed-off-by: Eugen Hristev >> --- >> drivers/w1/w1-uclass.c | 5 + >> 1

Re: [U-Boot] [PATCH v2 2/2] disk: part: Don't show redundant error message

2018-07-23 Thread Simon Glass
On 20 July 2018 at 09:18, Sam Protsenko wrote: > Underlying API should already print some meaningful error message, so > this one is just brings more noise. E.g. we can see log like this: > > MMC: no card present > ** Bad device mmc 0 ** > > Obviously, second error message is unwanted. Let

Re: [U-Boot] [PATCH v1 2/6] configs: stm32f746-disco: Enable CONFIG_BLK

2018-07-23 Thread Simon Glass
On 20 July 2018 at 01:44, Patrice Chotard wrote: > CONFIG_BLK config flag becomes mandatory, enable it. > > Signed-off-by: Patrice Chotard > --- > > configs/stm32f746-disco_defconfig | 1 - > 1 file changed, 1 deletion(-) Reviewed-by: Simon Glass ___

Re: [U-Boot] [PATCH 1/6] clk: add clk_valid()

2018-07-23 Thread Simon Glass
Hi Fabrice, On 23 July 2018 at 06:35, Fabrice Gasnier wrote: > > add clk_valid() to check for optional clocks are valid. > > Signed-off-by: Fabrice Gasnier > --- > > include/clk.h | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git a/include/clk.h b/include/clk.h > index 9a35764.

Re: [U-Boot] [UBOOT PATCH] gpio: zynq: Used platdata structure for storing static data instead of priv

2018-07-23 Thread Simon Glass
On 20 July 2018 at 03:06, Vipul Kumar wrote: > This patch used platdata structure instead of priv for storing static > information read from DT. > > Signed-off-by: Vipul Kumar > --- > drivers/gpio/zynq_gpio.c | 67 > > 1 file changed, 34 insertio

Re: [U-Boot] [PATCH 3/6] dt-bindings: Document STM32 ADC DT bindings

2018-07-23 Thread Simon Glass
On 23 July 2018 at 06:35, Fabrice Gasnier wrote: > This patch adds documentation of device tree bindings for the STM32 ADC. > It's based on linux-v4.18-rc* dt-bindings, at the time of writing: > - Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt > > Signed-off-by: Fabrice Gasnier > ---

Re: [U-Boot] [PATCH v1 1/6] configs: stm32f429-evaluation: Enable CONFIG_BLK

2018-07-23 Thread Simon Glass
On 20 July 2018 at 01:44, Patrice Chotard wrote: > Signed-off-by: Patrice Chotard > --- > > configs/stm32f429-evaluation_defconfig | 1 - > 1 file changed, 1 deletion(-) > Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de https://

Re: [U-Boot] [PATCH 5/6] configs: stm32mp15: enable ADC

2018-07-23 Thread Simon Glass
On 23 July 2018 at 06:35, Fabrice Gasnier wrote: > Enable ADC on stm32mp15. > - CONFIG_CMD_ADC > - CONFIG_STM32_ADC > > Signed-off-by: Fabrice Gasnier > --- > > configs/stm32mp15_basic_defconfig | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH 2/6] dm: adc: uclass: get reference regulator once

2018-07-23 Thread Simon Glass
Hi Fabrice, On 23 July 2018 at 06:35, Fabrice Gasnier wrote: > device_get_supply_regulator() only needs to be called once. > But each time there's call to adc_vxx_value() for instance, it calls > adc_vxx_platdata_update() -> device_get_supply_regulator(). > > This also allows vdd_supply/vss_suppl

Re: [U-Boot] [PATCH] mkimage: fit_image: Use macros from image.h

2018-07-23 Thread Simon Glass
On 20 July 2018 at 04:31, Michal Simek wrote: > There is no reason not to use macros which are already defined. > It is also much easier for grepping. > > Signed-off-by: Michal Simek > --- > > tools/fit_image.c | 53 + > 1 file changed, 29 inse

Re: [U-Boot] [PATCH v2 5/5] sandbox: led: use new function to configure default state

2018-07-23 Thread Simon Glass
Hi Patrick, On 23 July 2018 at 03:41, Patrick Delaunay wrote: > Initialize the led with the default state defined in device tree > in board_init and solve issue with test for led default state. > > Signed-off-by: Patrick Delaunay > --- > Led default-state is correctly handle in Sandbox, tested w

Re: [U-Boot] [PATCH 11/17] fs: add mkdir interface

2018-07-23 Thread Simon Glass
Hi, On 20 July 2018 at 11:35, Heinrich Schuchardt wrote: > On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: >> "mkdir" interface is added to file operations. >> This is a preparatory change as mkdir support for FAT file system >> will be added in next patch. >> >> Signed-off-by: AKASHI Takahiro >>

Re: [U-Boot] [PATCH v2 4/5] stm32mp1: use new function led default state

2018-07-23 Thread Simon Glass
On 23 July 2018 at 03:41, Patrick Delaunay wrote: > Initialize the led with the default state defined in device tree. > > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: None > > board/st/stm32mp1/stm32mp1.c | 4 > 1 file changed, 4 insertions(+) Reviewed-by: Simon Glass But I w

Re: [U-Boot] [PATCH v2 2/5] Revert "dm: led: auto probe() LEDs with "default-state""

2018-07-23 Thread Simon Glass
Hi Patrick, On 23 July 2018 at 03:41, Patrick Delaunay wrote: > This reverts commit bc882f5d5c7b4d6ed5e927bf838863af43c786e7. A revert should have a motivation and a discussion of the purpose, just like any other patch. Can you add it please? > > Signed-off-by: Patrick Delaunay > --- > > Chang

[U-Boot] [PATCH] sunxi: enable SATA on Banana Pi M2 Berry

2018-07-23 Thread Simon Baatz
Banana Pi M2 Ultra and M2 Berry are very similar boards. SATA can be enabled exactly the same as for M2 Ultra introduced in commit daa8b75a5527 ("sunxi: enable SATA on Banana Pi M2 Ultra"). Signed-off-by: Simon Baatz --- configs/bananapi_m2_berry_defconfig | 3 +++ 1 file changed, 3 insertions

Re: [U-Boot] [PATCH] fs: ext4: Prevent erasing buffer past file size

2018-07-23 Thread Marek Vasut
On 07/23/2018 04:09 PM, Tom Rini wrote: > On Mon, Jul 23, 2018 at 11:42:12AM +0200, Marek Vasut wrote: > >> The variable 'n' represents the number of bytes to be read from a certain >> offset in a file, to a certain offset in buffer 'buf'. The variable 'len' >> represents the length of the entire

Re: [U-Boot] [PATCH V2 29/32] fsl_esdhc: Update usdhc driver to support i.MX8

2018-07-23 Thread Fabio Estevam
Hi Peng, On Thu, Jul 19, 2018 at 11:04 AM, Peng Fan wrote: > There is i.MX8/8X/8M, 8M is for i.MX8MQ and i.MX8MM > i.MX8/8X has different SoC architecture compared with i.MX8M, > such as there is SCU inside i.MX8/8X. > So add a new macro dedicated for i.MX8/8X. Yes, I understand the differences

Re: [U-Boot] [PATCH v2] gpio: xilinx: Convert driver to DM

2018-07-23 Thread Stefan Herbrechtsmeier
Hi Michal, Am 23.07.2018 um 13:43 schrieb Michal Simek: On 20.7.2018 22:05, Stefan Herbrechtsmeier wrote: Am 13.07.2018 um 17:20 schrieb Michal Simek: This patch is enabling GPIO_DM support to have an option to use this driver together with zynq gpio driver. !DM part is kept there till Microbl

Re: [U-Boot] [RFC PATCH] gpio: zynq: Setup bank_name to dev->name

2018-07-23 Thread Simon Glass
Hi Michal, On 23 July 2018 at 03:08, Michal Simek wrote: > > On 20.7.2018 21:31, Stefan Herbrechtsmeier wrote: > > Hi Michal, > > > > Am 12.07.2018 um 16:04 schrieb Michal Simek: > >> There should be proper bank name setup to distiguish between different > >> gpio drivers. Use dev->name for it. >

Re: [U-Boot] [PATCH 3/4] gpio: xilinx: Not read output values via regs

2018-07-23 Thread Stefan Herbrechtsmeier
Hi Michal, Am 23.07.2018 um 13:43 schrieb Michal Simek: Reading registers for finding out output value is not working because input value is read instead in case of tristate. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 38 +++

Re: [U-Boot] [RFC PATCH] gpio: zynq: Setup bank_name to dev->name

2018-07-23 Thread Stefan Herbrechtsmeier
Hi Michal, Am 23.07.2018 um 11:08 schrieb Michal Simek: On 20.7.2018 21:31, Stefan Herbrechtsmeier wrote: Am 12.07.2018 um 16:04 schrieb Michal Simek: There should be proper bank name setup to distiguish between different gpio drivers. Use dev->name for it. Signed-off-by: Michal Simek ---

Re: [U-Boot] [PULL] Please pull u-boot-imx

2018-07-23 Thread Tom Rini
On Mon, Jul 23, 2018 at 11:44:04AM +0200, Stefano Babic wrote: > Hi Tom, > > please pull from u-boot-imx, thanks ! > > The following changes since commit 474ecd2c84d97314b8145fbe3a57887f41b2edb3: > > env: Simplify Makefile using $(SPL_TPL_) (2018-07-21 12:24:31 -0400) > > are available in th

Re: [U-Boot] ti_omap3_common: Add CONFIG_SYS_NS16550_COMx entries

2018-07-23 Thread Tom Rini
On Mon, Jul 23, 2018 at 10:53:02AM -0500, Adam Ford wrote: > On Mon, Mar 19, 2018 at 5:35 PM Tom Rini wrote: > > > > On Sun, Mar 04, 2018 at 04:46:53PM -0600, Adam Ford wrote: > > > > > Several boards do not use the default UART3, so they do a check > > > for ifdef CONFIG_SPL_BUILD and enable the

Re: [U-Boot] ti_omap3_common: Add CONFIG_SYS_NS16550_COMx entries

2018-07-23 Thread Adam Ford
On Mon, Mar 19, 2018 at 5:35 PM Tom Rini wrote: > > On Sun, Mar 04, 2018 at 04:46:53PM -0600, Adam Ford wrote: > > > Several boards do not use the default UART3, so they do a check > > for ifdef CONFIG_SPL_BUILD and enable the pointer for > > CONFIG_SYS_NS16550_COMx to point to OMAP34XX_UARTx. > >

Re: [U-Boot] [PATCH v2 5/5] Kconfig: Sort bool, default, select and imply options

2018-07-23 Thread Alexey Brodkin
Hi Michal, On Mon, 2018-07-23 at 15:55 +0200, Michal Simek wrote: > Another round of sorting Kconfig entries aplhabetically. > > Signed-off-by: Michal Simek > --- > > Changes in v2: None [snip] > arch/arc/Kconfig | 10 +- Acked-by: Alexey Brodkin ___

Re: [U-Boot] [PATCH] tegra: Indicate that binman makes all three output files

2018-07-23 Thread Stephen Warren
On 07/20/2018 07:49 PM, Simon Glass wrote: Use GNU make pattern rules to indicate that a single run of binman produces all three Tegra output files. The avoids make running binman three times (perhaps in parallel) and those instances inteferring with each other. See http://patchwork.ozlabs.org/p

Re: [U-Boot] [PATCH v2 4/5] dm: Change CMD_DM enabling

2018-07-23 Thread Tom Rini
On Mon, Jul 23, 2018 at 03:55:14PM +0200, Michal Simek wrote: > CMD_DM is used for debug purpose and it shouldn't be enabled by default > via Kconfig. Unfortunately this is in the tree for quite a long time > that's why solution is to use imply DM for all targets which are > enabling DM. > > Sign

Re: [U-Boot] cmd: Make CMD_NAND imply NAND

2018-07-23 Thread Tom Rini
On Sun, Jul 08, 2018 at 07:50:28AM -0500, Adam Ford wrote: > Many boards check for CMD_NAND and not NAND. This makes CMD_NAND > imply NAND which will make some Kconfig migration of some NAND > options easier later. > > Rsync all defconfig files using moveconfig.py > > Signed-off-by: Adam Ford

Re: [U-Boot] [PATCH v2 5/5] Kconfig: Sort bool, default, select and imply options

2018-07-23 Thread Tom Rini
On Mon, Jul 23, 2018 at 03:55:15PM +0200, Michal Simek wrote: > Another round of sorting Kconfig entries aplhabetically. > > Signed-off-by: Michal Simek Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list

Re: [U-Boot] configs: Make NAND_BOOT and ONENAND_BOOT imply NAND

2018-07-23 Thread Tom Rini
On Sun, Jul 08, 2018 at 07:28:10AM -0500, Adam Ford wrote: > Some boards indicate support from booting NAND or > ONENAND booting, but don't enable the CONFIG_NAND. This > makes those boards imply NAND which will make > enabling other flags that are dependent on CONFIG_NAND > possible and easier t

Re: [U-Boot] Convert CONFIG_MTD_PARTITIONS et al to Kconfig

2018-07-23 Thread Tom Rini
On Sat, Jul 07, 2018 at 10:18:22PM -0500, Adam Ford wrote: > This converts the following to Kconfig: >CONFIG_MTD_PARTITIONS >CONFIG_MTD_DEVICE > > Signed-off-by: Adam Ford > > diff --git a/README b/README > index b1ddf89fc5..aee0f7371c 100644 Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [PATCH 2/2] dm: Change CMD_DM enabling

2018-07-23 Thread Michal Simek
On 23.7.2018 14:15, Tom Rini wrote: > On Mon, Jul 23, 2018 at 08:40:51AM +0200, Michal Simek wrote: >> On 20.7.2018 14:53, Tom Rini wrote: >>> On Fri, Jul 20, 2018 at 02:05:07PM +0200, Michal Simek wrote: >>> CMD_DM is used for debug purpose and it shouldn't be enabled by default via Kcon

Re: [U-Boot] [PATCH v2 1/5] common: Log should depends on DM not be selected by DM

2018-07-23 Thread Tom Rini
On Mon, Jul 23, 2018 at 03:55:11PM +0200, Michal Simek wrote: > Better use depends on instead of select. > > Signed-off-by: Michal Simek > Reviewed-by: Tom Rini Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___ U-Boot mai

Re: [U-Boot] [PATCH v2 3/5] Kconfig: Sort bool, default, select and imply options

2018-07-23 Thread Tom Rini
On Mon, Jul 23, 2018 at 03:55:13PM +0200, Michal Simek wrote: > Fix Kconfig bool, default, select and imply options to be > alphabetically sorted. > > Signed-off-by: Michal Simek Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] configs: Convert CONFIG_USE_NAND to CONFIG_NAND

2018-07-23 Thread Tom Rini
On Tue, Jul 10, 2018 at 06:47:33AM -0500, Adam Ford wrote: > The DA850-EVM and OMAPL138_LCDK both use checks for CONFIG_USE_NAND. > This patch changes these checks to CONFIG_NAND which is already defined > in Kconfig. Since the OMAPL138_LCDK already had CONFIG_NAND defined in its > defconfig, it

Re: [U-Boot] [PATCH v2 2/5] Kconfig: Replace spaces with tabs and missing newline

2018-07-23 Thread Tom Rini
On Mon, Jul 23, 2018 at 03:55:12PM +0200, Michal Simek wrote: > Trivial Kconfig cleanup. Use tabs instead of spaces and every Kconfig > entry should be separated by newline. > > Signed-off-by: Michal Simek Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] Convert CONFIG_NAND_ATMEL to Kconfig

2018-07-23 Thread Tom Rini
On Sun, Jul 08, 2018 at 08:11:07AM -0500, Adam Ford wrote: > This converts the following to Kconfig: >CONFIG_NAND_ATMEL > > Signed-off-by: Adam Ford > > diff --git a/configs/at91sam9260ek_dataflash_cs0_defconfig > b/configs/at91sam9260ek_dataflash_cs0_defconfig > index 3d2b8803ea..c77b8d8a

Re: [U-Boot] Convert CONFIG_NAND_DAVINCI to Kconfig

2018-07-23 Thread Tom Rini
On Sun, Jul 08, 2018 at 06:43:36AM -0500, Adam Ford wrote: > This converts the following to Kconfig: >CONFIG_NAND_DAVINCI > > Signed-off-by: Adam Ford > > diff --git a/configs/ea20_defconfig b/configs/ea20_defconfig > index 497e5515d7..43292a126d 100644 Applied to u-boot/master, thanks! -

Re: [U-Boot] Convert CONFIG_NAND_LPC32XX_SLC to Kconfig

2018-07-23 Thread Tom Rini
On Sun, Jul 08, 2018 at 06:18:48AM -0500, Adam Ford wrote: > This converts the following to Kconfig: >CONFIG_NAND_LPC32XX_SLC > > Signed-off-by: Adam Ford > > diff --git a/configs/devkit3250_defconfig b/configs/devkit3250_defconfig > index 14c24ce6f2..8a37122104 100644 Applied to u-boot/ma

Re: [U-Boot] [PATCH 00/17] fs: fat: extend FAT write operations

2018-07-23 Thread Tom Rini
On Sun, Jul 22, 2018 at 08:44:39AM +0200, Heinrich Schuchardt wrote: > Hello Tom, hello Alex, > > I have been testing the patches. They are working fine for ASCII file > names. To support Unicode file names extra work will be needed. But > probably we should postpone this to a later patch series.

Re: [U-Boot] [PATCH] fs: ext4: Prevent erasing buffer past file size

2018-07-23 Thread Tom Rini
On Mon, Jul 23, 2018 at 11:42:12AM +0200, Marek Vasut wrote: > The variable 'n' represents the number of bytes to be read from a certain > offset in a file, to a certain offset in buffer 'buf'. The variable 'len' > represents the length of the entire file, clamped correctly to avoid any > overflow

[U-Boot] [PATCH] fpga: Kconfig: Replace spaces with tabs

2018-07-23 Thread Michal Simek
Trivial Kconfig cleanup. Use tabs instead of spaces. Signed-off-by: Michal Simek --- drivers/fpga/Kconfig | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig index d36c4c5e2804..50e901973d13 100644 --- a/drivers/fpga/K

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

2018-07-23 Thread Michal Simek
On 19.7.2018 10:35, Marek Vasut wrote: > On 07/19/2018 08:44 AM, Michal Simek wrote: >> On 19.7.2018 08:36, Luis Araneda wrote: >>> Hi, >>> >>> On Thu, Jul 19, 2018 at 1:58 AM Michal Simek >>> wrote: On 18.7.2018 22:11, Marek Vasut wrote: > On 07/18/2018 04:57 PM, Michal Simek wrote: >>>

[U-Boot] [PATCH v2 4/5] dm: Change CMD_DM enabling

2018-07-23 Thread Michal Simek
CMD_DM is used for debug purpose and it shouldn't be enabled by default via Kconfig. Unfortunately this is in the tree for quite a long time that's why solution is to use imply DM for all targets which are enabling DM. Signed-off-by: Michal Simek --- Changes in v2: - sort them Based on this dis

[U-Boot] [PATCH v2 5/5] Kconfig: Sort bool, default, select and imply options

2018-07-23 Thread Michal Simek
Another round of sorting Kconfig entries aplhabetically. Signed-off-by: Michal Simek --- Changes in v2: None Kconfig | 22 ++--- arch/arc/Kconfig | 10 +- arch/arm/cpu/armv7/ls102xa/Kconfig| 10 +- arch/arm/

[U-Boot] [PATCH v2 3/5] Kconfig: Sort bool, default, select and imply options

2018-07-23 Thread Michal Simek
Fix Kconfig bool, default, select and imply options to be alphabetically sorted. Signed-off-by: Michal Simek --- Changes in v2: - new patch I have sorted only Kconfig which I need for the next patch. --- arch/Kconfig | 54 +- arch/arm/Kconfig |

[U-Boot] [PATCH v2 2/5] Kconfig: Replace spaces with tabs and missing newline

2018-07-23 Thread Michal Simek
Trivial Kconfig cleanup. Use tabs instead of spaces and every Kconfig entry should be separated by newline. Signed-off-by: Michal Simek --- Changes in v2: - new patch - not to confuse script arch/arm/Kconfig | 10 +- arch/arm/mach-imx/mx6/Kconfig | 14 +++--- cmd/K

[U-Boot] [PATCH v2 1/5] common: Log should depends on DM not be selected by DM

2018-07-23 Thread Michal Simek
Better use depends on instead of select. Signed-off-by: Michal Simek Reviewed-by: Tom Rini --- Changes in v2: None I found this in connection to setup imply CMD_DM and it seems to not standard that it is selecting DM which is not used anywhere else. --- common/Kconfig | 2 +- 1 file changed,

Re: [U-Boot] [PATCH] imx8qxp_mek: add README

2018-07-23 Thread Fabio Estevam
Hi Peng, On Mon, Jul 23, 2018 at 7:00 AM, Peng Fan wrote: > Add README file for i.MX8QXP MEK board. Thanks for submitting the README file. > > Signed-off-by: Peng Fan > Cc: Stefano Babic > Cc: Fabio Estevam > Cc: Anatolij Gustschin > --- > > This patch is for testing i.MX8QXP patchset [PATC

Re: [U-Boot] [PATCH] ddr: altera: Add ECC DRAM scrubbing support for Stratix 10

2018-07-23 Thread Marek Vasut
On 07/23/2018 10:20 AM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > The SDRAM must first be rewritten by zeroes if ECC is used to initialize > the ECC metadata. Make the CPU overwrite the DRAM with zeroes in such a > case. This scrubbing implementation turns the caches on temporari

[U-Boot] [PATCH 4/6] adc: Add driver for STM32 ADC

2018-07-23 Thread Fabrice Gasnier
This patch adds support for STMicroelectronics STM32 ADC (analog to digital converter). It's originally based on Linux kernel v4.18-rcs drivers/iio/adc/stm32-adc*. It's composed of: - core driver (UCLASS_SIMPLE_BUS) manages common resources (clk, regu). - child drivers (UCLASS_ADC) declare each ADC

[U-Boot] [PATCH 6/6] ARM: dts: stm32mp157: Add ADC DT node

2018-07-23 Thread Fabrice Gasnier
Add ADC device tree node. This allows to get analog conversions on stm32mp157. Signed-off-by: Fabrice Gasnier --- arch/arm/dts/stm32mp157.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/dts/stm32mp157.dtsi b/arch/arm/dts/stm32mp157.dtsi index

[U-Boot] [PATCH 1/6] clk: add clk_valid()

2018-07-23 Thread Fabrice Gasnier
add clk_valid() to check for optional clocks are valid. Signed-off-by: Fabrice Gasnier --- include/clk.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/clk.h b/include/clk.h index 9a35764..71679a9 100644 --- a/include/clk.h +++ b/include/clk.h @@ -294,4 +294,14 @@ int c

[U-Boot] [PATCH 3/6] dt-bindings: Document STM32 ADC DT bindings

2018-07-23 Thread Fabrice Gasnier
This patch adds documentation of device tree bindings for the STM32 ADC. It's based on linux-v4.18-rc* dt-bindings, at the time of writing: - Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt Signed-off-by: Fabrice Gasnier --- doc/device-tree-bindings/adc/st,stm32-adc.txt | 141 +++

[U-Boot] [PATCH 5/6] configs: stm32mp15: enable ADC

2018-07-23 Thread Fabrice Gasnier
Enable ADC on stm32mp15. - CONFIG_CMD_ADC - CONFIG_STM32_ADC Signed-off-by: Fabrice Gasnier --- configs/stm32mp15_basic_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/stm32mp15_basic_defconfig b/configs/stm32mp15_basic_defconfig index 3a94db5..bbb65b5 1

[U-Boot] [PATCH 2/6] dm: adc: uclass: get reference regulator once

2018-07-23 Thread Fabrice Gasnier
device_get_supply_regulator() only needs to be called once. But each time there's call to adc_vxx_value() for instance, it calls adc_vxx_platdata_update() -> device_get_supply_regulator(). This also allows vdd_supply/vss_supply to be provided directly from uc_pdata, e.g dt-binding variant like stm

Re: [U-Boot] [PATCH] fs: ext4: Prevent erasing buffer past file size

2018-07-23 Thread Stefano Babic
Hi Marek, On 23/07/2018 11:42, Marek Vasut wrote: > The variable 'n' represents the number of bytes to be read from a certain > offset in a file, to a certain offset in buffer 'buf'. The variable 'len' > represents the length of the entire file, clamped correctly to avoid any > overflows. > > The

Re: [U-Boot] [PATCH 2/2] dm: Change CMD_DM enabling

2018-07-23 Thread Tom Rini
On Mon, Jul 23, 2018 at 08:40:51AM +0200, Michal Simek wrote: > On 20.7.2018 14:53, Tom Rini wrote: > > On Fri, Jul 20, 2018 at 02:05:07PM +0200, Michal Simek wrote: > > > >> CMD_DM is used for debug purpose and it shouldn't be enabled by default > >> via Kconfig. Unfortunately this is in the tree

[U-Boot] Ethernet sandox driver issue

2018-07-23 Thread Steven Stoner
Hello there, Sorry about this but I could use some assistance. I am trying to get the ethernet to work under the sandbox and am having issues. I saw and applied the patch from Joe Hershberger-2 that seemed to be relevant to my issue. I have applied the patches on the following page to my late

Re: [U-Boot] [PATCH 2/2] dm: Change CMD_DM enabling

2018-07-23 Thread Michal Simek
On 20.7.2018 14:53, Tom Rini wrote: > On Fri, Jul 20, 2018 at 02:05:07PM +0200, Michal Simek wrote: > >> CMD_DM is used for debug purpose and it shouldn't be enabled by default >> via Kconfig. Unfortunately this is in the tree for quite a long time >> that's why solution is to use imply DM for all

Re: [U-Boot] [PATCH v2] gpio: xilinx: Convert driver to DM

2018-07-23 Thread Michal Simek
Hi, On 20.7.2018 22:05, Stefan Herbrechtsmeier wrote: > Hi Michal, > > Am 13.07.2018 um 17:20 schrieb Michal Simek: >> This patch is enabling GPIO_DM support to have an option to use this >> driver together with zynq gpio driver. >> !DM part is kept there till Microblaze is cleanup which will be

[U-Boot] [PATCH 3/4] gpio: xilinx: Not read output values via regs

2018-07-23 Thread Michal Simek
Reading registers for finding out output value is not working because input value is read instead in case of tristate. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 38 +- 1 file changed, 33 insertions(+), 5

[U-Boot] [PATCH 4/4] gpio: xilinx: Remove !DM driver

2018-07-23 Thread Michal Simek
There is no user for !DM driver that's why remove it. Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 338 + 1 file changed, 2 insertions(+), 336 deletions(-) diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c index 9d3

[U-Boot] [PATCH 2/4] gpio: xilinx: Swap xilinx_gpio_get_function with xilinx_gpio_get_value

2018-07-23 Thread Michal Simek
Exchange two functions to avoid function declaration for next patch. Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c in

[U-Boot] [PATCH 1/4] gpio: xilinx: Find out bank before use in xilinx_gpio_get_function()

2018-07-23 Thread Michal Simek
Call xilinx_gpio_get_bank_pin() before use. Reported-by: Stefan Herbrechtsmeier Signed-off-by: Michal Simek --- drivers/gpio/xilinx_gpio.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c index 48b52c985a55..8ce

[U-Boot] [PATCH] imx8qxp_mek: add README

2018-07-23 Thread Peng Fan
Add README file for i.MX8QXP MEK board. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam Cc: Anatolij Gustschin --- This patch is for testing i.MX8QXP patchset [PATCH V2 00/32] i.MX: Add i.MX8QXP support https://lists.denx.de/pipermail/u-boot/2018-July/335079.html The board is usi

[U-Boot] [PULL] Please pull u-boot-imx

2018-07-23 Thread Stefano Babic
Hi Tom, please pull from u-boot-imx, thanks ! The following changes since commit 474ecd2c84d97314b8145fbe3a57887f41b2edb3: env: Simplify Makefile using $(SPL_TPL_) (2018-07-21 12:24:31 -0400) are available in the git repository at: git://www.denx.de/git/u-boot-imx.git master for you to fe

[U-Boot] [PATCH v2 0/5] dm: led: remove auto probe in binding function

2018-07-23 Thread Patrick Delaunay
Hi, The commit bc882f5d5c7b4d6ed5e927bf838863af43c786e7 introduce auto probe of LED in binding function but that cause issue on my board. This first patch of this patchset activateis the LED on my board to explain the issue, the second patch revert this commit and the third one propose an other

[U-Boot] [PATCH v2 5/5] sandbox: led: use new function to configure default state

2018-07-23 Thread Patrick Delaunay
Initialize the led with the default state defined in device tree in board_init and solve issue with test for led default state. Signed-off-by: Patrick Delaunay --- Led default-state is correctly handle in Sandbox, tested with: ./u-boot -d ./arch/sandbox/dts/test.dtb => led list sandbox:red

[U-Boot] [PATCH] fs: ext4: Prevent erasing buffer past file size

2018-07-23 Thread Marek Vasut
The variable 'n' represents the number of bytes to be read from a certain offset in a file, to a certain offset in buffer 'buf'. The variable 'len' represents the length of the entire file, clamped correctly to avoid any overflows. Therefore, comparing 'n' and 'len' to determine whether clearing '

[U-Boot] [PATCH v2 4/5] stm32mp1: use new function led default state

2018-07-23 Thread Patrick Delaunay
Initialize the led with the default state defined in device tree. Signed-off-by: Patrick Delaunay --- Changes in v2: None board/st/stm32mp1/stm32mp1.c | 4 1 file changed, 4 insertions(+) diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index cc39fa6..db8c805 1006

[U-Boot] [PATCH v2 1/5] stm32mp1: add gpio led support

2018-07-23 Thread Patrick Delaunay
This patch add the 4 LED available on the ED1 board and activated gpio led driver. Reviewed-by: Simon Glass Signed-off-by: Patrick Delaunay --- Changes in v2: None arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi | 24 configs/stm32mp15_basic_defconfig| 2 ++ 2 files

[U-Boot] [PATCH v2 3/5] dm: led: move default state support in led uclass

2018-07-23 Thread Patrick Delaunay
This patch save common LED property "default-state" value in post bind of LED uclass. The configuration for this default state is only performed when led_default_state() is called; It can be called in your board_init() or it could added in init_sequence_r[] in future. Reviewed-by: Simon Glass Sig

[U-Boot] [PATCH v2 2/5] Revert "dm: led: auto probe() LEDs with "default-state""

2018-07-23 Thread Patrick Delaunay
This reverts commit bc882f5d5c7b4d6ed5e927bf838863af43c786e7. Signed-off-by: Patrick Delaunay --- Changes in v2: None drivers/led/led_gpio.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/led/led_gpio.c b/drivers/led/led_gpio.c index a36942b..533587d 100644 --- a/drivers/l

Re: [U-Boot] [PATCH] configs: imx6q_logic: Cleanup ramdiskaddr and fdtaddr

2018-07-23 Thread Stefano Babic
On 20/07/2018 15:25, Adam Ford wrote: > There are already definitions for ramdisk_addr_r and fdt_addr_r, so > having a duplicate copy called ramdiskaddr and fdtaddr is confusing. > This patch converts any references to ramdisk_addr_r and fdt_addr_r > and removes the duplicates. > > Signed-off-by:

Re: [U-Boot] [PATCH v3] mx25: fix the offset between the USB ports' registers

2018-07-23 Thread Stefano Babic
On 16/07/2018 22:11, Martin Kaiser wrote: > From: Martin Kaiser > > The USBOH module on imx25 chips contains two USB controllers which are > called USB OTG Controller and USB Host Controller. Each one has its EHCI > root hub. The OTG Controller's EHCI registers start at offset 0, the Host > Contr

Re: [U-Boot] [PATCH] tools/imximage: get HAB information from header

2018-07-23 Thread Stefano Babic
On 06/07/2018 16:10, Holger Dengler wrote: > Signing parts of a u-boot imximage for image verification in High > Assurance Boot (HAB) in a post-build process, requires some > information from the imximage header. Currently, this information is > only provided during the image build, which makes the

Re: [U-Boot] [PATCH] imx: i.mx6q: imx6q_logic: Migrate to SPL and enable SDP

2018-07-23 Thread Stefano Babic
On 06/07/2018 03:58, Adam Ford wrote: > Since the vast majority of i.MX6 boards are migrating to SPL, > this patch converts im6q_logic to SPL and enables the SDP for > loading SPL and u-boot.img over USB. The Falcon mode only > supports NAND flash as of now due to limited space/RAM, but > all i.MX

Re: [U-Boot] [PATCH 3/3] ARM: imx6: DHCOM i.MX6 PDK: ddr init for 32bit bus and 4GBit chips

2018-07-23 Thread Stefano Babic
On 05/07/2018 09:23, lz...@dh-electronics.de wrote: > From: Ludwig Zenz > > Support 1GIB + 2GIB DDR3 with 64bit bus width and 512MIB + 1GIB with 32bit > bus width > > Signed-off-by: Ludwig Zenz > --- > board/dhelectronics/dh_imx6/dh_imx6_spl.c | 191 > +++--- > 1 file

  1   2   >