Re: [U-Boot] [PATCH 2/2] rockchip: ram: rk3399: update reg map for of-platdata

2017-09-11 Thread Kever Yang
Hi Simon, On 09/08/2017 08:17 PM, Simon Glass wrote: Hi Kever, On 8 September 2017 at 01:34, Dr. Philipp Tomsich wrote: On 8 Sep 2017, at 04:46, Kever Yang wrote: Philipp, We already enable CONFIG_SPL_OF_CONTROL for all rk3399 board, right? I meant “full OF_CONTROL” as opposed to “

Re: [U-Boot] USB Ethernet with device model

2017-09-11 Thread Maxime Ripard
Hi Simon, On Fri, Sep 08, 2017 at 10:55:24PM -0600, Simon Glass wrote: > On 5 September 2017 at 14:32, Maxime Ripard > wrote: > > Hi, > > > > I've been working with USB-Ethernet gadget for quite some time on the > > Allwinner SoCs, especially because most Allwinner boards lack an > > ethernet con

Re: [U-Boot] [PATCH] rockchip: add support for backing to bootrom download mode

2017-09-11 Thread Kever Yang
Hi Andy, On 09/11/2017 02:27 PM, Andy Yan wrote: Rockchip bootrom will enter download mode if it returns from spl/tpl with a none-zero value and couldn't find a valid image in the backup partition. This patch provide a method to instruct the system to back to bootrom download mode by checking t

Re: [U-Boot] [PATCH] ipu_common: Let the MX6 IPU clock be calculated in run-time

2017-09-11 Thread Anatolij Gustschin
Hi Fabio, On Wed, 6 Sep 2017 13:49:31 -0300 Fabio Estevam feste...@gmail.com wrote: > From: Fabio Estevam > > MX6Q/QP IPU operates at 264MHz and MX6DL IPU at 198MHz. > > When running a SPL target, which supports multiple MX6 variants we cannot > properly setup the IPU clock frequency via CONF

Re: [U-Boot] [PATCH 05/10] sysreset: enable driver support in SPL/TPL

2017-09-11 Thread Kever Yang
+Tom, Hi Philipp, I think this patch is also need to fix the do_reset missing issue in new release when you apply below patch, sorry for not make it clear. http://patchwork.ozlabs.org/patch/811306/ Thanks, - Kever On 09/11/2017 02:17 PM, Simon Glass wrote: On 5 September 2017 at 20:

[U-Boot] [PATCH v2 02/19] dm: timer: Convert to livetree

2017-09-11 Thread Philipp Tomsich
This updates dm_timer_init to support a live tree and deals with some fallout (i.e. the need to restructure the code such, that we don't need multiple discontinuous #if CONFIG_IS_ENABLED blocks). Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich --- Changes in v

[U-Boot] [PATCH v2 01/19] bootstage: adjust Makefile to allow including bootstage in SPL, but not in TPL

2017-09-11 Thread Philipp Tomsich
For timing our bootstages on the RK3368, which has a minimal TPL (and where we consequently don't want to time the bootstages) and a full-featured SPL (where we can bootstage recording), we need to adjust the Makefile. Use the $(SPL_TPL_) macro in the Makefile for bootstage.o Signed-off-by: Phili

[U-Boot] [PATCH v2 00/19] rockchip: convert the RK3368 to OF_LIVE and validate on the RK3368-uQ7

2017-09-11 Thread Philipp Tomsich
This series converts all dependencies for the RK3368-uQ7 to support a live tree and and tests w/ BOOTSTAGE enabled (thus introducing a few additional changes to the Rockchip DM timer driver). Note that updating the RK3399 support (which will have us look at video) for a live tree will be next: I

[U-Boot] [PATCH v2 04/19] dm: core: add dev_read_addr_ptr()

2017-09-11 Thread Philipp Tomsich
The dev_read_addr_ptr() mimics the behaviour of the devfdt_get_addr_ptr(), retrieving the first address of the node's reg-property and returning it as a pointer (or NULL on failure). Signed-off-by: Philipp Tomsich Acked-by: Philipp Tomsich --- Changes in v2: - implements the dev_read_addr_ptr(

[U-Boot] [PATCH v2 09/19] rockchip: timer: Convert to livetree

2017-09-11 Thread Philipp Tomsich
Update the Rockchip timer driver to support a live device tree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich --- Changes in v2: - use the new dev_read_addr_ptr() function - improve error handling, in case dev_read_addr_ptr returns NULL drivers/timer/rock

[U-Boot] [PATCH v2 05/19] net: designware: Convert to livetree

2017-09-11 Thread Philipp Tomsich
Update the Designware Ethernet MAC driver to support a live device tree. Signed-off-by: Philipp Tomsich --- Changes in v2: None drivers/net/designware.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/net/designware.c b/drivers/net/designware.c index 521

[U-Boot] [PATCH v2 08/19] rockchip: timer: implement timer_get_boot_us

2017-09-11 Thread Philipp Tomsich
To make the Rockchip DM timer driver useful for the timing of bootstages, we need a few enhancements: - This implements timer_get_boot_us. - This avoids reinitialising the timer, if it has already been set up (e.g. by our TPL and SPL stages). Now, we have a single timebase ticking from TPL

[U-Boot] [PATCH v2 07/19] rockchip: mmc: convert to livetree

2017-09-11 Thread Philipp Tomsich
Update the Rockchip-specific wrapper for the Designware driver to support a live device tree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Version-changes: 2 - use the dev_read_addr_ptr function in rockchip_dw_mmc.c --- Changes in v2: None drivers/mmc/r

[U-Boot] [PATCH v2 03/19] dm: timer: handle being called before dm_root is ready

2017-09-11 Thread Philipp Tomsich
When used with bootstage recording, dm_timer_init may be called surprisingly early: i.e. before dm_root is ready. To deal with this case, we explicitly check for this condition and return -EAGAIN to the caller (refer to drivers/timer/rockchip_timer.c for a case where this is needed/used). Signed-o

[U-Boot] [PATCH v2 06/19] net: phy: micrel: Convert to livetree

2017-09-11 Thread Philipp Tomsich
Update the Micrel KSZ90x1 driver for a live tree. Signed-off-by: Philipp Tomsich --- Changes in v2: None drivers/net/phy/micrel_ksz90x1.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/phy/micrel_ksz90x1.c b/drivers/net/phy/micrel_ksz90x1.c index 0bb99e6..

[U-Boot] [PATCH v2 12/19] rockchip: spi: Convert to livetree

2017-09-11 Thread Philipp Tomsich
Update the Rockchip SPI driver to support a live device tree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich --- Changes in v2: None drivers/spi/rk_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/rk_spi.c b/drivers/spi/

[U-Boot] [PATCH v2 18/19] rockchip: dts: rk3368-lion: add /chosen/tick-timer

2017-09-11 Thread Philipp Tomsich
To support bootstage recording, we want to mark our DM timer as the tick-timer; this triggers the support for 'trying harder' to read the timer in the Rockchip DM timer driver, even if the device model isn't ready yet. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tom

[U-Boot] [PATCH v2 17/19] rockchip: gpio: remove outdated/misleading comment

2017-09-11 Thread Philipp Tomsich
Remove a comment claiming that this driver only supports the RK3288, as we also use it on the RK3368, RK3399 and (most likely) on other variants. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Version-changes: 2 - use the dev_read_addr_ptr function in rk_gpio

[U-Boot] [PATCH v2 14/19] rockchip: rk8xx: remove unused header includes

2017-09-11 Thread Philipp Tomsich
Remove header file includes that have been left over after the conversion to livetree-support. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich --- Changes in v2: None drivers/power/pmic/rk8xx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pow

[U-Boot] [PATCH v2 10/19] rockchip: clk: rk3368: Convert to livetree

2017-09-11 Thread Philipp Tomsich
Update the clock driver for the RK3368 to support a live device tree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Version-changes: 2 - use the dev_read_addr_ptr function in clk_rk3368.c --- Changes in v2: None drivers/clk/rockchip/clk_rk3368.c | 2 +-

[U-Boot] [PATCH v2 11/19] rockchip: pinctrl: rk3368: Convert to livetree

2017-09-11 Thread Philipp Tomsich
Update the pinctrl driver for the RK3368 to support a live device tree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich --- Changes in v2: None drivers/pinctrl/rockchip/pinctrl_rk3368.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dr

[U-Boot] [PATCH v2 15/19] rockchip: i2c: Convert to livetree

2017-09-11 Thread Philipp Tomsich
Update the Rockchip I2C driver to support livetree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Version-changes: 2 - use the dev_read_addr_ptr function in rk_i2c.c --- Changes in v2: None drivers/i2c/rk_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 d

[U-Boot] [PATCH v2 19/19] rockchip: lion-rk3368: defconfig: resync w/ OF_LIVE and BOOTSTAGE enabled

2017-09-11 Thread Philipp Tomsich
This adds OF_LIVE and BOOTSTAGE support for the RK3368-uQ7 and regenerates the defconfig (picking up a few changes/reorderings) from upstream Kconfig changes. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich --- Changes in v2: None configs/lion-rk3368_defconf

[U-Boot] [PATCH v2 13/19] rockchip: sdhci: Convert to livetree

2017-09-11 Thread Philipp Tomsich
Update the Rockchip SDHCI wrapper to support a live device tree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Version-changes: 2 - use the dev_read_addr_ptr function in rockchip_sdhci.c --- Changes in v2: None drivers/mmc/rockchip_sdhci.c | 3 +-- 1 fil

[U-Boot] [PATCH v2 16/19] rockchip: gpio: convert to livetree

2017-09-11 Thread Philipp Tomsich
Update the Rockchip GPIO-bank driver to support a live tree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Version-changes: 2 - use the dev_read_addr_ptr function in rk_gpio.c --- Changes in v2: None drivers/gpio/rk_gpio.c | 2 +- 1 file changed, 1 inser

Re: [U-Boot] [PATCH v2 12/19] rockchip: spi: Convert to livetree

2017-09-11 Thread Jagan Teki
On Mon, Sep 11, 2017 at 2:48 PM, Philipp Tomsich wrote: > Update the Rockchip SPI driver to support a live device tree. > > Signed-off-by: Philipp Tomsich > Reviewed-by: Simon Glass > Acked-by: Philipp Tomsich Reviewed-by: Jagan Teki thanks! -- Jagan Teki Free Software Engineer | www.opened

Re: [U-Boot] [PATCH v3] rk3288: Add Vyasa initial board support

2017-09-11 Thread Jagan Teki
On Tue, Aug 29, 2017 at 4:43 PM, Jagan Teki wrote: > From: Jagan Teki > > This patch adds support for Vyasa RK3288 initial board > from Amarula Solutions. > > Boot from SDMMC: > --- > U-Boot SPL 2017.09-rc1-00111-g3656991-dirty (Aug 10 2017 - 11:40:45) > Trying to boot from MMC1 > > U

Re: [U-Boot] [PATCH] dm: video: Add basic ANSI escape sequence support

2017-09-11 Thread Rob Clark
On Mon, Sep 11, 2017 at 2:18 AM, Simon Glass wrote: > On 7 September 2017 at 14:28, Rob Clark wrote: >> Really just the subset that is needed by efi_console. Perhaps more will >> be added later, for example color support would be useful to implement >> efi_cout_set_attribute(). >> >> Signed-off-

[U-Boot] [PATCH 1/2] board: lion_rk3368: update README flash instructions

2017-09-11 Thread Philipp Tomsich
From: Klaus Goger Add a section to the README on how to flash the on-board eMMC with the rkdeveloptool. Signed-off-by: Klaus Goger Signed-off-by: Philipp Tomsich --- board/theobroma-systems/lion_rk3368/README | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) di

[U-Boot] [PATCH 2/2] board: puma_rk3399: update README flash instructions

2017-09-11 Thread Philipp Tomsich
From: Klaus Goger Puma supports other boot sources then SD-Card. Update README to include the required steps. * how to package a SPI-NOR SPL * how to flash eMMC with rkdeveloptool Signed-off-by: Klaus Goger Signed-off-by: Philipp Tomsich --- board/theobroma-systems/puma_rk3399/README | 51

[U-Boot] [PATCH] rockchip: rk3399: spl: remove hard-coded addresses for GRF and SGRF

2017-09-11 Thread Philipp Tomsich
On the RK3399, we will have either OF_PLATDATA or full OF_CONTROL enabled: this allows the use of syscon to retrieve the addresses of GRF and SGRF (except for the early debug UART setup, which runs so early that the device-model is not initialised). This removes the hard-coded addresses and goes t

[U-Boot] [PATCH] rockchip: rk3399: spl: convert to using BOOT_DEVICE_BOOTROM

2017-09-11 Thread Philipp Tomsich
Instead of directly calling into the back-to-bootrom code, the RK3399 common SPL implementation now uses BOOT_DEVICE_BOOTROM to trigger a transfer back into the bootrom. With this factored out, the spl_board_init function can not be customised for each RK3399 board. Signed-off-by: Philipp Tomsich

Re: [U-Boot] [PATCH] ipu_common: Let the MX6 IPU clock be calculated in run-time

2017-09-11 Thread Fabio Estevam
Hi Anatolij, On Mon, Sep 11, 2017 at 5:56 AM, Anatolij Gustschin wrote: > Thanks for the patch! Is this a bug fix and should it go into v2017.09 > release? I think it can wait until 2017.11. Thanks! ___ U-Boot mailing list U-Boot@lists.denx.de https:

Re: [U-Boot] [PATCH] ipu_common: Let the MX6 IPU clock be calculated in run-time

2017-09-11 Thread Anatolij Gustschin
Hi Fabio, On Wed, 6 Sep 2017 13:49:31 -0300 Fabio Estevam feste...@gmail.com wrote: > From: Fabio Estevam > > MX6Q/QP IPU operates at 264MHz and MX6DL IPU at 198MHz. > > When running a SPL target, which supports multiple MX6 variants we cannot > properly setup the IPU clock frequency via CONF

Re: [U-Boot] [PATCH] ipu_common: Let the MX6 IPU clock be calculated in run-time

2017-09-11 Thread Anatolij Gustschin
Hi Fabio, On Mon, 11 Sep 2017 08:04:48 -0300 Fabio Estevam feste...@gmail.com wrote: ... > I think it can wait until 2017.11. OK, thanks! -- Anatolij ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v2 15/19] rockchip: i2c: Convert to livetree

2017-09-11 Thread Heiko Schocher
Hello Philipp, Am 11.09.2017 um 11:18 schrieb Philipp Tomsich: Update the Rockchip I2C driver to support livetree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Version-changes: 2 - use the dev_read_addr_ptr function in rk_i2c.c --- Changes in v2: None

Re: [U-Boot] [PATCH] dm: video: Add basic ANSI escape sequence support

2017-09-11 Thread Lothar Waßmann
Hi, On Mon, 11 Sep 2017 05:42:01 -0400 Rob Clark wrote: > On Mon, Sep 11, 2017 at 2:18 AM, Simon Glass wrote: > > On 7 September 2017 at 14:28, Rob Clark wrote: > >> Really just the subset that is needed by efi_console. Perhaps more will > >> be added later, for example color support would be u

[U-Boot] [PATCH 01/10] rockchip: rk3399: make spl_board_init board-specific

2017-09-11 Thread Philipp Tomsich
The later-stage spl_board_init (as opposed to board_init_f) should set up board-specific details: these differ between the EVB-RK3399 and the RK3399-Q7 (Puma). This moves spl_board_init back into the individual boards and removes the unneeded functionality from Puma. As we are touching these file

[U-Boot] [PATCH 02/10] rockchip: bootrom: add definitions to retrieve BROM boot-source

2017-09-11 Thread Philipp Tomsich
The Rockchip BROM allows reading where it booted from from SRAM. This adds the necessary definitions (as received from Kever) for the location of this information in the RK3399's SRAM and naming for the constants used. Signed-off-by: Philipp Tomsich --- arch/arm/include/asm/arch-rockchip/bootro

[U-Boot] [PATCH 03/10] rockchip: spl: add documentation for spl_node_to_boot_device()

2017-09-11 Thread Philipp Tomsich
In the expectation that the spl-boot-order code will eventually gain use outside of mach-rockchip: let's add documentation on the spl_node_to_boot_device() function, which is likely to become a publicly exported function. Signed-off-by: Philipp Tomsich --- arch/arm/mach-rockchip/spl-boot-order.

[U-Boot] [PATCH 04/10] rockchip: spl: support a 'same-as-spl'-specifier in the spl-boot-order

2017-09-11 Thread Philipp Tomsich
It is often desirable to configure the spl-boot-order (i.e. the order that SPL probes devices to find the FIT image containing a full U-Boot) such that it contains 'the same device the SPL stage was booted from' early on. To support this, we introduce the 'same-as-spl' specifier for the spl-boot-o

[U-Boot] [PATCH 00/10] For the RK3399-Q7, we have a few additional features in the SPL boot

2017-09-11 Thread Philipp Tomsich
path that we'd like to see supported in the mainline: - The override signal BIOS_DISABLE keeps the on-module SPI and eMMC powered-down (actually: in reset) to force booting from external sources. Before proceeding with the SPL boot, we thus need to power the devices up (actually: release the

[U-Boot] [PATCH 09/10] power: spl: add SPL_DM_REGULATOR_FIXED in Kconfig

2017-09-11 Thread Philipp Tomsich
The Makefile already tests for SPL_DM_REGULATOR_FIXED, but Kconfig does not provide it. This adds SPL_DM_REGULATOR_FIXED to Kconfig. Signed-off-by: Philipp Tomsich --- drivers/power/regulator/Kconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/power/regulator/Kconfig b/d

[U-Boot] [PATCH 07/10] rockchip: puma-rk3399: update board_init()

2017-09-11 Thread Philipp Tomsich
The original initialisation code for board_init() was largely lifted from the code on the EVB. However, the RK3399-Q7 can do with a much more concise init sequence. This cleans up the board_init() by updating it to the essentials for the RK3399-Q7 and getting rid of the accumulated cruft. Signed

[U-Boot] [PATCH 05/10] rockchip: spl: rk3399: implement chip-specific board_spl_was_booted_from()

2017-09-11 Thread Philipp Tomsich
To support the new "same-as-spl" specifier in the boot-order on the RK3399, this implements the chip-specific mapping from the information obtainable from the BROM to a OF path name. Signed-off-by: Philipp Tomsich --- arch/arm/mach-rockchip/rk3399-board-spl.c | 24 1 fi

[U-Boot] [PATCH 06/10] rockchip: dts: rk3399-puma: add 'same-as-spl' to the front of the boot-order

2017-09-11 Thread Philipp Tomsich
In the general case, we want to continue booting the full U-Boot (contained in a discoverable FIT image) from the same device the SPL stage was loaded from. This prepends the 'same-as-spl' specifier to our configurable boot-order to make this the default behaviour. Signed-off-by: Philipp Tomsich

[U-Boot] [PATCH 08/10] rockchip: rk3399-puma: add boot-on regulator to override BIOS_DISABLE

2017-09-11 Thread Philipp Tomsich
The (Qseven) BIOS_DISABLE signal on the RK3399-Q7 (Puma) keeps the eMMC and SPI in reset initially and we need to write a GPIO to turn them on before continuing the boot-up. This adds the DTS entries for the additional regulator and makes pinctrl and gpio3 available during SPL. It also adds a hoo

[U-Boot] [PATCH 10/10] rockchip: defconfig: puma-rk3399: update for DM_REGULATOR support in SPL

2017-09-11 Thread Philipp Tomsich
The RK3399-Q7 requires DM regulator support in SPL, so we can use the regulator framework to reenable the eMMC and SPI, if these had been turned of by the BIOS_DISABLE signal. Signed-off-by: Philipp Tomsich --- configs/puma-rk3399_defconfig | 7 ++- 1 file changed, 6 insertions(+), 1 deleti

Re: [U-Boot] [PATCH] dm: video: Add basic ANSI escape sequence support

2017-09-11 Thread Rob Clark
On Mon, Sep 11, 2017 at 7:50 AM, Lothar Waßmann wrote: > Hi, > > On Mon, 11 Sep 2017 05:42:01 -0400 Rob Clark wrote: >> On Mon, Sep 11, 2017 at 2:18 AM, Simon Glass wrote: >> > On 7 September 2017 at 14:28, Rob Clark wrote: >> >> Really just the subset that is needed by efi_console. Perhaps mo

Re: [U-Boot] [U-Boot, v4, 3/4] usb: dwc3: add support for 16 bit UTMI+ interface

2017-09-11 Thread Philipp Tomsich
Kever, What is the status on this patch (and the encapsulating series)? This seems to be stuck in 'changes requested' for about a year now... Thanks, Philipp. On Thu, 1 Sep 2016, Kever Yang wrote: The dwc3 controller is using 8 bit UTMI+ interface for USB2.0 PHY, add one variable in dwc3/dwc

[U-Boot] [PATCH] MAINTAINERS: board: qcom: db410: Maintainer changed

2017-09-11 Thread Jorge Ramirez-Ortiz
--- board/qualcomm/dragonboard410c/MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/qualcomm/dragonboard410c/MAINTAINERS b/board/qualcomm/dragonboard410c/MAINTAINERS index 65cb47c..f9ddc9d 100644 --- a/board/qualcomm/dragonboard410c/MAINTAINERS +++ b/board/qua

Re: [U-Boot] [PATCH] MAINTAINERS: board: qcom: db410: Maintainer changed

2017-09-11 Thread Fabio Estevam
On Mon, Sep 11, 2017 at 10:51 AM, Jorge Ramirez-Ortiz wrote: > --- > board/qualcomm/dragonboard410c/MAINTAINERS | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/board/qualcomm/dragonboard410c/MAINTAINERS > b/board/qualcomm/dragonboard410c/MAINTAINERS > index 65cb47c..f9dd

[U-Boot] [PATCH] efi_loader: Decouple EFI input/output from stdin/stdout

2017-09-11 Thread Rob Clark
In some cases, it is quite useful to have (for example) EFI on screen but u-boot on serial port. Signed-off-by: Rob Clark --- Applies on top of my previous efi_loader patchset. lib/efi_loader/efi_console.c | 104 +-- 1 file changed, 80 insertions(+), 24 d

[U-Boot] [PATCH] MAINTAINERS: board: qcom: db410c: Maintainer changed

2017-09-11 Thread Jorge Ramirez-Ortiz
Replacing original author Mateusz Kulikowski as db410c maintainer Signed-off-by: Jorge Ramirez-Ortiz --- board/qualcomm/dragonboard410c/MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/qualcomm/dragonboard410c/MAINTAINERS b/board/qualcomm/dragonboard410c/MA

Re: [U-Boot] [PATCH] MAINTAINERS: board: qcom: db410: Maintainer changed

2017-09-11 Thread Jorge Ramirez
On 09/11/2017 03:54 PM, Fabio Estevam wrote: On Mon, Sep 11, 2017 at 10:51 AM, Jorge Ramirez-Ortiz wrote: --- board/qualcomm/dragonboard410c/MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/qualcomm/dragonboard410c/MAINTAINERS b/board/qualcomm/dragonboar

Re: [U-Boot] [PATCH v2 2/5] lib: add some utf16 handling helpers

2017-09-11 Thread Alexander Graf
On 09.09.17 12:47, Rob Clark wrote: We'll eventually want these in a few places in efi_loader, and also vsprintf. Signed-off-by: Rob Clark UEFI wants UCS-2 (the 16 bit only Windows thing), not UTF16 (the may-also-be-32bit-wide thing). So I'm not sure how far away this code is from the ul

Re: [U-Boot] [PATCH v2 0/8] imx: add USB Serial Download Protocol (SDP) support

2017-09-11 Thread Vincent Prince
Hi Stefan, It was probably a Windows bug as it is almost working now. I was wondering why sdp command is expecting a jump ? Is it necessary to jump after USB transfer, or we should download anything we want and jump if asked ? Regards, Vincent 2017-09-08 18:37 GMT+02:00 Stefan Agner : > Hi Vinc

Re: [U-Boot] [PATCH v2 2/5] lib: add some utf16 handling helpers

2017-09-11 Thread Rob Clark
On Mon, Sep 11, 2017 at 10:13 AM, Alexander Graf wrote: > > > On 09.09.17 12:47, Rob Clark wrote: >> >> We'll eventually want these in a few places in efi_loader, and also >> vsprintf. >> >> Signed-off-by: Rob Clark > > > UEFI wants UCS-2 (the 16 bit only Windows thing), not UTF16 (the > may-also

Re: [U-Boot] [PATCH v2 2/5] lib: add some utf16 handling helpers

2017-09-11 Thread Alexander Graf
On 11.09.17 16:34, Rob Clark wrote: On Mon, Sep 11, 2017 at 10:13 AM, Alexander Graf wrote: On 09.09.17 12:47, Rob Clark wrote: We'll eventually want these in a few places in efi_loader, and also vsprintf. Signed-off-by: Rob Clark UEFI wants UCS-2 (the 16 bit only Windows thing), not

[U-Boot] [PATCH 1/2] rockchip: clk: rk3399: add clk_enable function and support USB HOST0/1

2017-09-11 Thread Philipp Tomsich
The generic ehci-driver (ehci-generic.c) will try to enable the clocks listed in the DTSI. If this fails (e.g. due to clk_enable not being implemented in a driver and -ENOSYS being returned by the clk-uclass), the driver will bail our and print an error message. This implements a minimal clk_enabl

[U-Boot] [PATCH 2/2] rockchip: dts: rk3399-puma: replace 'rockchip, vbus-gpio' with fixed regulator

2017-09-11 Thread Philipp Tomsich
On the RK3399-Q7, we need to turn on the on-module USB hub before using the USB host interfaces (only the OTG interface is directly connected to the edge connector). This drops the deprecated 'rockchip,vbus-gpio' property and uses a fixed regulator to turn on the USB hub. References: 26a8b80 "usb

[U-Boot] [PATCH v2 0/2] Allwinner DE2 HDMI SimpleFB support

2017-09-11 Thread Icenowy Zheng
This patchset is for Allwinner DE2 HDMI SimpleFB support. The framebuffer initialized by the Allwinner DE2 driver can be passed by to the kernel as simplefb, and this can enable the kernel to display graphics without having full DE2 driver. Add the suppot of simplefb in DE2 code. The code to fin

[U-Boot] [PATCH v2 1/2] video: sunxi: extract simplefb match code to a new file

2017-09-11 Thread Icenowy Zheng
As the DE2 simplefb setup code can also benefit from the simplefb match code, extract it to a new source file. Signed-off-by: Icenowy Zheng --- drivers/video/sunxi/Makefile | 2 +- drivers/video/sunxi/simplefb_common.c | 29 + drivers/video/sunxi/simplefb_co

[U-Boot] [PATCH v2 2/2] sunxi: setup simplefb for Allwinner DE2

2017-09-11 Thread Icenowy Zheng
As the support of EFI boot on Allwinner H3 is broken, we still need to use simplefb to pass the framebuffer to Linux. Add code to setup simplefb for Allwinner DE2 driver. Signed-off-by: Icenowy Zheng --- Changes in v2: - Extract the simplefb node searching code. drivers/video/sunxi/Makefile

Re: [U-Boot] [PATCH] fdt: call fdt_fixup_ethernet after board/system fixups

2017-09-11 Thread Tom Rini
On Sat, Sep 09, 2017 at 01:36:49AM +0800, Icenowy Zheng wrote: > In commit 26d61195f870 we added fdt_fixup_ethernet to a common code > path, which executes before board/system fixups. > > However, on sunxi platform board-specific fixup will create ethaddr for > ethernet aliases not present in U-B

Re: [U-Boot] [PATCH v2 0/8] imx: add USB Serial Download Protocol (SDP) support

2017-09-11 Thread Stefan Agner
On 2017-09-11 07:15, Vincent Prince wrote: > Hi Stefan, > > It was probably a Windows bug as it is almost working now. Yeah with Windows the multiple re-enumeration is sometimes a bit strange, it leads to rather long running driver search on first connect. > I was wondering why sdp command is ex

Re: [U-Boot] mv88e61xx autoneg doesn't work with new driver

2017-09-11 Thread Chris Packham
(re formatting to avoid top posting) Hi Clement, On Sat, Sep 9, 2017 at 1:07 AM, Clément Péron wrote: >> 2017-08-31 11:12 GMT+02:00 Clément Péron : >> Hi, >> >> I try to update my u-boot with the latest version 2017.07. >> >> My board is an Altera SocFPGA CycloneV and I have a mv88e61xx switch.

Re: [U-Boot] mv88e61xx autoneg doesn't work with new driver

2017-09-11 Thread Clément Péron
Hi Chris, > Does that mean with this commit reverted your board is working? Yes, it's fixed the auto negotiation. > I have some older boards using a 88e6097 (compatible with 88e61xx). > I've been looking for an excuse to get them working against the latest > u-boot. Last time I tried the new 88e6

Re: [U-Boot] [PATCH] Kconfig: BOOTCOMMAND: Define default set of boot commands in Kconfig

2017-09-11 Thread Tom Rini
On Sun, Sep 10, 2017 at 08:25:02PM +0200, Lukasz Majewski wrote: > This patch gives an opportunity to override the defined CONFIG_BOOTCOMMAND > (at files) with set of commands defined in > board _defconfig file. > > Rationale: This change allows having two different u-boot builds - one for > pro

Re: [U-Boot] [PATCH] MAINTAINERS: board: qcom: db410c: Maintainer changed

2017-09-11 Thread Tom Rini
On Mon, Sep 11, 2017 at 04:07:02PM +0200, Jorge Ramirez-Ortiz wrote: > Replacing original author Mateusz Kulikowski > as db410c maintainer > > Signed-off-by: Jorge Ramirez-Ortiz Mateusz brought this up in private before Jorge's patch, and I just want to think Mateusz for his contributions, tha

[U-Boot] [ANN] U-Boot v2017.09 is released

2017-09-11 Thread Tom Rini
Hey all, I've released v2017.09 and it's now live on git and FTP and ACD (along with PGP sig file). There's a few things I need to headline in this release. First and foremost is https://www.kb.cert.org/vuls/id/166743 (aka CVE-2017-3225 and CVE-2017-3226). If you're using CONFIG_ENV_AES in your

[U-Boot] [PATCH v2] i2c: muxes: pca954x: Add support for GPIO reset line

2017-09-11 Thread Moritz Fischer
This commit adds support for GPIO reset lines matching the common linux "reset-gpios" devicetree binding. Signed-off-by: Moritz Fischer --- Changes from v1: - Simon's feedback on ifdef vs IS_ENABLED() --- drivers/i2c/muxes/pca954x.c | 42 +- 1 file chang

[U-Boot] Please pull u-boot-video/master

2017-09-11 Thread Anatolij Gustschin
Hi Tom, please pull IPU driver update. The full build passed: https://travis-ci.org/vdsao/u-boot-video/builds/274131739 The following changes since commit 584f316f115df52fd09a6cf699b29dcf824b4da5: cmd: ide: Make the first device the default one (2017-09-10 12:27:43 -0400) are available in t

Re: [U-Boot] [PATCH] MAINTAINERS: board: qcom: db410c: Maintainer changed

2017-09-11 Thread Nicolas Dechesne
On Mon, Sep 11, 2017 at 8:17 PM, Tom Rini wrote: > > On Mon, Sep 11, 2017 at 04:07:02PM +0200, Jorge Ramirez-Ortiz wrote: > > > Replacing original author Mateusz Kulikowski > > as db410c maintainer > > > > Signed-off-by: Jorge Ramirez-Ortiz > > Mateusz brought this up in private before Jorge's p

[U-Boot] [PATCH v2 1/2] rockchip: board: lion_rk3368: update README flash instructions

2017-09-11 Thread Klaus Goger
Add a section to the README on how to flash the on-board eMMC with the rkdeveloptool. Signed-off-by: Klaus Goger Signed-off-by: Philipp Tomsich --- Changes in v2: None board/theobroma-systems/lion_rk3368/README | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) d

[U-Boot] [PATCH v2 2/2] rockchip: board: puma_rk3399: update README flash instructions

2017-09-11 Thread Klaus Goger
Puma supports other boot sources then SD-Card. Update README to include the required steps. * how to package a SPI-NOR SPL * how to flash eMMC with rkdeveloptool Signed-off-by: Klaus Goger Signed-off-by: Philipp Tomsich --- Changes in v2: - add missing ./configure step while building rkdeve

Re: [U-Boot] [PATCH v2 06/19] net: phy: micrel: Convert to livetree

2017-09-11 Thread Joe Hershberger
On Mon, Sep 11, 2017 at 4:18 AM, Philipp Tomsich wrote: > Update the Micrel KSZ90x1 driver for a live tree. > > Signed-off-by: Philipp Tomsich You seem to not have included my Acked-by tags in the new version. -Joe > --- > > Changes in v2: None > > drivers/net/phy/micrel_ksz90x1.c | 5 ++--- >

Re: [U-Boot] [PATCH v2 06/19] net: phy: micrel: Convert to livetree

2017-09-11 Thread Dr. Philipp Tomsich
> On 11 Sep 2017, at 21:34, Joe Hershberger wrote: > > On Mon, Sep 11, 2017 at 4:18 AM, Philipp Tomsich > > wrote: >> Update the Micrel KSZ90x1 driver for a live tree. >> >> Signed-off-by: Philipp Tomsich >

[U-Boot] [PATCH v3 03/19] dm: timer: handle being called before dm_root is ready

2017-09-11 Thread Philipp Tomsich
When used with bootstage recording, dm_timer_init may be called surprisingly early: i.e. before dm_root is ready. To deal with this case, we explicitly check for this condition and return -EAGAIN to the caller (refer to drivers/timer/rockchip_timer.c for a case where this is needed/used). Signed-o

[U-Boot] [PATCH v3 04/19] dm: core: add dev_read_addr_ptr()

2017-09-11 Thread Philipp Tomsich
The dev_read_addr_ptr() mimics the behaviour of the devfdt_get_addr_ptr(), retrieving the first address of the node's reg-property and returning it as a pointer (or NULL on failure). Signed-off-by: Philipp Tomsich Acked-by: Philipp Tomsich --- Changes in v3: None Changes in v2: - implements th

[U-Boot] [PATCH v3 02/19] dm: timer: Convert to livetree

2017-09-11 Thread Philipp Tomsich
This updates dm_timer_init to support a live tree and deals with some fallout (i.e. the need to restructure the code such, that we don't need multiple discontinuous #if CONFIG_IS_ENABLED blocks). Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich --- Changes in v

[U-Boot] [PATCH v3 00/19] rockchip: convert the RK3368 to OF_LIVE and validate on the RK3368-uQ7

2017-09-11 Thread Philipp Tomsich
This series converts all dependencies for the RK3368-uQ7 to support a live tree and and tests w/ BOOTSTAGE enabled (thus introducing a few additional changes to the Rockchip DM timer driver). Note that updating the RK3399 support (which will have us look at video) for a live tree is a separate se

[U-Boot] [PATCH v3 06/19] net: phy: micrel: Convert to livetree

2017-09-11 Thread Philipp Tomsich
Update the Micrel KSZ90x1 driver for a live tree. Signed-off-by: Philipp Tomsich Acked-by: Joe Hershberger --- Changes in v3: - added Joe's Acked-by: tag (which I had lost) Changes in v2: None drivers/net/phy/micrel_ksz90x1.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff

[U-Boot] [PATCH v3 01/19] bootstage: adjust Makefile to allow including bootstage in SPL, but not in TPL

2017-09-11 Thread Philipp Tomsich
For timing our bootstages on the RK3368, which has a minimal TPL (and where we consequently don't want to time the bootstages) and a full-featured SPL (where we can bootstage recording), we need to adjust the Makefile. Use the $(SPL_TPL_) macro in the Makefile for bootstage.o Signed-off-by: Phili

[U-Boot] [PATCH v3 08/19] rockchip: timer: implement timer_get_boot_us

2017-09-11 Thread Philipp Tomsich
To make the Rockchip DM timer driver useful for the timing of bootstages, we need a few enhancements: - This implements timer_get_boot_us. - This avoids reinitialising the timer, if it has already been set up (e.g. by our TPL and SPL stages). Now, we have a single timebase ticking from TPL

[U-Boot] [PATCH v3 07/19] rockchip: mmc: convert to livetree

2017-09-11 Thread Philipp Tomsich
Update the Rockchip-specific wrapper for the Designware driver to support a live device tree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Version-changes: 2 - use the dev_read_addr_ptr function in rockchip_dw_mmc.c --- Changes in v3: None Changes in v2:

[U-Boot] [PATCH v3 05/19] net: designware: Convert to livetree

2017-09-11 Thread Philipp Tomsich
Update the Designware Ethernet MAC driver to support a live device tree. Signed-off-by: Philipp Tomsich Acked-by: Joe Hershberger --- Changes in v3: - added Joe's Acked-by: tag (which I had lost) Changes in v2: None drivers/net/designware.c | 11 +++ 1 file changed, 3 insertions(+),

[U-Boot] [PATCH v3 09/19] rockchip: timer: Convert to livetree

2017-09-11 Thread Philipp Tomsich
Update the Rockchip timer driver to support a live device tree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich --- Changes in v3: None Changes in v2: - use the new dev_read_addr_ptr() function - improve error handling, in case dev_read_addr_ptr returns NULL

[U-Boot] [PATCH v3 13/19] rockchip: sdhci: Convert to livetree

2017-09-11 Thread Philipp Tomsich
Update the Rockchip SDHCI wrapper to support a live device tree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Version-changes: 2 - use the dev_read_addr_ptr function in rockchip_sdhci.c --- Changes in v3: None Changes in v2: None drivers/mmc/rockchip_sd

[U-Boot] [PATCH v3 14/19] rockchip: rk8xx: remove unused header includes

2017-09-11 Thread Philipp Tomsich
Remove header file includes that have been left over after the conversion to livetree-support. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich --- Changes in v3: None Changes in v2: None drivers/power/pmic/rk8xx.c | 2 -- 1 file changed, 2 deletions(-) diff

[U-Boot] [PATCH v3 12/19] rockchip: spi: Convert to livetree

2017-09-11 Thread Philipp Tomsich
Update the Rockchip SPI driver to support a live device tree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Reviewed-by: Jagan Teki Acked-by: Philipp Tomsich --- Changes in v3: - added Jagan's Reviewed-by: tag. Changes in v2: None drivers/spi/rk_spi.c | 2 +- 1 file changed, 1 i

[U-Boot] [PATCH v3 19/19] rockchip: lion-rk3368: defconfig: resync w/ OF_LIVE and BOOTSTAGE enabled

2017-09-11 Thread Philipp Tomsich
This adds OF_LIVE and BOOTSTAGE support for the RK3368-uQ7 and regenerates the defconfig (picking up a few changes/reorderings) from upstream Kconfig changes. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich --- Changes in v3: None Changes in v2: None configs

[U-Boot] [PATCH v3 11/19] rockchip: pinctrl: rk3368: Convert to livetree

2017-09-11 Thread Philipp Tomsich
Update the pinctrl driver for the RK3368 to support a live device tree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich --- Changes in v3: None Changes in v2: None drivers/pinctrl/rockchip/pinctrl_rk3368.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions

[U-Boot] [PATCH v3 18/19] rockchip: dts: rk3368-lion: add /chosen/tick-timer

2017-09-11 Thread Philipp Tomsich
To support bootstage recording, we want to mark our DM timer as the tick-timer; this triggers the support for 'trying harder' to read the timer in the Rockchip DM timer driver, even if the device model isn't ready yet. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tom

[U-Boot] [PATCH v3 17/19] rockchip: gpio: remove outdated/misleading comment

2017-09-11 Thread Philipp Tomsich
Remove a comment claiming that this driver only supports the RK3288, as we also use it on the RK3368, RK3399 and (most likely) on other variants. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Version-changes: 2 - use the dev_read_addr_ptr function in rk_gpio

[U-Boot] [PATCH v3 10/19] rockchip: clk: rk3368: Convert to livetree

2017-09-11 Thread Philipp Tomsich
Update the clock driver for the RK3368 to support a live device tree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Version-changes: 2 - use the dev_read_addr_ptr function in clk_rk3368.c --- Changes in v3: None Changes in v2: None drivers/clk/rockchip/c

[U-Boot] [PATCH v3 15/19] rockchip: i2c: Convert to livetree

2017-09-11 Thread Philipp Tomsich
Update the Rockchip I2C driver to support livetree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Acked-by: Heiko Schocher --- Changes in v3: - added Heiko's Acked-by: tag. Changes in v2: - use the dev_read_addr_ptr function in rk_i2c.c drivers/i2c/rk_i

[U-Boot] [PATCH v3 16/19] rockchip: gpio: convert to livetree

2017-09-11 Thread Philipp Tomsich
Update the Rockchip GPIO-bank driver to support a live tree. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Acked-by: Philipp Tomsich Version-changes: 2 - use the dev_read_addr_ptr function in rk_gpio.c --- Changes in v3: None Changes in v2: None drivers/gpio/rk_gpio.c | 2 +- 1 f

Re: [U-Boot] [U-Boot,1/3] rk3288: vyasa: Add TPL support

2017-09-11 Thread Philipp Tomsich
On Mon, 28 Aug 2017, Jagan Teki wrote: From: Jagan Teki Since the size of SPL can't be exceeded 0x8000 bytes in RK3288, ^^^ it is not possible add new SPL features like Falcon mode or etc. So add TPL stage so-that adding new features to SPL is possibl

Re: [U-Boot] [U-Boot,3/3] rk3288: spl: Add dram_init_banksize

2017-09-11 Thread Philipp Tomsich
> From: Jagan Teki > > Falcon mode, is updating DDR dt node configuration through > spl_fixup_fdt() so add appropriate DDR base and size through > dram_init_banksize. > > Signed-off-by: Jagan Teki > --- > arch/arm/mach-rockchip/rk3288-board-spl.c | 17 + > 1 file changed, 17 in

  1   2   >