[U-Boot] [PATCH 0/3] Extend xhci-dwc3

2017-05-19 Thread patrice.chotard
From: Patrice Chotard Convert xhci-dwc3 to Driver Model Add dual role mode selection from DT Add generic PHY support Patrice Chotard (3): usb: host: xhci-dwc3: Convert driver to DM usb: host: xhci-dwc3: Add dual role mode support from DT usb: host: xhci-dwc3: Add generic PHY support driv

[U-Boot] [PATCH 1/3] usb: host: xhci-dwc3: Convert driver to DM

2017-05-19 Thread patrice.chotard
From: Patrice Chotard Add Driver Model support with use of generic DT compatible string "snps,dwc3" Signed-off-by: Patrice Chotard --- drivers/usb/host/xhci-dwc3.c | 71 1 file changed, 71 insertions(+) diff --git a/drivers/usb/host/xhci-dwc3.c b/d

[U-Boot] [PATCH 2/3] usb: host: xhci-dwc3: Add dual role mode support from DT

2017-05-19 Thread patrice.chotard
From: Patrice Chotard DWC3 dual role mode is selected using DT "dr_mode" property. If not found, DWC3 controller is configured in HOST mode by default Signed-off-by: Patrice Chotard --- drivers/usb/host/xhci-dwc3.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/host/x

[U-Boot] [PATCH 3/3] usb: host: xhci-dwc3: Add generic PHY support

2017-05-19 Thread patrice.chotard
From: Patrice Chotard Add support of generic PHY framework support Signed-off-by: Patrice Chotard --- drivers/usb/host/xhci-dwc3.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/usb/host/xhci-dwc3.c b/drivers/usb/host/xhci-dwc3.c index ea85834..70d39

Re: [U-Boot] [PATCH] board_f: skip timer_init() on Coldfire archs

2017-05-19 Thread Angelo Dureghello
Hi Simon. On 17/05/2017 03:38, Simon Glass wrote: Hi Angelo, On 10 May 2017 at 16:36, Angelo Dureghello wrote: Hi Simon, On 11/05/2017 00:03, Simon Glass wrote: Hi Angelo, On 10 May 2017 at 15:58, Angelo Dureghello wrote: Coldfire arch is not happy with timer_init since interrupt hand

Re: [U-Boot] [PATCH v2 2/2] test: py: hush: Add echo dependency

2017-05-19 Thread Michal Simek
On 18.5.2017 18:27, Stephen Warren wrote: > On 05/18/2017 01:23 AM, Michal Simek wrote: >> Some tests depends on echo command to be present. > >> diff --git a/test/py/tests/test_hush_if_test.py >> b/test/py/tests/test_hush_if_test.py > >> +@pytest.mark.buildconfigspec('cmd_echo') >> @pytest.mar

Re: [U-Boot] [PATCH 1/3] usb: host: xhci-dwc3: Convert driver to DM

2017-05-19 Thread Marek Vasut
On 05/19/2017 09:15 AM, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Add Driver Model support with use of generic DT > compatible string "snps,dwc3" > > Signed-off-by: Patrice Chotard > --- > drivers/usb/host/xhci-dwc3.c | 71 > > 1 fi

Re: [U-Boot] [PATCH 3/3] usb: host: xhci-dwc3: Add generic PHY support

2017-05-19 Thread Marek Vasut
On 05/19/2017 09:15 AM, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Add support of generic PHY framework support > > Signed-off-by: Patrice Chotard > --- > drivers/usb/host/xhci-dwc3.c | 29 + > 1 file changed, 29 insertions(+) > > diff --git a/driver

Re: [U-Boot] litesom.c: Board stuff in SOC ?

2017-05-19 Thread Marcin Niestroj
Hi Stefano, I've added Tom to the discussion. So if we make some changes to SOM code position in u-boot tree, let's make sure we do it for all architectures the same (at least I mean chilisom code which is in arch/arm/mach-omap2/am33xx/). On 18.05.2017 17:20, Stefano Babic wrote: Hi Marcin, On

Re: [U-Boot] litesom.c: Board stuff in SOC ?

2017-05-19 Thread Stefano Babic
Hi Marcin, On 19/05/2017 12:41, Marcin Niestroj wrote: > Hi Stefano, > > I've added Tom to the discussion. Of course ! > So if we make some changes to SOM > code position in u-boot tree, let's make sure we do it for all > architectures the same We have already not done in this way. We have al

[U-Boot] [PATCH 1/3] nds32: Support AG101P serial DM.

2017-05-19 Thread Andes
From: rick Support AG101P serial device tree flow. Signed-off-by: rick --- arch/Kconfig|1 + arch/nds32/cpu/n1213/start.S| 10 +--- arch/nds32/dts/Makefile | 14 +++ arch/nds32/dts/ag101p.dts | 49 +

[U-Boot] [PATCH 2/3] nds32: Support AG101P timer DM.

2017-05-19 Thread Andes
From: rick Support AG101P timer device tree flow. Signed-off-by: rick --- arch/nds32/cpu/n1213/ag101/timer.c |3 +- arch/nds32/dts/ag101p.dts |8 +++ configs/adp-ag101p_defconfig |2 + drivers/timer/Kconfig |6 ++ drivers/timer/Makefile |

[U-Boot] [PATCH 3/3] nds32: Support AE3XX platform.

2017-05-19 Thread Andes
From: rick Support Andestech AE3xx platform: serial, timer device tree flow. Signed-off-by: rick --- arch/nds32/Kconfig |4 + arch/nds32/cpu/n1213/Makefile |1 + arch/nds32/cpu/n1213/ae3xx/Makefile| 18 ++ arch/nds32/cpu/n1213/ae3xx/cpu.c

Re: [U-Boot] [PATCH v1 0/4] Add FIT support for falcon boot

2017-05-19 Thread Andre Przywara
Hi York, On 16/05/17 16:54, york sun wrote: > On 05/15/2017 10:42 PM, Lokesh Vutla wrote: >> + Andre >> >> >> On Monday 15 May 2017 09:31 PM, York Sun wrote: >>> This patch set adds FIT support for falcon boot. GZIP is enabled >>> to supported compressed image. >> >> Did you get a chance to look a

[U-Boot] [PATCH] regulator: pwm: Fix handling of missing init voltage

2017-05-19 Thread Mark Kettenis
Since priv->init_voltage is an unsigned integer it can never be negative. So the current code fails to detect a missing 'regulator-init-microvolt' property and instead misconfigures the PWM device. Fix this by making the relevant members of 'struct pwm_regulator_info' signed integers. Signed-off

Re: [U-Boot] [PATCH v3 5/7] usb: host: ohci-generic: add CLOCK support

2017-05-19 Thread Patrice CHOTARD
Hi Marek On 05/18/2017 11:29 AM, Marek Vasut wrote: > On 05/17/2017 03:34 PM, patrice.chot...@st.com wrote: >> From: Patrice Chotard >> >> use list to save reference to enabled clocks in order to >> disabled them in case of error during probe() or >> during driver removal. >> >> Signed-off-by: Pa

Re: [U-Boot] [PATCH 1/3] usb: host: xhci-dwc3: Convert driver to DM

2017-05-19 Thread Patrice CHOTARD
Hi Marek On 05/19/2017 12:06 PM, Marek Vasut wrote: > On 05/19/2017 09:15 AM, patrice.chot...@st.com wrote: >> From: Patrice Chotard >> >> Add Driver Model support with use of generic DT >> compatible string "snps,dwc3" >> >> Signed-off-by: Patrice Chotard >> --- >> drivers/usb/host/xhci-dwc3.

Re: [U-Boot] [PATCH v3 5/7] usb: host: ohci-generic: add CLOCK support

2017-05-19 Thread Marek Vasut
On 05/19/2017 01:27 PM, Patrice CHOTARD wrote: > Hi Marek > > On 05/18/2017 11:29 AM, Marek Vasut wrote: >> On 05/17/2017 03:34 PM, patrice.chot...@st.com wrote: >>> From: Patrice Chotard >>> >>> use list to save reference to enabled clocks in order to >>> disabled them in case of error during pr

Re: [U-Boot] [PATCH 3/3] usb: host: xhci-dwc3: Add generic PHY support

2017-05-19 Thread Patrice CHOTARD
Hi Marek On 05/19/2017 12:07 PM, Marek Vasut wrote: > On 05/19/2017 09:15 AM, patrice.chot...@st.com wrote: >> From: Patrice Chotard >> >> Add support of generic PHY framework support >> >> Signed-off-by: Patrice Chotard >> --- >> drivers/usb/host/xhci-dwc3.c | 29 +

Re: [U-Boot] [PATCH v3 5/7] usb: host: ohci-generic: add CLOCK support

2017-05-19 Thread Patrice CHOTARD
On 05/19/2017 01:51 PM, Marek Vasut wrote: > On 05/19/2017 01:27 PM, Patrice CHOTARD wrote: >> Hi Marek >> >> On 05/18/2017 11:29 AM, Marek Vasut wrote: >>> On 05/17/2017 03:34 PM, patrice.chot...@st.com wrote: From: Patrice Chotard use list to save reference to enabled clocks in or

[U-Boot] [PATCH] mmc: sdhci-cadence: set timing mode register depending on frequency

2017-05-19 Thread Masahiro Yamada
The MMC framework in U-Boot does not support a systematic API for timing switch like mmc_set_timing() in Linux. U-Boot just provides a hook to change the clock frequency via mmc_set_clock(). It is up to drivers if additional register settings are needed. This driver needs to set a correct timing

Re: [U-Boot] litesom.c: Board stuff in SOC ?

2017-05-19 Thread Tom Rini
On Fri, May 19, 2017 at 12:51:18PM +0200, Stefano Babic wrote: > Hi Marcin, > > On 19/05/2017 12:41, Marcin Niestroj wrote: > > Hi Stefano, > > > > I've added Tom to the discussion. > > Of course ! > > > So if we make some changes to SOM > > code position in u-boot tree, let's make sure we do i

[U-Boot] [PATCH v2 1/2] drivers: net: fsl-mc: Link MC boot to PHY_RESET_R

2017-05-19 Thread Bogdan Purcareata
DPAA2 platforms boot the Management Complex based on the u-boot env variable "mcinitcmd". Instead of doing this step on each platform individually, define a single mc_env_boot function in the MC driver, since it's semantically tied to it. Call the function in a per-board reset_phy hook, as it gets

[U-Boot] [PATCH v2 2/2] drivers: net: fsl-mc: Include MAC addr fixup to DPL

2017-05-19 Thread Bogdan Purcareata
Previous to MC v10.x, port mac address was specified via DPL. Since newer MC versions are compatible with old style DPLs, make the u-boot env mac addresses visible there. This applies only to DPLs that have an older version. DPLs use 32 bit values for specifying MAC addresses. U-boot environment v

Re: [U-Boot] litesom.c: Board stuff in SOC ?

2017-05-19 Thread Stefano Babic
Hi Tom, On 19/05/2017 15:39, Tom Rini wrote: > On Fri, May 19, 2017 at 12:51:18PM +0200, Stefano Babic wrote: >> Hi Marcin, >> >> On 19/05/2017 12:41, Marcin Niestroj wrote: >>> Hi Stefano, >>> >>> I've added Tom to the discussion. >> >> Of course ! >> >>> So if we make some changes to SOM >>> cod

[U-Boot] [PATCH 01/26] dm: video: Sync display on backspace

2017-05-19 Thread Simon Glass
We should sync the display (e.g. flush cache) when backspace is pressed to ensure that the character is erased correctly. Signed-off-by: Simon Glass --- drivers/video/vidconsole-uclass.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidco

[U-Boot] [PATCH 03/26] video: simple-panel: Add a little more debugging

2017-05-19 Thread Simon Glass
Add some debugging to show when the backlight is enabled. Signed-off-by: Simon Glass --- drivers/video/simple_panel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/simple_panel.c b/drivers/video/simple_panel.c index baa95f6a12..c0ce199c6a 100644 --- a/drivers/video/simple_

[U-Boot] [PATCH 02/26] dm: video: Update pwm_backlight to support livetree

2017-05-19 Thread Simon Glass
Update this driver to support a live device tree. Signed-off-by: Simon Glass --- drivers/video/pwm_backlight.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/drivers/video/pwm_backlight.c b/drivers/video/pwm_backlight.c index 3697f4905c..359f8fa186

[U-Boot] [PATCH 08/26] dm: tegra: Convert clock_decode_periph_id() to support livetree

2017-05-19 Thread Simon Glass
Adjust this to take a device as a parameter instead of a node. Signed-off-by: Simon Glass --- arch/arm/include/asm/arch-tegra/clock.h | 2 +- arch/arm/mach-tegra/clock.c | 5 ++--- drivers/spi/tegra114_spi.c | 2 +- drivers/spi/tegra20_sflash.c| 2 +- driver

[U-Boot] [PATCH 10/26] tegra: dts: Move stdout-path to /chosen

2017-05-19 Thread Simon Glass
This property should be in the /chosen node, not /aliases. Signed-off-by: Simon Glass --- arch/arm/dts/tegra124-nyan-big.dts | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/tegra124-nyan-big.dts b/arch/arm/dts/tegra124-nyan-big.dts index 62f89d0f1a..f1c9705

[U-Boot] [PATCH 12/26] dm: tegra: gpio: Convert to support livetree

2017-05-19 Thread Simon Glass
Update the GPIO driver to support a live device tree. Signed-off-by: Simon Glass --- drivers/gpio/tegra_gpio.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/tegra_gpio.c b/drivers/gpio/tegra_gpio.c index 687cd74fee..4965583158 100644 --- a/drivers/g

[U-Boot] [PATCH 13/26] dm: tegra: usb: Convert to livetree

2017-05-19 Thread Simon Glass
Update the Tegra EHCI driver to support a live device tree. Signed-off-by: Simon Glass --- drivers/usb/host/ehci-tegra.c | 34 ++ 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c index 8

[U-Boot] [PATCH 23/26] dm: serial: Add livetree support

2017-05-19 Thread Simon Glass
Add support for a live device tree to the core serial uclass. Signed-off-by: Simon Glass --- drivers/serial/serial-uclass.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/serial/serial-uclass.c b/drivers/serial/serial-uclass.c index ede5c2c0be..9

[U-Boot] [PATCH 19/26] power: Add a GPIO driver for the as3722 PMIC

2017-05-19 Thread Simon Glass
This pmic includes GPIOs which should have their own driver. Add a driver to support these. Signed-off-by: Simon Glass --- drivers/power/pmic/as3722_gpio.c | 120 +++ include/power/as3722.h | 5 ++ 2 files changed, 125 insertions(+) create mode 1

[U-Boot] [PATCH 26/26] dm: tegra: nyan-big: Move to livetree

2017-05-19 Thread Simon Glass
Change this board to use a live device tree after relocation. Signed-off-by: Simon Glass --- configs/nyan-big_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/nyan-big_defconfig b/configs/nyan-big_defconfig index a152ff6915..82be85a834 100644 --- a/configs/nyan-big_defconfi

[U-Boot] [PATCH 15/26] dm: tegra: i2c: Convert to livetree

2017-05-19 Thread Simon Glass
Update the tegra i2c driver to support a live device tree. Signed-off-by: Simon Glass --- drivers/i2c/tegra_i2c.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/tegra_i2c.c b/drivers/i2c/tegra_i2c.c index 055f48153a..4163d798d5 100644 --- a/drivers/i2c/tegr

[U-Boot] [PATCH 24/26] tegra: Show a debug message if the LCD PMIC fails to start

2017-05-19 Thread Simon Glass
This error condition should have a debug() message. Add it. Signed-off-by: Simon Glass --- arch/arm/mach-tegra/board2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-tegra/board2.c b/arch/arm/mach-tegra/board2.c index 0291c7fb33..e0a39e1a32 100644 --- a/ar

[U-Boot] [PATCH 00/26] dm: tegra: Move nyan-big to livetree

2017-05-19 Thread Simon Glass
This moves an entire board to use a live device tree as an example of the impact. Nyan-big was chosen because I can easily and boot U-Boot without any media swapping, etc. Total code size impact on this board is approximately 9KB on U-Boot and 64 bytes on SPL: 27: dm: tegra: nyan-big: Move to li

[U-Boot] [PATCH 09/26] dm: video: tegra124: Convert to livetree

2017-05-19 Thread Simon Glass
Update these drivers to support a live device tree. Signed-off-by: Simon Glass --- drivers/video/tegra124/display.c | 8 +++- drivers/video/tegra124/dp.c | 3 +-- drivers/video/tegra124/sor.c | 25 +++-- 3 files changed, 11 insertions(+), 25 deletions(-) diff

[U-Boot] [PATCH 25/26] fdtdec: Drop old compatible values

2017-05-19 Thread Simon Glass
These are not needed now since the drivers now use driver model. Drop them. Signed-off-by: Simon Glass --- include/fdtdec.h | 6 -- lib/fdtdec.c | 6 -- 2 files changed, 12 deletions(-) diff --git a/include/fdtdec.h b/include/fdtdec.h index eda2ffaf66..4a0947c626 100644 --- a/inclu

[U-Boot] [PATCH 04/26] tegra: Fix up include file ordering

2017-05-19 Thread Simon Glass
Update these two files so include files in the right order. Signed-off-by: Simon Glass --- arch/arm/mach-tegra/board2.c | 22 -- arch/arm/mach-tegra/clock.c | 4 ++-- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/arch/arm/mach-tegra/board2.c b/arch/arm/m

[U-Boot] [PATCH 16/26] dm: tegra: pwm: Convert to livetree

2017-05-19 Thread Simon Glass
Update the tegra pwm driver to support a live device tree. Signed-off-by: Simon Glass --- drivers/pwm/tegra_pwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/tegra_pwm.c b/drivers/pwm/tegra_pwm.c index d93ac28c31..b8acc1583f 100644 --- a/drivers/pwm/tegra_pwm

[U-Boot] [PATCH 05/26] tegra: spl: Enable debug UART

2017-05-19 Thread Simon Glass
Enable the debug UART in SPL to allow early serial output even if the standard UART does not work (e.g. due to driver model problem). Signed-off-by: Simon Glass --- arch/arm/mach-tegra/spl.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-tegra/spl.c b/arch/arm/mach-tegra/

[U-Boot] [PATCH 06/26] tegra: nyan: Add a PMC syscon driver

2017-05-19 Thread Simon Glass
The PMC can be modelled as a syscon peripheral. Add a driver for this so that it can be accessed by drivers when needed. Signed-off-by: Simon Glass --- arch/arm/include/asm/arch-tegra/tegra.h | 5 + arch/arm/mach-tegra/tegra124/Makefile | 1 + arch/arm/mach-tegra/tegra124/pmc.c | 1

[U-Boot] [PATCH 11/26] tegra: Don't set up the UART clocks again in U-Boot

2017-05-19 Thread Simon Glass
The UART clocks are already set up in SPL so we don't need to do it again in U-Boot. This seems to cause a hang on Nyan. Signed-off-by: Simon Glass --- arch/arm/mach-tegra/board.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-tegra/board.c b/arch/arm/mach-tegra/board.c ind

[U-Boot] [PATCH 14/26] dm: tegra: spi: Convert to livetree

2017-05-19 Thread Simon Glass
Update the tegra114 spi driver to support a live device tree. Signed-off-by: Simon Glass --- drivers/spi/tegra114_spi.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/spi/tegra114_spi.c b/drivers/spi/tegra114_spi.c index 86b1019585..013bc82380 100644 -

[U-Boot] [PATCH 22/26] dm: serial: Separate out the core serial-device finding code

2017-05-19 Thread Simon Glass
This function is quite long. Move the core code into a separate function in preparation for adding livetree support. Signed-off-by: Simon Glass --- drivers/serial/serial-uclass.c | 84 ++ 1 file changed, 44 insertions(+), 40 deletions(-) diff --git a/dri

[U-Boot] [PATCH 20/26] dm: power: Convert as3722 to driver model

2017-05-19 Thread Simon Glass
Convert this PMIC driver to driver model and fix up other users. The regulator and GPIO functions are now handled by separate drivers. Note that this currently breaks apalis-tk1, jetson-tk1 and cei-tk1-som. I have the middle one so will tidy that up in the next version, at least. Signed-off-by: S

[U-Boot] [PATCH 07/26] dm: tegra: Convert USB setup to livetree

2017-05-19 Thread Simon Glass
Adjust this code to support a live device tree. This should be implemented as a PHY driver but that is left as an exercise for the maintainer. Signed-off-by: Simon Glass --- arch/arm/include/asm/arch-tegra/xusb-padctl.h | 2 +- arch/arm/mach-tegra/board2.c | 2 +- arch/arm/ma

[U-Boot] [PATCH 17/26] dm: tegra: mmc: Convert to livetree

2017-05-19 Thread Simon Glass
Update the tegra mmc driver to support a live device tree. Signed-off-by: Simon Glass --- drivers/mmc/tegra_mmc.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/mmc/tegra_mmc.c b/drivers/mmc/tegra_mmc.c index 338e42b528..9f7e7195f1 100644 --- a/dr

[U-Boot] [PATCH 21/26] dm: serial: ns16550: Convert to livetree

2017-05-19 Thread Simon Glass
Update this driver to support a live device tree. Signed-off-by: Simon Glass --- drivers/serial/ns16550.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index 52c52c1ad1..330c5e186a 100644 --- a/drivers/se

[U-Boot] [PATCH 18/26] power: Add a regulator driver for the as3722 PMIC

2017-05-19 Thread Simon Glass
This pmic includes regulators which should have their own driver. Add a driver to support these. Signed-off-by: Simon Glass --- drivers/power/regulator/Kconfig| 9 ++ drivers/power/regulator/Makefile | 1 + drivers/power/regulator/as3722_regulator.c | 149 +

Re: [U-Boot] [PATCH] rockchip: doc: update latest info to document

2017-05-19 Thread Heiko Stuebner
Am Dienstag, 16. Mai 2017, 09:19:57 CEST schrieb Kever Yang: > > On 05/16/2017 02:51 AM, Heiko Stübner wrote: > > Hi Kever, > > > > Am Montag, 15. Mai 2017, 21:18:00 CEST schrieb Kever Yang: > >> - Add some rk3399 and rk3328 boards; > >> - use rkdeveloptool instead of rkflashtool; > >> - use opens

Re: [U-Boot] [PATCH 01/26] dm: video: Sync display on backspace

2017-05-19 Thread Anatolij Gustschin
On Fri, 19 May 2017 08:30:44 -0600 Simon Glass s...@chromium.org wrote: > We should sync the display (e.g. flush cache) when backspace is pressed > to ensure that the character is erased correctly. > > Signed-off-by: Simon Glass > --- > > drivers/video/vidconsole-uclass.c | 1 + > 1 file chang

Re: [U-Boot] [PATCH 02/26] dm: video: Update pwm_backlight to support livetree

2017-05-19 Thread Anatolij Gustschin
On Fri, 19 May 2017 08:30:45 -0600 Simon Glass s...@chromium.org wrote: > Update this driver to support a live device tree. > > Signed-off-by: Simon Glass > --- > > drivers/video/pwm_backlight.c | 23 +-- > 1 file changed, 13 insertions(+), 10 deletions(-) Acked-by: Anatol

Re: [U-Boot] [PATCH 03/26] video: simple-panel: Add a little more debugging

2017-05-19 Thread Anatolij Gustschin
On Fri, 19 May 2017 08:30:46 -0600 Simon Glass s...@chromium.org wrote: > Add some debugging to show when the backlight is enabled. > > Signed-off-by: Simon Glass > --- > > drivers/video/simple_panel.c | 2 ++ > 1 file changed, 2 insertions(+) Acked-by: Anatolij Gustschin ___

[U-Boot] [PATCH 0/8] sf: improve support of (Q)SPI flash memories

2017-05-19 Thread Cyrille Pitchen
Hi all, this series of patches has been tested on u-boot-2017.03-at91 then ported to the 'master' branch of the u-boot-spi.git tree. Tests were passed with a sama5d2 xplained board which embeds both SPI and QSPI controllers. The following tests have been passed: - QSPI0 + Macronix MX25L25673G:

[U-Boot] [PATCH 1/8] spi: add support of SPI flash commands

2017-05-19 Thread Cyrille Pitchen
This patch introduces 'struct spi_flash_command' and functions spi_is_flash_command_supported() / spi_exec_flash_command(). The 'struct spi_flash_command' describes all the relevant parameters to execute any SPI flash command: - the instruction op code - the number of bytes used to send the addres

[U-Boot] [PATCH 2/8] sf: describe all SPI flash commands with 'struct spi_flash_command'

2017-05-19 Thread Cyrille Pitchen
Now that the SPI sub-system API has been extended with 'struct spi_flash_command' and spi_is_flash_command_supported() / spi_exec_flash_command() functions, we update the SPI FLASH sub-system to use this new API. Signed-off-by: Cyrille Pitchen --- drivers/mtd/spi/sf.c | 78 +++

[U-Boot] [PATCH 6/8] sf: add new option to support SPI flash above 16MiB

2017-05-19 Thread Cyrille Pitchen
The patch provides an alternative method to support SPI flash size greater than 16MiB (128Mib). Indeed using the Base Address Register (BAR) is stateful. Hence, once the BAR has been modified, if a spurious CPU reset occurs with no reset/power off at the SPI flash side, early boot loarders may try

[U-Boot] [PATCH 5/8] sf: add 'addr_len' member to 'struct spi_flash'

2017-05-19 Thread Cyrille Pitchen
This is a transitional patch to prepare the SPI FLASH sub-system to support the 4-byte address instruction set later. For now, flash->addr_len is always set to SPI_FLASH_3B_ADDR_LEN. Signed-off-by: Cyrille Pitchen --- drivers/mtd/spi/spi_flash.c | 13 - include/spi_flash.h |

[U-Boot] [PATCH 7/8] sf: add support to Microchip SST26 QSPI memories

2017-05-19 Thread Cyrille Pitchen
This patch adds support to Microchip SST26 QSPI memories. Erase blocks are protected at power up and must be unlocked first before being erased then programmed. Also, the erase block sizes are not uniform. The memory layout is uniform only for the 4K sector blocks. The 64K Block Erase (D8h) op co

Re: [U-Boot] [PATCH 09/26] dm: video: tegra124: Convert to livetree

2017-05-19 Thread Anatolij Gustschin
On Fri, 19 May 2017 08:30:52 -0600 Simon Glass s...@chromium.org wrote: > Update these drivers to support a live device tree. > > Signed-off-by: Simon Glass > --- > > drivers/video/tegra124/display.c | 8 +++- > drivers/video/tegra124/dp.c | 3 +-- > drivers/video/tegra124/sor.c

[U-Boot] [PATCH 4/8] sf: differentiate Page Program 1-1-4 and 1-4-4

2017-05-19 Thread Cyrille Pitchen
This patch simply renames the ambiguous CMD_QUAD_PAGE_PROGRAM macro into the more explicit CMD_PAGE_PROGRAM_1_1_4. Also it defines the CMD_PAGE_PROGRAM_1_4_4 macro to the standard 38h op code. Signed-off-by: Cyrille Pitchen --- drivers/mtd/spi/sf_internal.h | 3 ++- drivers/mtd/spi/spi_flash.c

[U-Boot] [PATCH 8/8] sf: add driver for Atmel QSPI controller

2017-05-19 Thread Cyrille Pitchen
This patch adds support to the Atmel Quad SPI controller. Signed-off-by: Cyrille Pitchen --- drivers/spi/Kconfig | 7 + drivers/spi/Makefile | 1 + drivers/spi/atmel_qspi.c | 404 +++ drivers/spi/atmel_qspi.h | 169 4

[U-Boot] [PATCH 3/8] sf: select the relevant SPI flash protocol for read and write commands

2017-05-19 Thread Cyrille Pitchen
SPI controller drivers should not check the instruction op code byte to guess which SPI x-y-z protocol is to be used for Fast Read or Page Program operations. Indeed, the op code values are not so reliable. For instance, the 32h op code is generally used for Page Program 1-1-4 operations. However

[U-Boot] [PATCH v2 0/4] sunxi: video: Add support for TV (composite) output on H3/H5

2017-05-19 Thread Jernej Skrabec
This series implements support for composite output. Driver is implemented using DM video framework and heavily reuse code written for older SoCs. Additionally, driver also implements plug detection. All patches in first version were merged except the last one. Because this version only split one

[U-Boot] [PATCH v2 1/4] sunxi: video: Rename tve.c to tve_common.c

2017-05-19 Thread Jernej Skrabec
In order to avoid future confusion with similary named files, rename tve.c to tve_common.c. New name better represents the fact that this file holds code which can be and will be shared between multiple drivers. Signed-off-by: Jernej Skrabec --- drivers/video/sunxi/Makefile| 2 +

[U-Boot] [PATCH v2 4/4] sunxi: video: Add H3/H5 TV out driver

2017-05-19 Thread Jernej Skrabec
This commit adds support for TV (composite) output. Because there is no mechanism to select TV standard, PAL is hardcoded. Signed-off-by: Jernej Skrabec --- arch/arm/include/asm/arch-sunxi/tve.h | 17 +++- drivers/video/sunxi/Makefile | 2 +- drivers/video/sunxi/sunxi_tve.c |

[U-Boot] [PATCH v2 2/4] sunxi: Add base address for TV encoder

2017-05-19 Thread Jernej Skrabec
This commit adds TVE base address for Allwinner H3 and H5 SoCs. Signed-off-by: Jernej Skrabec --- arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h b/arch/arm/include/asm/arch-sunxi/cpu_sun4i.

[U-Boot] [PATCH v2 3/4] sunxi: video: Add support for CSC and TVE to DE2 driver

2017-05-19 Thread Jernej Skrabec
Extend DE2 driver with support for TVE driver, which will be added in next commit. TVE unit expects data to be in YUV format, so CSC support is also added here. Note that HDMI driver has higher priority, so TV out is not probed if HDMI monitor is detected. Signed-off-by: Jernej Skrabec --- arc

Re: [U-Boot] [PATCH] pico-imx7d: Add initial support

2017-05-19 Thread Vanessa Maegima
Hi Stefano, Jagan, I have been trying to add the dts support for this board but I could not make Ethernet, I2C and PMIC support work using dts. I am still trying to add this support but I don't know how much time it can take. I'm new to U-Boot. Can you please consider applying the original pat

Re: [U-Boot] [PATCH 2/4] dts: socfpga: Add trigger-address property to QSPI device

2017-05-19 Thread Rush, Jason A.
On 5/19/2017 1:09 AM , Marek Vasut wrote: > On 05/18/2017 08:26 PM, Rush, Jason A. wrote: >> Add the 'cdns,trigger-address' property to the cadence QSPI device >> node for Altera SoC devices. >> >> Signed-off-by: Jason A. Rush > > +CC Dinh, is that address correct ? I think there was some discuss

Re: [U-Boot] [PATCH v1 0/4] Add FIT support for falcon boot

2017-05-19 Thread york sun
On 05/19/2017 02:56 AM, Andre Przywara wrote: > Hi York, > > On 16/05/17 16:54, york sun wrote: >> On 05/15/2017 10:42 PM, Lokesh Vutla wrote: >>> + Andre >>> >>> >>> On Monday 15 May 2017 09:31 PM, York Sun wrote: This patch set adds FIT support for falcon boot. GZIP is enabled to suppor

[U-Boot] [PATCH] Kconfig: Add support for hash and sha1sum commands

2017-05-19 Thread Daniel Thompson
Currently these (board agnostic) commands cannot be selected using menuconfig and friends. Fix this the obvious way. Signed-off-by: Daniel Thompson --- cmd/Kconfig | 27 +++ 1 file changed, 27 insertions(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index d9f7151bacdc..f459f

Re: [U-Boot] [PATCH v6 00/18] GPT over MTD

2017-05-19 Thread Patrick DELAUNAY
Thanks Maxime for the feedback, > -Original Message- > From: Maxime Ripard [mailto:maxime.rip...@free-electrons.com] > Sent: mardi 16 mai 2017 11:29 > > On Fri, May 12, 2017 at 04:09:08PM +, Patrick DELAUNAY wrote: > > Hi Maxime > > > > > From: Maxime Ripard [mailto:maxime.rip...@free

Re: [U-Boot] [PATCH 3/6] moveconfig: Tidy up the documentation and add hints

2017-05-19 Thread Masahiro Yamada
2017-05-15 20:47 GMT+09:00 Simon Glass : > @@ -169,7 +182,8 @@ Available options > > -y, --yes > Instead of prompting, automatically go ahead with all operations. This > - includes cleaning up headers and CONFIG_SYS_EXTRA_OPTIONS. > + includes cleaning up header, CONFIG_SYS_EXTRA_OPTIONS

Re: [U-Boot] [PATCH 1/6] moveconfig: Support providing a path to the defconfig files

2017-05-19 Thread Masahiro Yamada
> if not matched: > -print >> sys.stderr, "warning: %s:%d: no defconfig matched '%s'" > % \ > - (defconfigs_file, i + 1, > line) > - > +print >> sys.stderr, ("warning: %s:%d: no defconfig matched > '%s'" % > +

Re: [U-Boot] [PATCH v1 0/8] rockchip: mkimage: refactor rksd/rkspi padding calculation and add dumpimage support

2017-05-19 Thread Heiko Stuebner
Hi Philipp, Am Mittwoch, 17. Mai 2017, 12:12:51 CEST schrieb Dr. Philipp Tomsich: > What are the requirements for BACK_TO_BROM? > All I can see about how BACK_TO_BROM works is that it needs to save the > register > context on the stack for returning to the ROM, but that seems to be only half > t

Re: [U-Boot] [PATCH v1 0/8] rockchip: mkimage: refactor rksd/rkspi padding calculation and add dumpimage support

2017-05-19 Thread Dr. Philipp Tomsich
Heiko, thanks for the insight into the BROM. I’ll respin this with part of the change reverted and have Kever test. Regards, Philipp. > On 19 May 2017, at 20:39, Heiko Stuebner wrote: > > Hi Philipp, > > Am Mittwoch, 17. Mai 2017, 12:12:51 CEST schrieb Dr. Philipp Tomsich: >> What are the req

Re: [U-Boot] [PATCH v1 0/8] rockchip: mkimage: refactor rksd/rkspi padding calculation and add dumpimage support

2017-05-19 Thread Heiko Stuebner
Am Freitag, 19. Mai 2017, 20:44:07 CEST schrieb Dr. Philipp Tomsich: > Heiko, > > thanks for the insight into the BROM. > I’ll respin this with part of the change reverted and have Kever test. The patch is already in Simon's next branch [0], so a fixup might be better :-) Heiko [0] http://git

[U-Boot] [PATCH v2] Convert CONFIG_SPL_BOARD_INIT to Kconfig

2017-05-19 Thread Tom Rini
From: Ley Foon Tan This converts the following to Kconfig: CONFIG_SPL_BOARD_INIT Signed-off-by: Ley Foon Tan [trini: Update the Kconfig logic] Signed-off-by: Tom Rini --- arch/arm/Kconfig | 5 + arch/arm/include/asm/fsl_secure_boot.h | 1 - arch/arm/mach-keystone/

[U-Boot] [PATCH] ARM: k2g: Fix passing main pll info for higher speeds

2017-05-19 Thread Lokesh Vutla
Main pll is marked as arm plls for higher speeds. Fix this. Signed-off-by: Lokesh Vutla --- board/ti/ks2_evm/board_k2g.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/board/ti/ks2_evm/board_k2g.c b/board/ti/ks2_evm/board_k2g.c index 21aec8f065..f0bd31d6f7 1

Re: [U-Boot] [PATCH 3/8] dm: blk: Add a function to find the next block device number

2017-05-19 Thread Simon Glass
Hi Andy, On 18 May 2017 at 10:01, wrote: > On Wed, May 3, 2017 at 5:36 AM, Simon Glass wrote: >> Hi Andy, >> >> On 24 April 2017 at 02:04, Andy Shevchenko wrote: >>> On Mon, Apr 24, 2017 at 5:02 AM, Simon Glass wrote: At present this code is inline. Move it into a function to allow it to

Re: [U-Boot] i.MX6: u-boot,dm-pre-reloc block U-Boot

2017-05-19 Thread Simon Glass
Hi Jagan, On 17 May 2017 at 11:18, Jagan Teki wrote: > Hi Simon, > > On Tue, May 16, 2017 at 5:47 AM, Simon Glass wrote: >> Hi, >> >> On 13 May 2017 at 10:15, Jagan Teki wrote: >>> Hi All, >>> >>> On Thu, May 11, 2017 at 1:40 PM, Jagan Teki >>> wrote: On Thu, May 11, 2017 at 7:39 AM, Lok

Re: [U-Boot] [PATCH v2 8/9] dm: core: Add ofnode to represent device tree nodes

2017-05-19 Thread Simon Glass
Hi Masahiro, On 16 May 2017 at 04:35, Masahiro Yamada wrote: > > Hi Simon, > > > 2017-05-02 0:18 GMT+09:00 Simon Glass : > > With live tree we need a struct device_node * to reference a node. With > > the existing flat tree, we need an int offset. We need to unify these into > > a single value wh

Re: [U-Boot] [PATCH v2 2/2] doc: rockchip: Add phyCORE-RK3288 RDK to board list

2017-05-19 Thread Simon Glass
On 15 May 2017 at 08:19, Wadim Egorov wrote: > Signed-off-by: Wadim Egorov > --- > doc/README.rockchip | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Acked-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/

Re: [U-Boot] [PATCH 4/6] rockchip: pinctrl: rk3328: use gpio instead of sdmmc-pwren

2017-05-19 Thread Simon Glass
On 16 May 2017 at 21:44, Kever Yang wrote: > SDMMC-PWREN is a pin to control voltage for SDMMC IO, it may > be high active or low active, the dwmmc driver always assume > the sdmmc-pwren as high active. > > Kernel treat this pin as fixed regulator instead of a pin from > controller, and then it ca

Re: [U-Boot] [PATCH v2] Ensure device tree DTS is compiled

2017-05-19 Thread Simon Glass
Hi Masahiro, On 25 April 2017 at 19:02, Masahiro Yamada wrote: > 2017-03-27 11:27 GMT+09:00 Simon Glass : >> On 15 March 2017 at 22:11, James Balean wrote: >>> Enables custom DTS files, or those not associated with a specific target, >>> to be compiled into a boot image. >>> >>> Signed-off-by:

Re: [U-Boot] [PATCH 2/6] rockchip: pinctrl: rk3328: do not set io routing

2017-05-19 Thread Simon Glass
On 16 May 2017 at 21:44, Kever Yang wrote: > In rk3328, some function pin may have more than one choice, and muxed > with more than one IO, for example, the UART2 controller IO, > TX and RX, have 3 choice(setting in com_iomux): > - M0 which mux with GPIO1A0/GPIO1A1 > - M1 which mux with GPIO2A0/GP

Re: [U-Boot] [PATCH v5 03/14] mmc: sti_sdhci: Use reset framework

2017-05-19 Thread Simon Glass
Hi Patrice, On 17 May 2017 at 01:14, Patrice CHOTARD wrote: > Hi Simon > > On 05/17/2017 03:38 AM, Simon Glass wrote: >> Hi Patrice, >> >> On 15 May 2017 at 03:21, Patrice CHOTARD wrote: >>> Hi Simon >>> >>> On 05/15/2017 05:02 AM, Simon Glass wrote: Hi Patrice, On 10 May 2017 at

Re: [U-Boot] [PATCH 6/6] rockchip: dts: rk3328-evb: add sdmmc-pwren regulator

2017-05-19 Thread Simon Glass
On 16 May 2017 at 21:44, Kever Yang wrote: > Use fixed regulator for sdmmc-pwren for sdmmc power. > > Signed-off-by: Kever Yang > --- > > arch/arm/dts/rk3328-evb.dts | 8 > 1 file changed, 8 insertions(+) Acked-by: Simon Glass ___ U-Boot mai

Re: [U-Boot] OF_PLATDATA questions on rk3399 platfrom

2017-05-19 Thread Simon Glass
Hi Ziyuan, On 8 May 2017 at 01:01, Ziyuan wrote: > hi simon, > > I need to achieve emmc_phy physical address in driver, so that I can > configure phy in different scenarios (phy register address should be > 0xff77f780). see below: > sdhci: sdhci@fe33 { > > phys = <&emmc_phy>; >

Re: [U-Boot] [PATCH 5/6] rockchip: evb-rk3328: enable boot on regulator

2017-05-19 Thread Simon Glass
On 16 May 2017 at 21:44, Kever Yang wrote: > Enable all the boot-on regulator in default. > > Signed-off-by: Kever Yang > --- > > board/rockchip/evb_rk3328/evb-rk3328.c | 8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) Acked-by: Simon Glass

Re: [U-Boot] [PATCH 01/10] drivers: spi: allow limiting reads

2017-05-19 Thread Simon Glass
On 18 May 2017 at 13:29, Álvaro Fernández Rojas wrote: > For some SPI controllers it's not possible to keep the CS active between > transfers and they are limited to a known number of bytes. > This splits spi_flash reads into different iterations in order to respect > the SPI controller limits. >

Re: [U-Boot] [PATCH 02/10] drivers: spi: add config to consider command bytes when writting to flash

2017-05-19 Thread Simon Glass
Hi Alvaro, On 18 May 2017 at 13:29, Álvaro Fernández Rojas wrote: > Command bytes are part of the written bytes and they should be taken into > account when sending a spi transfer. > > Signed-off-by: Álvaro Fernández Rojas > --- > drivers/mtd/spi/spi_flash.c | 2 +- > drivers/spi/Kconfig

Re: [U-Boot] [PATCH 1/6] rockchip: pinctrl: move rk3328 grf reg definition in header file

2017-05-19 Thread Simon Glass
On 16 May 2017 at 21:44, Kever Yang wrote: > > Move GRF register bit definition into GRF header file, remove > 'GRF_' prefix and add 'GPIOmXn_' as prefix for bit meaning. > > Signed-off-by: Kever Yang > --- > > arch/arm/include/asm/arch-rockchip/grf_rk3328.h | 114 + > drivers/pinctr

Re: [U-Boot] [PATCH 3/6] rockchip: evb-rk3328: set uart2 and sdmmc io routing

2017-05-19 Thread Simon Glass
Hi Kever, On 16 May 2017 at 21:44, Kever Yang wrote: > In rk3328, some function pin may have more than one choice, and muxed > with more than one IO, for example, the UART2 controller IO, > TX and RX, have 3 choice(setting in com_iomux): > - M0 which mux with GPIO1A0/GPIO1A1 > - M1 which mux with

Re: [U-Boot] [PATCH 03/10] dm: spi: add BCM63xx SPI driver

2017-05-19 Thread Simon Glass
On 18 May 2017 at 13:29, Álvaro Fernández Rojas wrote: > This driver is a simplified version of linux/drivers/spi/spi-bcm63xx.c > Instead of supporting both HW revisions of the controller in a single build, > support has been split by the selected config to save space. > > Signed-off-by: Álvaro Fe