Re: [U-Boot] [PATCH] serial: ns16550: Add register shift variable

2018-07-15 Thread Alexey Brodkin
Hi Tom, Felix, all > -Original Message- > From: Tom Rini [mailto:tr...@konsulko.com] > Sent: Saturday, July 14, 2018 6:50 PM > To: Wolfgang Denk > Cc: Felix Brack ; u-boot@lists.denx.de; Stefan Roese > ; Alexey Brodkin ; > Alexander Graf ; Michal Simek > Subject: Re: [U-Boot] [PATCH] se

Re: [U-Boot] [RESEND PATCH v2 1/2] Add BOOTCOUNT_BOOTLIMIT to set reboot limit

2018-07-15 Thread Prabhakar Kushwaha
> -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Alex Kiernan > Sent: Saturday, July 14, 2018 1:30 PM > To: u-boot@lists.denx.de > Cc: Thomas Petazzoni ; Martyn Welch > ; Ian Ray > Subject: [U-Boot] [RESEND PATCH v2 1/2] Add BOOTCOUNT_BOOTLIMIT to set

Re: [U-Boot] [PATCH] serial: ns16550: Add register shift variable

2018-07-15 Thread Felix Brack
Hello Wolfgang, On 14.07.2018 12:47, Wolfgang Denk wrote: > Dear Felix, > > In message <1531492980-16543-1-git-send-email...@ltec.ch> you wrote: >> >> The motivation for writing this patch originates in the >> effort of synchronizing U-Boot DT to Linux DT for am33xx SOCs. >> The current am33xx.dt

Re: [U-Boot] [PATCH] serial: ns16550: Add register shift variable

2018-07-15 Thread Felix Brack
Hi Tom, On 14.07.2018 17:49, Tom Rini wrote: > On Sat, Jul 14, 2018 at 12:47:21PM +0200, Wolfgang Denk wrote: >> Dear Felix, >> >> In message <1531492980-16543-1-git-send-email...@ltec.ch> you wrote: >>> >>> The motivation for writing this patch originates in the >>> effort of synchronizing U-Boot

Re: [U-Boot] [PATCH] serial: ns16550: Add register shift variable

2018-07-15 Thread Felix Brack
Hi Alexey, On 15.07.2018 10:43, Alexey Brodkin wrote: > Hi Tom, Felix, all > >> -Original Message- >> From: Tom Rini [mailto:tr...@konsulko.com] >> Sent: Saturday, July 14, 2018 6:50 PM >> To: Wolfgang Denk >> Cc: Felix Brack ; u-boot@lists.denx.de; Stefan Roese >> ; Alexey Brodkin ; >>

[U-Boot] Raspberry Pi / fdt_addr bug with environment

2018-07-15 Thread Pascal Vizeli
Hi, I found a funny bug. I don't think that is a raspberry pi only bug. It is the handling how env restore work. We use the origin device tree from first bootloader. We store also the environment to SSD for a fallback scenario. Now it store also the fdt_addr to environment. On next boot, it overw

Re: [U-Boot] [RESEND PATCH v2 1/2] Add BOOTCOUNT_BOOTLIMIT to set reboot limit

2018-07-15 Thread Alex Kiernan
On Sun, Jul 15, 2018 at 10:36 AM Prabhakar Kushwaha wrote: > > > > -Original Message- > > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Alex Kiernan > > Sent: Saturday, July 14, 2018 1:30 PM > > To: u-boot@lists.denx.de > > Cc: Thomas Petazzoni ; Martyn Welch > > ; Ian Ra

Re: [U-Boot] [PATCH] watchdog: dm: Support manual relocation for watchdogs

2018-07-15 Thread Simon Glass
Hi Michal, On 11 July 2018 at 23:47, Michal Simek wrote: > On 11.7.2018 22:13, Simon Glass wrote: >> On 11 July 2018 at 08:41, Michal Simek wrote: >>> Relocate watchdog ops as was done by: >>> "dm: Add support for all targets which requires MANUAL_RELOC" >>> (sha1: 484fdf5ba058b07be5ca82763aa2b7

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

2018-07-15 Thread Simon Glass
On 12 July 2018 at 05:05, Alberto Panizzo wrote: > 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

Re: [U-Boot] [PATCH v2] microblaze: Do not call timer init that early

2018-07-15 Thread Simon Glass
On 12 July 2018 at 00:44, Michal Simek wrote: > Timer needs to be converted to DM but as of now it can't be called so > early because intc controller is not ready. Call it later in board_r.c. > Before this patch timer_init is called twice which is wrong. > The patch is blocking initialization befo

Re: [U-Boot] [PATCH v4 6/6] common: Generic loader for file system

2018-07-15 Thread Simon Glass
Hi Tien Fong, On 12 July 2018 at 01:19, Chee, Tien Fong wrote: > On Wed, 2018-07-11 at 14:13 -0600, Simon Glass wrote: >> Hi Tien, >> >> On 6 July 2018 at 02:28, wrote: >> > >> > From: Tien Fong Chee >> > >> > This is file system generic loader which can be used to load >> > the file image fro

Re: [U-Boot] [PATCH] gpio: zynq: Read of mach data in platdata with dev_get_driver_data

2018-07-15 Thread Simon Glass
On 12 July 2018 at 05:49, Michal Simek wrote: > Remove bogus zynq_gpio_getplat_data() and read driver data directly. > > Signed-off-by: Michal Simek > --- > > Driver should use platdata structure but this change should be fine > before this is fixed. > Simon: Is ofdata_to_platdata correct functio

Re: [U-Boot] [PATCH] gpio: dm: Support manual relocation for gpio

2018-07-15 Thread Simon Glass
On 12 July 2018 at 05:36, Michal Simek wrote: > Relocate gpio ops as was done by: > "dm: Add support for all targets which requires MANUAL_RELOC" > (sha1: 484fdf5ba058b07be5ca82763aa2b72063540ef3) > > Signed-off-by: Michal Simek > --- > > drivers/gpio/gpio-uclass.c | 35 +

Re: [U-Boot] [PATCH] sysreset: dm: Support manual relocation for sysreset

2018-07-15 Thread Simon Glass
On 12 July 2018 at 05:35, Michal Simek wrote: > Relocate sysreset ops as was done by: > "dm: Add support for all targets which requires MANUAL_RELOC" > (sha1: 484fdf5ba058b07be5ca82763aa2b72063540ef3) > > Signed-off-by: Michal Simek > --- > > drivers/sysreset/sysreset-uclass.c | 16 +

Re: [U-Boot] [PATCH 2/2] test: Fix test_vboot to call openssl without redirection

2018-07-15 Thread Simon Glass
Hi Stephen, On 8 June 2018 at 00:02, Simon Glass wrote: > > Hi Stephen, > > On 16 May 2018 at 12:57, Simon Glass wrote: > > Hi Stephen, > > > > On 16 May 2018 at 09:55, Stephen Warren wrote: > >> On 05/16/2018 01:10 AM, Simon Glass wrote: > >>> > >>> The redirection seems to cause this test to

Re: [U-Boot] [PATCH v3 7/9] usb: rockchip: boost up write speed from 4MB/s to 15MB/s

2018-07-15 Thread Simon Glass
On 12 July 2018 at 05:05, Alberto Panizzo wrote: > Speedup transfers increasing the max chunk size. > Buffers are allocated with memalign thus developer is noticed when heap is > full and in current configuration a buffer allocation of 64K till now > is safe. > > Signed-off-by: Alberto Panizzo >

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

2018-07-15 Thread Simon Glass
On 12 July 2018 at 05:05, Alberto Panizzo wrote: > 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 > --- > arch/arm/include/asm/arch-rockchip/f_rockusb.h | 1 + > doc

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

2018-07-15 Thread Simon Glass
On 12 July 2018 at 05:05, 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 > --- > arch/arm/

Re: [U-Boot] [PATCH v2 1/1] Sandbox: provide default dtb

2018-07-15 Thread Simon Glass
Hi Heinrich, On 15 June 2018 at 14:06, Heinrich Schuchardt wrote: > Provide sandbox.dtb as default device tree for sandbox_defconfig. > > We can use the dtb with > > ./u-boot -d u-boot.dtb > > Signed-off-by: Heinrich Schuchardt > --- > v2 > adjust commit message > --- > configs/

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

2018-07-15 Thread Simon Glass
On 12 July 2018 at 08:04, Michal Simek wrote: > 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(+) Reviewed-by: Simon Glass No

Re: [U-Boot] Microblaze gpio reset handling

2018-07-15 Thread Simon Glass
Hi Michal, On 12 July 2018 at 08:28, Michal Simek wrote: > Hi Simon, > > I have looked at converting the rest of microblaze drivers to DM and I > am curious why I can't use top level compatible string in DM based drivers. > I am looking at ways how to move gpio and microblaze soft reset to > sysr

Re: [U-Boot] [PATCH 1/4 v3] armv8: fsl: remove sata support

2018-07-15 Thread Simon Glass
On 13 July 2018 at 03:25, wrote: > From: Yuantian Tang > > Remove the old implementation in order to enable DM for sata > > Signed-off-by: Tang Yuantian > --- > v3: > - rebase to latest code > v2: > - no changes > > arch/arm/cpu/armv8/fsl-layerscape/soc.c| 54 > -

Re: [U-Boot] [PATCH 2/4 v3] armv8: dts: fsl-ls1012a: add sata node support

2018-07-15 Thread Simon Glass
On 13 July 2018 at 03:25, wrote: > From: Yuantian Tang > > One ls1012a, there is one SATA 3.0 advanced host controller interface > which is a high-performance SATA solution that delivers comprehensive > and fully-compliant generation 3 (1.5 Gb/s - 6.0 Gb/s) serial ATA > capabilities, in accordan

Re: [U-Boot] [PATCH 1/4] stm32mp1: add gpio led support

2018-07-15 Thread Simon Glass
On 13 July 2018 at 09:21, Patrick Delaunay wrote: > This patch add the 4 LED available on the ED1 board and activated > gpio led driver. > > Signed-off-by: Patrick Delaunay > --- > > arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi | 24 > configs/stm32mp15_basic_defconfig

Re: [U-Boot] [ v2 03/10] video: add support of MIPI DSI interface

2018-07-15 Thread Simon Glass
On 13 July 2018 at 06:11, Yannick Fertré wrote: > Mipi_display.c contains a set of dsi helpers. > This file is a copy of file drm_mipi_dsi.c (linux kernel). > > Signed-off-by: Yannick Fertré > --- > drivers/video/Kconfig| 9 + > drivers/video/Makefile | 1 + > drivers/video/mip

Re: [U-Boot] [ v2 06/10] video: add MIPI DSI host controller bridge

2018-07-15 Thread Simon Glass
Hi Yannick, On 13 July 2018 at 06:11, Yannick Fertré wrote: > Add a Synopsys Designware MIPI DSI host bridge driver, based on the > Rockchip version from rockchip/dw-mipi-dsi.c with phy & bridge APIs. > > Signed-off-by: Yannick Fertré > --- > drivers/video/Kconfig | 9 + > drivers/video

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

2018-07-15 Thread Simon Glass
On 13 July 2018 at 09:21, Patrick Delaunay wrote: > Initialize the led with the default state defined in device tree. > > Signed-off-by: Patrick Delaunay > --- > > board/st/stm32mp1/stm32mp1.c | 4 > 1 file changed, 4 insertions(+) Reviewed-by: Simon Glass

Re: [U-Boot] [ v2 01/10] dm: panel: get timings from panel

2018-07-15 Thread Simon Glass
On 13 July 2018 at 06:11, Yannick Fertré wrote: > Get timings from panel instead of read device tree. > > Signed-off-by: Yannick Fertré > --- > drivers/video/panel-uclass.c | 11 +++ > include/panel.h | 18 ++ > 2 files changed, 29 insertions(+) Reviewed-by:

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

2018-07-15 Thread Simon Glass
On 13 July 2018 at 09:21, 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() > or it could added

Re: [U-Boot] [ v2 05/10] video: add support of panel RM68200

2018-07-15 Thread Simon Glass
On 13 July 2018 at 06:11, Yannick Fertré wrote: > Support for Raydium RM68200 720p dsi 2dl video mode panel. > This rm68200 panel driver is based on the Linux Kernel driver from > drivers/gpu/drm/panel/panel-raydium-rm68200.c. > > Signed-off-by: Yannick Fertré > --- > drivers/video/Kconfig

Re: [U-Boot] [ v2 04/10] video: add support of panel OTM8009A

2018-07-15 Thread Simon Glass
On 13 July 2018 at 06:11, Yannick Fertré wrote: > Support for Orise Tech otm8009a 480p dsi 2dl video mode panel. > > Signed-off-by: Yannick Fertré > --- > drivers/video/Kconfig | 8 + > drivers/video/Makefile | 1 + > drivers/video/orisetech_otm8009a.c | 366 > +

Re: [U-Boot] [PATCH] sysreset: Add support for gpio-restart

2018-07-15 Thread Simon Glass
Hi Michal, On 13 July 2018 at 03:15, Michal Simek wrote: > The Linux kernel has binding for gpio-restart node. > This patch is adding basic support without supporting any optional > properties. > This driver was tested on Microblaze system where gpio is connected to > SoC reset logic. > Output va

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

2018-07-15 Thread Simon Glass
On 13 July 2018 at 09:21, Patrick Delaunay wrote: > This reverts commit bc882f5d5c7b4d6ed5e927bf838863af43c786e7. > > Signed-off-by: Patrick Delaunay > --- > > drivers/led/led_gpio.c | 9 - > 1 file changed, 9 deletions(-) Reviewed-by: Simon Glass __

Re: [U-Boot] [PATCH] fdt: fix fdtdec_setup_memory_banksize()

2018-07-15 Thread Simon Glass
On 13 July 2018 at 04:12, Jens Wiklander wrote: > Prior to this patch is fdtdec_setup_memory_banksize() incorrectly > ignoring the "status" field. This patch fixes that by testing the status > with fdtdec_get_is_enabled() before using a memory node. > > Signed-off-by: Jens Wiklander > --- > lib/

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

2018-07-15 Thread Michal Simek
On 16.7.2018 07:19, Simon Glass wrote: > On 12 July 2018 at 08:04, Michal Simek wrote: >> 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 change

Re: [U-Boot] [PATCH v2 1/1] Sandbox: provide default dtb

2018-07-15 Thread Heinrich Schuchardt
On 07/15/2018 11:22 PM, Simon Glass wrote: > Hi Heinrich, > > On 15 June 2018 at 14:06, Heinrich Schuchardt wrote: >> Provide sandbox.dtb as default device tree for sandbox_defconfig. >> >> We can use the dtb with >> >> ./u-boot -d u-boot.dtb >> >> Signed-off-by: Heinrich Schuchardt >> -

Re: [U-Boot] [PATCH] sysreset: Add support for gpio-restart

2018-07-15 Thread Michal Simek
On 16.7.2018 07:20, Simon Glass wrote: > Hi Michal, > > On 13 July 2018 at 03:15, Michal Simek wrote: >> The Linux kernel has binding for gpio-restart node. >> This patch is adding basic support without supporting any optional >> properties. >> This driver was tested on Microblaze system where gp

Re: [U-Boot] [PATCH] watchdog: dm: Support manual relocation for watchdogs

2018-07-15 Thread Michal Simek
On 15.7.2018 23:21, Simon Glass wrote: > Hi Michal, > > On 11 July 2018 at 23:47, Michal Simek wrote: >> On 11.7.2018 22:13, Simon Glass wrote: >>> On 11 July 2018 at 08:41, Michal Simek wrote: Relocate watchdog ops as was done by: "dm: Add support for all targets which requires MANUAL

Re: [U-Boot] [PATCH v2 1/3] efi: Fix truncation of constant value

2018-07-15 Thread Heinrich Schuchardt
On 07/14/2018 10:53 PM, Eugeniu Rosca wrote: > Starting with commit 867a6ac86dd8 ("efi: Add start-up library code"), > sparse constantly complains about truncated constant value in efi.h: > > include/efi.h:176:35: warning: cast truncates bits from constant value > (8000 becomes 0) >

Re: [U-Boot] [PATCH v2 2/3] efi: Add EFI_MEMORY_{NV, MORE_RELIABLE, RO} attributes

2018-07-15 Thread Heinrich Schuchardt
On 07/14/2018 10:53 PM, Eugeniu Rosca wrote: > With this update, the memory attributes are in sync with Linux > kernel v4.18-rc4. They also match page 190 of UEFI 2.7 spec [1]. > > [1] http://www.uefi.org/sites/default/files/resources/UEFI_Spec_2_7.pdf > > Suggested-by: Heinrich Schuchardt > Sig

Re: [U-Boot] [PATCH v2 3/3] cmd: efi: Clarify calculation precedence for '&' and '?'

2018-07-15 Thread Heinrich Schuchardt
On 07/14/2018 10:53 PM, Eugeniu Rosca wrote: > Fix cppcheck complaint: > [cmd/efi.c:173]: (style) Clarify calculation precedence for '&' and '?'. > > Fixes: f1a0bafb5802 ("efi: Add a command to display the memory map") > Signed-off-by: Eugeniu Rosca > --- Reviewed-by: Heinrich Schuchardt __

Re: [U-Boot] [RFC] cmd: add bootslot command to select/boot slot based on boot counts

2018-07-15 Thread Sean Nyekjær
Hi, On 2018-07-13 14:34, Martin Hundebøll wrote: The existing bootcount feature is targeted systems with a primary, and a rescue boot setup, where the number of boot tries to the primary boot is tracked. If the number exceeds the limit, the alternative/rescue is booted. This patch adds support

Re: [U-Boot] [Arm.ebbr-discuss] EBBR v0.6 Release Announcement

2018-07-15 Thread Michal Simek
- ancient mailing list + proper u-boot mailing list. M On 14.7.2018 00:34, Grant Likely wrote: > I'm pleased to announce the release of version 0.6 of the Embedded Base > Boot Requirements (EBBR) specification. > >     https://github.com/ARM-software/ebbr/releases/tag/v0.6 > > EBBR is a new spe

Re: [U-Boot] [PATCH v2 1/3] efi: Fix truncation of constant value

2018-07-15 Thread Eugeniu Rosca
Hi Heinrich, Thanks for your review comments. See my reply below. On Mon, Jul 16, 2018 at 07:52:20AM +0200, Heinrich Schuchardt wrote: [--snip--] > > diff --git a/include/efi.h b/include/efi.h > > index 0fe15e65c06c..eb2a569fe010 100644 > > --- a/include/efi.h > > +++ b/include/efi.h > > @@ -162,

Re: [U-Boot] [PATCH v7 0/6] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-07-15 Thread Jagan Teki
On Wed, Jul 4, 2018 at 6:46 PM, Andre Przywara wrote: > This is an updated version of the series which brings the exact mainline > Linux device tree files for various Allwinner boards into U-Boot. > Apart from using the usually more correct reference DT files, this offers > the big benefit of bein

Re: [U-Boot] [PATCH 1/2] dm: mmc: sunxi: Add A10/A20 compatible strings

2018-07-15 Thread Jagan Teki
On Sat, Jun 30, 2018 at 5:32 AM, Adam Sampson wrote: > Commit dd27918c2252 ("dm: mmc: sunxi: Add support for driver model") > only added the allwinner,sun5i-a13-mmc compatible string for this > driver. The DM initialisation code here also works with (at least) A10 > and A20, so add the appropriate

Re: [U-Boot] [PATCH 2/2] dm: sunxi: Use DM for MMC and SATA on all A10 boards

2018-07-15 Thread Jagan Teki
On Thu, Jul 12, 2018 at 1:52 PM, Adam Sampson wrote: > On Thu, Jul 12, 2018 at 12:40:14PM +0530, Jagan Teki wrote: >> Did you test eMMC in any of A10 look it is not detecting during SD >> boot and vice-versa happened during eMMC boot. May be it's because of >> pincrtrl for U-Boot which is not init

Re: [U-Boot] [ANN] U-Boot v2018.07 released

2018-07-15 Thread Michal Simek
Dear Wolfgang, On 10.7.2018 19:21, Wolfgang Denk wrote: > Dear Michal, > > In message <9ef1c57c-5bf6-4730-6b67-466709cc0...@monstr.eu> you wrote: >> >>> Here the short summary: >> >> Is this generating script somewhere? > > It's a clone of Jonathan Corbet's gitdm script; the U-Boot > configurati