Re: [U-Boot] [PATCH v3 2/3] rtc: pl031: convert the driver to driver model

2018-07-20 Thread Heinrich Schuchardt
On 07/11/2018 11:06 AM, AKASHI Takahiro wrote: > With this patch, PL031 driver is converted to driver-model-compliant > driver. In addition, CONFIG_SYS_RTC_PL031_BASE is no longer valid. > > Signed-off-by: AKASHI Takahiro > --- > drivers/rtc/Kconfig | 6 ++ > drivers/rtc/pl031.c

Re: [U-Boot] Please pull u-boot-x86

2018-07-20 Thread Tom Rini
On Fri, Jul 20, 2018 at 02:01:54PM +0800, Bin Meng wrote: > Hi Tom, > > The following changes since commit f7e48c54b246c460503e90315d0cd50ccbd586c6: > > Merge tag 'xilinx-for-v2018.09' of > git://git.denx.de/u-boot-microblaze (2018-07-19 11:48:33 -0400) > > are available in the git

Re: [U-Boot] [PATCH] binman: ensure temp filenames don't collide

2018-07-20 Thread Simon Glass
Hi Stephen, On 19 July 2018 at 22:43, Stephen Warren wrote: > On 07/19/2018 08:17 PM, Simon Glass wrote: > > Hi Stephen, > > > > On 19 July 2018 at 15:14, Stephen Warren wrote: > >> On 07/18/2018 07:32 PM, Simon Glass wrote: > >>> Hi Stephen, > >>> > >>> On 16 July 2018 at 16:51, Stephen

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

2018-07-20 Thread Simon Glass
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/patch/944611/ for the bug report.

[U-Boot] [PATCH] doc: Move device tree bindings documentation to doc/device-tree-bindings

2018-07-20 Thread Breno Lima
From: Breno Lima Currently the U-Boot project contains 2 documentation directories: - doc/ - Documentation/ The Documentation directory only contains device tree bindings related content, so move the 3 files to doc/device-tree-bindings/. Signed-off-by: Breno Lima --- .../devicetree/bindings

[U-Boot] [PULL] Please pull u-boot-rockchip/master

2018-07-20 Thread Dr. Philipp Tomsich
Tom, The first batch of changes for u-boot-rockchip/master in this iteration is ready for you to pull. The associated Travis report (prior to the rebase) is at https://travis-ci.org/ptomsich/u-boot-rockchip/builds/406299101 Thanks, Philipp. The following changes since commit

Re: [U-Boot] [PATCH v2 00/11] Add ethernet support for phyCORE-RK3288

2018-07-20 Thread Grygorii Strashko
On 07/18/2018 03:46 AM, Janine Hagemann wrote: - Remove 0004-Net-phy-ti-Fix-fifo_depth-register-write.patch because of the change from 0005-net-phy-ti-Recover-from-port-mirroring- N-A-MODE4.patch it isn't needed anymore. Before, the MII_DP83867_ PHYCTRL-register wasn't write correctly

Re: [U-Boot] [PATCH v2 06/11] net: phy: ti: add workaround for incorrect RX_CTRL pin strap

2018-07-20 Thread Grygorii Strashko
On 07/18/2018 03:46 AM, Janine Hagemann wrote: The data manual for DP83867IR/CR, SNLS484E[1], revised march 2017, advises that strapping RX_DV/RX_CTRL pin in mode 1 and 2 is not supported (see note below Table 5 (4-Level Strap Pins)). There are some boards which have the pin strapped this way

Re: [U-Boot] [U-Boot, v6, 4/6] hashtable: do not recreate whole hash table if vars are passed to himport_r

2018-07-20 Thread Tom Rini
On Mon, Jul 09, 2018 at 07:16:28PM +0200, Quentin Schulz wrote: > When vars are passed to the himport_r function with H_NOCLEAR flag, > those vars will be overridden in the current environment and if one of > those vars is not in the imported environment, it'll be deleted in the > current

Re: [U-Boot] [U-Boot, 3/4] dm: led: move default state support in led uclass

2018-07-20 Thread Tom Rini
On Fri, Jul 13, 2018 at 05:21:10PM +0200, Patrick Delaunay wrote: > 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() >

Re: [U-Boot] [U-Boot, v6, 5/6] cmd: nvedit: env import can now import only variables passed as parameters

2018-07-20 Thread Tom Rini
On Mon, Jul 09, 2018 at 07:16:29PM +0200, Quentin Schulz wrote: > While the `env export` can take as parameters variables to be exported, > `env import` does not have such a mechanism of variable selection. > > Let's add the ability to add parameters at the end of the command for > variables to

Re: [U-Boot] [U-Boot,v4,2/2] configs: Update Meson GX configs

2018-07-20 Thread Tom Rini
On Tue, Jul 10, 2018 at 10:01:08AM +0200, Loic Devulder wrote: > Enable ADC support on the Khadas VIM board. > > Signed-off-by: Loic Devulder > Acked-by: Neil Armstrong Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v6, 6/6] test/py: add test for whitelist of variables while importing environment

2018-07-20 Thread Tom Rini
On Mon, Jul 09, 2018 at 07:16:30PM +0200, Quentin Schulz wrote: > This tests that the importing of an environment with a specified > whitelist works as intended. > > If there are variables passed as parameter to the env import command, > those only should be imported in the current environment.

Re: [U-Boot] [U-Boot,5/6] stm32mp1: clk: add ADC clock gating

2018-07-20 Thread Tom Rini
On Mon, Jul 16, 2018 at 10:41:45AM +0200, Patrick Delaunay wrote: > Add ADC clock gating, that may be used by STM32 ADC. > > Signed-off-by: Fabrice Gasnier > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, 4/6] stm32mp1: add support for stm32mp157c-ev1 board

2018-07-20 Thread Tom Rini
On Mon, Jul 09, 2018 at 03:17:22PM +0200, Patrick Delaunay wrote: > Add support of stm32mp157c-ev1, the evaluation board with pmic stpmu1 > (ev1 = mother board + daughter ed1) with device tree. > EV1 is the selected board by default in basic defconfig. > > PS: CONFIG_PINCTRL_FULL activation

Re: [U-Boot] [U-Boot, v6, 1/6] env: add the same prefix to error messages to make it detectable by tests

2018-07-20 Thread Tom Rini
On Mon, Jul 09, 2018 at 07:16:25PM +0200, Quentin Schulz wrote: > The error message should start with `## Error: ` so that it's easily > detectable by tests without needing to have a complex regexp for > matching all possible error message patterns. > > Let's add the `## Error: ` prefix to the

Re: [U-Boot] [U-Boot,5/6] stm32mp1: activate FIXED regulator

2018-07-20 Thread Tom Rini
On Mon, Jul 09, 2018 at 03:17:23PM +0200, Patrick Delaunay wrote: > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [U-Boot,2/6] misc: stm32: Add STM32MP1 support

2018-07-20 Thread Tom Rini
On Mon, Jul 09, 2018 at 03:17:20PM +0200, Patrick Delaunay wrote: > Following next kernel rcc bindings, we must use a MFD > RCC driver which is able to bind both clock and reset > drivers. > > We can reuse and adapt RCC MFD driver already available > for MCU SoCs (F4/F7/H7). > > Signed-off-by:

Re: [U-Boot] [U-Boot,3/6] stm32mp1: activate MISC support in SPL

2018-07-20 Thread Tom Rini
On Mon, Jul 09, 2018 at 03:17:21PM +0200, Patrick Delaunay wrote: > needed for RCC MISC driver and sysreset with syscon > in SPL > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, 2/6] stm32mp1: clk: add common function pll_get_fvco

2018-07-20 Thread Tom Rini
On Mon, Jul 16, 2018 at 10:41:42AM +0200, Patrick Delaunay wrote: > the function compute the VCO PLL freq, used in > - stm32mp1_read_pll_freq() > - pll_set_rate() > > Signed-off-by: Patrick Delaunay > # Conflicts: > # drivers/clk/clk_stm32mp1.c Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot,6/6] stm32mp1: clk: support digital bypass

2018-07-20 Thread Tom Rini
On Mon, Jul 16, 2018 at 10:41:46AM +0200, Patrick Delaunay wrote: > HSE and LSE bypass shall support both analog and digital signals. > This patch add a way to select digital bypas case in the device tree > and set the associated bit DIGBYP in RCC_BDCR and RCC_OCEN register > during clock tree

Re: [U-Boot] [U-Boot, 4/6] stm32mp1: clk: update Ethernet clock gating

2018-07-20 Thread Tom Rini
On Mon, Jul 16, 2018 at 10:41:44AM +0200, Patrick Delaunay wrote: > Alignment with kernel clock driver > > Signed-off-by: Patrice Chotard > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot,v2,1/1] Fix README for Khadas VIM board

2018-07-20 Thread Tom Rini
On Fri, Jul 13, 2018 at 11:36:07AM +0200, Loic Devulder wrote: > Explicitly add 'python' call for 'acs_tool.pyc', to avoid failed > execution on some OSes. > > Signed-off-by: Loic Devulder > Acked-by: Neil Armstrong > > diff --git a/board/amlogic/khadas-vim/README

Re: [U-Boot] [U-Boot, 1/6] dts: import stm32mp1 device tree from linux kernel

2018-07-20 Thread Tom Rini
On Mon, Jul 09, 2018 at 03:17:19PM +0200, Patrick Delaunay wrote: > This patch rebase the stm32mp1 device tree source from > linux kernel v4.18-rc1. > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

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

2018-07-20 Thread Tom Rini
On Fri, Jul 13, 2018 at 05:21:11PM +0200, Patrick Delaunay wrote: > Initialize the led with the default state defined in device tree. > > Signed-off-by: Patrick Delaunay > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] sysreset: syscon: update regmap access to syscon

2018-07-20 Thread Tom Rini
On Mon, Jul 09, 2018 at 02:59:29PM +0200, Patrick Delaunay wrote: > Use new API syscon_node_to_regmap in sysreset_syscon driver > for compatible "syscon-reboot"; that's avoid the need of explicit > syscon binding for "regmap" handle. > > Signed-off-by: Patrick Delaunay Applied to

Re: [U-Boot] [U-Boot, v6, 2/6] test/py: return a RAM address different from 0 as it can be interpreted as NULL

2018-07-20 Thread Tom Rini
On Mon, Jul 09, 2018 at 07:16:26PM +0200, Quentin Schulz wrote: > Some functions test that the given address is not NULL (0) and fail or > have a different behaviour if that's the case (e.g. hexport_r). > > Let's make the RAM base address to be not zero by setting it to 2MiB if > that's the

Re: [U-Boot] [U-Boot, v6, 3/6] test/py: remove hacks for non-zero RAM base address in tests

2018-07-20 Thread Tom Rini
On Mon, Jul 09, 2018 at 07:16:27PM +0200, Quentin Schulz wrote: > Some functions have different behaviour when the given address is 0 > (assumed to be NULL by the function). > > find_ram_base() does not return 0 anymore so it's safe to remove those > offsets. > > Suggested-by: Stephen Warren >

Re: [U-Boot] [U-Boot, 1/6] stm32mp1: clk: define RCC_PLLNCFGR2_SHIFT macro

2018-07-20 Thread Tom Rini
On Mon, Jul 16, 2018 at 10:41:41AM +0200, Patrick Delaunay wrote: > This patch define RCC_PLLNCFGR2_SHIFT to reuse it in > the pll function for set rate. > > Signed-off-by: Patrick Delaunay > Reviewed-by: Vikas Manocha Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [U-Boot] [U-Boot, 3/6] stm32mp1: clk: add LDTC and DSI clock support

2018-07-20 Thread Tom Rini
On Mon, Jul 16, 2018 at 10:41:43AM +0200, Patrick Delaunay wrote: > This patch add clk_enable/clk_disable/clk_get_rate support for > - DSI_PX > - LTDC_PX > - DSI_K (only get rate) > > These clocks are needed for LTDC and DSI drivers with latest device tree. > > Signed-off-by: Patrick Delaunay

[U-Boot] [PATCH] drivers/ddr/fsl: fix '__hwconfig without a buffer' messages

2018-07-20 Thread Jeremy Gebben
Pass an empty buffer instead of NULL if the hwconfig environment variable isn't set. Signed-off-by: Jeremy Gebben Cc: Stefano Babic Cc: York Sun --- drivers/ddr/fsl/options.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/ddr/fsl/options.c

Re: [U-Boot] [U-Boot,6/6] stm32mp1: clock tree update

2018-07-20 Thread Tom Rini
On Mon, Jul 09, 2018 at 03:17:24PM +0200, Patrick Delaunay wrote: > Configure clock tree for all the devices. > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing

Re: [U-Boot] [U-Boot,2/2] bootmenu: Extend BOOTDELAY help text

2018-07-20 Thread Tom Rini
On Thu, Jul 05, 2018 at 12:38:16PM +, Alex Kiernan wrote: > Extend BOOTDELAY help text to cover its additional usage within the > bootmenu command. > > Signed-off-by: Alex Kiernan Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [U-Boot, v4, 1/2] ARM64: meson: Sync DT with Linux 4.17.5

2018-07-20 Thread Tom Rini
On Tue, Jul 10, 2018 at 10:01:07AM +0200, Loic Devulder wrote: > Synchronize the Linux Device Tree for Amlogic Meson GX boards from Linux > 4.17.5 > (Linux commit 54fb3c180d05e9dfda892a93413514e99f0cbb19). > > This will enable HDMI_5V for USB Amlogic Meson GXL P212 based boards. > >

Re: [U-Boot] [U-Boot,2/2] spl: Make the spl_nand_load_image static

2018-07-20 Thread Tom Rini
On Wed, Jul 04, 2018 at 03:53:37PM +0200, Michael Trimarchi wrote: > Change-Id: I1c2f71e75fc052c54fc94b13d0942cb9e75ff1c6 > Signed-off-by: Michael Trimarchi Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [U-Boot, v2, 1/1] drivers: rtc: correct week day for mc146818

2018-07-20 Thread Tom Rini
On Sun, Jul 08, 2018 at 12:07:26AM +0200, Heinrich Schuchardt wrote: > For qemu-x86 the date command produces wrong days of the week: > Date: 2018-07-06 (Saturday)Time: 18:02:03 > Date: 2018-07-07 (unknown day)Time: 21:02:06 > > According to a comment in the Linux driver the mc146818

Re: [U-Boot] [U-Boot, 1/2] env: Include bootdelay in environment if negative

2018-07-20 Thread Tom Rini
On Thu, Jul 05, 2018 at 12:38:15PM +, Alex Kiernan wrote: > The test for (CONFIG_BOOTDELAY >= 0) has been in U-Boot since the > beginning, but the meaning of it has changed over time. Allow the > default to be set for any value, including -ve ones. This allows > (for example)

Re: [U-Boot] [U-Boot, v2] fs: btrfs: Fix wrong comparison in logical to physical mapping

2018-07-20 Thread Tom Rini
On Wed, Jul 04, 2018 at 08:23:01PM +0200, Marek Behún wrote: > The comparison > logical > item->logical + item->length > in btrfs_map_logical_to_physical is wrong and should be instead > logical >= item->logical + item->length > For example, if > item->logical = 4096 > item->length = 4096

Re: [U-Boot] spl: mmc: Skip RAW mode ARGS sectors if not defined

2018-07-20 Thread Tom Rini
On Tue, Jun 26, 2018 at 09:44:39AM -0700, York Sun wrote: > RAW mode ARGS sector doesn't have to be used for all falcon boot. Skip > loading ARGS sectors if not defined. > > Signed-off-by: York Sun Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH] board/imgtec/boston: Add new defconfigs to the MAINTAINERS list

2018-07-20 Thread Tom Rini
On Fri, Jul 20, 2018 at 09:01:31AM -0400, Tom Rini wrote: > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH] drivers/ddr/fsl: fix '__hwconfig without a buffer' messages

2018-07-20 Thread York Sun
On 07/20/2018 03:00 PM, Jeremy Gebben wrote: > Pass an empty buffer instead of NULL if the hwconfig environment > variable isn't set. > > Signed-off-by: Jeremy Gebben > Cc: Stefano Babic > Cc: York Sun > --- > drivers/ddr/fsl/options.c | 14 ++ > 1 file changed, 6 insertions(+), 8

Re: [U-Boot] [PATCH] mtd: spi: spi_flash: fix build with dma enabled

2018-07-20 Thread Grygorii Strashko
On 07/16/2018 03:56 AM, Jagan Teki wrote: > On Fri, Jun 29, 2018 at 12:56 AM, Grygorii Strashko > wrote: >> Fix build with CONFIG_DMA enabled >> drivers/mtd/spi/spi_flash.c:376: undefined reference to `dma_memcpy' >> >> Signed-off-by: Grygorii Strashko >> --- >> drivers/mtd/spi/spi_flash.c

Re: [U-Boot] [U-Boot,V3,1/2] spl: Fix redundant image of uboot

2018-07-20 Thread Tom Rini
On Fri, Jul 20, 2018 at 10:27:26PM +0200, Michael Nazzareno Trimarchi wrote: > Hi > > On Fri, Jul 20, 2018 at 10:11 PM, Tom Rini wrote: > > On Fri, Jul 20, 2018 at 10:09:00PM +0200, Michael Nazzareno Trimarchi wrote: > >> Hi Tom > >> > >> On Fri, Jul 20, 2018 at 9:54 PM, Tom Rini wrote: > >> >

Re: [U-Boot] [U-Boot,V3,1/2] spl: Fix redundant image of uboot

2018-07-20 Thread Michael Nazzareno Trimarchi
Hi On Fri, Jul 20, 2018 at 10:11 PM, Tom Rini wrote: > On Fri, Jul 20, 2018 at 10:09:00PM +0200, Michael Nazzareno Trimarchi wrote: >> Hi Tom >> >> On Fri, Jul 20, 2018 at 9:54 PM, Tom Rini wrote: >> > On Fri, Jul 06, 2018 at 05:09:22PM +0200, Michael Trimarchi wrote: >> > >> >> We need to

Re: [U-Boot] [U-Boot,V3,1/2] spl: Fix redundant image of uboot

2018-07-20 Thread Tom Rini
On Fri, Jul 20, 2018 at 10:09:00PM +0200, Michael Nazzareno Trimarchi wrote: > Hi Tom > > On Fri, Jul 20, 2018 at 9:54 PM, Tom Rini wrote: > > On Fri, Jul 06, 2018 at 05:09:22PM +0200, Michael Trimarchi wrote: > > > >> We need to address the redundat image case and undestand if the > >> image is

Re: [U-Boot] [U-Boot,V3,1/2] spl: Fix redundant image of uboot

2018-07-20 Thread Michael Nazzareno Trimarchi
Hi Tom On Fri, Jul 20, 2018 at 9:54 PM, Tom Rini wrote: > On Fri, Jul 06, 2018 at 05:09:22PM +0200, Michael Trimarchi wrote: > >> We need to address the redundat image case and undestand if the >> image is corrupted or not. In error case we need to try the fallback copy. >> The function used

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

2018-07-20 Thread Stefan Herbrechtsmeier
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 done hopefully soon. Just a note: There is no reason to initialize

Re: [U-Boot] [U-Boot,V3,1/2] spl: Fix redundant image of uboot

2018-07-20 Thread Tom Rini
On Fri, Jul 06, 2018 at 05:09:22PM +0200, Michael Trimarchi wrote: > We need to address the redundat image case and undestand if the > image is corrupted or not. In error case we need to try the fallback copy. > The function used before was always return 0 without any evaluation of the > error.

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

2018-07-20 Thread Stefan Herbrechtsmeier
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. Signed-off-by: Michal Simek --- drivers/gpio/zynq_gpio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [U-Boot] [PATCH 02/17] fs: fat: handle "." and ".." of root dir correctly with fat_itr_resolve()

2018-07-20 Thread Heinrich Schuchardt
On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > FAT's root directory does not have "." nor ".." > So care must be taken when scanning root directory with fat_itr_resolve(). > Without this patch, any file path starting with "." or ".." will not be > resolved at all. > > Signed-off-by: AKASHI

Re: [U-Boot] [PATCH 01/17] fs: fat: extend get_fs_info() for write use

2018-07-20 Thread Heinrich Schuchardt
On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > get_fs_info() was introduced in major re-work of read operation by Rob. > We want to reuse this function in write operation by extending it with > additional members in fsdata structure. > > Signed-off-by: AKASHI Takahiro > --- > fs/fat/fat.c |

Re: [U-Boot] [PATCH 03/17] fs: fat: make directory iterator global for write use

2018-07-20 Thread Heinrich Schuchardt
On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > Directory iterator was introduced in major re-work of read operation by > Rob. We want to use it for write operation extensively as well. > This patch makes relevant functions, as well as iterator defition, visible > outside of fat.c. > >

Re: [U-Boot] [PATCH 06/17] fs: fat: write returns error code instead of -1

2018-07-20 Thread Heinrich Schuchardt
On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > It would be good that FAT write function return error code instead of > just returning -1 as fat_read_file() does. > This patch attempts to address this issue although it is 'best effort > (or estimate)' for now. > > Signed-off-by: AKASHI Takahiro

Re: [U-Boot] [PATCH 09/17] fs: fat: support write with non-zero offset

2018-07-20 Thread Heinrich Schuchardt
On 07/20/2018 04:57 AM, AKASHI Takahiro wrote: > In this patch, all the necessary code for allowing for a file offset > at write is implemented. What plays a major roll here is get_set_cluster(), > which, in contrast to its counterpart, set_cluster(), only operates on > already-allocated clusters,

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

2018-07-20 Thread Heinrich Schuchardt
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 > --- > fs/fs.c | 45

Re: [U-Boot] [U-Boot, 1/3] arm: dts: rockchip: add some common pin-settings to rk3399

2018-07-20 Thread Philipp Tomsich
> From: Randy Li > > Those pins would be used by many boards. > > Signed-off-by: Randy Li > Signed-off-by: Heiko Stuebner > Signed-off-by: Ezequiel Garcia > Reviewed-by: Simon Glass > Reviewed-by: Philipp Tomsich > --- > arch/arm/dts/rk3399.dtsi | 55

Re: [U-Boot] [U-Boot, 3/3] rockchip: rk3399: Add more instructions to the README

2018-07-20 Thread Philipp Tomsich
> This commit adds a content section and also instructions > on how to create a bootable SD/MMC device for RK3399 boards. > > Signed-off-by: Ezequiel Garcia > Reviewed-by: Simon Glass > Reviewed-by: Philipp Tomsich > --- > board/rockchip/evb_rk3399/README | 55 ++--

Re: [U-Boot] [U-Boot,2/3] ARM: add RK3399 Ficus board

2018-07-20 Thread Philipp Tomsich
> This commit adds support for RK3399 Ficus board, > aka ROCK960 Enterprise Edition. > > Following peripherals are tested and known to work: > * Gigabit Ethernet > * USB 2.0 > * MMC > > Signed-off-by: Ezequiel Garcia > Reviewed-by: Simon Glass > Reviewed-by: Philipp Tomsich > --- >

Re: [U-Boot] [U-Boot, 1/3] arm: dts: rockchip: add some common pin-settings to rk3399

2018-07-20 Thread Dr. Philipp Tomsich
> On 20 Jul 2018, at 19:14, Ezequiel Garcia wrote: > > On Fri, 2018-07-20 at 18:26 +0200, Philipp Tomsich wrote: >> >> On Mon, 16 Jul 2018, Ezequiel Garcia wrote: >> >>> From: Randy Li >>> >>> Those pins would be used by many boards. >> >> The Rockchip pinctrl driver in U-Boot does not

Re: [U-Boot] [U-Boot, 3/4] dm: led: move default state support in led uclass

2018-07-20 Thread Patrick DELAUNAY
Hi Tom > From: Tom Rini > Sent: vendredi 20 juillet 2018 15:54 > > On Fri, Jul 13, 2018 at 05:21:10PM +0200, Patrick Delaunay wrote: > > > This patch save common LED property "default-state" value in post bind > > of LED uclass. > > > > Signed-off-by: Patrick Delaunay > > Reviewed-by: Simon

Re: [U-Boot] [U-Boot, 1/3] arm: dts: rockchip: add some common pin-settings to rk3399

2018-07-20 Thread Ezequiel Garcia
On Fri, 2018-07-20 at 18:26 +0200, Philipp Tomsich wrote: > > On Mon, 16 Jul 2018, Ezequiel Garcia wrote: > > > From: Randy Li > > > > Those pins would be used by many boards. > > The Rockchip pinctrl driver in U-Boot does not (yet) read the DTS for pin > configuration information. > > Is

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

2018-07-20 Thread Heinrich Schuchardt
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 patch does set the creation date of the directory according to the real time clock

Re: [U-Boot] [U-Boot, 3/3] rockchip: rk3399: Add more instructions to the README

2018-07-20 Thread Dr. Philipp Tomsich
Thanks for the clarification, I’ll take this as-is. > On 20 Jul 2018, at 19:09, Ezequiel Garcia wrote: > > On Fri, 2018-07-20 at 18:28 +0200, Philipp Tomsich wrote: >> >> On Mon, 16 Jul 2018, Ezequiel Garcia wrote: >> >>> This commit adds a content section and also instructions >>> on how to

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

2018-07-20 Thread Heinrich Schuchardt
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 an absolute directory path as > a parent directory. Otherwise, "/" (root

Re: [U-Boot] [U-Boot, 3/3] rockchip: rk3399: Add more instructions to the README

2018-07-20 Thread Ezequiel Garcia
On Fri, 2018-07-20 at 18:28 +0200, Philipp Tomsich wrote: > > On Mon, 16 Jul 2018, Ezequiel Garcia wrote: > > > This commit adds a content section and also instructions > > on how to create a bootable SD/MMC device for RK3399 boards. > > Are any of these instructions Ficus-specific? We have

Re: [U-Boot] [U-Boot, v3, 8/9] usb: rockchip: fix printing csw debug info

2018-07-20 Thread Philipp Tomsich
On Thu, 12 Jul 2018, Alberto Panizzo wrote: Workstation tool was happy while console on device were printing random numbers.. Please provide a more meaningful commit message. Signed-off-by: Alberto Panizzo --- drivers/usb/gadget/f_rockusb.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [U-Boot] [U-Boot, v3, 3/9] rockchip: rk3288: implement reading chip version from bootrom code

2018-07-20 Thread Philipp Tomsich
On Thu, 12 Jul 2018, Alberto Panizzo wrote: This allows rockusb code to reply correctly to K_FW_GET_CHIP_VER command. On RK3288 chip version is at 0x4ff0 and on tested hardware it corresponds at the string "320A20140813V200" Signed-off-by: Alberto Panizzo Reviewed-by: Simon Glass

Re: [U-Boot] [U-Boot, v3, 2/9] usb: rockchip: implement skeleton for K_FW_GET_CHIP_VER command

2018-07-20 Thread Philipp Tomsich
On Thu, 12 Jul 2018, Alberto Panizzo wrote: Chip Version is a string saved in BOOTROM address space Little Endian. There's just one tiny problem: the BOOTROM will not be accessible on ARMv8 targets after ATF has been loaded. We should define a common mechanism how to deal with this (e.g.

Re: [U-Boot] [U-Boot, v3, 1/9] usb: rockchip: fix command failed on host side due to missing data

2018-07-20 Thread Philipp Tomsich
On Thu, 12 Jul 2018, Alberto Panizzo wrote: Two consecutive rockusb_tx_write without waiting for request complete do results in transfer reset of first request and thus no or incomplete data transfer. This because rockusb_tx_write do use just one USB request to keep serialization. So calls

Re: [U-Boot] [U-Boot, v3, 6/9] usb: rockchip: be quiet on serial port while transferring data

2018-07-20 Thread Philipp Tomsich
> While downloading or uploading megabytes of data we had thousands of > printf in console like: > > transfer 0x1 bytes done > OR > Uploading 0x1000 bytes > > This because transfers are chunked and there is no way on target > side to know the overall transfer size (to print one string per >

Re: [U-Boot] [U-Boot, v3, 5/9] usb: rockchip: implement K_FW_LBA_ERASE_10 command

2018-07-20 Thread Philipp Tomsich
> This command is part of the write partition sequence performed by > rkdeveloptool: one partition is first completely erased and > than wrote. > > Signed-off-by: Alberto Panizzo > Reviewed-by: Simon Glass > --- > arch/arm/include/asm/arch-rockchip/f_rockusb.h | 1 + > doc/README.rockusb

Re: [U-Boot] [U-Boot, v3, 4/9] usb: rockchip: implement K_FW_LBA_READ_10 command

2018-07-20 Thread Philipp Tomsich
> This patch implement reading blocks form selected device with > LBA addressing. > > Corresponding command on workstation is: > rkdeveloptool rl > > While we support reading more than one blocks per K_FW_LBA_READ_10 > request, rkdeveloptool and original rockchip tool do perform > chunk reads

Re: [U-Boot] [U-Boot,5/5] rk3288: vyasa: Fixup indentation

2018-07-20 Thread Philipp Tomsich
> Indent file using tabs > > Signed-off-by: Alberto Panizzo > --- > board/amarula/vyasa-rk3288/vyasa-rk3288.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > Reviewed-by: Philipp Tomsich ___ U-Boot mailing list

Re: [U-Boot] [U-Boot, 3/5] rockchip: rk3288-vyasa: increase heap space after relocation

2018-07-20 Thread Philipp Tomsich
> Before relocation (TPL or early SPL) we are executing in internal > SDRAM with limited space. > As soon as SPL is relocated increase malloc size, big enough > to manage loading kernel images from eMMC > > Signed-off-by: Alberto Panizzo > --- > configs/vyasa-rk3288_defconfig | 8 +--- > 1

Re: [U-Boot] [U-Boot, 4/5] rk3288: vyasa: Allow booting from internal eMMC

2018-07-20 Thread Philipp Tomsich
> Keeping SD-Card as priority for easy board recovery > > Signed-off-by: Alberto Panizzo > Reviewed-by: Jagan Teki > --- > include/configs/vyasa-rk3288.h | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Philipp Tomsich ___ U-Boot mailing

Re: [U-Boot] [U-Boot,2/3] ARM: add RK3399 Ficus board

2018-07-20 Thread Philipp Tomsich
> This commit adds support for RK3399 Ficus board, > aka ROCK960 Enterprise Edition. > > Following peripherals are tested and known to work: > * Gigabit Ethernet > * USB 2.0 > * MMC > > Signed-off-by: Ezequiel Garcia > Reviewed-by: Simon Glass > --- > arch/arm/dts/Makefile| 1 +

Re: [U-Boot] [U-Boot, 1/5] mmc: dw_mmc: prevent silent memory corruption when stack and heap are too small

2018-07-20 Thread Philipp Tomsich
> ALLOC_CACHE_ALIGN_BUFFER was called here in a way to alloc in stack a > possible huge quantity of memory depending on data transer size. > > Es: loading kernel 8MB from eMMC we have > Transfer size: 0x80 > Block size: 0x200 > Transfer blocks: 0x4000 > struct size: 0x10 > Stack

Re: [U-Boot] [U-Boot, 3/3] rockchip: rk3399: Add more instructions to the README

2018-07-20 Thread Philipp Tomsich
On Mon, 16 Jul 2018, Ezequiel Garcia wrote: This commit adds a content section and also instructions on how to create a bootable SD/MMC device for RK3399 boards. Are any of these instructions Ficus-specific? We have our own README for our own boards, as these have different instructions

Re: [U-Boot] [U-Boot, 1/3] arm: dts: rockchip: add some common pin-settings to rk3399

2018-07-20 Thread Philipp Tomsich
On Mon, 16 Jul 2018, Ezequiel Garcia wrote: From: Randy Li Those pins would be used by many boards. The Rockchip pinctrl driver in U-Boot does not (yet) read the DTS for pin configuration information. Is this a sync of the Linux DTS (which seems unlikely, as I'd expect more changes)

Re: [U-Boot] [U-Boot, 2/5] mmc: dw_mmc: increase cmd timeout to fix eMMC enumeration error

2018-07-20 Thread Philipp Tomsich
On Wed, 4 Jul 2018, Alberto Panizzo wrote: Errors are reported to happen running U-Boot after SPL kernel load failure. In this case mmc host is not clean, and card enumeration timeouts do happen frequently. Signed-off-by: Alberto Panizzo See below for requested changes. ---

Re: [U-Boot] [RFC PATCH 0/4] arm: zynq: implement FPGA load from SPL

2018-07-20 Thread Luis Araneda
Hi Michal, On Fri, Jul 20, 2018 at 6:38 AM Michal Simek wrote: > On 20.7.2018 01:37, Luis Araneda wrote: > > Hi Michal, > > > > On Thu, Jul 19, 2018 at 2:23 AM Michal Simek > > wrote: > We need that functionality first but then enable it for all boards is > fine for me and via one patch. Ok

Re: [U-Boot] [PATCH] ARM: mx6ul: Apply ERR011115 errata workaround

2018-07-20 Thread Marcin Niestroj
Hi, On 20.07.2018 16:29, Sébastien Szymanski wrote: Hi, On 07/19/2018 01:37 PM, Marcin Niestroj wrote: ERR05 in IMX6UL errata says to use OCRAM memory above 0x908000 (instead of 0x907000) for silicon revision 1.2 shipped prior date code 1740. As we cannot check affected targets in

[U-Boot] [PATCHv2 4/6] bootcount: Configure length limit for I2C bootcount

2018-07-20 Thread Sebastian Reichel
From: Denis Zalevskiy Bootcount driver should verify size against the maximum available space. New configuration parameter adds this capability and keeps backward compatibility by providing default value. Signed-off-by: Denis Zalevskiy Signed-off-by: Sebastian Reichel ---

[U-Boot] [PATCHv2 6/6] board: ge: Store bootcount in EEPROM on PPD and Bx50v3

2018-07-20 Thread Sebastian Reichel
From: Denis Zalevskiy u-boot's ext3/4 write/modify functionality sometimes corrupts filesystem in the case if it requires recovery (e.g. after unexpected shutdown) and we want to avoid the only filesystem modification we have - bootcounter writing. So, bootcounter will be stored in the EEPROM

[U-Boot] [PATCHv2 3/6] bootcount: i2c: Add bus switching to the I2C bootcount driver

2018-07-20 Thread Sebastian Reichel
From: Denis Zalevskiy If there is an I2C mux, current bus should be switched before manipulating with I2C. Signed-off-by: Denis Zalevskiy Signed-off-by: Sebastian Reichel --- drivers/bootcount/Kconfig | 15 ++- drivers/bootcount/bootcount_i2c.c | 70

[U-Boot] [PATCHv2 2/6] board: ge: Move VPD EEPROM configuration to the defconfig

2018-07-20 Thread Sebastian Reichel
From: Denis Zalevskiy Use standard configuration logic to define EEPROM constants. Names are based on VPD_EEPROM_ prefix because EEPROM_ is already used by i2c_eeprom driver. Signed-off-by: Denis Zalevskiy Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/Kconfig | 2 ++

[U-Boot] [PATCHv2 5/6] board: ge: Move VPD reading to the vpd_reader

2018-07-20 Thread Sebastian Reichel
From: Denis Zalevskiy Merge functionality duplicated in bx50v3 and mx53ppd: the logic is the same except that process_vpd is called at different phases. Also read_vpd could end up in error, so there is no VPD data in this case - it shouldn't be processed. Signed-off-by: Denis Zalevskiy

[U-Boot] [PATCHv2 1/6] board: ge: Remove EEPROM bus param from read_vpd()

2018-07-20 Thread Sebastian Reichel
From: Denis Zalevskiy The bus is statically defined, so remove redundant parameters from read_vpd() for PPD and Bx50v3. Signed-off-by: Denis Zalevskiy Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/bx50v3.c | 6 +++--- board/ge/mx53ppd/mx53ppd.c | 6 +++--- 2 files changed, 6

[U-Boot] [PATCHv2 0/6] GE: Move from ext4 to eeprom bootcounter

2018-07-20 Thread Sebastian Reichel
Writing to ext4 from U-Boot is dangerous in case of inconsistent filesystem state (i.e. due to power-loss). The current U-Boot code can modify the filesystem, so that it is no longer usable by Linux after fsck. This patchset avoids writing to the partition on GE devices by moving the boot counter

Re: [U-Boot] smartweb: use SPL_TINY_MEMSET

2018-07-20 Thread Philipp Tomsich
> The SPL code for smartweb is close to its limit and adding a few extra > instructions to SPL will cause it to overrun its sram allotement (thus > causing build failures). To allow adding the 'spl_perform_fixups' > extension point to SPL, we'll enable SPL_TINY_MEMSET for smartweb. > >

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

2018-07-20 Thread Sam Protsenko
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's only print it in case when DEBUG is defined to keep log

[U-Boot] [PATCH v2 1/2] env: Don't print "Failed" error message

2018-07-20 Thread Sam Protsenko
"Failed" error message from env_load() only clutters the log with unnecessary details, as we already have all needed warnings by that time. Example: Loading Environment from FAT... MMC: no card present ** Bad device mmc 0 ** Failed (-5) Remove this "Failed" message to keep log short

[U-Boot] [PATCH v2 0/2] env: Make environment loading log more clear

2018-07-20 Thread Sam Protsenko
This patch series intended to make boot log better. Basically here we just remove unwanted error messages, relying on the message from most deep API to be printed (like mmc subsystem). At the moment this looks like most clean solution to cluttered log problem, as any other solution will be

[U-Boot] [PATCH] smartweb: use SPL_TINY_MEMSET

2018-07-20 Thread Philipp Tomsich
The SPL code for smartweb is close to its limit and adding a few extra instructions to SPL will cause it to overrun its sram allotement (thus causing build failures). To allow adding the 'spl_perform_fixups' extension point to SPL, we'll enable SPL_TINY_MEMSET for smartweb. Signed-off-by:

Re: [U-Boot] [PATCH 1/2] env: Don't print "Failed" error message

2018-07-20 Thread Sam Protsenko
On Fri, Jul 20, 2018 at 4:29 PM, Wolfgang Denk wrote: > Dear Sam, > > In message <20180720131421.7136-2-semen.protse...@linaro.org> you wrote: >> >> + if (!ret) >> printf("OK\n"); >> >> if (!ret) > > Now we have two "if (!ret)" in sequence. Make

Re: [U-Boot] [RFC PATCH v3 0/2] env: Make environment loading log more clear

2018-07-20 Thread Sam Protsenko
On Fri, Jul 20, 2018 at 4:27 PM, Wolfgang Denk wrote: > Dear Sam, > > In message <20180719222843.28316-1-semen.protse...@linaro.org> you wrote: >> >> 1. With no "Failed" message, at some point we *can* end up with no >> error messages printed at all > > That would mean that we did not check

Re: [U-Boot] [PATCH 04/20] W1-EEPROM: Add an W1-EEPROM uclass for 1 wire EEPROMs

2018-07-20 Thread Maxime Ripard
Hi Eugen, Thanks for giving those patches another shot. On Thu, Jul 19, 2018 at 12:57:52PM +0300, Eugen Hristev wrote: > From: Maxime Ripard > > We might want to access data stored onto one wire EEPROMs. > Create a framework to provide a consistent API. > > Signed-off-by: Maxime Ripard >

Re: [U-Boot] [PATCH] ARM: mx6ul: Apply ERR011115 errata workaround

2018-07-20 Thread Sébastien Szymanski
Hi, On 07/19/2018 01:37 PM, Marcin Niestroj wrote: > ERR05 in IMX6UL errata says to use OCRAM memory above > 0x908000 (instead of 0x907000) for silicon revision 1.2 shipped > prior date code 1740. > > As we cannot check affected targets in runtime, apply that > workaround by default for all

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

2018-07-20 Thread Lukasz Majewski
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 file changed, 5 insertions(+) > > diff --git

Re: [U-Boot] [PATCH 3/3] rockchip: rk3399: Add more instructions to the README

2018-07-20 Thread Ezequiel Garcia
On Wed, 2018-07-18 at 19:32 -0600, Simon Glass wrote: > On 16 July 2018 at 13:41, Ezequiel Garcia wrote: > > This commit adds a content section and also instructions > > on how to create a bootable SD/MMC device for RK3399 boards. > > > > Signed-off-by: Ezequiel Garcia > > --- > >

  1   2   >