Re: [U-Boot] [PATCH 05/55] dm: i2c: Add a function to transfer messages

2015-07-02 Thread Heiko Schocher denx
Hello Simon, Am 03.07.2015 um 02:15 schrieb Simon Glass: Sometimes it is useful to be able to transfer a raw I2C message. This happens when the chip address needs to be set manually, or when the data to be sent/received is in another buffer. Add a function to provide access to this. Signed-off

Re: [U-Boot] [PATCH 04/55] dm: i2c: Move definitions to the top of the header file

2015-07-02 Thread Heiko Schocher denx
Hello Simon, Am 03.07.2015 um 02:15 schrieb Simon Glass: Move the flags and struct definitions higher in the file so that we can reference them with functions declared in the driver model section. Signed-off-by: Simon Glass --- include/i2c.h | 86 +---

Re: [U-Boot] [PATCH 03/55] dm: i2c: Correct comment nits in dm_i2c_reg_read/write()

2015-07-02 Thread Heiko Schocher denx
Hello Simon, Am 03.07.2015 um 02:15 schrieb Simon Glass: Add documentation for the @dev parameter. Signed-off-by: Simon Glass --- include/i2c.h | 2 ++ 1 file changed, 2 insertions(+) Acked-by: Heiko Schocher bye, Heiko diff --git a/include/i2c.h b/include/i2c.h index a5498a3..e1ad8d

Re: [U-Boot] [PATCH 02/55] dm: i2c: Add a message debug function

2015-07-02 Thread Heiko Schocher denx
Hello Simon, Am 03.07.2015 um 02:15 schrieb Simon Glass: Add a way to dump the contents of an I2C message for debugging purposes. Signed-off-by: Simon Glass --- drivers/i2c/i2c-uclass.c | 16 include/i2c.h| 10 ++ 2 files changed, 26 insertions(+) Ac

Re: [U-Boot] [PATCH v3 00/54] dm: Introduce new driver model uclasses

2015-07-02 Thread Simon Glass
Hi, On 23 June 2015 at 15:38, Simon Glass wrote: > > This series adds several new uclasses. Some of these have been discussed > for a while. All are fairly simple and just provide enough functionality for > existing use cases. The following are included in this series: > > - Clocks - setting and

[U-Boot] [PATCH 00/55] dm: exynos: Driver model improvements leading to spring support

2015-07-02 Thread Simon Glass
This series adds a number of fixes and improvements to driver model as well as two new uclasses (video bridges and I2c muxes). The series is aimed at adding support for spring (HP 11 Chromebook). Since it is very similar to other ARM Chromebooks, some effory is made to use common code rather than

Re: [U-Boot] [PATCH 3/8] generic-board: allow showing custom board info

2015-07-02 Thread Simon Glass
Hi Marcel, On 1 July 2015 at 17:04, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Allow showing custom board info from a checkboard() function being > implemented if CONFIG_CUSTOM_BOARDINFO is specified. > Can you reword this? It seems confusing. From what I can tell you are turning off th

Re: [U-Boot] [PATCH 6/8] image-fdt.c: store returned error value

2015-07-02 Thread Simon Glass
On 1 July 2015 at 23:52, Marek Vasut wrote: > On Thursday, July 02, 2015 at 01:04:51 AM, Marcel Ziswiler wrote: >> From: Max Krummenacher >> >> This fixes the following warning (and the runtime error reporting): >> ../common/image-fdt.c:491:4: warning: 'fdt_ret' may be used >> uninitialized in th

Re: [U-Boot] [PATCH] iMX: adding parsing to hab_status command

2015-07-02 Thread Ulises Cardenas
Hi Michael, On 07/02/2015 03:56 PM, Michael Trimarchi wrote: Hi On Jul 2, 2015 10:47 PM, http://freescale.com>> wrote: > > From: Ulises Cardenas > > > hab_status command returns a memory dump of the hab event log. But the > raw data is not human-readable.

Re: [U-Boot] [PATCH 11/11] imx: mx6ul_14x14_evk add basic board support

2015-07-02 Thread Peng Fan
Hi Fabio, On Thu, Jul 02, 2015 at 11:15:17AM -0300, Fabio Estevam wrote: >On Thu, Jul 2, 2015 at 8:03 AM, Peng Fan wrote: > >> +#if defined(CONFIG_MX6UL_EVK_EMMC_REWORK) > >Why do we need this config option? > This board default support sd. If want to use emmc, need to rework the board. So intro

[U-Boot] [PATCH v2] iMX: adding parsing to hab_status command

2015-07-02 Thread Ulises.Cardenas
From: Ulises Cardenas hab_status command returns a memory dump of the hab event log. But the raw data is not human-readable. Parsing such data into readable event will help to minimize debbuging time. Signed-off-by: Ulises Cardenas --- Changes in v2: -Refactored get_<*>_idx functions as recomm

Re: [U-Boot] [PATCH 07/11] imx: mx6ul update soc related settings

2015-07-02 Thread Peng Fan
Hi, Marek and Fabio On Thu, Jul 02, 2015 at 08:33:34PM +0200, Marek Vasut wrote: >On Thursday, July 02, 2015 at 01:03:04 PM, Peng Fan wrote: >> Add MX6UL in Kconfig, default select SYS_L2CACHE_OFF. > >Why ? i.MX6UL features an Cortex-A7 core, it does not have PL310. As we know Cortex-A7 does not

Re: [U-Boot] [PATCH 02/11] imx: mx6ul: Add pins IOMUX head file

2015-07-02 Thread Peng Fan
Hi, Marek On Thu, Jul 02, 2015 at 08:29:20PM +0200, Marek Vasut wrote: >On Thursday, July 02, 2015 at 01:02:59 PM, Peng Fan wrote: >> Add i.MX6UL pins IOMUX file which defines the IOMUX settings for choose. >> >> Signed-off-by: Peng Fan >> Signed-off-by: Ye.Li >> --- >> arch/arm/include/asm/ar

Re: [U-Boot] [PATCH 01/11] imx: mx6ul: Add i.MX6UL CPU type

2015-07-02 Thread Peng Fan
Hi Marek, On Thu, Jul 02, 2015 at 08:27:09PM +0200, Marek Vasut wrote: >On Thursday, July 02, 2015 at 01:02:58 PM, Peng Fan wrote: >> Add MXC_CPU_MX6UL for i.MX6UL CPU type which is got at runtime. >> The 0x64 is defined as i.MX6UL CPU type value in Reference mannual, > >nit: manual, one N . > >>

Re: [U-Boot] [PATCH 04/11] imx-common: add syscounter driver

2015-07-02 Thread Peng Fan
Hi Marek, On Thu, Jul 02, 2015 at 08:31:37PM +0200, Marek Vasut wrote: >On Thursday, July 02, 2015 at 01:03:01 PM, Peng Fan wrote: >> syscounter exists on i.MX6UL and i.MX7D, so implement the driver >> in imx-common. >> If want to use syscounter, define CONFIG_SYSCOUNTER_TIMER; if >> still want to

[U-Boot] [v4 08/10] spi: cadence_qspi: get sram size from device tree

2015-07-02 Thread Vikas Manocha
sram size could be different on different socs, e.g. on stv0991 it is 256 while on altera platform it is 128. It is better to receive it from device tree. Signed-off-by: Vikas Manocha Tested-by: Stefan Roese --- Changes in v4: None Changes in v3: Rebased to spi-next-dev Changes in v2: None ar

[U-Boot] [v4 07/10] spi: cadence_qspi: move the sram partition in init

2015-07-02 Thread Vikas Manocha
There is no need to re-configure sram partition for every read/write for better full use of sram for read or write. This patch divides the half sram for read & half for write once at initialization. Signed-off-by: Vikas Manocha Tested-by: Stefan Roese --- Changes in v4: None Changes in v3: Reba

[U-Boot] [v4 10/10] spi: cadence_qspi: add device tree binding doc

2015-07-02 Thread Vikas Manocha
This patch adds the device tree binding doc for the cadence qspi controller & also removes the not needed properties from the stv0991 device tree. Signed-off-by: Vikas Manocha --- Changes in v4: removed changes done in socfpga dts/dtsi Changes in v3: added new arch/arm/dts/stv0991.dts

[U-Boot] [v4 06/10] stv0991: configure device tree for cadence qspi & flash

2015-07-02 Thread Vikas Manocha
This patch add the device tree entry for qspi controller & spi flash memory. Signed-off-by: Vikas Manocha --- Changes in v4: - removed not needed properties from stv0991 device tree file for qspi Changes in v3: Rebased to spi-next-dev Changes in v2: None arch/arm/dts/stv0991.dts | 34 ++

[U-Boot] [v4 09/10] spi: cadence_qspi: support FIFO width other than 4 bytes

2015-07-02 Thread Vikas Manocha
This patch makes the code compatible with FIFO depths other than 4 bytes. It also simplify read/write FIFO loops. Signed-off-by: Vikas Manocha Tested-by: Stefan Roese --- Changes in v4: none Changes in v3: Rebased to spi-next-dev Changes in v2: Fixed the checkpatch.pl error drivers/spi/cadenc

[U-Boot] [v4 05/10] stv0991: enable cadence qspi controller & spi flash

2015-07-02 Thread Vikas Manocha
This patch does all the board configurations required to use the qspi controller & attached spi flash memory. Signed-off-by: Vikas Manocha --- Changes in v4: - Moved SPI configs in arch/arm/Kconfig Changes in v3: Rebased to spi-next-dev Changes in v2: None arch/arm/Kconfig |3 +++

[U-Boot] [v4 04/10] stv0991: configure clock & pad muxing for qspi

2015-07-02 Thread Vikas Manocha
stv0991 has cadence qspi controller for flash interfacing, this patch configures the device pads & clock for the controller. Signed-off-by: Vikas Manocha --- Changes in v4: none Changes in v3: Rebased to spi-next-dev Changes in v2: - removed checkpatch.pl error. arch/arm/cpu/armv7/stv0991/cloc

[U-Boot] [v4 00/10] spi: cadence_qspi: sram depth from DT & fix for FIFO width

2015-07-02 Thread Vikas Manocha
This patchset adds support to get controller sram size from device tree, fix to support different FIFO widths & adds dt binding doc. Also this patchset enables cadence qspi controller for stv0991 soc, saves environment in spi flash & moves CONFIG_OF in the defconfig file. Changes in v4: - Moved S

[U-Boot] [v4 02/10] stv0991: move OF_CONTROL config to defconfig

2015-07-02 Thread Vikas Manocha
Signed-off-by: Vikas Manocha --- Changes in v4: None Changes in v3: Rebased to spi-next-dev Changes in v2: None configs/stv0991_defconfig |1 + include/configs/stv0991.h |1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/stv0991_defconfig b/configs/stv0991_defcon

[U-Boot] [v4 01/10] stv0991: enable saving enrironment in spi flash

2015-07-02 Thread Vikas Manocha
Signed-off-by: Vikas Manocha --- Changes in v4: none Changes in v3: Rebased to spi-next-dev Changes in v2: None configs/stv0991_defconfig |1 - include/configs/stv0991.h |4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configs/stv0991_defconfig b/configs/stv0991_d

[U-Boot] [v4 03/10] stv0991: remove define CONFIG_OF_SEPARATE from board file

2015-07-02 Thread Vikas Manocha
CONFIG_OF_SEPARATE is default define with CONFIG_OF_CONTROL, removing this define from the board file to avoid multiple definition warning. Signed-off-by: Vikas Manocha --- Changes in v4: None Changes in v3: Rebased to spi-next-dev Changes in v2: None include/configs/stv0991.h |1 - 1 file

Re: [U-Boot] [PATCH 03/11] imx: mx6ul: Update imx registers head file

2015-07-02 Thread Peng Fan
Hi Marek, On Thu, Jul 02, 2015 at 08:30:30PM +0200, Marek Vasut wrote: >On Thursday, July 02, 2015 at 01:03:00 PM, Peng Fan wrote: >> Update imx register base address for i.MX6UL >> >> Signed-off-by: Peng Fan >> Signed-off-by: Ye.Li >> --- >> arch/arm/include/asm/arch-mx6/imx-regs.h | 60 >> ++

[U-Boot] [PATCH 19/55] dm: gpio: Add support for setting a GPIO's pull direction

2015-07-02 Thread Simon Glass
At present the driver model GPIO API does not support pull-up/pull-down on input GPIOs. This is required in some cases. Add this feature to the API with two new methods that drivers can optionally implement. Signed-off-by: Simon Glass --- drivers/gpio/gpio-uclass.c | 31 +++

[U-Boot] [PATCH 44/55] exynos: Add common board code for exynos5 boards that use device tree

2015-07-02 Thread Simon Glass
Some boards use device tree for almost all board-specific configuration. They therefore do not need their own separate board code, but can all use the same version. Add a common version of the board code. It uses the PMIC, regulator and video bridge uclasses. This will support smdk5250, smdk5420, s

[U-Boot] [PATCH 38/55] exynos: Tidy up CPU frequency display

2015-07-02 Thread Simon Glass
Line up the display with the line below, e.g.: CPU: Exynos5250 @ 1.7 GHz Model: Google Spring DRAM: 2 GiB MMC: EXYNOS DWMMC: 0 Also show the speed as GHz where appropriate. Signed-off-by: Simon Glass --- arch/arm/cpu/armv7/s5p-common/cpu_info.c | 7 ++-

[U-Boot] [PATCH 24/55] dm: power: Add support for S5M8767 regulators

2015-07-02 Thread Simon Glass
This PMIC is used with SoCs which need a combination of BUCKs and LDOs. The driver supports changing voltage and enabling/disabling each regulator. It supports the standard device tree binding and supports driver model. Signed-off-by: Simon Glass --- drivers/power/regulator/Kconfig | 9 ++

[U-Boot] [PATCH 55/55] exynos: Add support for spring

2015-07-02 Thread Simon Glass
Spring is the first ARM-based HP Chromebook 11. It is similar to snow and it uses the same Samsung Exynos5250 chip. But has some unusual features. Mainline support for it has lagged snow (both in kernel and U-Boot). Now that the exynos5 code is common we can support spring just by adding a device t

[U-Boot] [PATCH 42/55] dts: exynos: snow: Add a new node for the NXP video bridge driver

2015-07-02 Thread Simon Glass
The driver supports driver model. Add a node for snow, which needs it. Signed-off-by: Simon Glass --- arch/arm/dts/exynos5250-snow.dts | 36 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/arch/arm/dts/exynos5250-snow.dts b/arch/arm/dts/exyno

[U-Boot] [PATCH 27/55] dm: power: max77686: Correct BUCK register access

2015-07-02 Thread Simon Glass
Some regulators use the wrong voltage register and thus it is not possible to control them. Fix this. Signed-off-by: Simon Glass --- drivers/power/regulator/max77686.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/power/regulator/max77686.c b/drivers/po

[U-Boot] [PATCH 36/55] exynos: Add support for the DisplayPort hotplug detect

2015-07-02 Thread Simon Glass
Allow this function to be selected using the pinmux API. Signed-off-by: Simon Glass --- arch/arm/cpu/armv7/exynos/pinmux.c| 10 ++ arch/arm/include/asm/arch-exynos/periph.h | 1 + 2 files changed, 11 insertions(+) diff --git a/arch/arm/cpu/armv7/exynos/pinmux.c b/arch/arm/cpu

[U-Boot] [PATCH 48/55] exynos: Drop old exynos5420-specific board code

2015-07-02 Thread Simon Glass
Now that exynos5420 boards can use the generic exynos5 code, switch over to it and remove the old code. Signed-off-by: Simon Glass --- board/samsung/smdk5420/Makefile | 4 - board/samsung/smdk5420/smdk5420.c | 143 include/configs/exynos5420-common.h

[U-Boot] [PATCH 46/55] exynos: Remove unneeded device tree control #ifdefs

2015-07-02 Thread Simon Glass
Since device tree is used for all exynos5 boards, we can remove the #ifdef and reduce confusion. Signed-off-by: Simon Glass --- board/samsung/common/board.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/board/samsung/common/board.c b/board/samsung/common/

[U-Boot] [PATCH 41/55] dts: exynos: pit: Add a new node for the parade video bridge driver

2015-07-02 Thread Simon Glass
The new driver supports driver model and configuration via device tree. Add a node for pit, which needs this driver. Signed-off-by: Simon Glass --- arch/arm/dts/exynos5420-peach-pit.dts | 128 -- 1 file changed, 123 insertions(+), 5 deletions(-) diff --git a/arc

[U-Boot] [PATCH 39/55] dm: gpio: Check a GPIO is valid before using it

2015-07-02 Thread Simon Glass
Since a gpio_desc is allowed to be invalid we should return an error indicating that the operation cannot be completed. This can happen if the GPIO is optional - e.g. some devices may have a reset line and some may not. Signed-off-by: Simon Glass --- drivers/gpio/gpio-uclass.c | 6 +- 1 fil

[U-Boot] [PATCH 52/55] video: Remove the old parade driver

2015-07-02 Thread Simon Glass
We have a new one which uses driver model and device tree configuration. Remove the old one. Signed-off-by: Simon Glass --- drivers/video/Makefile | 1 - drivers/video/parade.c | 231 include/configs/peach-pi.h | 2 - include/configs/p

[U-Boot] [PATCH 22/55] dm: power: Add support for TPS65090 FETs

2015-07-02 Thread Simon Glass
The TPS65090 has 7 FETs which are modelled as regulators. This allows them to be controlled by drivers easier, accessed through the 'regulator' command and used by other drivers. Signed-off-by: Simon Glass --- drivers/power/regulator/Kconfig | 10 ++ drivers/power/regulator/Makefi

[U-Boot] [PATCH 37/55] exynos: video: Correct debug output

2015-07-02 Thread Simon Glass
We should not print a message from the driver when the display is set up. This is normal behaviour. Change this message to use debug(). Also remove the double newline on another debug message. Signed-off-by: Simon Glass --- drivers/video/exynos_dp.c | 2 +- drivers/video/exynos_dp_low

[U-Boot] [PATCH 45/55] exynos: Enable new features for exynos5 boards

2015-07-02 Thread Simon Glass
Enable PMICs, regulators and the like so that new drivers will be made available. Signed-off-by: Simon Glass --- board/samsung/smdk5420/smdk5420.c | 2 +- configs/arndale_defconfig | 2 ++ configs/odroid-xu3_defconfig| 5 + configs/peach-pi_defconfig | 17 +++

[U-Boot] [PATCH 30/55] dm: pmic: Display the regulator limits on error

2015-07-02 Thread Simon Glass
When a regulator command cannot honour the requested voltage, display the limits to try to be helpful. Signed-off-by: Simon Glass --- common/cmd_regulator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/cmd_regulator.c b/common/cmd_regulator.c index 6149d1e..2d857

[U-Boot] [PATCH 50/55] power: Remove old TPS65090 drivers

2015-07-02 Thread Simon Glass
Remove the old drivers (both the normal one and the cros_ec one) now that we have new drivers that use driver model. Signed-off-by: Simon Glass --- drivers/power/pmic/Makefile | 2 - drivers/power/pmic/pmic_tps65090.c| 310 -- drivers/power/pmic/p

[U-Boot] [PATCH 32/55] dm: video: Add support for the Parade PS8622/625 bridge

2015-07-02 Thread Simon Glass
This chip provides an eDP to LVDS bridge which is useful for SoCs that don't support LVDS displays (or it would waste scarce pins). The setup is included in the device tree. Signed-off-by: Simon Glass --- doc/device-tree-bindings/video/bridge/ps8622.txt | 33 ++ drivers/video/bridge/Kconfi

[U-Boot] [PATCH 31/55] dm: video: Add support for video bridges

2015-07-02 Thread Simon Glass
A video bridge typically converts video from one format to another, e.g. DisplayPort to LVDS. Add driver model support for these with a simple interface to control activation and backlight. The uclass supports GPIO control of power and reset lines. Signed-off-by: Simon Glass --- drivers/video/K

[U-Boot] [PATCH 17/55] exynos: Add debug UART support for Samsung S5P serial

2015-07-02 Thread Simon Glass
Add a debug UART implementation for this serial driver. It does not set up pinmux automatically - this must be done before calling debug_uart_init(). Signed-off-by: Simon Glass --- drivers/serial/Kconfig | 7 +++ drivers/serial/serial_s5p.c | 25 + 2 files chan

[U-Boot] [PATCH 53/55] dts: Drop unused compatible ID for the NXP video bridge

2015-07-02 Thread Simon Glass
This has moved to driver model so we can drop the fdtdec support. Signed-off-by: Simon Glass --- include/fdtdec.h | 1 - lib/fdtdec.c | 1 - 2 files changed, 2 deletions(-) diff --git a/include/fdtdec.h b/include/fdtdec.h index 0d85d6d..95fbede 100644 --- a/include/fdtdec.h +++ b/include/f

[U-Boot] [PATCH 54/55] exynos: video: Remove non-device-tree code

2015-07-02 Thread Simon Glass
We always use device tree on exynos, so remove the unused code. Signed-off-by: Simon Glass --- arch/arm/include/asm/arch-exynos/dp_info.h | 2 -- drivers/video/exynos_dp.c | 22 -- 2 files changed, 24 deletions(-) diff --git a/arch/arm/include/asm/arch-exy

[U-Boot] [PATCH 47/55] exynos: config: Move common options to the common headers and tidy up

2015-07-02 Thread Simon Glass
Many options are duplicated on the exynos5 boards. Move these to the common files. Also some options are not used so can be removed. Tidy this up to make the files easier to maintain. Signed-off-by: Simon Glass --- include/configs/arndale.h | 14 ++ include/configs/exynos

[U-Boot] [PATCH 40/55] dts: exynos: snow: Add memory layout description

2015-07-02 Thread Simon Glass
Add a description of the snow memory layer to assist flashing tools which want to be able to deal with any exynos image. Signed-off-by: Simon Glass --- arch/arm/dts/exynos5250-snow.dts | 53 1 file changed, 53 insertions(+) diff --git a/arch/arm/dts/exy

[U-Boot] [PATCH 35/55] exynos: Correct return value in exynos_mmc_init()

2015-07-02 Thread Simon Glass
This function should return 0 on success, not 1. Fix it. Signed-off-by: Simon Glass --- drivers/mmc/s5p_sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c index 8e1968a..522eab9 100644 --- a/drivers/mmc/s5p_sdhci.c +++ b

[U-Boot] [PATCH 15/55] cros_ec: Support the LDO access method used by spring

2015-07-02 Thread Simon Glass
Add a driver to support the special LDO access used by spring. This is a custom method in the cros_ec protocol - it does not use an I2C pass-through. There are two implementation choices: 1. Write a special LDO driver which can talk across the EC. Duplicate all the logic from TPS65090 for retryin

[U-Boot] [PATCH 51/55] cros_ec: Remove the old tunnel code

2015-07-02 Thread Simon Glass
This is not needed with driver mode. Remove it. Signed-off-by: Simon Glass --- drivers/misc/cros_ec.c | 268 + include/cros_ec.h | 14 --- 2 files changed, 1 insertion(+), 281 deletions(-) diff --git a/drivers/misc/cros_ec.c b/drivers/misc/

[U-Boot] [PATCH 43/55] exynos: dts: Drop the old TPS65090 I2C node

2015-07-02 Thread Simon Glass
While the AP can access the main PMIC on snow, it must coordinate with the EC which also wants access. Drop the old definition, which can in principle generate collision errors. We will use the new arbitration driver instead. Signed-off-by: Simon Glass --- arch/arm/dts/exynos5250-snow.dts | 16

[U-Boot] [PATCH 49/55] exynos: Drop old exynos5250-specific board code

2015-07-02 Thread Simon Glass
Now that most exynos5250 boards can use the generic exynos5 code, switch over to it and remove the old code. Signed-off-by: Simon Glass --- board/samsung/smdk5250/Makefile | 4 - board/samsung/smdk5250/exynos5-dt.c | 306 include/configs/exynos5-dt-com

[U-Boot] [PATCH 10/55] exynos: i2c: Tidy up the driver model code

2015-07-02 Thread Simon Glass
The existing driver model implementation uses the old non-driver-model code to operate, but has become impossibly tangled as a result. The actual algorithm is quite simple. Also the normal-speed and high-speed buses are quite different and it doesn't seem that useful to put them in the same driver

[U-Boot] [PATCH 18/55] exynos: Enable the debug UART in SPL

2015-07-02 Thread Simon Glass
As a debugging aid, allow UART3 to be used as a debug UART in SPL. This is a precursor to proper UART support, which requires a substantial refactor. Signed-off-by: Simon Glass --- arch/arm/cpu/armv7/exynos/lowlevel_init.c | 5 + drivers/serial/serial_s5p.c | 2 ++ 2 files cha

[U-Boot] [PATCH 34/55] exynos: spi: Convert the timeout to debug()

2015-07-02 Thread Simon Glass
Since the timeout is reported through normal channels, and is sometimes expected (e.g. if the bus is being probed for a non-existent device), don't display the message in the driver. In general, drivers should not write to the console as this limits their usefulness in error conditions. Signed-of

[U-Boot] [PATCH 07/55] exynos: i2c: Correct bug in pinmux selection

2015-07-02 Thread Simon Glass
When driver model is not used the current code does not correctly select the pinmux for the I2C bus. This bug was introduced by this commit: 8dfcbaa dm: i2c: s3c24x0: adjust to dm-i2c api Signed-off-by: Simon Glass --- drivers/i2c/s3c24x0_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[U-Boot] [PATCH 21/55] dm: power: Add a new driver for the TPS65090 PMIC

2015-07-02 Thread Simon Glass
The existing TPS65090 driver does not support driver model. Add a new one that does. This can be used as a base for a regulator driver also. It uses the standard device tree binding. Signed-off-by: Simon Glass --- drivers/power/pmic/Kconfig| 9 + drivers/power/pmic/Makefile | 1 + d

[U-Boot] [PATCH 25/55] dm: pmic: max77686: Correct a few nits

2015-07-02 Thread Simon Glass
The driver name should not have a space in it. Also the regulator names should match the case of the device tree. Fix these problems. Signed-off-by: Simon Glass --- drivers/power/pmic/max77686.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/pmic/max7768

[U-Boot] [PATCH 23/55] dm: power: Add support for the S5M8767 PMIC

2015-07-02 Thread Simon Glass
This PMIC is used with SoCs which need a combination of BUCKs and LDOs. The driver supports probing and basic register access. It supports the standard device tree binding and supports driver model. A regulator driver can be provided also. Signed-off-by: Simon Glass --- drivers/power/pmic/Kconf

[U-Boot] [PATCH 28/55] dm: pmic: max77686: Support all BUCK regulators

2015-07-02 Thread Simon Glass
Add support for all BUCK regulators, now that the correct register is accessed for each. Signed-off-by: Simon Glass --- drivers/power/regulator/max77686.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/power/regulator/max77686.c b/drivers/power/regulator

[U-Boot] [PATCH 11/55] exynos: dts: Sync up I2C ports with the kernel

2015-07-02 Thread Simon Glass
The kernel uses upper case for I2C unit addresses. Follow the same convention to reduce differences. Signed-off-by: Simon Glass --- arch/arm/dts/exynos5.dtsi | 34 - arch/arm/dts/exynos5250-arndale.dts | 16 arch/arm/dts/exynos5250-

[U-Boot] [PATCH 14/55] dm: cros_ec: Convert the I2C tunnel code to use driver model

2015-07-02 Thread Simon Glass
The Chrome OS EC supports tunnelling through to an I2C bus on the EC. This currently uses a copy of the I2C command code and a special 'crosec' sub-command. With driver model we can define an I2C bus which tunnels through to the EC, and use the normal 'i2c' command to access it. This simplifies th

[U-Boot] [PATCH 26/55] dm: pmic: Correct the pmic_reg_write() implementation

2015-07-02 Thread Simon Glass
This should write the register, not read it. Fix this bug. Signed-off-by: Simon Glass --- drivers/power/pmic/pmic-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/pmic/pmic-uclass.c b/drivers/power/pmic/pmic-uclass.c index d99cb9a..49709f3 100644 --- a/

[U-Boot] [PATCH 29/55] dm: power: Don't return an error when regulators are not autoset

2015-07-02 Thread Simon Glass
Not all regulators can be set up automatically. Adjust the code so that regulators_enable_boot_on() will return success when some are skipped. Only genuine errors are reported. Signed-off-by: Simon Glass --- drivers/power/regulator/regulator-uclass.c | 4 +++- 1 file changed, 3 insertions(+), 1

[U-Boot] [PATCH 12/55] exynos: dts: Add PMIC and regulator definitions

2015-07-02 Thread Simon Glass
Snow and smdk5250 use a max77686 PMIC. We have a driver for this, so add the relevant node to the device tree so it can be used. Signed-off-by: Simon Glass --- arch/arm/dts/exynos5250-smdk5250.dts | 150 ++ arch/arm/dts/exynos5250-snow.dts | 154 +

[U-Boot] [PATCH 20/55] dm: exynos: gpio: Support pull-up/down in GPIOs

2015-07-02 Thread Simon Glass
Add support for pull direction to the exynos GPIO driver. Signed-off-by: Simon Glass --- drivers/gpio/s5p_gpio.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gpio/s5p_gpio.c b/drivers/gpio/s5p_gpio.c index 49b1054..b516968 100644 --- a/drivers/gpio/s5p_gpio.c +++

[U-Boot] [PATCH 16/55] exynos: serial: Refactor init code for debug UART

2015-07-02 Thread Simon Glass
The debug UART code needs to perform the same init as the normal UART driver. In preparation for this, move the init code into two functions, one for the basic init and one for setting the baud rate. This will make adding debug UART support easier. Signed-off-by: Simon Glass --- drivers/serial/

[U-Boot] [PATCH 06/55] dm: i2c: Add support for multiplexed I2C buses

2015-07-02 Thread Simon Glass
Add a new I2C_MUX uclass. Devices in this class can multiplex between several I2C buses, selecting them one at a time for use by the system. The multiplexing mechanism is left to the driver to decide - it may be controlled by GPIOs, for example. The uclass supports only two methods: select() and d

[U-Boot] [PATCH 33/55] dm: video: Add support for the NXP PTN3460 bridge

2015-07-02 Thread Simon Glass
This chip provides an eDP to LVDS bridge which is useful for SoCs that don't support LVDS displays (or it would waste scarce pins). There is no setup required by this chip, other than to adjust power-down and reset pins, and those are managed by the uclass. Signed-off-by: Simon Glass --- driver

[U-Boot] [PATCH 03/55] dm: i2c: Correct comment nits in dm_i2c_reg_read/write()

2015-07-02 Thread Simon Glass
Add documentation for the @dev parameter. Signed-off-by: Simon Glass --- include/i2c.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/i2c.h b/include/i2c.h index a5498a3..e1ad8d8 100644 --- a/include/i2c.h +++ b/include/i2c.h @@ -129,6 +129,7 @@ int dm_i2c_probe(struct udevice *b

[U-Boot] [PATCH 05/55] dm: i2c: Add a function to transfer messages

2015-07-02 Thread Simon Glass
Sometimes it is useful to be able to transfer a raw I2C message. This happens when the chip address needs to be set manually, or when the data to be sent/received is in another buffer. Add a function to provide access to this. Signed-off-by: Simon Glass --- drivers/i2c/i2c-uclass.c | 11 ++

[U-Boot] [PATCH 08/55] i2c: Add a mux for GPIO-based I2C bus arbitration

2015-07-02 Thread Simon Glass
While I2C supports multi-master buses this is difficult to get right. This driver provides a scheme based on two 'claim' GPIOs, one driven by the AP and one driver by the EC. With these they can communicate and reliably share the bus. This scheme has minimal overhead and involves very little code.

[U-Boot] [PATCH 13/55] exynos: dts: Support EC tunnel and main TPS65090 regulator

2015-07-02 Thread Simon Glass
On pit and pi the TPS65090 regulator is connected only to the EC and we must use a tunnel to get to it. The existing U-Boot support relies on a special driver. Add a tunnel definition so that the new device-model TPS65090 driver can be used unmodified. Signed-off-by: Simon Glass --- arch/arm/dt

[U-Boot] [PATCH 01/55] dm: core: Support finding a device by phandle

2015-07-02 Thread Simon Glass
It is common for one node to reference another via a phandle. Add support for obtaining an attached device by this method. As an example, a node may have a 'power-supply' property which references a regulator, allowing the driver to turn on its power. Signed-off-by: Simon Glass --- drivers/core

[U-Boot] [PATCH 09/55] exynos: i2c: Fix code style with ReadWriteByte()

2015-07-02 Thread Simon Glass
This function should not use mixed case, and it is simpler to use clrbits_le32() when clearing bits. Fix it. Signed-off-by: Simon Glass --- drivers/i2c/s3c24x0_i2c.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/i2c/s3c24x0_i2c.c b/drivers/i2c/s3c24x

[U-Boot] [PATCH 04/55] dm: i2c: Move definitions to the top of the header file

2015-07-02 Thread Simon Glass
Move the flags and struct definitions higher in the file so that we can reference them with functions declared in the driver model section. Signed-off-by: Simon Glass --- include/i2c.h | 86 +-- 1 file changed, 43 insertions(+), 43 deletio

[U-Boot] [PATCH 02/55] dm: i2c: Add a message debug function

2015-07-02 Thread Simon Glass
Add a way to dump the contents of an I2C message for debugging purposes. Signed-off-by: Simon Glass --- drivers/i2c/i2c-uclass.c | 16 include/i2c.h| 10 ++ 2 files changed, 26 insertions(+) diff --git a/drivers/i2c/i2c-uclass.c b/drivers/i2c/i2c-uclass.c i

Re: [U-Boot] Pull request: u-boot-arm/master

2015-07-02 Thread Tom Rini
On Thu, Jul 02, 2015 at 11:27:20PM +0200, Albert ARIBAUD wrote: > Hello Tom, > > The following changes since commit 9c6b05cb724e18d1db3f9e1a75b2272572f06fbd: > > Prepare v2015.07-rc3 (2015-06-29 17:22:01 -0400) > > are available in the git repository at: > > git://git.denx.de/u-boot-arm ma

Re: [U-Boot] [PATCH 7/8] mtd/nand/ubi: assortment of alignment fixes

2015-07-02 Thread Scott Wood
On Thu, 2015-07-02 at 07:53 +0200, Marek Vasut wrote: > On Thursday, July 02, 2015 at 01:04:52 AM, Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > > > Various U-Boot adoptions/extensions to MTD/NAND/UBI did not take buffer > > alignment into account which led to failures of the following for

[U-Boot] Pull request: u-boot-arm/master

2015-07-02 Thread Albert ARIBAUD
Hello Tom, The following changes since commit 9c6b05cb724e18d1db3f9e1a75b2272572f06fbd: Prepare v2015.07-rc3 (2015-06-29 17:22:01 -0400) are available in the git repository at: git://git.denx.de/u-boot-arm master for you to fetch changes up to d6f9f69632754f03d064cc9b302c9e1552249258: a

Re: [U-Boot] [PATCH] arm: dcc: Add uart dcc support for armv8

2015-07-02 Thread Albert ARIBAUD
Hello Michal, On Fri, 29 May 2015 09:54:37 +0200, Michal Simek wrote: > From: Siva Durga Prasad Paladugu > > Added UART DCC support for armv8 > > Signed-off-by: Siva Durga Prasad Paladugu > Signed-off-by: Michal Simek > --- > > Not sure if CONFIG_CPU_ARMV8 is the right symbol but we are fo

Re: [U-Boot] [PATCH] ARM: cache-cp15: Make sure EAE is not enabled

2015-07-02 Thread Albert ARIBAUD
Hello Tomeu, On Fri, 19 Jun 2015 17:16:21 +0200, Tomeu Vizoso wrote: > On 18 June 2015 at 17:13, Simon Glass wrote: > > Hi, > > > > On 18 June 2015 at 01:19, Tomeu Vizoso wrote: > >> > >> Hello, > >> > >> any news on this one? > >> > >> Thanks, > >> > >> Tomeu > >> > >> On 30 April 2015 at 09:2

Re: [U-Boot] [PATCH 3/6] armv8/mmu: Clean up TCR programming

2015-07-02 Thread Albert ARIBAUD
Hello Marc, On Fri, 20 Mar 2015 18:13:26 +, Marc Zyngier wrote: > On 20/03/15 11:47, Thierry Reding wrote: > > From: Thierry Reding > > > > Use the inner shareable attribute for memory, which makes more sense > > considering that this code is called when caches are being enabled. > > > > W

Re: [U-Boot] [PATCH] iMX: adding parsing to hab_status command

2015-07-02 Thread Michael Trimarchi
Hi On Jul 2, 2015 10:47 PM, wrote: > > From: Ulises Cardenas > > hab_status command returns a memory dump of the hab event log. But the > raw data is not human-readable. Parsing such data into readable event > will help to minimize debbuging time. > > Signed-off-by: Ulises Cardenas > --- > Ple

[U-Boot] [PATCH] iMX: adding parsing to hab_status command

2015-07-02 Thread Ulises.Cardenas
From: Ulises Cardenas hab_status command returns a memory dump of the hab event log. But the raw data is not human-readable. Parsing such data into readable event will help to minimize debbuging time. Signed-off-by: Ulises Cardenas --- arch/arm/cpu/armv7/mx6/hab.c| 228 +++

Re: [U-Boot] [PATCH v2 0/7] dm: x86: PCI/SPI fixes for minnowboard MAX

2015-07-02 Thread Andrew Bradford
Hi Simon, On 06/29 09:07, Andrew Bradford wrote: > On 06/25 11:55, Simon Glass wrote: > > The SPI flash starts off protected on baytrail. The code which is supposed > > to > > fix this is broken. This series fixes that, enables the SPI environment and > > adds documentation. > > > > Also when dr

Re: [U-Boot] [PATCH v4 5/8] omap-common: SYS_BOOT-based fallback boot device selection for peripheral boot

2015-07-02 Thread Paul Kocialkowski
Le jeudi 02 juillet 2015 à 15:10 -0400, Tom Rini a écrit : > On Thu, Jul 02, 2015 at 12:19:41AM +0200, Paul Kocialkowski wrote: > > OMAP devices might boot from peripheral devices, such as UART or USB. > > When that happens, the U-Boot SPL tries to boot the next stage (complete > > U-Boot) > > fro

Re: [U-Boot] [PATCH 5/7] armv8: cavium: Add ThunderX 88xx board definition

2015-07-02 Thread Albert ARIBAUD
Hello Sergey, On Thu, 16 Apr 2015 16:15:09 -0700, Sergey Temerkhanov wrote: > This commit adds basic Cavium ThunderX 88xx board definitions and support. > > Signed-off-by: Sergey Temerkhanov > Signed-off-by: Radha Mohan Chintakuntla > --- > arch/arm/Kconfig | 4 + > board/ca

Re: [U-Boot] [PATCH 4/7] arm: uart: Add ability to use pre-initialized UARTs

2015-07-02 Thread Albert ARIBAUD
Hello Sergey, On Thu, 16 Apr 2015 16:15:08 -0700, Sergey Temerkhanov wrote: > On some systems, UART initialization is performed before running U-Boot. > This commit allows to skip UART re-initializaion on those systems > > Signed-off-by: Sergey Temerkhanov > Signed-off-by: Radha Mohan Chintakun

Re: [U-Boot] [PATCH 1/7] armv8:New MMU setup code allowing to set up 2-level page tables

2015-07-02 Thread Albert ARIBAUD
Hello Sergey, On Thu, 16 Apr 2015 16:15:05 -0700, Sergey Temerkhanov wrote: > This patch adds code which sets up 2-level page tables on ARM64 thus > extending available VA space. CPUs implementing 64k translation > granule are able to use direct PA-VA mapping of the whole 48 bit > address space.

Re: [U-Boot] [PATCH v4 5/8] omap-common: SYS_BOOT-based fallback boot device selection for peripheral boot

2015-07-02 Thread Tom Rini
On Thu, Jul 02, 2015 at 12:19:41AM +0200, Paul Kocialkowski wrote: > OMAP devices might boot from peripheral devices, such as UART or USB. > When that happens, the U-Boot SPL tries to boot the next stage (complete > U-Boot) > from that peripheral device, but in most cases, this is not a valid boo

Re: [U-Boot] [PATCH 11/11] imx: mx6ul_14x14_evk add basic board support

2015-07-02 Thread Marek Vasut
On Thursday, July 02, 2015 at 01:03:08 PM, Peng Fan wrote: > Add USDHC, I2C, UART, 74LV, USB, QSPI support. > > Boot Log: > U-Boot 2015.07-rc2-00085-gb5dc629 (Jul 02 2015 - 18:47:15 +0800) > > CPU: Freescale i.MX6UL rev1.0 792 MHz (running at 396 MHz) > Reset cause: POR > Board: MX6UL 14x14 EVK

Re: [U-Boot] [PATCH 2/8] net: asix: fix operation without eeprom

2015-07-02 Thread Marek Vasut
On Thursday, July 02, 2015 at 08:12:32 AM, Marcel Ziswiler wrote: > On 2 July 2015 07:50:59 CEST, Marek Vasut wrote: > >On Thursday, July 02, 2015 at 01:04:47 AM, Marcel Ziswiler wrote: > > > >Hi! Hi! > >[...] > > > >> @@ -64,8 +67,14 @@ > >> > >> AX_MEDIUM_AC | AX_MEDIUM_RE) > >> > >> /

Re: [U-Boot] [PATCH 03/11] imx: mx6ul: Update imx registers head file

2015-07-02 Thread Marek Vasut
On Thursday, July 02, 2015 at 01:03:00 PM, Peng Fan wrote: > Update imx register base address for i.MX6UL > > Signed-off-by: Peng Fan > Signed-off-by: Ye.Li > --- > arch/arm/include/asm/arch-mx6/imx-regs.h | 60 > ++-- 1 file changed, 41 insertions(+), 19 > deletions(

Re: [U-Boot] [PATCH 07/11] imx: mx6ul update soc related settings

2015-07-02 Thread Marek Vasut
On Thursday, July 02, 2015 at 01:03:04 PM, Peng Fan wrote: > Add MX6UL in Kconfig, default select SYS_L2CACHE_OFF. Why ? > update WDOG settings. I'd put this into separate patch, since L2 cache and watchdog are completely unrelated (and so is L2 cache and clock). > No need to gate/ungate all PF

  1   2   >