Re: [RFC v2 2/2] [WIP] net: add initial ENC28J60 support

2014-06-23 Thread Sascha Hauer
On Mon, Jun 16, 2014 at 11:41:20AM +0400, Antony Pavlov wrote: ENC28J60 is a stand-alone Ethernet controller with SPI Interface. and integrated 10BASE-T PHY. This driver was ported from linux-3.15. The most notable barebox driver version changes: * add device tree support; * use

Re: [RFC 1/2] [WIP] i2c: import SMBus stuff from linux

2014-06-23 Thread Sascha Hauer
On Mon, Jun 16, 2014 at 12:00:12PM +0400, Antony Pavlov wrote: can we move it to drivers/i2c/i2c-smbus.c? Yes, why not? Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str.

Re: [RFC 2/2] [WIP] gpio: add driver for PCA95[357]x, PCA9698, TCA64xx, and MAX7310 SMBus I/O expanders

2014-06-23 Thread Sascha Hauer
On Mon, Jun 16, 2014 at 12:00:13PM +0400, Antony Pavlov wrote: TODOs: * can we drop depricated device-tree properties? Yes please. No need to introduce such stuff in barebox. Otherwise the driver looks good. Sascha -- Pengutronix e.K. |

Re: [PATCH] commands: ls: add ll as an alias for ls -l

2014-06-23 Thread Sascha Hauer
On Wed, Jun 18, 2014 at 09:41:02PM +0200, Jan Luebbe wrote: This saves one second of user time on every interactive boot. Signed-off-by: Jan Luebbe j...@pengutronix.de Applied, thanks Sascha --- commands/ls.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

Re: [PATCH 1/2] ARM: AM335x: beaglebone: remove obsolete config

2014-06-23 Thread Sascha Hauer
On Wed, Jun 18, 2014 at 09:43:18PM +0200, Jan Luebbe wrote: The bootargs are now autogenerated by barebox and the hostname should not be preconfigured. Signed-off-by: Jan Luebbe j...@pengutronix.de Applied both, thanks Sascha --- .../boards/beaglebone/defaultenv-beaglebone/config|

Re: [PATCH 0/4] ARM: versatile: switch to devicetree support

2014-06-23 Thread Sascha Hauer
On Fri, Jun 20, 2014 at 01:28:36AM +0400, Antony Pavlov wrote: Antony Pavlov (4): ARM: versatile: drop redundant mach/gpio.h i2c: versatile: add devicetree support ARM: versatile: switch to devicetree support ARM: versatilepb_defconfig: enable devicetree support Applied, thanks

Re: [RFC 2/2] dns325: initial support for D-Link DNS-325

2014-06-23 Thread Alexander Aring
On Sun, Jun 22, 2014 at 11:50:56PM +0200, Sebastian Hesselbarth wrote: On 06/22/2014 10:34 PM, Alexander Aring wrote: This patch add a basic support for the D-Link DNS-325. Currently only booting via uart with kwboot is supported. The barebox kwboot utility doesn't work at the moment.

Re: [RFC 1/2] kirkwood: add support for booting via oftree probe

2014-06-23 Thread Alexander Aring
On Sun, Jun 22, 2014 at 11:45:57PM +0200, Sebastian Hesselbarth wrote: On 06/22/2014 10:34 PM, Alexander Aring wrote: This patch initialize memory only if we boot a kirkwood arch with device-tree probing. Otherwise some devices like timer or uart will be probed twice. Signed-off-by:

[PATCH] net: ifup: skip *-discover files for ifup -a

2014-06-23 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- net/ifup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/ifup.c b/net/ifup.c index 2e59025..de0c5f8 100644 --- a/net/ifup.c +++ b/net/ifup.c @@ -136,6 +136,8 @@ int ifup_all(unsigned flags) while ((d = readdir(dir))) {

[PATCH] remove unused boot-menu-add-entry

2014-06-23 Thread Sascha Hauer
The boot-menu-add-entry script no longer exists. Remove it from boot scripts. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/boards/archosg9/env/boot/sd-card-android| 5 - arch/arm/boards/archosg9/env/boot/sd-card-linux | 5 -

Re: [PATCH] commands: ls: add ll as an alias for ls -l

2014-06-23 Thread Holger Schurig
Wouldn't it be better if barebox's shell gets the alias command? This would solve a problem like this, and we also could get rid of one of edit/sedit commands ... ___ barebox mailing list barebox@lists.infradead.org

[PATCH] ARM: i.MX: remove console= from env files

2014-06-23 Thread Sascha Hauer
For i.MX devicetree boards the console= parameter is automatically generated and can be dropped from the env files. If a file becomes empty then, remove it. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/boards/boundarydevices-nitrogen6x/env/config-board | 6 --

Re: i.MX6 frame buffer inside barebox?

2014-06-23 Thread Holger Schurig
Whaaa, it never occured to me that I have to enable the framebuffer as well... thanks, now it works. As for simplefb, I removed that. I thought that this sets up a framebuffer in the bootloader, which when Linux' framebuffer driver takes over, without reprogramm or screen flicker. However, it

Re: i.MX6 frame buffer inside barebox?

2014-06-23 Thread Sascha Hauer
On Mon, Jun 23, 2014 at 09:25:02AM +0200, Holger Schurig wrote: Whaaa, it never occured to me that I have to enable the framebuffer as well... thanks, now it works. barebox has nothing useful to show on the screen until some splash command has been executed, so it's better to leave the

Re: [PATCH] commands: ls: add ll as an alias for ls -l

2014-06-23 Thread Sascha Hauer
On Mon, Jun 23, 2014 at 09:20:40AM +0200, Holger Schurig wrote: Wouldn't it be better if barebox's shell gets the alias command? This would solve a problem like this, and we also could get rid of one of edit/sedit commands ... Why not? Send patches ;) Sascha -- Pengutronix e.K.

[PATCH] common: resource: print conflicts as warning

2014-06-23 Thread Alexander Aring
Crazy things happen if there are resource conflicts and a device probe runs dev_request_mem_region. The dev_request_mem_region returns a start pointer which is zero. The probe function doesn't check on this and probing the device on zero base address. To debug this in debug log level there are

Re: [PATCH] commands: ls: add ll as an alias for ls -l

2014-06-23 Thread Alexander Aring
On Mon, Jun 23, 2014 at 09:44:28AM +0200, Sascha Hauer wrote: On Mon, Jun 23, 2014 at 09:20:40AM +0200, Holger Schurig wrote: Wouldn't it be better if barebox's shell gets the alias command? This would solve a problem like this, and we also could get rid of one of edit/sedit commands ...

Re: i.MX6 frame buffer inside barebox?

2014-06-23 Thread Holger Schurig
My preferred solution is to be fast enough in the bootloader and show a splash screen under Linux only. Hmm, I'd like to not do that. Splash screen from Linux usually means that I need an initrd. And an initrd is seldom needed on an embedded device (i.e. no complicated RAID or DM setup). And it

SFI NOR sizes totally off ?!?

2014-06-23 Thread Holger Schurig
Seems like ls -l is right, but devinfo is wrong: barebox:/ ls -l /dev/m25p0 crw--- 67108864 /dev/m25p0 barebox:/ devinfo m25p0 Parameters: size: 5468012149590870304 erasesize: 4096 writesize: 1 oobsize: 0 barebox:/ of_dump /soc/aips-bus@0200/spba-bus@0200/ecspi@0201

Re: SFI NOR sizes totally off ?!?

2014-06-23 Thread Sascha Hauer
On Mon, Jun 23, 2014 at 11:28:09AM +0200, Holger Schurig wrote: Seems like ls -l is right, but devinfo is wrong: barebox:/ ls -l /dev/m25p0 crw--- 67108864 /dev/m25p0 barebox:/ devinfo m25p0 Parameters: size: 5468012149590870304 erasesize: 4096 writesize: 1 oobsize: 0

Re: i.MX6 frame buffer inside barebox?

2014-06-23 Thread Sascha Hauer
On Mon, Jun 23, 2014 at 10:42:55AM +0200, Holger Schurig wrote: My preferred solution is to be fast enough in the bootloader and show a splash screen under Linux only. Hmm, I'd like to not do that. Splash screen from Linux usually means that I need an initrd. And an initrd is seldom needed

Re: i.MX6 frame buffer inside barebox?

2014-06-23 Thread Robert Schwebel
On Mon, Jun 23, 2014 at 10:42:55AM +0200, Holger Schurig wrote: My preferred solution is to be fast enough in the bootloader and show a splash screen under Linux only. Hmm, I'd like to not do that. Splash screen from Linux usually means that I need an initrd. And an initrd is seldom needed

[PATCH 5/7] clk: mvebu: fix Armada 370 TCLK frequencies

2014-06-23 Thread Sebastian Hesselbarth
This fixes Armada 370 TCLK frequencies that are off by a factor of 10. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: barebox@lists.infradead.org --- drivers/clk/mvebu/armada-370.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 7/7] clocksource: mvebu: split initialization for Armada 370/XP

2014-06-23 Thread Sebastian Hesselbarth
Timers found on Marvell Armada 370 and XP require different setup. While timer clock on Armada 370 can be derived from a divided reference clocks, Armada XP always uses a 25MHz reference. This also updates compatibles to destinguish timers for both SoCs and fixes some whitespace issues on

[PATCH 00/11] Convert MVEBU SoCs to DT and PBL_MULTI_IMAGE

2014-06-23 Thread Sebastian Hesselbarth
This patch set converts Kirkwood and Armada 370/XP to DT and provides PBL_MULTI_IMAGE support as we already have for Dove. Patch 1 resorts pbl entries in arch/arm/dts/Makefile back to alphabetical order. Patch 2 reworks mvebu pbl image Makefile to ease integration of other SoCs. Patches 3 and 4

[PATCH 05/11] ARM: mvebu: convert Globalscale Guruplug to PBL_MULTI_IMAGES

2014-06-23 Thread Sebastian Hesselbarth
This converts Marvell Kirkwood based Globalscale Guruplug to PBL_MULTI_IMAGES. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: barebox@lists.infradead.org --- arch/arm/boards/globalscale-guruplug/Makefile | 1 + arch/arm/boards/globalscale-guruplug/lowlevel.c | 35

[PATCH 01/11] ARM: dts: sort pbl entries by alphabet

2014-06-23 Thread Sebastian Hesselbarth
Clean up pbl Makefile entries, that are out of alphabetical order. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: barebox@lists.infradead.org --- arch/arm/dts/Makefile | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git

[PATCH 10/11] ARM: mvebu: convert to multiple board selection

2014-06-23 Thread Sebastian Hesselbarth
With all SoCs converted to DT based probing, select PBL_MULTI_IMAGES support and get rid of SoCs Kconfig choice to allow multiple boards to be selected. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: barebox@lists.infradead.org --- arch/arm/Kconfig| 1 +

[PATCH 2/7] ARM: mvebu: set default TEXT_BASE by SoC

2014-06-23 Thread Sebastian Hesselbarth
All current boards use the same TEXT_BASE, therefore set the default TEXT_BASE by SoC instead of by board. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: barebox@lists.infradead.org --- arch/arm/mach-mvebu/Kconfig | 10 -- 1 file changed, 4 insertions(+), 6

[PATCH 08/11] ARM: mvebu: convert Marvell Armada XP GP to PBL_MULTI_IMAGES

2014-06-23 Thread Sebastian Hesselbarth
This converts Marvell Armada XP based Marvell Armada XP GP to PBL_MULTI_IMAGES. A DT overlay is added to keep possible barebox-specific changes separated and added to lowlevel board init. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: barebox@lists.infradead.org ---

[PATCH 04/11] ARM: mvebu: convert Armada 370/XP devices to be probed from DT

2014-06-23 Thread Sebastian Hesselbarth
With Armada 370/XP DT files available, convert Armada 370/XP SoC init to register basic devices from DT only. Makefile targets for dtbs will be removed again as soon as MULTI_PBL is available. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: barebox@lists.infradead.org

[PATCH 02/11] ARM: mvebu: sort pbl image target by board

2014-06-23 Thread Sebastian Hesselbarth
This reorders images/Makefile.mvebu targets by board to ease integration of new boards. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: barebox@lists.infradead.org --- images/Makefile.mvebu | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff

[PATCH 11/11] ARM: mvebu: remove dtb Makefile entries

2014-06-23 Thread Sebastian Hesselbarth
MULTI_PBL images have a built-in dtb by default. With all MVEBU SoCs converted to MULTI_PBL images, get rid of the extra Makefile rules for appended dtbs. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: barebox@lists.infradead.org --- arch/arm/dts/Makefile | 6 --

[PATCH 07/11] ARM: mvebu: convert Globalscale Mirabox to PBL_MULTI_IMAGES

2014-06-23 Thread Sebastian Hesselbarth
This converts Marvell Armada 370 based Globalscale Mirabox to PBL_MULTI_IMAGES. A DT overlay is added to keep possible barebox-specific changes separated and added to lowlevel board init. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: barebox@lists.infradead.org ---

[PATCH 3/7] ARM: mvebu: delete unused mach/mvebu.h

2014-06-23 Thread Sebastian Hesselbarth
This removes the stale mach/mvebu.h include as there is no user of it. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: barebox@lists.infradead.org --- arch/arm/mach-mvebu/include/mach/mvebu.h | 22 -- 1 file changed, 22 deletions(-) delete mode

[PATCH 5/7] i2c: i2c_gpio: add devicetree support

2014-06-23 Thread Antony Pavlov
Signed-off-by: Antony Pavlov antonynpav...@gmail.com --- .../devicetree/bindings/gpio/gpio_i2c.txt | 32 + drivers/i2c/busses/i2c-gpio.c | 54 +++-- include/of_gpio.h | 55 ++ 3 files

[PATCH 3/7] MIPS: malta: enable gpiolib

2014-06-23 Thread Antony Pavlov
Signed-off-by: Antony Pavlov antonynpav...@gmail.com --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 9a240b7..f6b9765 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -44,6 +44,7 @@ config MACH_MIPS_MALTA

[PATCH 0/7] MIPS: malta: enable gpio i2c stuff

2014-06-23 Thread Antony Pavlov
Antony Pavlov (7): gpio: add Malta CBUS FPGA I2C driver MIPS: add asm/gpio.h header file MIPS: malta: enable gpiolib MIPS: dts: qemu-malta.dts: enable CBUS FPGA I2C gpio driver i2c: i2c_gpio: add devicetree support MIPS: dts: qemu-malta.dts: use i2c-gpio for accessing CBUS FPGA I2C

[PATCH 1/7] gpio: add Malta CBUS FPGA I2C driver

2014-06-23 Thread Antony Pavlov
This driver provides common support for accessing the CBUS FPGA I2C lines through the gpio library. Additional i2c bitbang driver must be enabled in order to use the functionality of the i2c controller. Signed-off-by: Antony Pavlov antonynpav...@gmail.com --- drivers/gpio/Kconfig

[PATCH 2/7] MIPS: add asm/gpio.h header file

2014-06-23 Thread Antony Pavlov
Signed-off-by: Antony Pavlov antonynpav...@gmail.com --- arch/mips/include/asm/gpio.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/include/asm/gpio.h b/arch/mips/include/asm/gpio.h new file mode 100644 index 000..41a9589 --- /dev/null +++ b/arch/mips/include/asm/gpio.h

[PATCH 7/7] MIPS: qemu-malta_defconfig: enable gpio i2c stuff

2014-06-23 Thread Antony Pavlov
Signed-off-by: Antony Pavlov antonynpav...@gmail.com --- arch/mips/configs/qemu-malta_defconfig | 60 ++ 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/arch/mips/configs/qemu-malta_defconfig b/arch/mips/configs/qemu-malta_defconfig index