Re: [PATCH 05/11] arm: mvebu: convert Armada 370/XP to common init

2013-05-21 Thread Sascha Hauer
Sebastian, +static int armada_370_xp_init_soc(void) { unsigned long phys_base, phys_size; - mvebu_init_clocks(); + armada_370_xp_init_clocks(); add_generic_device(mvebu-timer, DEVICE_ID_SINGLE, NULL, -MVEBU_TIMER_BASE, 0x30, IORESOURCE_MEM,

Re: [PATCH 05/11] arm: mvebu: convert Armada 370/XP to common init

2013-05-21 Thread Sebastian Hesselbarth
On 05/21/2013 08:28 AM, Sascha Hauer wrote: Sebastian, +static int armada_370_xp_init_soc(void) { unsigned long phys_base, phys_size; - mvebu_init_clocks(); + armada_370_xp_init_clocks(); add_generic_device(mvebu-timer, DEVICE_ID_SINGLE, NULL, -

Re: [PATCH 05/11] arm: mvebu: convert Armada 370/XP to common init

2013-05-21 Thread Sascha Hauer
On Tue, May 21, 2013 at 08:28:10AM +0200, Sascha Hauer wrote: Sebastian, +static int armada_370_xp_init_soc(void) { unsigned long phys_base, phys_size; - mvebu_init_clocks(); + armada_370_xp_init_clocks(); add_generic_device(mvebu-timer, DEVICE_ID_SINGLE, NULL, -

Re: [PATCH 05/11] arm: mvebu: convert Armada 370/XP to common init

2013-05-21 Thread Sebastian Hesselbarth
On 05/21/2013 08:33 AM, Sascha Hauer wrote: On Tue, May 21, 2013 at 08:28:10AM +0200, Sascha Hauer wrote: Sebastian, +static int armada_370_xp_init_soc(void) { unsigned long phys_base, phys_size; - mvebu_init_clocks(); + armada_370_xp_init_clocks();

Re: [PATCH v2] nand_base: sync flash detection functions with linux 3.9's code

2013-05-21 Thread Sascha Hauer
On Fri, May 17, 2013 at 07:15:12PM +0800, Jean-Christophe PLAGNIOL-VILLARD wrote: HI, can we have stable release as this patch fix the band support as it's broken since 4c2bdc8728016b3412523e3264651651fe752860 Said commit is not in 2013.05.0 Sascha -- Pengutronix e.K.

[PATCH] mci i.MX esdhc: Fix clock divider calculation

2013-05-21 Thread Steffen Trumtrar
From: Sascha Hauer s.ha...@pengutronix.de This updates the i.MX esdhc divider settings to FSLs U-Boot. Current timings work fine for SD cards, but not for eMMC. Although the calculation is fine according to the datasheet and reading from eMMC works, writing is broken. Atleast on i.MX53/tqma53.

[PATCH 01/10] ARM: i.MX: remove unused .mac_addr_base in iim

2013-05-21 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/mach-imx/iim.c | 6 -- arch/arm/mach-imx/imx25.c| 6 +- arch/arm/mach-imx/include/mach/iim.h | 4 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/arch/arm/mach-imx/iim.c

[PATCH] move the first i.MX board over to devicetree

2013-05-21 Thread Sascha Hauer
It's time to begin switching the first i.MX board over to devicetree. The following is based on the serveral devicetree related series I recently sent. It switches the i.MX51 babbage board over to devicetree. Sascha Sascha Hauer

[PATCH 08/10] ARM: i.MX51 babbage: provide MAC adress in devicetree

2013-05-21 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/dts/imx51-babbage.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imx51-babbage.dts b/arch/arm/dts/imx51-babbage.dts index 9630b61..4c43312 100644 --- a/arch/arm/dts/imx51-babbage.dts +++

Re: [PATCH 04/11] arm: mvebu: convert Dove to common init

2013-05-21 Thread Sascha Hauer
On Sun, May 19, 2013 at 08:23:48PM +0200, Sebastian Hesselbarth wrote: This patch converts Marvell Dove SoC init to make use of common lowlevel and init functions. Postcore initcall will now setup memory controller base registers to match internal registers base, probe real memory size, and

[PATCH 07/10] ARM: i.MX51 babbage: Add spi-cs-high property to pmic

2013-05-21 Thread Sascha Hauer
The mc13892 driver knows that it needs spi-cs-high, so the mc13892 will work. The dataflash also connected to this bus though can only be probed when the mc13892 is inactive. Due to driver probe differences we can only make sure the mc13892 is inactive when we put the information into the

[PATCH 5/5] net: fec: Add imx25 compatible property

2013-05-21 Thread Sascha Hauer
The i.MX53 fec claims to be compatible to i.MX25 and i.MX53. In barebox we do not have to make differences between i.MX25 and i.MX27 though, so just fall back to i.MX27. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/net/fec_imx.c | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH 3/5] mtd: dataflash: Add devicetree probing support

2013-05-21 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mtd/devices/mtd_dataflash.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c index ddab6bb..52bd842 100644 ---

Re: [PATCH v2] nand_base: sync flash detection functions with linux 3.9's code

2013-05-21 Thread Jean-Christophe PLAGNIOL-VILLARD
On 08:41 Tue 21 May , Sascha Hauer wrote: On Fri, May 17, 2013 at 07:15:12PM +0800, Jean-Christophe PLAGNIOL-VILLARD wrote: HI, can we have stable release as this patch fix the band support as it's broken since 4c2bdc8728016b3412523e3264651651fe752860 Said commit is

[PATCH 2/5] spi: improve devicetree support

2013-05-21 Thread Sascha Hauer
- zero spi_board_info structure to not accidently pass unitilialized fields - parse spi-max-frequency property from devicetree - parse mode flags from devicetree Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/spi/spi.c | 15 +-- 1 file changed, 13 insertions(+), 2

Re: [PATCH 08/10] ARM: i.MX51 babbage: provide MAC adress in devicetree

2013-05-21 Thread Alexander Shiyan
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/dts/imx51-babbage.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imx51-babbage.dts b/arch/arm/dts/imx51-babbage.dts index 9630b61..4c43312 100644 --- a/arch/arm/dts/imx51-babbage.dts +++

Re: [PATCH 04/11] arm: mvebu: convert Dove to common init

2013-05-21 Thread Sebastian Hesselbarth
On 05/21/13 15:49, Sascha Hauer wrote: On Sun, May 19, 2013 at 08:23:48PM +0200, Sebastian Hesselbarth wrote: This patch converts Marvell Dove SoC init to make use of common lowlevel and init functions. Postcore initcall will now setup memory controller base registers to match internal

[PATCH] MXS/i.MX23: add boot source detection

2013-05-21 Thread Juergen Beisert
The boot source for the i.MX23 is configured via a few GPIOs, which are later be used for different purposes (like LCD data for example). The SoC internal ROM reads these GPIOs and uses the selected boot source. For various reasons the boot source is also of interest when Barebox is running. This

Re: Unable to Boot from NAND on Mini2440

2013-05-21 Thread Sascha Hauer
Hi Vikram, On Sat, May 18, 2013 at 04:35:46PM +0530, Vikram Narayanan wrote: Hello, I followed the instructions here http://barebox.org/documentation/barebox-2011.04.0/mini2440.html After writing to NAND, I switched the boot mode to NAND and did a reset. Nothing comes up on the prompt. I

Re: [RFC] MXS/i.MX23: detecting the boot source

2013-05-21 Thread Juergen Beisert
Sascha Hauer wrote: On Fri, May 17, 2013 at 10:18:39AM +0200, Juergen Beisert wrote: The boot source for the i.MX23 is configured via a few GPIOs, which are later be used for different purposes (like LCD data for example). The SoC internal ROM reads these GPIOs and uses the selected boot

Re: [SPAM] [PATCH 3/5] i2c: Add support for dynamic i2c bus numbers

2013-05-21 Thread Sascha Hauer
On Tue, May 21, 2013 at 12:27:47AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: On 22:11 Mon 20 May , Sascha Hauer wrote: Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/i2c/i2c.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git

[PATCH 05/10] ARM: i.MX51: Fixup fec pads in dts

2013-05-21 Thread Sascha Hauer
The Kernel dts relies on reset default pad settings for the FEC. Add correct pad settings. Also, add missing MX51_PAD_NANDF_D11__FEC_RX_DV. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/dts/imx51.dtsi | 35 ++- 1 file changed, 18 insertions(+),

Re: [PATCH 05/11] arm: mvebu: convert Armada 370/XP to common init

2013-05-21 Thread Sascha Hauer
On Tue, May 21, 2013 at 08:38:26AM +0200, Sebastian Hesselbarth wrote: On 05/21/2013 08:33 AM, Sascha Hauer wrote: On Tue, May 21, 2013 at 08:28:10AM +0200, Sascha Hauer wrote: Sebastian, +static int armada_370_xp_init_soc(void) { unsigned long phys_base, phys_size; -

[PATCH 09/10] ARM: i.MX51 babbage: Add phy reset gpio to dts

2013-05-21 Thread Sascha Hauer
This needs to be configured to properly reset the phy. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/dts/imx51-babbage.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imx51-babbage.dts b/arch/arm/dts/imx51-babbage.dts index 4c43312..c893247 100644 ---

[PATCH] misc oftree patches

2013-05-21 Thread Sascha Hauer
Some assorted devicetree related patches. This makes the SPI support more complete, adds devicetree probing to the dataflash driver and some more. Sascha Sascha Hauer (5): pinctrl: imx-iomux-v3: only register pinctrl when

Re: [PATCH 05/11] arm: mvebu: convert Armada 370/XP to common init

2013-05-21 Thread Sebastian Hesselbarth
On 05/21/2013 08:47 AM, Sascha Hauer wrote: On Tue, May 21, 2013 at 08:38:26AM +0200, Sebastian Hesselbarth wrote: On 05/21/2013 08:33 AM, Sascha Hauer wrote: On Tue, May 21, 2013 at 08:28:10AM +0200, Sascha Hauer wrote: + armada_370_xp_add_uart(); How do you want to support a board

[PATCH 1/5] pinctrl: imx-iomux-v3: only register pinctrl when device node is available

2013-05-21 Thread Sascha Hauer
The pinctrl support is devicetree only, so only register it when we actually have a devicetree. Otherwise we crash boards using the iomux-v3 from platform code in pinctrl_register(). Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/pinctrl/imx-iomux-v3.c | 2 +- 1 file changed, 1

Re: [PATCH v2] nand_base: sync flash detection functions with linux 3.9's code

2013-05-21 Thread Sascha Hauer
On Tue, May 21, 2013 at 05:10:22PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: On 08:41 Tue 21 May , Sascha Hauer wrote: On Fri, May 17, 2013 at 07:15:12PM +0800, Jean-Christophe PLAGNIOL-VILLARD wrote: HI, can we have stable release as this patch fix the band support as

[PATCH 04/10] ARM: i.MX51: Add IIM devicetree node

2013-05-21 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/dts/imx51.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/imx51.dtsi b/arch/arm/dts/imx51.dtsi index 21bb786..af953f2 100644 --- a/arch/arm/dts/imx51.dtsi +++ b/arch/arm/dts/imx51.dtsi @@ -605,6 +605,13

Re: [PATCH 04/11] arm: mvebu: convert Dove to common init

2013-05-21 Thread Sascha Hauer
On Tue, May 21, 2013 at 05:24:21PM +0200, Sebastian Hesselbarth wrote: On 05/21/13 15:49, Sascha Hauer wrote: On Sun, May 19, 2013 at 08:23:48PM +0200, Sebastian Hesselbarth wrote: This patch converts Marvell Dove SoC init to make use of common lowlevel and init functions. Postcore initcall

Re: [PATCH 08/10] ARM: i.MX51 babbage: provide MAC adress in devicetree

2013-05-21 Thread Sascha Hauer
On Tue, May 21, 2013 at 07:22:45PM +0400, Alexander Shiyan wrote: Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/dts/imx51-babbage.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imx51-babbage.dts b/arch/arm/dts/imx51-babbage.dts index

[PATCH 06/10] ARM: i.MX51: skip devices register when devicetree is present

2013-05-21 Thread Sascha Hauer
When we have a devicetree, do not register the platform devices. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/mach-imx/imx51.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-imx/imx51.c b/arch/arm/mach-imx/imx51.c index 54d99a4..0766a21 100644 ---

[PATCH 10/10] ARM: i.MX51 babbage: switch to devicetree

2013-05-21 Thread Sascha Hauer
This switches the babbage board to probe from devicetree for all for all devices we currently support probing from devicetree. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/boards/freescale-mx51-pdk/board.c| 93 ---

[PATCH 4/5] net: Add of_register_ethaddr

2013-05-21 Thread Sascha Hauer
We already have a possibility to register a MAC address provider based on a ethernet device id. This adds a similar functionality for devices probed from devicetree. Code can register itself to be a MAC address provider for a certain devicetree node. This helps on i.MX to let the IIM unit provide

Re: [RFC] MXS/i.MX23: detecting the boot source

2013-05-21 Thread Sascha Hauer
On Fri, May 17, 2013 at 10:18:39AM +0200, Juergen Beisert wrote: The boot source for the i.MX23 is configured via a few GPIOs, which are later be used for different purposes (like LCD data for example). The SoC internal ROM reads these GPIOs and uses the selected boot source. For various

Re: [PATCH] mci i.MX esdhc: Fix clock divider calculation

2013-05-21 Thread Sascha Hauer
On Tue, May 21, 2013 at 12:29:20PM +0200, Steffen Trumtrar wrote: From: Sascha Hauer s.ha...@pengutronix.de This updates the i.MX esdhc divider settings to FSLs U-Boot. Current timings work fine for SD cards, but not for eMMC. Although the calculation is fine according to the datasheet and