Re: [PATCH 0/9] i.MX6Q+ fixes plus number of latest Kernel changes

2016-04-27 Thread Sascha Hauer
On Mon, Apr 25, 2016 at 10:36:58PM -0700, Andrey Smirnov wrote: > Hello, > > This patchset continains i.MX6Q+ reset sequence fix (similar > implementation was submitted to LKML) and besides that a number of > ported coomits from "pci/host-imx6" branch of: > > git://git.kernel.org/pub/scm/linux/ke

Re: Building on PC-BSD 10.3

2016-04-27 Thread Russell Haley
On Wed, Apr 27, 2016 at 2:14 AM, Sascha Hauer wrote: > Hi Russell, > > On Tue, Apr 26, 2016 at 09:59:10PM -0700, Russell Haley wrote: >> Hello, >> >> Just for a hoot I thought I'd build barebox on PC-BSD 10.3. I followed >> these directions: >> >> https://github.com/jcobham/i.MX53-kernel-images/wi

[PATCH 1/1] documentation: i2c_read() does not expect any "DATA".

2016-04-27 Thread Andreas Geisenhainer
Remove information about DATA from help text. Signed-off-by: Andreas Geisenhainer --- commands/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/i2c.c b/commands/i2c.c index e6750e3..ae7f7fc 100644 --- a/commands/i2c.c +++ b/commands/i2c.c @@ -243,7 +243,7 @@ BAR

[PATCH] sata-imx: Fix a typo

2016-04-27 Thread Andrey Smirnov
It looks like comma operator was accidentaly used instead of regular semicolon. Fix this to avoid confusing future readers of the code. Signed-off-by: Andrey Smirnov --- drivers/ata/sata-imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/sata-imx.c b/drivers/at

[PATCH] ATA: Implement a hook for 'devinfo'

2016-04-27 Thread Andrey Smirnov
Implement simple adapter function to serve as a hook for 'devinfo' command. Signed-off-by: Andrey Smirnov --- drivers/ata/disk_ata_drive.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/ata/disk_ata_drive.c b/drivers/ata/disk_ata_drive.c index d30d0ad..9b3730c 100644 --- a/

[PATCH] commands: mmc_extcsd: Fix incorrect usage of sprintf

2016-04-27 Thread Andrey Smirnov
In a number of places print_field_ge_v7() and print_field() function would call sprintf() without providing is with appropriate output buffer (str is initialized to NULL). Replace the sprintf() with basprintf() to fix that. Signed-off-by: Andrey Smirnov --- commands/mmc_extcsd.c | 79 +++

[PATCH] ARM: GuF Vincell: run code for LT variant aswell

2016-04-27 Thread Sascha Hauer
The LT variant has a different compatible, yet we want to run the code on this variant aswell. Add the corresponding test. Signed-off-by: Sascha Hauer --- arch/arm/boards/guf-vincell/board.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boards/guf-vincell/board.c

Re: [PATCH v2] ARM: i.MX: increase barebox partition sizes

2016-04-27 Thread Sascha Hauer
On Wed, Apr 27, 2016 at 02:51:17PM +0200, Juergen Borleis wrote: > Hi, > > On Wednesday 27 April 2016 11:25:01 Sascha Hauer wrote: > > [...] > > > Here the environment partition size is changed from 512kB to 128kB. > > > Couldn't this cause issues? > > > > Normally the environment is much smaller,

Re: [PATCH v2] ARM: i.MX: increase barebox partition sizes

2016-04-27 Thread Juergen Borleis
Hi, On Wednesday 27 April 2016 11:25:01 Sascha Hauer wrote: > [...] > > Here the environment partition size is changed from 512kB to 128kB. > > Couldn't this cause issues? > > Normally the environment is much smaller, so I wouldn't expect issues > here. The alternative to making the environment sm

Re: [PATCH v2] ARM: i.MX: increase barebox partition sizes

2016-04-27 Thread Fabio Estevam
On Wed, Apr 27, 2016 at 6:25 AM, Sascha Hauer wrote: > Normally the environment is much smaller, so I wouldn't expect issues > here. The alternative to making the environment smaller would be to move > other partitions to the back. This would probably hurt more, especially > since a regular fdisk

[PATCH for next 11/15] ARM: phytec-som-imx6: add phyCORE-i.MX6 DualLite

2016-04-27 Thread Stefan Christ
Add Phytec phyCORE-i.MX6 SOM. Support: - imx6dl-phytec-phycore-som-emmc: - 1GB RAM on 1 Bank with 64Bit - 10/100MBit Ethernet - SPI NOR - eMMC - SD - UART Signed-off-by: Stefan Christ --- arch/arm/boards/phytec-som-imx6/board.c| 6 +- .../fla

[PATCH for next 04/15] imx6qdl-phytec-pfla02.dtsi: add i2c eeprom

2016-04-27 Thread Stefan Christ
From: Jan Remmet add atmel,24c32 mounted on module Signed-off-by: Jan Remmet --- arch/arm/dts/imx6qdl-phytec-pfla02.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/dts/imx6qdl-phytec-pfla02.dtsi b/arch/arm/dts/imx6qdl-phytec-pfla02.dtsi index 26f9746..aa39fd9 1

[PATCH for next 13/15] ARM: phytec-som-imx6: rename environment folder

2016-04-27 Thread Stefan Christ
The extra environment folder for the phyCORE-i.MX6 had the suffix '-mira'. That's the name of a baseboard. Since the bootloader is generic for all baseboards, use a generic suffix for the environment folder. Signed-off-by: Stefan Christ --- arch/arm/boards/phytec-som-imx6/Makefile |

[PATCH for next 09/15] ARM: phytec-som-imx6: fix bootsource for phyCORE-i.MX6

2016-04-27 Thread Stefan Christ
The phyCORE-i.MX6 has either a NAND or EMMC storage device and an external SD-Card interface. The automatic bootsource detection in the barebox environment should reflect that. - If the board was booted from the external SD-Card interface, it should continue loading the kernel and device tree fr

[PATCH for next 14/15] ARM: phytec-som-imx6: adapt main update handler for eMMC

2016-04-27 Thread Stefan Christ
Some phyCORE-i.MX6 variants have eMMC instead of a NAND chip. Provide an update_handler for them. Signed-off-by: Stefan Christ --- arch/arm/boards/phytec-som-imx6/board.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/boards/phytec-som-imx6/board.c b/arch/a

[PATCH for next 15/15] ARM: phytec-som-imx6: add NOR for phycore-imx6 emmc

2016-04-27 Thread Stefan Christ
Enable NOR for phyCORE-i.MX6 DualLite and Quad eMMC variants. Furthermore add an extra 'status = "disabled"' in the flash node. It has no functional effect, because the SPI bus node 'ecspi1' is disabled, too. Signed-off-by: Stefan Christ --- arch/arm/dts/imx6dl-phytec-phycore-som-emmc.dts | 8

[PATCH for next 12/15] ARM: phytec-som-imx6: update RAM calibration for phycore-imx6dl

2016-04-27 Thread Stefan Christ
Update RAM calibration values in the flashheader file for phyCORE-i.MX6 DualLite/Solo. These are verified and tested in the climatic chamber for commercial, extended commercial, industrial and automotive i.MX6 variants. Signed-off-by: Stefan Christ --- .../phytec-som-imx6/flash-header-phytec-pcm

[PATCH for next 07/15] ARM: phytec-som-imx6: add barebox partitions for MMC

2016-04-27 Thread Stefan Christ
Add missing MMC barebox environment partitions for the phyCORE-i.MX6 with EMMC. Otherwise the barebox cannot find the environment, when the board is boot from sd-card. Signed-off-by: Stefan Christ --- arch/arm/dts/imx6q-phytec-phycore-som-emmc.dts | 13 + 1 file changed, 13 insertion

[PATCH for next 10/15] ARM: phytec-som-imx6: add phyCORE-i.MX6 Quad 2GiB RAM

2016-04-27 Thread Stefan Christ
From: Christian Hemp Add new Phytec phyCORE-i.MX6 SOM: Support: - imx6q-phytec-phycore-som-emmc: - 2GiB RAM on 1 Bank with 64Bit - 1GBit Ethernet - SPI NOR - eMMC - SD - UART Signed-off-by: Christian Hemp --- .../boards/phytec-som-imx6/flash-head

[PATCH for next 08/15] ARM: phytec-som-imx6: add boot device emmc and automount

2016-04-27 Thread Stefan Christ
Add boot file 'emmc' and automount configuration for phyCORE-i.MX6. Signed-off-by: Stefan Christ --- .../arm/boards/phytec-som-imx6/defaultenv-physom-imx6-mira/boot/emmc | 5 + .../phytec-som-imx6/defaultenv-physom-imx6-mira/init/automount | 3 +++ 2 files changed, 8 insertions(+) cre

[PATCH for next 06/15] ARM: dts: pfla02: use long enough reset for ethernet phy

2016-04-27 Thread Stefan Christ
Use a longer reset time for ethernet phy Micrel KSZ9031RNX. Otherwise a small percentage of modules have 'transmission timeouts' errors like barebox@Phytec phyFLEX-i.MX6 Quad Carrier-Board:/ ifup eth0 warning: No MAC address set. Using random address 7e:94:4d:02:f8:f3 eth0: 1000Mbps full

[PATCH for next 00/15] New Phytec i.MX6 Patches

2016-04-27 Thread Stefan Christ
Hi, a new round of barebox patches for the i.MX6 Phytec boards. New variants, two fixes for phyBOARD-SUBRA/ALCOR and phyFLEX-i.MX6 and industrial/automotive RAM calibration values for phyCORE-i.MX6 Solo/DualLite. These patches are based on the next branch and the current changes in patches A

[PATCH for next 03/15] ARM: imx6q: add support for phyBOARD-SUBRA-i.MX6 Quad

2016-04-27 Thread Stefan Christ
Add support for phyBOARD-SUBRA-i.MX6 with phyFLEX-i.MX6 Quad 1GiB on one bank. This patch factors out the common device tree nodes for the Quad and Solo variant into 'imx6qdl-phytec-phyboard-subra.dtsi'. Signed-off-by: Stefan Christ --- arch/arm/boards/phytec-som-imx6/lowlevel.c | 1 + arc

[PATCH for next 01/15] ARM: imx_v7_defconfig: enable NANDTEST command

2016-04-27 Thread Stefan Christ
Signed-off-by: Stefan Christ --- arch/arm/configs/imx_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v7_defconfig b/arch/arm/configs/imx_v7_defconfig index 82b3821..044d826 100644 --- a/arch/arm/configs/imx_v7_defconfig +++ b/arch/arm/configs/imx_v7_defconf

[PATCH for next 02/15] ARM: imx_v7_defconfig: add command mmc_extcsd

2016-04-27 Thread Stefan Christ
Enable the mmc_extcsd command to read and write MMC/eMMC registers. Signed-off-by: Stefan Christ --- arch/arm/configs/imx_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v7_defconfig b/arch/arm/configs/imx_v7_defconfig index 044d826..1b0739c 100644 --- a/ar

[PATCH for next 05/15] ARM: dts: imx6: phyboards: reduce clock speed for usdhc3

2016-04-27 Thread Stefan Christ
Due to hardware issues the usdhc3 interface on phyBOARD-ALCOR i.MX6 and phyBOARD-SUBRA i.MX6 doesn't work reliable at 50Mhz. You get communication errors like barebox@Phytec phyBOARD SUBRA:/ ls /mnt/mmc/ mmc2: detected SD card version 2.0 mmc2: registered mmc2 imx-esdhc 2198000.us

Re: [PATCH v2] ARM: i.MX: increase barebox partition sizes

2016-04-27 Thread Sascha Hauer
On Tue, Apr 26, 2016 at 08:47:28AM -0300, Fabio Estevam wrote: > Hi Sascha, > > On Tue, Apr 26, 2016 at 3:44 AM, Sascha Hauer wrote: > > > diff --git a/arch/arm/dts/imx25-karo-tx25.dts > > b/arch/arm/dts/imx25-karo-tx25.dts > > index 8d79471..76847ff 100644 > > --- a/arch/arm/dts/imx25-karo-tx2

Re: Building on PC-BSD 10.3

2016-04-27 Thread Sascha Hauer
Hi Russell, On Tue, Apr 26, 2016 at 09:59:10PM -0700, Russell Haley wrote: > Hello, > > Just for a hoot I thought I'd build barebox on PC-BSD 10.3. I followed > these directions: > > https://github.com/jcobham/i.MX53-kernel-images/wiki/How-To:-Build-Barebox-for-IMX53 > > and replaced "make" wit

Re: [PATCH 0/9] i.MX6Q+ fixes plus number of latest Kernel changes

2016-04-27 Thread Lucas Stach
Am Montag, den 25.04.2016, 22:36 -0700 schrieb Andrey Smirnov: > Hello, > > This patchset continains i.MX6Q+ reset sequence fix (similar > implementation was submitted to LKML) and besides that a number of > ported coomits from "pci/host-imx6" branch of: > > git://git.kernel.org/pub/scm/linux/ker

Re: [PATCH] of: fix of_tree_for_each_node_from() macro

2016-04-27 Thread Sascha Hauer
Hi Boris, On Tue, Apr 26, 2016 at 08:46:06PM +0200, Boris Brezillon wrote: > of_tree_for_each_node_from() is supposed to iterate over all DT nodes > after the one pointed by the from parameter, but with the current > of_next_node() implementation we cannot access the root node. > > Patch of_next_

Re: [PATCH] serial_auart: make dt aware

2016-04-27 Thread Sascha Hauer
On Tue, Apr 26, 2016 at 11:08:34AM +0200, Uwe Kleine-König wrote: > This allows to instantiate devices from an oftree and so allows > to select the console using /chosen/stdout-path. > > Signed-off-by: Uwe Kleine-König > --- > drivers/serial/serial_auart.c | 9 + > 1 file changed, 9 inse

Re: [PATCH] images: Makefile.socfpga: fix typo

2016-04-27 Thread Sascha Hauer
On Tue, Apr 26, 2016 at 06:03:22PM +0200, Ulrich Ölmann wrote: > Signed-off-by: Ulrich Ölmann > --- > images/Makefile.socfpga | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/images/Makefile.socfpga b/images/Makefile.socfpga > index d52b909ff354..7e642c06c995 100644 > ---

[PATCH 2/3] Kconfig: Make ENV_HANDLING visible

2016-04-27 Thread Sascha Hauer
ENV_HANDLING is usable even without explicit loadenv/saveenv command support. Instead of selecting this option from loadenv/saveenv, make this option visible. loadenv/saveenv can then depend on ENV_HANDLING rather than selecting it. This reduces Kconfig dependencies hassles. Signed-off-by: Sascha

Re: [PATCH] globalvar: Create Kconfig symbol for NVVAR

2016-04-27 Thread Sascha Hauer
Hi Trent, On Tue, Apr 26, 2016 at 06:05:05PM +, Trent Piepho wrote: > On Tue, 2016-04-26 at 11:30 +0200, Sascha Hauer wrote: > > nvvar support not only needs globalvar, but also persistent > > environment storage. Add a separate default-y option which > > depends on ENV_HANDLING for this case.

[PATCH 3/3] Kconfig: Create Kconfig symbol for NVVAR

2016-04-27 Thread Sascha Hauer
nvvar support not only needs globalvar, but also persistent environment storage. Add a separate default-y option which depends on ENV_HANDLING for this case. Make the option visible to let the user decide whether he wants to have this option and add a help text to make this decision easier. Signed

[PATCH 1/3] Kconfig: Make GLOBALVAR visible

2016-04-27 Thread Sascha Hauer
Currently global environment variables are only enabled when the "global" command is enabled. In fact, they could be used even with the "global" command disabled, so make the GLOBALVAR option visible. While at it, add a help text for this option. Signed-off-by: Sascha Hauer --- commands/Kconfig

[PATCH] net: phy: micrel: KSZ9081/KSZ8091: Disable broadcast mode

2016-04-27 Thread Teresa Remmet
KSZ9081 only supports two phy ids 0x0 and 0x3. 0x0 is also used as broadcast address. Disable broadcast, so that id 0x0 can be used as unique address on a shared bus. Signed-off-by: Teresa Remmet --- drivers/net/phy/micrel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dri