[U-Boot] [PATCH v2 06/37] dm: pwm: Add a PWM uclass

2016-01-21 Thread Simon Glass
Add a uclass that supports Pulse Width Modulation (PWM) devices. It provides methods to enable/disable and configure the device. Signed-off-by: Simon Glass --- Changes in v2: None drivers/Kconfig | 2 ++ drivers/pwm/Kconfig | 10 +

[U-Boot] [PATCH v9 16/49] rockchip: clk: Add a function to get a peripheral clock rate

2016-01-21 Thread Simon Glass
It is useful to be able to read the rate of a peripheral clock. Add a handler for that. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/clk/clk_rk3288.c | 37 + 1 file changed, 37 insertions(+) diff --git

[U-Boot] [PATCH v9 25/49] rockchip: Disable simple-bus in SPL for firefly-rk3288, jerry

2016-01-21 Thread Simon Glass
This is not needed for booting, so drop it from SPL to save about 300 bytes. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None configs/chromebook_jerry_defconfig | 1 + configs/firefly-rk3288_defconfig | 1 + 2 files changed, 2 insertions(+) diff

[U-Boot] [PATCH v2 36/37] rockchip: Add support for Raxda Rock 2

2016-01-21 Thread Simon Glass
This board includes an RK3288 SoC on a SOM. It can be mounted on a base-board which provides a wide range of peripherals. So far this is verified to boot to a prompt from a microSD card. The serial console works as well as HDMI. Thanks to Tom Cubie for sending me a board. Signed-off-by: Simon

[U-Boot] [PATCH v2 02/37] gpio: Warn about invalid GPIOs used with the 'gpio' command

2016-01-21 Thread Simon Glass
At present there is no indication that an invalid GPIO is used except that the GPIO status is not displayed. Make the error more explicit to avoid confusion. Signed-off-by: Simon Glass --- Changes in v2: None common/cmd_gpio.c | 4 +++- 1 file changed, 3 insertions(+), 1

[U-Boot] [PATCH v2 01/37] stdio: Correct a build error with driver model

2016-01-21 Thread Simon Glass
When driver model is used for video but not for the keyboard, a compiler warnings is produced. Fix it. Signed-off-by: Simon Glass --- Changes in v2: None common/stdio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/stdio.c b/common/stdio.c index

[U-Boot] [PATCH v2 28/37] rockchip: rk3288: pinctrl: Fix HDMI pinctrl

2016-01-21 Thread Simon Glass
Since the device tree does not specify the EDID pinctrl option for HDMI we must set it manually. Fix the driver to handle this. Signed-off-by: Simon Glass --- Changes in v2: None drivers/pinctrl/rockchip/pinctrl_rk3288.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[U-Boot] [PATCH v2 09/37] dm: backlight: Add a driver for a PWM backlight

2016-01-21 Thread Simon Glass
Many backlights need to use a PWM to control the brightness. Add a driver for this. It understands the standard device tree binding. Signed-off-by: Simon Glass --- Changes in v2: None drivers/video/Makefile| 3 + drivers/video/pwm_backlight.c | 134

[U-Boot] [PATCH v9 39/49] rockchip: spi: Remember the last speed to avoid re-setting it

2016-01-21 Thread Simon Glass
Rather than changing the clock to the same value on every transaction, remember the last value and don't adjust the clock unless it is necessary. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/spi/rk_spi.c | 5 - 1 file changed, 4

Re: [U-Boot] [PATCH] pci: restore initialization for DM_PCI

2016-01-21 Thread Bin Meng
On Fri, Jan 22, 2016 at 11:36 AM, Simon Glass wrote: > Hi, > > On 21 January 2016 at 18:39, Bin Meng wrote: >> Hi Stephen, >> >> On Fri, Jan 22, 2016 at 7:35 AM, Stephen Warren >> wrote: >>> From: Stephen Warren

Re: [U-Boot] [Patch V5 1/4] spi: fsl_qspi: fix compile warning for 64-bit platform

2016-01-21 Thread Qianyu Gong
> -Original Message- > From: Scott Wood > Sent: Friday, January 22, 2016 3:28 AM > To: Qianyu Gong ; u-boot@lists.denx.de; > r58...@freescale.com > Cc: mingkai...@freescale.com; jt...@openedev.com; b48...@freescale.com; > shaohui@freescale.com;

Re: [U-Boot] [PATCH 7/7] usb: dwc2: Do not mix data toggle for IN and OUT endpoints, check bounds

2016-01-21 Thread Stefan Bruens
On Freitag, 22. Januar 2016 02:30:43 CET you wrote: > USB protocol allows for 16 IN and 16 OUT endpoints (USB 2.0 Spec, > 8.3.2.2 Endpoint Field). A function may have an EP 1 for both IN and OUT, > so these two should be kept separate. As EPs are either BULK or INTERRUPT > (or ISO), it is fine to

[U-Boot] [PATCH v9 04/49] dts: Bring in pinctrl device tree binding

2016-01-21 Thread Simon Glass
Add this binding file since we now use it in U-Boot. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None .../pinctrl/pinctrl-bindings.txt | 236 + 1 file changed, 236 insertions(+) create mode 100644

[U-Boot] [PATCH v9 15/49] rockchip: clock: Rename the general clock variable to gclk_rate

2016-01-21 Thread Simon Glass
The current name is confusing and a bit verbose. Rename it. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/clk/clk_rk3288.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git

[U-Boot] [PATCH v9 10/49] rockchip: mmc: Use a pwrseq device if available

2016-01-21 Thread Simon Glass
Use the pwrseq uclass to find a suitable power sequence for the MMC device. If this is enabled in the device tree, we will pick it up automatically. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/mmc/rockchip_dw_mmc.c | 47

[U-Boot] [PATCH v9 11/49] rockchip: Correct the defconfig order

2016-01-21 Thread Simon Glass
This has got out of sequence somehow. Fix it. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None configs/chromebook_jerry_defconfig | 6 +++--- configs/firefly-rk3288_defconfig | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git

[U-Boot] [PATCH v2 19/37] rockchip: Add a simple 'clock' command

2016-01-21 Thread Simon Glass
Add a command that displays the PLLs and their current rate. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-rockchip/board.c | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/mach-rockchip/board.c

[U-Boot] [PATCH v2 20/37] rockchip: Add a script to parse datasheets

2016-01-21 Thread Simon Glass
This script has proved useful for parsing datasheets and creating register shift/mask values for use in header files. Include it in case it is useful for others. Signed-off-by: Simon Glass --- Changes in v2: None doc/README.rockchip | 6 ++ tools/rkmux.py | 218

[U-Boot] [PATCH v2 04/37] video: Add a function to control cache flushing

2016-01-21 Thread Simon Glass
Allow the cache-flushing function of a video device to be controlled. Signed-off-by: Simon Glass --- Changes in v2: None drivers/video/video-uclass.c | 7 +++ include/video.h | 8 2 files changed, 15 insertions(+) diff --git

[U-Boot] [PATCH v2 25/37] rockchip: spl: Drop MMC support code when not needed

2016-01-21 Thread Simon Glass
When the board does not use MMC SPL this code is a waste of space. Drop it. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/mach-rockchip/rk3288-board-spl.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v2 07/37] pwm: rockchip: Add a PWM driver for Rockchip SoCs

2016-01-21 Thread Simon Glass
Add a simple driver which implements the standard PWM uclass interface. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/include/asm/arch-rockchip/pwm.h | 41 drivers/pwm/Kconfig | 9 +++ drivers/pwm/Makefile

[U-Boot] [PATCH v2 24/37] rockchip: Tidy up the register-access macros

2016-01-21 Thread Simon Glass
These work reasonable well, but there are a few errors: - Brackets should be used to avoid unexpected side-effects - When setting bits, the corresponding upper 16 bits should be set also Signed-off-by: Simon Glass --- Changes in v2: None

[U-Boot] [PATCH v9 29/49] dm: i2c: Allow muxes to be enabled for SPL separately

2016-01-21 Thread Simon Glass
Since I2C muxes are seldom needed in SPL, and the code for this increases the size somewhat, add a separate option to enable I2C muxes for SPL. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/i2c/Makefile | 4 ++--

[U-Boot] [PATCH v9 23/49] rockchip: Move firefly and jerry to use the full pinctrl

2016-01-21 Thread Simon Glass
Use the full pinctrl driver in U-Boot proper. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None configs/chromebook_jerry_defconfig | 1 - configs/firefly-rk3288_defconfig | 1 - 2 files changed, 2 deletions(-) diff --git

[U-Boot] [PATCH v9 28/49] cros_ec: Disable the Chrome OS EC in SPL

2016-01-21 Thread Simon Glass
This is not used in SPL so don't allow it to be built there, even if I2C is enabled in SPL. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/misc/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/misc/Makefile

[U-Boot] [PATCH v2 26/37] rockchip: jerry: Fix the SDRAM timing

2016-01-21 Thread Simon Glass
There is a minor error in the SDRAM timing. It does not seem to affect anything so far. Fix it just in case. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/dts/rk3288-veyron.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v9 36/49] dm: clk: Add a simple version of clk_get_by_index()

2016-01-21 Thread Simon Glass
This function adds quite a bit of code to SPL and we probably don't need all the features in SPL. Add a simple version (for SPL only) to save space. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: - Add an assert for clk_devp drivers/clk/clk-uclass.c | 18

Re: [U-Boot] [PATCH v4 3/3] armv8/ls1043aqds: Add lpuart support

2016-01-21 Thread Bin Meng
On Thu, Jan 21, 2016 at 5:14 PM, Wenbin Song wrote: > Add lpuart support using the driver model. > > Signed-off-by: Wenbin Song > --- Somehow this patch was not caught by patchwork yesterday at first, the reviewed tag was lost, so here again:

Re: [U-Boot] [PATCH v4 2/3] armv8/ls1043aqds: Spilt off board device tree

2016-01-21 Thread Bin Meng
On Thu, Jan 21, 2016 at 5:14 PM, Wenbin Song wrote: > Move new /chosen node out of the board device tree. > > Signed-off-by: Wenbin Song > --- Somehow this patch was not caught by patchwork yesterday at first, the reviewed tag was lost, so here again:

Re: [U-Boot] [PATCH v4 1/3] armv8/ls1043aqds: Select lpuart pins of various muxes

2016-01-21 Thread Bin Meng
On Thu, Jan 21, 2016 at 5:14 PM, Wenbin Song wrote: > From: Shaohui Xie > > Set Board Configuration Register to select the lpuart pins of various > muxes. > > Signed-off-by: Shaohui Xie > Signed-off-by: Mingkai Hu

[U-Boot] [PATCH v2 00/37] rockchip: Add support for display and keyboard

2016-01-21 Thread Simon Glass
This series adds display drivers for rockchip and enables them on jerry, firefly-rk3288 (HDMI only) and rock2 (HDMI only). It builds on the recent keyboard series. Driver are provided for video displays (EDP and HDMI) and the VOP (video output processor). This series also adds several new

[U-Boot] [PATCH v2 03/37] video: Name consoles by their number

2016-01-21 Thread Simon Glass
We must use the console name in the 'stdout' variable to select the one we want. At present the name is formed from the driver name with a suffix indicating the rotation value. It seems better to name them sequentially since this can be controlled by driver order. So adjust the code to use

[U-Boot] [PATCH v9 21/49] rockchip: mmc: Update the driver to use the new clock ID

2016-01-21 Thread Simon Glass
We can use the new clk_get_by_index() function to get the correct clock. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/clk/clk_rk3288.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk_rk3288.c

[U-Boot] [PATCH v2 14/37] rockchip: clk: Add support for clocks needed by the displays

2016-01-21 Thread Simon Glass
The displays need to use NPLL and also select some new peripheral clocks. Add support for these to the clock driver. Signed-off-by: Simon Glass --- Changes in v2: None drivers/clk/clk_rk3288.c | 174 +-- 1 file changed, 170

[U-Boot] [PATCH v2 11/37] video: panel: Add a simple panel driver

2016-01-21 Thread Simon Glass
Most panels are very simple - they just have a power supply and a backlight. Add a driver which supports this and implements the enable_backlight() method. Signed-off-by: Simon Glass --- Changes in v2: None drivers/video/Makefile | 2 +- drivers/video/simple_panel.c

[U-Boot] [PATCH v2 10/37] dm: panel: Add a panel uclass

2016-01-21 Thread Simon Glass
LCD panels can usefully be modelled as their own uclass. They can be probed (which powers them up ready for use). If they have a backlight, this can be enabled. Signed-off-by: Simon Glass --- Changes in v2: None drivers/video/Makefile | 1 +

Re: [U-Boot] [PATCH 2/4] armv8/ls1043aqds: Add lpuart defconfig

2016-01-21 Thread Simon Glass
Hi, On 19 January 2016 at 22:32, Bin Meng wrote: > Hi Wenbin, > > On Wed, Jan 20, 2016 at 12:29 PM, Wenbin Song wrote: >> Hi: Bin, >> >> Could you tell me which tree your patches have been merged into ? >> > > I believe it will be merged via u-boot-dm,

[U-Boot] [PATCH v9 00/49] rockchip: Add support for cros_ec keyboard

2016-01-21 Thread Simon Glass
This series provides a number of new features and improvements leading to enabling the keyboard (via Chrome OS EC) on jerry. This is conneected via SPI and uses its own message protocol. Features and fixes are needed in the rockchip code to make this work include: - RK808 PMIC and regulator

[U-Boot] [PATCH v2 31/37] rockchip: jerry: Enable EDP and HDMI video output

2016-01-21 Thread Simon Glass
Enable these devices using the VOPL video output device. We explicitly disable VOPB in the device tree to avoid it taking over. Since this device has an LCD display this comes up by default. If the display fails for some reason then it will attempt to use HDMI. It is possible to force it to fail

[U-Boot] [PATCH v9 20/49] rockchip: spi: Avoid setting the pinctrl twice

2016-01-21 Thread Simon Glass
If full pinctrl is enabled we don't need to manually set the pinctrl in the driver. It will happen automatically. Adjust the code to suit - we will still use manual mode in SPL. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/spi/rk_spi.c | 9

Re: [U-Boot] [PATCH v4 01/50] dm: clk: Add support for decoding clocks from the device tree

2016-01-21 Thread Simon Glass
On 20 January 2016 at 20:04, Masahiro Yamada wrote: > 2016-01-21 11:43 GMT+09:00 Simon Glass : >> Add a method which can locate a clock for a device, given its index. This >> uses the normal device tree bindings to return the clock device and the

[U-Boot] [PATCH v2 35/37] rockchip: rock2: dts: Make changes for U-Boot

2016-01-21 Thread Simon Glass
Add the required pre-relocation tags and SDRAM init information for U-Boot. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/dts/rk3288-rock2-square.dts | 21 + 1 file changed, 21 insertions(+) diff --git

[U-Boot] [PATCH v9 46/49] rockchip: spi: Implement the delays

2016-01-21 Thread Simon Glass
Some devices need delays before and after activiation. Implement these features in the SPI driver so that we will be able to enable the Chrome OS EC. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/spi/rk_spi.c | 27 +++

[U-Boot] [PATCH v2 30/37] rockchip: jerry: Add support for timing SPI flash speed

2016-01-21 Thread Simon Glass
Add the 'time' and 'sf test' commands so that we can test SPI flash performance. Signed-off-by: Simon Glass --- Changes in v2: None include/configs/chromebook_jerry.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/chromebook_jerry.h

[U-Boot] [PATCH v9 30/49] spi: Correct device tree usage in spi_flash_decode_fdt()

2016-01-21 Thread Simon Glass
This function currently searches the entire device tree for a node that it thinks is relevant. But the node is known and is passed in. Correct the code and enable it only with driver model, since only driver-model boards will use it. This avoids bringing in a large number of strings from fdtdec.

Re: [U-Boot] [PATCH 3/8] test/py: drain console log at the end of any failed test

2016-01-21 Thread Simon Glass
On 20 January 2016 at 15:15, Stephen Warren wrote: > From: Stephen Warren > > Tests may fail for a number of reasons, and in particular for reasons > other than a timeout waiting for U-Boot to print expected data. If the > last operation that a failed

Re: [U-Boot] [PATCH 1/2] test/py: move find_ram_base() into u_boot_utils

2016-01-21 Thread Simon Glass
On 21 January 2016 at 16:05, Stephen Warren wrote: > From: Stephen Warren > > find_ram_base() is a shared utility function, not a core part of the > U-Boot console interaction. > > Signed-off-by: Stephen Warren > --- > These two

Re: [U-Boot] [PATCH 4/8] test/py: log when tests send CTRL-C

2016-01-21 Thread Simon Glass
On 20 January 2016 at 15:15, Stephen Warren wrote: > From: Stephen Warren > > Write a note to the log file when a test sends CTRL-C to U-Boot. This > makes it easier to follow what's happening in the logs, especially since > U-Boot doesn't echo the

Re: [U-Boot] [PATCH 8/8] test/py: add DFU test

2016-01-21 Thread Simon Glass
On 21 January 2016 at 11:17, Stephen Warren wrote: > On 01/21/2016 03:50 AM, Lukasz Majewski wrote: >> >> Hi Stephen, >> >>> From: Stephen Warren >>> >>> Add a test of DFU functionality to the Python test suite. The test >>> starts DFU in U-Boot, waits

Re: [U-Boot] [PATCH 2/2] test/py: add a networking test

2016-01-21 Thread Simon Glass
On 21 January 2016 at 16:05, Stephen Warren wrote: > From: Stephen Warren > > This tests: > - dhcp (if indicated by boardenv file). > - Static IP network setup (if provided by boardenv file). > - Ping. > - TFTP get. > > Signed-off-by: Stephen Warren

Re: [U-Boot] [PATCH] pci: restore initialization for DM_PCI

2016-01-21 Thread Simon Glass
Hi Bin, On 21 January 2016 at 20:53, Bin Meng wrote: > On Fri, Jan 22, 2016 at 11:36 AM, Simon Glass wrote: >> Hi, >> >> On 21 January 2016 at 18:39, Bin Meng wrote: >>> Hi Stephen, >>> >>> On Fri, Jan 22, 2016 at 7:35 AM, Stephen

[U-Boot] CONFIG_EXTRA_ENV_SETTINGS and Kconfig

2016-01-21 Thread Oleg K Dzhimiev
Hello, A couple years ago we developed Ezynq to build the bootloader for our camera board (w/o using Vivado's SDK). The config files are *.h and now we would like update the project to Kconfig. There is the CONFIG_EXTRA_ENV_SETTINGS parameter:

Re: [U-Boot] [PATCH] pci: restore initialization for DM_PCI

2016-01-21 Thread Bin Meng
Hi Stephen, On Fri, Jan 22, 2016 at 7:35 AM, Stephen Warren wrote: > From: Stephen Warren > > PCI controllers should be enumerated at startup so that PCI devices > such as Ethernet controllers are available at startup. Fix board_init_r() > not to skip

[U-Boot] [PATCH 41/41 v2] ARM: omap3_logic: Fix pin muxing

2016-01-21 Thread Adam Ford
Enhance pin muxing to enable more board features and reduce power based on Tony's device tree work. Signed-off-by: Adam Ford --- board/logicpd/omap3som/omap3logic.c | 378 +--- 1 file changed, 313 insertions(+), 65 deletions(-) diff --git

[U-Boot] [PATCH v9 05/49] power: Add base support for the RK808 PMIC

2016-01-21 Thread Simon Glass
This Rockchip PMIC provides features suitable for battery-powered applications. It is commonly used with Rockchip SoCs. Add a driver which provides register access. The regulator driver will use this. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None

[U-Boot] [PATCH v2 29/37] rockchip: spl: Support full-speed CPU in SPL

2016-01-21 Thread Simon Glass
Add a feature which speeds up the CPU to full speed in SPL to minimise boot time. This is only supported for certain boards (at present only jerry). Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/dts/rk3288-veyron.dtsi | 2 +

[U-Boot] [PATCH v9 40/49] rockchip: spi: Correct the bus init code

2016-01-21 Thread Simon Glass
Two of the init values are created locally so cannot be out of range. The masking is unnecessary and in one case is incorrect. Fix it. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/spi/rk_spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [U-Boot] [PATCH 8/9] ARM: ARMv7: PSCI: ls102xa: add psci functions implemention

2016-01-21 Thread Dongsheng Wang
Hi Scott, Thanks for your review. > On Tue, 2016-01-19 at 06:28 +, Dongsheng Wang wrote: > > Hi Scott, > > > > > On Mon, 2016-01-18 at 12:27 +0800, Dongsheng Wang wrote: > > > > From: Wang Dongsheng > > > > > > > > Based on PSCI v1.0, implement interface for ls102xa

[U-Boot] [PATCH v2 37/37] rockchip: Update the README

2016-01-21 Thread Simon Glass
GPIO, I2C, LCD and HDMI are now implemented. We have more than one PMIC. There is an implementation to run the CPU at full speed although it does not seem to make much difference. Update the README to cover recent developments. Signed-off-by: Simon Glass --- Changes in v2: -

[U-Boot] [PATCH v2 27/37] rockchip: rk3288: clock: Fix various minor errors

2016-01-21 Thread Simon Glass
Fix a number of small errors which were found in reviewing the clock code. Signed-off-by: Simon Glass --- Changes in v2: None drivers/clk/clk_rk3288.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/clk/clk_rk3288.c

[U-Boot] [PATCH v2 33/37] rockchip: dts: Sync up SPDIF node with Linux

2016-01-21 Thread Simon Glass
This has been added and we have references to it in the rock2 board. Add this node. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/dts/rk3288.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/dts/rk3288.dtsi

[U-Boot] [PATCH v9 09/49] rockchip: Convert the PMU IOMUX registers into an array

2016-01-21 Thread Simon Glass
This is easier to deal with when using generic code since it allows us to use a register index instead of naming each register. Adjust it, adding an enum to improve readability. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None

[U-Boot] [PATCH v9 33/49] dm: core: Export uclass_find_device_by_of_offset()

2016-01-21 Thread Simon Glass
It is sometimes useful to be able to find a device before probing it, perhaps to set up some platform data for it. Allow finding by of_offset also. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/core/uclass.c| 4 ++--

[U-Boot] [PATCH v9 41/49] rockchip: clk: Make rkclk_get_clk() SoC-specific

2016-01-21 Thread Simon Glass
The current method assumes that clocks are numbered from 0 and we can determine a clock by its number. It is safer to use an ID in the clock's platform data to avoid the situation where another clock is bound before the one we expect. Move the existing code into rk3036 since it still works there.

[U-Boot] [PATCH v9 37/49] rockchip: sdram: Use the rk_clr/setreg() interface

2016-01-21 Thread Simon Glass
Use this function in preference to the macro. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None arch/arm/mach-rockchip/rk3288/sdram_rk3288.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git

[U-Boot] [PATCH v9 24/49] rockchip: jerry: Enable the RK808 PMIC and regulator

2016-01-21 Thread Simon Glass
Enable this PMIC and regulator, which is used on jerry. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None configs/chromebook_jerry_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/chromebook_jerry_defconfig

[U-Boot] [PATCH v9 32/49] dm: pinctrl: Add a way for a GPIO driver to obtain a pin function

2016-01-21 Thread Simon Glass
GPIO drivers want to be able to show if a pin is enabled for input, output, or is being used by another function. Some drivers can easily find this and the code is included in the driver. For some SoCs this is more complex. Conceptually this should be handled by pinctrl rather than GPIO. Most

[U-Boot] [PATCH v9 45/49] rockchip: gpio: Implement the get_function() method

2016-01-21 Thread Simon Glass
Provide this method so that 'gpio status' works fully. It now shows whether a pin is used for input, output or some other function. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/gpio/rk_gpio.c | 40 1

[U-Boot] [PATCH v9 47/49] rockchip: spi: Correct chip-enable code

2016-01-21 Thread Simon Glass
At present there is an incorrect call to rkspi_enable_chip(). It should be disabling the chip, not enabling it. Correct this and ensure that the chip is disabled when releasing the bus. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None

[U-Boot] [PATCH v9 27/49] gpio: Allow 's' as an abbreviation for 'status'

2016-01-21 Thread Simon Glass
The 'gpio' command allows abbreviations for most subcommands. Allow them for 'status' also. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None common/cmd_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cmd_gpio.c

[U-Boot] [PATCH v9 17/49] rockchip: clock: Add a function to find a clock by ID

2016-01-21 Thread Simon Glass
The current approach of using uclass_get_device() is error-prone. Another clock (for example a fixed-clock) may cause it to break. Add a function that does a proper search. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None

[U-Boot] [PATCH v9 38/49] rockchip: reset: Use the rk_clr/setreg() interface

2016-01-21 Thread Simon Glass
Use this function in preference to the macro. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None arch/arm/mach-rockchip/rk3288/reset_rk3288.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [U-Boot] [PATCH v5 1/6] ARM: bootm: Try to use relocated ramdisk

2016-01-21 Thread Simon Glass
On 13 January 2016 at 19:19, Jeffy Chen wrote: > After boot_ramdisk_high(), ramdisk would be relocated to > initrd_start & initrd_end, so use them instead of rd_start & rd_end. > > Signed-off-by: Jeffy Chen > Acked-by: Simon Glass

Re: [U-Boot] [PATCH 2/8] test/py: move U-Boot respawn trigger to the test core

2016-01-21 Thread Simon Glass
On 20 January 2016 at 15:15, Stephen Warren wrote: > From: Stephen Warren > > Prior to this change, U-Boot was lazilly (re-)spawned if/when a test > attempted to interact with it, and no active connection existed. This > approach was simple, yet had the

Re: [U-Boot] [PATCH 5/8] test/py: optionally ignore errors from shell commands

2016-01-21 Thread Simon Glass
On 20 January 2016 at 15:15, Stephen Warren wrote: > From: Stephen Warren > > Sometimes it's useful to run shell commands and ignore any errors. One > example might be cleanup logic; if a test-case experiences an error, the > cleanup logic might

[U-Boot] [PATCH 1/2] QE: add QE support on ls1043ardb

2016-01-21 Thread Zhao Qiang
Upload QE microcode on ls1043ardb Signed-off-by: Zhao Qiang --- board/freescale/ls1043ardb/ls1043ardb.c | 8 include/configs/ls1043ardb.h| 7 +++ 2 files changed, 15 insertions(+) diff --git a/board/freescale/ls1043ardb/ls1043ardb.c

Re: [U-Boot] [PATCH] pci: restore initialization for DM_PCI

2016-01-21 Thread Bin Meng
Hi Simon, On Fri, Jan 22, 2016 at 12:03 PM, Simon Glass wrote: > Hi Bin, > > On 21 January 2016 at 20:53, Bin Meng wrote: >> On Fri, Jan 22, 2016 at 11:36 AM, Simon Glass wrote: >>> Hi, >>> >>> On 21 January 2016 at 18:39, Bin Meng

[U-Boot] [PATCH v9 42/49] rockchip: pinctrl: Reduce the size for SPL

2016-01-21 Thread Simon Glass
This file has many features that are not needed by SPL. Use #ifdef to remove the unused features and reduce the code size. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: None drivers/pinctrl/rockchip/pinctrl_rk3288.c | 20 +--- 1 file

Re: [U-Boot] [PATCH v2 1/2] tpm: Fix fault in case CONFIG_DM_TPM is set without any TPM

2016-01-21 Thread Simon Glass
On 21 January 2016 at 15:19, Christophe Ricard wrote: > In case CONFIG_DM_TPM was set without any TPM chipset configured a fault > was generated (NULL pointer access). > > Reviewed-by: Simon Glass > Signed-off-by: Christophe Ricard

[U-Boot] [PATCH v9 19/49] rockchip: spi: Update the driver to use the new clock ID

2016-01-21 Thread Simon Glass
We can use the new clk_get_by_index() function to get the correct clock. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: - Update call to clk_get_by_index() drivers/spi/rk_spi.c | 32 +--- 1 file changed, 17 insertions(+), 15

[U-Boot] [PATCH v2 16/37] rockchip: video: Add a display driver for rockchip eDP

2016-01-21 Thread Simon Glass
Some Rockchip SoCs support embedded DisplayPort output. Add a display driver for this so that these displays can be used on supported boards. Signed-off-by: Simon Glass --- Changes in v2: - Update for new clk_get_by_index() API

[U-Boot] [PATCH v2 34/37] rockchip: rock2: Bring in device tree files from Linux

2016-01-21 Thread Simon Glass
Bring in the current device tree files for rock2 from linux/next commit 719d6c1. Hopefully this is the latest one. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/dts/rk3288-rock2-som.dtsi | 278 +++

Re: [U-Boot] [PATCH v2 1/3] tpm: Rename tpm_tis_infineon.h to tpm_tis.h and move infineon specific stuff in tpm_infineon.c

2016-01-21 Thread Simon Glass
On 21 January 2016 at 15:27, Christophe Ricard wrote: > I2C protocol is not standardize for TPM 1.2. > TIS prococol is define by the Trusted Computing Group and potentially > available on several TPMs. > > tpm_tis_infineon.h header is not generic enough. > > Rename

[U-Boot] [PATCH 2/2] QE: assgin pins to QE-HDLC

2016-01-21 Thread Zhao Qiang
QE-HDLC and USB multi-use the pins, when set "hwconfig=qe-hdlc", assign the pins to QE-HDLC, if not, assgin to USB Signed-off-by: Zhao Qiang --- board/freescale/ls1043ardb/ls1043ardb.c | 54 - 1 file changed, 39 insertions(+), 15 deletions(-)

Re: [U-Boot] [PATCH] ls2085a: Correct the model & board name of RDB and QDS

2016-01-21 Thread Calvin Johnson
Hi Ashish, > -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Ashish, > Kumar > Sent: Wednesday, January 20, 2016 12:33 PM > To: prabhakar.khusw...@nxp.com; u-boot@lists.denx.de > Subject: [U-Boot] [PATCH] ls2085a: Correct the model & board name of RDB

Re: [U-Boot] [Patch V3 3/3] armv8/ls1043aqds: add QSPI boot support

2016-01-21 Thread Qianyu Gong
Hi Scott, > -Original Message- > From: Scott Wood [mailto:o...@buserror.net] > Sent: Friday, January 22, 2016 6:50 AM > To: Qianyu Gong ; u-boot@lists.denx.de > Cc: b48...@freescale.com; wenbin.s...@freescale.com; Mingkai Hu > > Subject: Re:

Re: [U-Boot] [PATCH 7/7] usb: dwc2: Do not mix data toggle for IN and OUT endpoints, check bounds

2016-01-21 Thread Marek Vasut
On Friday, January 22, 2016 at 02:30:43 AM, Stefan BrĂ¼ns wrote: > USB protocol allows for 16 IN and 16 OUT endpoints (USB 2.0 Spec, > 8.3.2.2 Endpoint Field). A function may have an EP 1 for both IN and OUT, > so these two should be kept separate. As EPs are either BULK or INTERRUPT > (or ISO), it

Re: [U-Boot] [PATCH 0/8] Convert lpuart serial driver to driver model

2016-01-21 Thread Bhuvanchandra DV
Hi Simon, On 01/22/2016 08:46 AM, Simon Glass wrote: Hi, On 12 January 2016 at 02:30, Bhuvanchandra DV wrote: Hi Bin, On 01/12/2016 12:21 PM, Bin Meng wrote: Hi Bhuvanchandra, On Tue, Jan 12, 2016 at 2:43 PM, Bhuvanchandra DV

Re: [U-Boot] [PATCH v9 18/49] rockchip: i2c: Update the driver to use the new clock ID

2016-01-21 Thread Heiko Schocher
Hello Simon, Am 22.01.2016 um 03:43 schrieb Simon Glass: We can use the new clk_get_by_index() function to get the correct clock. Signed-off-by: Simon Glass --- Changes in v9: None Changes in v2: - Update call to clk_get_by_index() drivers/i2c/rk_i2c.c | 38

[U-Boot] [PATCH 2/2 v3] board/t4240rdb: VID support

2016-01-21 Thread ying.zhang
From: Ying Zhang The fuse status register provides the values from on-chip voltage ID efuses programmed at the factory. These values define the voltage requirements for the chip. u-boot reads FUSESR and translates the values into the appropriate commands to set the voltage

[U-Boot] [PATCH 1/2 v3] VID: support IR chip is used in Intel mode

2016-01-21 Thread ying.zhang
From: Ying Zhang IR chip on all the boards support VID are required to be used in Intel mode. the VDD will not be adjusted while IR chip is not used in Intel mode. Signed-off-by: Ying Zhang --- Changed from v2: - Separate this patch from T4RDB

[U-Boot] [PATCH 1/7] arm: vf: Enable lpuart support

2016-01-21 Thread Bhuvanchandra DV
Add device tree node for lpuart on Vybrid platform --- arch/arm/dts/vf.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/dts/vf.dtsi b/arch/arm/dts/vf.dtsi index 78706e1..5f5bd4c 100644 --- a/arch/arm/dts/vf.dtsi +++ b/arch/arm/dts/vf.dtsi @@ -17,6 +17,8 @@

[U-Boot] [PATCH 4/7] arm: pcm052: Add device tree files

2016-01-21 Thread Bhuvanchandra DV
Add device tree files and enable serial support --- arch/arm/dts/Makefile| 3 ++- arch/arm/dts/pcm052.dts | 27 +++ configs/pcm052_dtb_defconfig | 10 ++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/pcm052.dts

[U-Boot] [PATCH 7/7] arm: vf: Remove the legacy defconfigs

2016-01-21 Thread Bhuvanchandra DV
Let's go with pure DT solution! Since in long run U-Boot anyway is evolving to pure DT solution. --- configs/colibri_vf_defconfig | 11 --- configs/pcm052_defconfig | 6 -- configs/vf610twr_defconfig | 9 - 3 files changed, 26 deletions(-) delete mode 100644

Re: [U-Boot] [PATCH] armv8/ls1043a: Implement workaround for erratum A009660

2016-01-21 Thread Mingkai Hu
> -Original Message- > From: Mingkai Hu > Sent: Thursday, January 21, 2016 11:18 AM > To: york sun; Mingkai Hu; u-boot@lists.denx.de > Subject: RE: [PATCH] armv8/ls1043a: Implement workaround for erratum > A009660 > > > > > -Original Message- > > From: york sun > > Sent:

[U-Boot] [PATCH 6/7] arm: vybrid: Drop enabling serial in legacy mode

2016-01-21 Thread Bhuvanchandra DV
Remove the legacy way of handling serial ports on Vybrid based boards since lpuart driver now only supports DT mode. --- include/configs/colibri_vf.h | 3 --- include/configs/pcm052.h | 3 --- include/configs/vf610twr.h | 3 --- 3 files changed, 9 deletions(-) diff --git

[U-Boot] [Patch V6 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy issue

2016-01-21 Thread Gong Qianyu
From: Gong Qianyu In current driver everytime we memcpy 4 bytes to the dest memory regardless of the remaining length. This patch adds checking the remaining length before memcpy. If the length is shorter than 4 bytes, memcpy the actual length of data to the dest

[U-Boot] [Patch V6 0/4] QSPI bug fixing patches

2016-01-21 Thread Gong Qianyu
This patchset is mainly related with Freescale QSPI and tested on LS1043AQDS board. The version 6 patchset has fixes to: - Use min() to simplify the code in QSPI driver. [Patch V6 1/4] spi: fsl_qspi: fix compile warning for 64-bit platform [Patch V6 2/4] spi: fsl_qspi: Fix qspi_op_rdid memcpy

[U-Boot] [Patch V6 3/4] spi: fsl_qspi: Fix qspi_op_rdsr memcpy issue

2016-01-21 Thread Gong Qianyu
From: Gong Qianyu In current driver, we always copy 4 bytes to the dest memory. Actually the dest memory may be shorter than 4 bytes. Add an argument to indicate the dest memory length. Avoid writing memory outside of the bounds. Signed-off-by: Gong Qianyu

[U-Boot] [Patch V6 1/4] spi: fsl_qspi: fix compile warning for 64-bit platform

2016-01-21 Thread Gong Qianyu
From: Gong Qianyu This patch fixes the following compile warning: drivers/spi/fsl_qspi.c: In function 'fsl_qspi_probe': drivers/spi/fsl_qspi.c:937:15: warning: cast to pointer from integer of different size

<    1   2   3   4   >