[U-Boot] [PATCH v4 0/3] This series adds support for gpio-leds "default-state" property. The

2018-04-11 Thread linux-kernel-dev
From: Patrick Bruenn main usecase in mind are LEDs which indicate a state like "power on". With this patchset applied, all you have to do is: Add a gpio-led node with 'default-state = "on";' property to your device tree. And the LED will automatically light up during

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

2018-04-11 Thread linux-kernel-dev
From: Patrick Bruenn To avoid board specificy LED activation code, automatically activate gpio-leds with "default-state" property during bind(). Signed-off-by: Patrick Bruenn --- Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH V3 2/3] imx6: Convert sabrelite and nitrogen6x boards to distro boot support

2018-04-11 Thread Guillaume GARDET
Boot tested on sabrelite board. Signed-off-by: Guillaume GARDET Cc: Troy Kisky Cc: Stefano Babic Cc: Fabio Estevam Cc: Gary Bisson ---

[U-Boot] [PATCH V3 3/3] imx6: sabrelite: update defconfig to use distro defaults

2018-04-11 Thread Guillaume GARDET
Boot tested with boot.scr script and EFI/Grub2 on mmc0 and mmc1 slots on sabrelite board. Signed-off-by: Guillaume GARDET Cc: Troy Kisky Cc: Stefano Babic Cc: Fabio Estevam Cc: Gary Bisson

[U-Boot] [PATCH V3 1/3] imx6: Define 'soc' env var for imx6 SoC

2018-04-11 Thread Guillaume GARDET
Signed-off-by: Guillaume GARDET Cc: Troy Kisky Cc: Stefano Babic Cc: Fabio Estevam Cc: Gary Bisson --- arch/arm/mach-imx/mx6/soc.c | 34

[U-Boot] [PATCH V3 0/3] Update sabrelite and nitrogen6x boards to use distro boot support

2018-04-11 Thread Guillaume GARDET
This patch serie updates sabrelite and nitrogen6x boards to use distro boot support. Sabrelite has been boot tested with boot.scr script and EFI/Grub2 on mmc0 and mmc1 slots. Nitrogen6* boards have been build tested only. Signed-off-by: Guillaume GARDET Cc: Troy Kisky

Re: [U-Boot] [PATCH v3] arm64: Add SMC and HVC commands

2018-04-11 Thread Michalis Pappas
Sorry for the duplicate, for some reason I thought that v3 didn't make it into the list. Any news on this one btw? On 04/11/2018 12:30 PM, Michalis Pappas wrote: This patch adds smc and hvc commands, that allow issuing Secure Monitor Calls and Hypervisor Calls conforming to the ARM SMC

Re: [U-Boot] arm: socfpga: unable to boot cyclone5 devkit or SocKit

2018-04-11 Thread Marek Vasut
On 04/11/2018 04:52 AM, Dinh Nguyen wrote: [...] u-boot$ git reset --hard v2018.01 ; bu socfpga_cyclone5 ; ls -la spl/u-boot-spl.bin HEAD is now at f3dd87e0b9 Prepare v2018.01 -rw-r--r-- 1 marex marex 52902 Apr 11 00:34 spl/u-boot-spl.bin u-boot$ git reset --hard

[U-Boot] [PATCH v4 3/3] dm: led: add testcase for "default-state" property

2018-04-11 Thread linux-kernel-dev
From: Patrick Bruenn Add two more gpio-leds to sandbox test device tree with default-state property set to "on"/"off". Add dm_test_led_default_state() to check that these new LED's are set to LEDST_ON and LEDST_OFF. dm: led: add testcase for "default-state" property Add

[U-Boot] [PATCH v4 1/3] dm: led: Support "default-state" property

2018-04-11 Thread linux-kernel-dev
From: Patrick Bruenn Add support for the device tree property "default-state". This feature might be useful for LEDs indicating "power on" or similar states. Note: Even with this commit gpio-leds remain in reset state. That's because the led_gpio is not probed until

Re: [U-Boot] [PATCH 1/8] core: Add uclass_{first, next}_device_compat

2018-04-11 Thread Mario Six
Hi Simon, On Fri, Mar 30, 2018 at 10:41 AM, Simon Glass wrote: > Hi Mario, > > On 28 March 2018 at 20:38, Mario Six wrote: >> A lot of times one wants to cycle through the devices in a uclass, but >> only certain ones, especially ones identified by their

Re: [U-Boot] [PATCH 7/7] video_display: Add Xilinx LogiCore DP TX

2018-04-11 Thread Mario Six
Hi Simon, On Fri, Mar 30, 2018 at 10:41 AM, Simon Glass wrote: > Hi Mario, > > On 28 March 2018 at 20:40, Mario Six wrote: >> Add a driver for the Xilinx LogiCORE DisplayPort IP core. >> >> Signed-off-by: Mario Six >> --- >>

[U-Boot] [PATCH v3] arm64: Add SMC and HVC commands

2018-04-11 Thread Michalis Pappas
This patch adds smc and hvc commands, that allow issuing Secure Monitor Calls and Hypervisor Calls conforming to the ARM SMC Calling Convention. Add Kconfig items to allow each command can be individually enabled. Signed-off-by: Michalis Pappas --- cmd/Kconfig | 14

[U-Boot] [PATCH v2 3/7] i.MX6DL: mamoj: Add PFUZE100 support

2018-04-11 Thread Jagan Teki
MX6DL Mamoj boards has Freescale PFUZE100 PMIC, add support for it through DM_PMIC dt definition. pmic log: => pmic list | Name| Parent name | Parent uclass @ seq | pfuze100@08 | i2c@021f8000| i2c @ 3 => pmic dev pfuze100@08

[U-Boot] [PATCH v2 0/7] i.MX6DL: Add BTicino Mamoj board support

2018-04-11 Thread Jagan Teki
This series add support for BTicino i.MX6DL Mamoj board. Changes for v2: - Update Kconfig changes for CONFIG_FSL_ESDHC - Add HAB support Jagan Teki (7): i.MX6: board: Add BTicino i.MX6DL Mamoj initial support i.MX6DL: mamoj: Add I2C support i.MX6DL: mamoj: Add PFUZE100 support configs:

[U-Boot] [PATCH v2 1/7] i.MX6: board: Add BTicino i.MX6DL Mamoj initial support

2018-04-11 Thread Jagan Teki
Add initial support for i.MX6DL BTicino Mamoj board. Mamoh board added: - SPL - SPL_DM - SPL_OF_CONTROL - DM for U-Boot proper - OF_CONTROL for U-Boot proper - eMMC - FEC - Boot from eMMC - Boot from USB SDP Signed-off-by: Simone CIANNI Signed-off-by: Raffaele

[U-Boot] [PATCH v2 7/7] configs: imx6dl-mamoj: Enable HAB

2018-04-11 Thread Jagan Teki
Enable Secure boot(HAB) for BTicino Mamoj board. Signed-off-by: Jagan Teki --- configs/imx6dl_mamoj_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx6dl_mamoj_defconfig b/configs/imx6dl_mamoj_defconfig index d789496dff..0001457f5d 100644 ---

Re: [U-Boot] arm: socfpga: unable to boot cyclone5 devkit or SocKit

2018-04-11 Thread Alexander Graf
On 04/11/2018 02:37 PM, Marek Vasut wrote: On 04/11/2018 02:26 PM, Tom Rini wrote: On Wed, Apr 11, 2018 at 10:12:42AM +0200, Marek Vasut wrote: On 04/11/2018 04:52 AM, Dinh Nguyen wrote: [...] u-boot$ git reset --hard v2018.01 ; bu socfpga_cyclone5 ; ls -la spl/u-boot-spl.bin HEAD is now at

Re: [U-Boot] [U-Boot, u-boot] reset: Add Amlogic Meson Reset Controller

2018-04-11 Thread Tom Rini
On Thu, Mar 29, 2018 at 02:55:25PM +0200, Neil Armstrong wrote: > The Amlogic Meson SoCs embeds up to 256 reset lines, add the corresponding > driver. > > Signed-off-by: Neil Armstrong Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

[U-Boot] [PATCH v4 0/4] ARM: i.MX6: Add u-boot dtsi files

2018-04-11 Thread Jagan Teki
All CONFIG changes from arch/arm/mach-imx fromprevious version [1] since most of them won't agree with new naming convention that sync with Linux. This series add rest of changes like u-boot dtsi files for U-Boot definitions and arch/arm/boot/Makefile changes wrt imx. Changes for v4: - Drop

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

2018-04-11 Thread Heiko Schocher
Hello Tom, please pull from u-boot-ubi master The following changes since commit 2600df4f8ef12ece9cec13030005919e0ba2b0d5: Merge tag 'xilinx-for-v2018.05-rc2' of git://git.denx.de/u-boot-microblaze (2018-04-09 11:06:21 -0400) are available in the Git repository at:

Re: [U-Boot] [U-Boot, 1/1] get_maintainer.pl: update from Linux kernel v4.16

2018-04-11 Thread Tom Rini
On Wed, Apr 04, 2018 at 01:54:26AM +0200, Heinrich Schuchardt wrote: > The most significant change is the addition of the --self-test option > which allows to run a consistency check on all MAINTAINERS files. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master,

Re: [U-Boot] [U-Boot, v2, u-boot, 2/2] clk: add sandbox test for bulk API

2018-04-11 Thread Tom Rini
On Tue, Apr 03, 2018 at 11:44:19AM +0200, Neil Armstrong wrote: > This patch adds the bulk clock API tests for the sandbox test suite. > > It's very similar to the main test but only uses the _bulk() API and > checks if the clocks are correctly enabled/disabled. > > Signed-off-by: Neil

Re: [U-Boot] log: Add units to code-size stats in README.log

2018-04-11 Thread Tom Rini
On Mon, Apr 02, 2018 at 02:42:53AM -0600, Simon Glass wrote: > Without the units these numbers are confusing. Add a comment about the > unit being 'bytes' and mention 'buildman' as the source. > > Suggested-by: Lukasz Majewski > Signed-off-by: Simon Glass

Re: [U-Boot] [U-Boot, 1/1] checkpatch.pl: update from Linux kernel v4.16

2018-04-11 Thread Tom Rini
On Wed, Apr 04, 2018 at 03:39:20PM +0200, Heinrich Schuchardt wrote: > Update scripts/checkpatch.pl from upstream. > > One of the many corrections is not creating an error for cover-letters. > > Reintroduce U-Boot's > 5c761ce58666b3a1695697498598f8bf3484a0c7 > checkpatch.pl: Add warning for new

Re: [U-Boot] arm: socfpga: unable to boot cyclone5 devkit or SocKit

2018-04-11 Thread Tom Rini
On Wed, Apr 11, 2018 at 10:12:42AM +0200, Marek Vasut wrote: > On 04/11/2018 04:52 AM, Dinh Nguyen wrote: > [...] > > u-boot$ git reset --hard v2018.01 ; bu socfpga_cyclone5 ; ls -la > spl/u-boot-spl.bin > HEAD is now at f3dd87e0b9 Prepare v2018.01 > -rw-r--r-- 1 marex marex

[U-Boot] [PATCH v4 2/4] ARM: dts: imx6ul-isiot: Move usdhc2 into dtsi

2018-04-11 Thread Jagan Teki
Move usdhc2 node along with pinctrl to imx6ul-isiot.dts from imx6ul-isiot-emmc.dts Signed-off-by: Jagan Teki --- arch/arm/dts/imx6ul-isiot-emmc.dts | 24 arch/arm/dts/imx6ul-isiot.dtsi | 26 ++ 2 files changed, 26

[U-Boot] [PATCH v2 4/7] configs: imx6dl_mamoj: Enable fastboot and ums

2018-04-11 Thread Jagan Teki
Enable fastboot and ums for host to interact eMMC on Mamoj board. Signed-off-by: Jagan Teki Signed-off-by: Simone CIANNI Signed-off-by: Raffaele RECALCATI --- configs/imx6dl_mamoj_defconfig | 6 ++ 1 file

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

2018-04-11 Thread Tom Rini
On Wed, Apr 11, 2018 at 03:16:21PM +0200, Heiko Schocher wrote: > Hello Tom, > > please pull from u-boot-ubi master > > The following changes since commit 2600df4f8ef12ece9cec13030005919e0ba2b0d5: > > Merge tag 'xilinx-for-v2018.05-rc2' of git://git.denx.de/u-boot-microblaze > (2018-04-09

Re: [U-Boot] mkimage: do not fail if there is no print_header function

2018-04-11 Thread Tom Rini
On Fri, Mar 30, 2018 at 10:28:19AM +0200, Guillaume GARDET wrote: > Commit 253c60a breaks the exit value of 'mkimage -T rkimage' > and print the following error: > mkimage: Can't print header for Rockchip Boot Image support: Success > > It is not a failure to not print headers, so just

Re: [U-Boot] [U-Boot, 1/1] fw_printenv: Fix crash due to incorrect size for malloc'ed string.

2018-04-11 Thread Tom Rini
On Wed, Apr 04, 2018 at 10:09:57AM +0200, Kristian Amlie wrote: > Using sizeof gives the size of the pointer only, not the string. This > could easily lead to crashes when using -l argument. > > Signed-off-by: Kristian Amlie Applied to u-boot/master, thanks! --

Re: [U-Boot] [U-Boot, v2, u-boot, 2/2] reset: add sandbox test for bulk API

2018-04-11 Thread Tom Rini
On Tue, Apr 03, 2018 at 11:40:51AM +0200, Neil Armstrong wrote: > This patch adds the bulk reset API tests for the sandbox test suite. > > Unlike the main test, it also check the "other" reset signal using the bulk > API > and checks if the resets are correctly asserted/deasserted. > > To

Re: [U-Boot] armv7m: disable icache before linux booting

2018-04-11 Thread Tom Rini
On Fri, Mar 30, 2018 at 09:22:40AM +0200, Patrice Chotard wrote: > Similarly to ARMV7, on ARMV7M instruction cache memory needs > to be disabled before running linux kernel to avoid kernel to > be stuck. > > Signed-off-by: Patrice Chotard Applied to u-boot/master,

Re: [U-Boot] [U-Boot, 1/1] MAINTAINERS: ARM STM STM32MP: correct file paths

2018-04-11 Thread Tom Rini
On Wed, Apr 04, 2018 at 01:16:08AM +0200, Heinrich Schuchardt wrote: > Provide correct file paths. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [U-Boot] sysreset: syscon: convert to use live dt

2018-04-11 Thread Tom Rini
On Sat, Mar 17, 2018 at 12:22:24PM +0100, Álvaro Fernández Rojas wrote: > Signed-off-by: Álvaro Fernández Rojas > Reviewed-by: Daniel Schwierzeck Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

[U-Boot] chiliSOM: USB bug

2018-04-11 Thread sdrb
Hi, I use Grinn's chiliSOM and very old U-boot 2014.07 on it. Unfortunately the newest u-boot doesn't run SPL properly - so I'm forced to use 2014.07 version. I noticed that there is some problem with USB maintenance. As far as I know the chiliSOM is TI AM335x compatible system so it uses

[U-Boot] [PATCH v2 6/7] configs: imx6dl-mamoj: Add Falcon mode support

2018-04-11 Thread Jagan Teki
Add Falcon mode support to boot Linux directly after SPL. Signed-off-by: Jagan Teki --- board/bticino/mamoj/README | 27 +++ board/bticino/mamoj/spl.c | 11 +++ configs/imx6dl_mamoj_defconfig | 1 +

[U-Boot] [PATCH v2 2/7] i.MX6DL: mamoj: Add I2C support

2018-04-11 Thread Jagan Teki
i.MX6DL Mamoj has i2c3 and i2c4 buses, add support through DM_I2C with dt definition. i2c log: === => i2c bus Bus 2: i2c@021a8000 Bus 3: i2c@021f8000 => i2c dev 2 Setting bus to 2 => i2c speed 40 Setting bus speed to 40 Hz => i2c probe Valid chip addresses: 20 51 53 => i2c md 53

[U-Boot] [PATCH] arm: zynq: Make ENV_SIZE and ENV_OFFSET optional via board file

2018-04-11 Thread Michal Simek
Boards have an option to rewrite variable locations in their own board files. This is necessary for qspi and nand configurations where boot image can be bigger then 896k(current limit). Signed-off-by: Michal Simek --- include/configs/zynq-common.h | 8 ++-- 1 file

Re: [U-Boot] [PATCH V3 1/3] imx6: Define 'soc' env var for imx6 SoC

2018-04-11 Thread Fabio Estevam
Hi Guillaume, On Wed, Apr 11, 2018 at 7:38 AM, Guillaume GARDET wrote: Please explain in the commit log why this is needed. Thanks > Signed-off-by: Guillaume GARDET > Cc: Troy Kisky > Cc: Stefano Babic

[U-Boot] [PATCH v4 3/4] ARM: dts: i.MX6UL: U-Boot specific dts for u-boot, dm-spl

2018-04-11 Thread Jagan Teki
u-boot,dm-spl property is specific to U-Boot, so move it into *u-boot.dtsi files for relevant i.MX6UL files. This make syncing Linux dts files straight forward. Also update the MAINTAINERS file for dts files. Signed-off-by: Jagan Teki ---

[U-Boot] [PATCH v4 1/4] ARM: dts: i.MX6QDL: U-Boot specific dts for u-boot, dm-spl

2018-04-11 Thread Jagan Teki
u-boot,dm-spl property is specific to U-Boot, so move it into *u-boot.dtsi files for relevant i.MX6QDL files. This make syncing Linux dts files straight forward. Also update the MAINTAINERS file for dts files. Signed-off-by: Jagan Teki ---

[U-Boot] [PATCH v4 4/4] ARM: i.MX6: dts: Build dtb based on SOC type

2018-04-11 Thread Jagan Teki
Build dtb's based on SOC type instead building arch type. Signed-off-by: Jagan Teki --- arch/arm/dts/Makefile | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index

Re: [U-Boot] [PATCH v3] arm64: Add SMC and HVC commands

2018-04-11 Thread Simon Glass
On 9 April 2018 at 09:17, Michalis Pappas wrote: > This patch adds smc and hvc commands, that allow issuing Secure Monitor > Calls and Hypervisor Calls conforming to the ARM SMC Calling Convention. > > Add Kconfig items to allow each command can be individually enabled. > >

[U-Boot] [PATCH v2 5/7] configs: imx6dl-mamoj: Add DFU support

2018-04-11 Thread Jagan Teki
Add DFU support for BTicino Mamoj board and update the same steps in README. Signed-off-by: Jagan Teki Signed-off-by: Simone CIANNI Signed-off-by: Raffaele RECALCATI --- board/bticino/mamoj/README | 37

Re: [U-Boot] arm: socfpga: unable to boot cyclone5 devkit or SocKit

2018-04-11 Thread Marek Vasut
On 04/11/2018 02:26 PM, Tom Rini wrote: > On Wed, Apr 11, 2018 at 10:12:42AM +0200, Marek Vasut wrote: >> On 04/11/2018 04:52 AM, Dinh Nguyen wrote: >> [...] >> >> u-boot$ git reset --hard v2018.01 ; bu socfpga_cyclone5 ; ls -la >> spl/u-boot-spl.bin >> HEAD is now at f3dd87e0b9

Re: [U-Boot] [PATCH v3] arm64: Add SMC and HVC commands

2018-04-11 Thread Simon Glass
Hi, On 11 April 2018 at 05:35, Michalis Pappas wrote: > Sorry for the duplicate, for some reason I thought that v3 didn't make it > into the list. Any news on this one btw? Is there a list of changes for the version? It says v3 but there are no changes listed. Regards,

Re: [U-Boot] [PATCH] ubifs: Change value of mutex_is_locked()

2018-04-11 Thread Heiko Schocher
Hello Bradley, Am 04.04.2018 um 18:42 schrieb Bradley Bolen: The mutex lock and unlock functions are stubbed out and mutex_is_locked was 0. This caused asserts to fail in ubifs code when checking that the mutex was locked. For example, UBIFS assert failed in ubifs_change_lp at 540 UBIFS

Re: [U-Boot] serial: meson: Update compatible with new Linux bindings

2018-04-11 Thread Tom Rini
On Thu, Mar 29, 2018 at 02:56:02PM +0200, Neil Armstrong wrote: > The Amlogic Meson SoCs serial bindings were not written when serial > support was pushed into Linux and U-Boot. > A clean bindings document has been merged into Linux tree to correctly > handle the multiple clocks feeding the

Re: [U-Boot] [U-Boot, v2, u-boot, 1/2] reset: Add get/assert/deassert/release for bulk of reset signals

2018-04-11 Thread Tom Rini
On Tue, Apr 03, 2018 at 11:40:50AM +0200, Neil Armstrong wrote: > This patch adds a "bulk" API to the reset API in order to get/deassert/ > assert/release a group of reset signals associated with a device. > > This bulk API will avoid adding a copy of the same code to manage > a group of reset

Re: [U-Boot] log: Correct missing free() on error in log_add_filter()

2018-04-11 Thread Tom Rini
On Mon, Apr 02, 2018 at 02:42:39AM -0600, Simon Glass wrote: > If there is a problem with the parameters to log_add_filter(), the memory > allocated is currently not freed. Fix this. > > Reported-by: Coverity (CID: 171962) > > Signed-off-by: Simon Glass Applied to

[U-Boot] [PATCH] arm: zynq: Enable setup board name for different boards

2018-04-11 Thread Michal Simek
There is no need to use zynq name as SYS_BOARD for all boards. The patch is adding an option to change it. Signed-off-by: Michal Simek --- arch/arm/mach-zynq/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-zynq/Kconfig

[U-Boot] [PATCH] arm: zynq: Wire automatic ddr detection for Zynq and ZynqMP case

2018-04-11 Thread Michal Simek
When static memory configuration is used U-Boot has capability to detect memory size in setup range. Enable this feature for static configuration. Signed-off-by: Michal Simek --- board/xilinx/zynq/board.c| 3 ++- board/xilinx/zynqmp/zynqmp.c | 3 ++- 2 files

Re: [U-Boot] [U-Boot, v2, u-boot, 1/2] clk: Add get/enable/disable/release for a bulk of clocks

2018-04-11 Thread Tom Rini
On Tue, Apr 03, 2018 at 11:44:18AM +0200, Neil Armstrong wrote: > This patch adds a "bulk" API to the clock API in order to get/enable/disable > /release a group of clocks associated with a device. > > This bulk API will avoid adding a copy of the same code to manage > a group of clocks in

Re: [U-Boot] [PATCH v2 u-boot 1/3] usb: host: Add simple of glue driver for DWC3 USB Controllers integration

2018-04-11 Thread Neil Armstrong
Hi Marek, On 11/04/2018 16:37, Marek Vasut wrote: > On 04/11/2018 04:29 PM, Neil Armstrong wrote: >> This is a port of the dwc3-of-simple driver from Linux to enable/deassert >> clock and resets of a simple DWC3 Controller HW glue. >> >> Signed-off-by: Neil Armstrong >

[U-Boot] [PATCH u-boot 1/2] ARM64: meson: Sync DT and Bindings with Linux 4.16

2018-04-11 Thread Neil Armstrong
Synchronize the Linux Device Tree for Amlogic Meson GX boards from Linux 4.16.0. Signed-off-by: Neil Armstrong --- arch/arm/dts/meson-gx.dtsi| 87 ++- arch/arm/dts/meson-gxbb-odroidc2.dts | 56 --

Re: [U-Boot] [PATCH V3 1/3] imx6: Define 'soc' env var for imx6 SoC

2018-04-11 Thread Guillaume Gardet
Le 11/04/2018 à 17:46, Gary Bisson a écrit : Hi Guillaume, On Wed, Apr 11, 2018 at 12:38:48PM +0200, Guillaume GARDET wrote: Signed-off-by: Guillaume GARDET Cc: Troy Kisky Cc: Stefano Babic Cc: Fabio Estevam

[U-Boot] [PATCH v3 0/5] mtd: nand: mxs_nand: improve ECC support

2018-04-11 Thread Stefan Agner
From: Stefan Agner This patchset reworks the drivers ECC calculation to align more with the Linux driver gpmi-nand.c. It aims to implements minimal ECC support as supported by the NAND chip. This is the rebased version after moving MXS NAND to Kconfig. -- Stefan

Re: [U-Boot] chiliSOM: USB bug

2018-04-11 Thread Marcin Niestroj
Hi Witold, On 11.04.2018 08:18, sdrb wrote: Hi, I use Grinn's chiliSOM and very old U-boot 2014.07 on it. Unfortunately the newest u-boot doesn't run SPL properly - so I'm forced to use 2014.07 version. What are your problems exactly with SPL? What version of chiliSOM does you board have?

Re: [U-Boot] [PATCH V3 1/3] imx6: Define 'soc' env var for imx6 SoC

2018-04-11 Thread Fabio Estevam
On Wed, Apr 11, 2018 at 11:41 AM, Guillaume Gardet wrote: > This is for efi fdtfile fallback definition for default distro config for > nitrogen6x board. > Is it ok for you? Yes, this is the explanation that I was looking for :-) Please send a new version with this

[U-Boot] [PATCH v3 2/5] mtd: nand: mxs_nand: allow to enable BBT support

2018-04-11 Thread Stefan Agner
From: Stefan Agner Add config option which allows to enable on flash bad block table support. This has the same effect as when using the device tree property "nand-on-flash-bbt" in Linux. Signed-off-by: Stefan Agner --- Changes in v3: None

[U-Boot] [PATCH v3 5/5] mtd: nand: mxs_nand: add minimal ECC support

2018-04-11 Thread Stefan Agner
From: Stefan Agner Add support for minimum ECC strength supported by the NAND chip. This aligns with the behavior when using the fsl,use-minimum-ecc device tree property in Linux. Signed-off-by: Stefan Agner --- Changes in v3: None Changes

Re: [U-Boot] [PATCH v3 u-boot 1/3] usb: host: Add simple of glue driver for DWC3 USB Controllers integration

2018-04-11 Thread Jean-Jacques Hiblot
On 11/04/2018 17:08, Neil Armstrong wrote: This is a port of the dwc3-of-simple driver from Linux to enable/deassert clock and resets of a simple DWC3 Controller HW glue. Signed-off-by: Neil Armstrong --- drivers/usb/host/Kconfig | 7 +++

Re: [U-Boot] [PATCH 3/3] i2c: fsl: Add option to get clock from DT

2018-04-11 Thread Heiko Schocher
Hello Mario, Am 28.03.2018 um 14:37 schrieb Mario Six: Add an option to get the clock speed from the device tree, hence adding compatibility with DM clock drivers. Signed-off-by: Mario Six --- drivers/i2c/fsl_i2c.c | 8 +++- 1 file changed, 7 insertions(+), 1

Re: [U-Boot] [PATCH v2 1/2] dm: i2c: dts: Add gpios and pinctrl device tree properties

2018-04-11 Thread Heiko Schocher
Hello Alexander, Am 27.03.2018 um 16:52 schrieb Alexander Kochetkov: The commit describe usage of gpios and pinctrl device tree properties in order to enable gpio-based software deblocking. Signed-off-by: Alexander Kochetkov --- doc/device-tree-bindings/i2c/i2c.txt |

Re: [U-Boot] [PATCH v2 u-boot 1/3] usb: host: Add simple of glue driver for DWC3 USB Controllers integration

2018-04-11 Thread Marek Vasut
On 04/11/2018 04:29 PM, Neil Armstrong wrote: > This is a port of the dwc3-of-simple driver from Linux to enable/deassert > clock and resets of a simple DWC3 Controller HW glue. > > Signed-off-by: Neil Armstrong Looks good, except can we reduce the number of ifdefs, ie.

Re: [U-Boot] [PATCH V3 1/3] imx6: Define 'soc' env var for imx6 SoC

2018-04-11 Thread Guillaume Gardet
Hi, Le 11/04/2018 à 16:23, Fabio Estevam a écrit : Hi Guillaume, On Wed, Apr 11, 2018 at 7:38 AM, Guillaume GARDET wrote: Please explain in the commit log why this is needed. Thanks This is for efi fdtfile fallback definition for default distro config for

[U-Boot] [PATCH] fit: skip signature verification if board request

2018-04-11 Thread Jun Nie
It may be unnecessary to check signature on unlocked board. Get the hint from platform specific code to support secure boot and non-secure boot with the same binary, so that boot is not blocked if board is not locked and has no key for signature verification. Signed-off-by: Jun Nie

Re: [U-Boot] [PATCH v3 u-boot 0/3] Add USB Support for Amlogic Meson GXL SoCs

2018-04-11 Thread Marek Vasut
On 04/11/2018 05:07 PM, Neil Armstrong wrote: > This patchset adds support for USB for the Amlogic Meson GXL SoCs following > the work done for Linux by Martin Blumenstingl at [1] [2] [3]. > > The support consist of : > - A port of dwc3-of-simple from Linux to U-boot > - A change to support

[U-Boot] [PATCH u-boot 2/2] pinctrl: meson: Update pinmux with new Linux bindings

2018-04-11 Thread Neil Armstrong
The pinctrl bindings has changed for Amlogic Meson SoCs since Linux 4.13, update the pinctrl driver to take this in account. Signed-off-by: Neil Armstrong --- drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 12 ++-- drivers/pinctrl/meson/pinctrl-meson-gxl.c | 14

[U-Boot] [PATCH v3 3/5] mtd: nand: mxs_nand: use structure for BCH geometry

2018-04-11 Thread Stefan Agner
From: Stefan Agner Calculate BCH geometry at start and store the information in a structure. This avoids recalculation on every page access and allows to calculate ECC relevant information in one place. This patch does not change ECC layout or driver behavior in any

[U-Boot] [PATCH v3 u-boot 1/3] usb: host: Add simple of glue driver for DWC3 USB Controllers integration

2018-04-11 Thread Neil Armstrong
This is a port of the dwc3-of-simple driver from Linux to enable/deassert clock and resets of a simple DWC3 Controller HW glue. Signed-off-by: Neil Armstrong --- drivers/usb/host/Kconfig | 7 +++ drivers/usb/host/Makefile | 1 +

[U-Boot] [PATCH v3 u-boot 0/3] Add USB Support for Amlogic Meson GXL SoCs

2018-04-11 Thread Neil Armstrong
This patchset adds support for USB for the Amlogic Meson GXL SoCs following the work done for Linux by Martin Blumenstingl at [1] [2] [3]. The support consist of : - A port of dwc3-of-simple from Linux to U-boot - A change to support more than 2 PHYs in the DWC3 DM driver - An USB2 PHY Driver

[U-Boot] [PATCH v3 u-boot 2/3] usb: host: dwc3: Add support for multiple PHYs

2018-04-11 Thread Neil Armstrong
DWC3 Ips can have more than 1 PHY for USB2 and 1 PHY for USB3, add support for a generic number of PHYs and adapt the code to handle a generic number of PHYs. Signed-off-by: Neil Armstrong --- drivers/usb/host/xhci-dwc3.c | 113

[U-Boot] [PATCH v3 1/5] mtd: nand: mxs_nand: use self init

2018-04-11 Thread Stefan Agner
From: Stefan Agner Instead of completing initialization via scan_bbt callback use NAND self init to initialize the GPMI (MXS) NAND controller. Suggested-by: Scott Wood Signed-off-by: Stefan Agner --- Changes in v3: - Fix

Re: [U-Boot] [PATCH v2 2/2] dm: i2c: implement gpio-based I2C deblock

2018-04-11 Thread Heiko Schocher
Hello Alexander, Am 27.03.2018 um 16:52 schrieb Alexander Kochetkov: The commit implement a gpio-based software deblocking. The code extract I2C pins description from device tree, switch pins to GPIO mode, toggle SCL until slave release SDA, send I2C stop and switch I2C pins back to I2C mode.

Re: [U-Boot] [PATCH V3 1/3] imx6: Define 'soc' env var for imx6 SoC

2018-04-11 Thread Gary Bisson
Hi Guillaume, On Wed, Apr 11, 2018 at 12:38:48PM +0200, Guillaume GARDET wrote: > Signed-off-by: Guillaume GARDET > Cc: Troy Kisky > Cc: Stefano Babic > Cc: Fabio Estevam > Cc: Gary Bisson

Re: [U-Boot] [PATCH 1/3] i2c: ihs_i2c: Use new fpgamap interface

2018-04-11 Thread Heiko Schocher
Hello Mario, Am 28.03.2018 um 14:37 schrieb Mario Six: The fpgamap interface has been switched to a "single function + data size" interface. Reflect this change in the IHS I2C driver. Signed-off-by: Mario Six --- drivers/i2c/ihs_i2c.c | 45

[U-Boot] [PATCH v2 u-boot 3/3] phy: Add Amlogic Meson USB2 & USB3 Generic PHY drivers

2018-04-11 Thread Neil Armstrong
The Amlogic Meson GXL and GXM (simple variant) embeds up to 3 USB2 PHYs and an USB3 PHY. This patch adds drivers for these for the standard generic PHY interface and supports the power-on/off calls and set the Host mode by default. They are based on the excellent work from Martin Blumenstingl

Re: [U-Boot] [PATCH 1/1] mmc: avoid division by zero in meson_mmc_config_clock - Please, consider for v2018.05-rc2

2018-04-11 Thread Neil Armstrong
Hi Jaehoon, On 10/04/2018 18:01, Heinrich Schuchardt wrote: > On 03/24/2018 03:57 PM, Heinrich Schuchardt wrote: >> On 03/18/2018 01:03 AM, Vagrant Cascadian wrote: >>> On 2018-03-17, Heinrich Schuchardt wrote: The Odroid C2 fails to read from mmc with U-Boot v2018.03. The change avoids

Re: [U-Boot] [PATCH v2 u-boot 1/3] usb: host: Add simple of glue driver for DWC3 USB Controllers integration

2018-04-11 Thread Marek Vasut
On 04/11/2018 04:53 PM, Neil Armstrong wrote: > Hi Marek, > > On 11/04/2018 16:37, Marek Vasut wrote: >> On 04/11/2018 04:29 PM, Neil Armstrong wrote: >>> This is a port of the dwc3-of-simple driver from Linux to enable/deassert >>> clock and resets of a simple DWC3 Controller HW glue. >>> >>>

[U-Boot] [RFC PATCH] imx: add writebcb command

2018-04-11 Thread Stefan Agner
From: Stefan Agner Add writebcb command which creates a NAND Boot Configuration Block (BCB) at the beginning of the active flash device. The BCB stores the information for the SoC internal boot ROM where the application with a valid IVT header can be found on the NAND

[U-Boot] [PATCH v2 u-boot] ARM: meson: rename GXBB to GX

2018-04-11 Thread Neil Armstrong
Taking into account the Amlogic Family name starts with GX, including the GXBB, GXL and GXM SoCs. Signed-off-by: Neil Armstrong --- Changes since v1: - Resent as single patch since cpuinfo needs further work - Aligned the defines in gx.h

[U-Boot] [PATCH u-boot 0/2] ARM64: meson: Sync DT and Bindings with Linux 4.16

2018-04-11 Thread Neil Armstrong
Synchronize the Amlogic Meson GX Device Tree and bindings with Linux 4.16 to beneficiate with the new DT nodes. The pinctrl bindings has changed since 4.13, so the pinctrl driver must be updated with the changes. Neil Armstrong (2): ARM64: meson: Sync DT and Bindings with Linux 4.16 pinctrl:

Re: [U-Boot] [PATCH v2 u-boot 1/2] reset: Add get/assert/deassert/release for bulk of reset signals

2018-04-11 Thread Jean-Jacques Hiblot
Hi Neil, while trying to test your patches on dwc3, I ran into a compilation issue. On 03/04/2018 11:40, Neil Armstrong wrote: This patch adds a "bulk" API to the reset API in order to get/deassert/ assert/release a group of reset signals associated with a device. This bulk API will avoid

Re: [U-Boot] [PATCH V3 1/3] imx6: Define 'soc' env var for imx6 SoC

2018-04-11 Thread Fabio Estevam
On Wed, Apr 11, 2018 at 12:52 PM, Guillaume Gardet wrote: > So, how to handle dtb filenames? Update with wrong soc definition ? Or drop > this patch and define a FDTFILE for each flavor? You can take a look at how we handle this for wandboard, cuboxi, sabresd, for

Re: [U-Boot] [PATCH 2/3] i2c: fsl: Use dev_read_addr

2018-04-11 Thread Heiko Schocher
Hello Mario, Am 28.03.2018 um 14:37 schrieb Mario Six: Since bus translations are now fully supported, use a plain "dev_read_addr" to get the device address from the device tree. Signed-off-by: Mario Six --- drivers/i2c/fsl_i2c.c | 5 + 1 file changed, 1

[U-Boot] [PATCH v2 u-boot 1/3] usb: host: Add simple of glue driver for DWC3 USB Controllers integration

2018-04-11 Thread Neil Armstrong
This is a port of the dwc3-of-simple driver from Linux to enable/deassert clock and resets of a simple DWC3 Controller HW glue. Signed-off-by: Neil Armstrong --- drivers/usb/host/Kconfig | 7 +++ drivers/usb/host/Makefile | 1 +

[U-Boot] [PATCH v2 u-boot 2/3] usb: host: dwc3: Add support for multiple PHYs

2018-04-11 Thread Neil Armstrong
DWC3 Ips can have more than 1 PHY for USB2 and 1 PHY for USB3, add support for a generic number of PHYs and adapt the code to handle a generic number of PHYs. Signed-off-by: Neil Armstrong --- drivers/usb/host/xhci-dwc3.c | 113

[U-Boot] [PATCH v2 u-boot 0/3] Add USB Support for Amlogic Meson GXL SoCs

2018-04-11 Thread Neil Armstrong
This patchset adds support for USB for the Amlogic Meson GXL SoCs following the work done for Linux by Martin Blumenstingl at [1] [2] [3]. The support consist of : - A port of dwc3-of-simple from Linux to U-boot - A change to support more than 2 PHYs in the DWC3 DM driver - An USB2 PHY Driver

[U-Boot] uboot support to Allwinner bananapi zero

2018-04-11 Thread Jun Nie
Hi Icenowy & Jagan, I see bananapi zero patch was posted and discussed in [1], but without further follow up. Maybe we can decide which name is more maintainable first, bananapi-*, Bananapi-* or Sinovoip_BPI_*. And add all new boards with following the rule. Which one do you prefer? If possible,

Re: [U-Boot] arm: socfpga: unable to boot cyclone5 devkit or SocKit

2018-04-11 Thread Dinh Nguyen
On Wed, Apr 11, 2018 at 7:55 AM, Alexander Graf wrote: > On 04/11/2018 02:37 PM, Marek Vasut wrote: >> >> On 04/11/2018 02:26 PM, Tom Rini wrote: >>> >>> On Wed, Apr 11, 2018 at 10:12:42AM +0200, Marek Vasut wrote: On 04/11/2018 04:52 AM, Dinh Nguyen wrote: [...]

[U-Boot] [PATCH] clk: clk_stm32f: Use PLLSAIP as USB 48MHz clock

2018-04-11 Thread Patrice Chotard
On all STM32F4 and F7 SoCs family (except STM32F429), PLLSAI output P can be used as 48MHz clock source for USB and SDMMC. Signed-off-by: Patrice Chotard Tested By: Bruno Herrera --- drivers/clk/clk_stm32f.c | 36

[U-Boot] [PATCH v3 u-boot 3/3] phy: Add Amlogic Meson USB2 & USB3 Generic PHY drivers

2018-04-11 Thread Neil Armstrong
The Amlogic Meson GXL and GXM (simple variant) embeds up to 3 USB2 PHYs and an USB3 PHY. This patch adds drivers for these for the standard generic PHY interface and supports the power-on/off calls and set the Host mode by default. They are based on the excellent work from Martin Blumenstingl

[U-Boot] [PATCH v3 4/5] mtd: nand: mxs_nand: report correct ECC parameters

2018-04-11 Thread Stefan Agner
From: Stefan Agner Report correct ECC parameters back to the stack. Do not report bytes as we have it not immeaditly available and the Linux version also does not report it. It seems to have no aversive effect. Signed-off-by: Stefan Agner ---

Re: [U-Boot] [PATCH] arm: mach-omap2: Enlarge SYS_MALLOC_F_LEN

2018-04-11 Thread Tom Rini
On Wed, Apr 11, 2018 at 09:26:40PM +0200, Sjoerd Simons wrote: > Since commit 8e14ba7bd524 ("gpio: omap_gpio: Add DM_FLAG_PRE_RELOC > flag") omap GPIO gets bound before relocation. Unfortunately due to > this, on at least the beaglebone black, the pre-relocation memory pool > gets exhausted

[U-Boot] [PATCH] ARM: rmobile: Set maximum kernel size to 64 MiB on Gen3

2018-04-11 Thread Marek Vasut
The Gen3 kernel images are often above 8 MiB, increase the maximum kernel size to 64 MiB to future-proof it, just like many other ARM64 boards do. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- include/configs/rcar-gen3-common.h | 1 +

[U-Boot] [PATCH] configs: am335x_boneblack: add example debug uart configuration

2018-04-11 Thread Sjoerd Simons
To make it simpler to enable the debug uart on boneblack add debug uart configuration as an example in the defconfig but with CONFIG_DEBUG_UART disabled. Which allows a user to simple enable it when needing easily without figuring out the right values for memory base/clock and shift.

Re: [U-Boot] tpl: spi: Add CONFIG_TPL_SPI_LOAD to Kconfig

2018-04-11 Thread Tom Rini
On Sat, Apr 07, 2018 at 04:05:46PM +0200, Marek Vasut wrote: > Add Kconfig entry for CONFIG_TPL_SPI_LOAD symbol to match the SPL one. > > Signed-off-by: Marek Vasut > Cc: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] serial: Fix Makefile during SPL and TPL build

2018-04-11 Thread Tom Rini
On Sat, Apr 07, 2018 at 04:06:22PM +0200, Marek Vasut wrote: > This patch fixes a situation where CONFIG_DM_SERIAL is enabled for > regular U-Boot and SPL, but not for TPL. In that case, the build > will try to include serial-uclass into the TPL nonetheless, because > CONFIG_DM_SERIAL is set. >

  1   2   >