Re: [PATCH v3 2/4] Firmware: provide a handler to program Altera FPGAs

2014-09-08 Thread Sascha Hauer
On Thu, Sep 04, 2014 at 03:47:15PM +0200, Steffen Trumtrar wrote: +/* + * Physical requirements: + * - three free GPIOs for the signals nCONFIG, CONFIGURE_DONE, nSTATUS + * - 32 bit per word, LSB first capable SPI master (MOSI + clock) + * + * Example how to configure this driver via device

Re: [PATCH v3 2/4] Firmware: provide a handler to program Altera FPGAs

2014-09-08 Thread Sascha Hauer
On Mon, Sep 08, 2014 at 08:03:48AM +0200, Sascha Hauer wrote: On Thu, Sep 04, 2014 at 03:47:15PM +0200, Steffen Trumtrar wrote: +/* + * Physical requirements: + * - three free GPIOs for the signals nCONFIG, CONFIGURE_DONE, nSTATUS + * - 32 bit per word, LSB first capable SPI master (MOSI

Re: [PATCH v3 4/4] Firmware: socfpga: Add SoCFPGA FPGA program support

2014-09-08 Thread Sascha Hauer
On Thu, Sep 04, 2014 at 03:47:17PM +0200, Steffen Trumtrar wrote: From: Sascha Hauer s.ha...@pengutronix.de Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- Changes since v2: - be sure to clear nce bit to allow HPS configuration arch/arm/dts/socfpga.dtsi

Re: [PATCH v2] mtd: add mtdram device (which build mtd over ram area - useful for FRAM oder MRAM)

2014-09-08 Thread Sascha Hauer
On Sat, Sep 06, 2014 at 01:21:03PM +0200, Sebastian Block wrote: Change since v1 (Sascha, thanks for review): * use xzalloc instead of kzalloc and control check * correct help and names * fix coding style issue * remove verbose and unneeded messages This adds

[PATCH v2 7/7] Documentation: add OpenRISC or1ksim emulator section

2014-09-08 Thread Antony Pavlov
Signed-off-by: Antony Pavlov antonynpav...@gmail.com Cc: Franck Jullien franck.jull...@gmail.com --- Documentation/boards/openrisc.rst | 51 +++ 1 file changed, 51 insertions(+) diff --git a/Documentation/boards/openrisc.rst

[PATCH v2 1/7] openrisc: generic board: reserve 512K for barebox

2014-09-08 Thread Antony Pavlov
Here is a linker's error message for some configurations: or1k-elf-ld: barebox section `.eh_frame' will not fit in region `ram' or1k-elf-ld: region `ram' overflowed by 16868 bytes This patch increases space reserved for barebox from 256K to 512K so the error's probability is dramatically

[PATCH v2 5/7] openrisc: generic board: reduce platform code

2014-09-08 Thread Antony Pavlov
Signed-off-by: Antony Pavlov antonynpav...@gmail.com Cc: Franck Jullien franck.jull...@gmail.com --- arch/openrisc/boards/generic/config.h | 5 - arch/openrisc/boards/generic/generic.c | 24 ++-- 2 files changed, 2 insertions(+), 27 deletions(-) diff --git

[PATCH v2 3/7] openrisc: add initial device tree support

2014-09-08 Thread Antony Pavlov
Signed-off-by: Antony Pavlov antonynpav...@gmail.com Cc: Franck Jullien franck.jull...@gmail.com --- arch/openrisc/Kconfig | 9 + arch/openrisc/Makefile | 7 +++ arch/openrisc/cpu/barebox.lds.S | 2 ++ arch/openrisc/dts/Makefile | 5 +

[PATCH v2 0/7] openrisc: add device tree support

2014-09-08 Thread Antony Pavlov
This patch series adds device tree support for openrisc generic board. The barebox mips device tree support is used as a sample. Changes since v1: * rebase over latest next; * add 'Documentation: add OpenRISC or1ksim emulator section'. Antony Pavlov (7): openrisc: generic board: reserve

[PATCH v2 2/7] net: ethoc: add device tree support

2014-09-08 Thread Antony Pavlov
Signed-off-by: Antony Pavlov antonynpav...@gmail.com Cc: Franck Jullien franck.jull...@gmail.com --- drivers/net/ethoc.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c index 679e1e5..35d7d46 100644 --- a/drivers/net/ethoc.c +++

[PATCH v2 4/7] openrisc: dts: import or1ksim.dts from linux-3.16

2014-09-08 Thread Antony Pavlov
There are some minor changes with original linux-3.16 file: * the 'model' attribute is added (it used for barebox banner board name); * all opencores,*-rtlsvn* 'compatible' attribute values are dropped; these values are not actually used in the device drivers. Signed-off-by: Antony

Re: [PATCH v2 7/7] Documentation: add OpenRISC or1ksim emulator section

2014-09-08 Thread Franck Jullien
Hi Antony, 2014-09-08 8:53 GMT+02:00 Antony Pavlov antonynpav...@gmail.com: Signed-off-by: Antony Pavlov antonynpav...@gmail.com Cc: Franck Jullien franck.jull...@gmail.com --- Documentation/boards/openrisc.rst | 51 +++ 1 file changed, 51 insertions(+)

[PATCH v4 5/5] DT: Add binding for Altera SOCFPGA FPGA Manager

2014-09-08 Thread Steffen Trumtrar
Altera SOCFPGA have a FPGA Manager, that manages and monitors the FPGA portion of the SoC. Cc: devicet...@vger.kernel.org Signed-off-by: Steffen Trumtrar s.trumt...@pengutronix.de --- .../bindings/firmware/altr,socfpga-fpga-mgr.txt | 19 +++ 1 file changed, 19 insertions(+)

[PATCH v4 1/5] Add a Firmware programming framework

2014-09-08 Thread Steffen Trumtrar
From: Juergen Beisert j...@pengutronix.de This framework handles a list of registered Firmware programming handlers to unify a firmware programming interface by hiding the details how to program a specific Firmware in its handler. This is created with FPGAs in mind but should be usable for other

[PATCH v4 2/5] Firmware: provide a handler to program Altera FPGAs

2014-09-08 Thread Steffen Trumtrar
From: Juergen Beisert j...@pengutronix.de This handler uses a regular SPI master and a few GPIOs to program an Altera FPGA in serial mode. Signed-off-by: Juergen Beisert j...@pengutronix.de Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Signed-off-by: Steffen Trumtrar

[PATCH v4 0/5] firmware programming interface

2014-09-08 Thread Steffen Trumtrar
Hi! Changes since v3: - minor clean up - add binding documentation in 5/5 - rebase to v2014.09.0 The interface was tested on a Socfpga SoCkit board with v2014.09.0. Regards, Steffen Juergen Beisert (2): Add a Firmware programming framework Firmware: provide a

[PATCH v4 3/5] DT: Add binding for Altera FPGAs in passive-serial mode

2014-09-08 Thread Steffen Trumtrar
From: Sascha Hauer s.ha...@pengutronix.de Altera FPGAs that are programmed via SPI use the passive serial protocol. Add a simple binding that describes the setup for this usecase. Cc: devicet...@vger.kernel.org Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Signed-off-by: Steffen Trumtrar

[PATCH] pinctrl: at91: add driver data

2014-09-08 Thread Raphaël Poggi
This commit adds the driver data for the gpio-at91 driver. Signed-off-by: Raphaël Poggi poggi.r...@gmail.com --- drivers/pinctrl/pinctrl-at91.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index d3423d0..29e54cf

[PATCH] pinctrl: at91: fix the pin_to_controller function

2014-09-08 Thread Raphaël Poggi
Other functions use pin_to_controller to retrieve a at91_gpio_chip structure, so fix pin_to_controller to return the correct value. Signed-off-by: Raphaël Poggi poggi.r...@gmail.com --- drivers/pinctrl/pinctrl-at91.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH] pinctrl: at91: retrieve device id in non dtb probe

2014-09-08 Thread Raphaël Poggi
We need to retrieve the device id in device tree/non device tree case. Signed-off-by: Raphaël Poggi poggi.r...@gmail.com --- drivers/pinctrl/pinctrl-at91.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/pinctrl-at91.c

[PATCH] mach-at91: declare device tree clock

2014-09-08 Thread Raphaël Poggi
This commit use the clkdev_add_physbase function, to declare device tree and non device tree gpio clocks. Signed-off-by: Raphaël Poggi poggi.r...@gmail.com --- arch/arm/mach-at91/at91sam9g45.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git

[PATCH 4/4] pinctrl: AT91: use alias_idx to calculate the base gpio number

2014-09-08 Thread Sascha Hauer
For the devicetree case alias_idx contains the gpio bank number. dev-id has no meaning in this case. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/pinctrl/pinctrl-at91.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-at91.c

[PATCH 2/4] ARM: AT91: Make gpio mux functions inline

2014-09-08 Thread Sascha Hauer
Otherwise we get a unused function warning each time mach/gpio.h is included. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/mach-at91/at91sam926x_lowlevel_init.c | 1 - arch/arm/mach-at91/include/mach/gpio.h | 42 -- 2 files changed, 19

AT91 pinctrl/gpio fixes

2014-09-08 Thread Sascha Hauer
Unfortunately the transition to pinctrl for AT91 caused some damage. The 926x do not compile anymore. Even when this is fixed the boards won't work since the new pinctrl driver uses of_alias_get_id() even for the platform case to translate the device into a gpio chip. Sascha

[PATCH 1/4] ARM: AT91: Add missing include

2014-09-08 Thread Sascha Hauer
the gpio mux functions were moved to mach/gpio.h. Add the missing include. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/mach-at91/at91sam926x_lowlevel_init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-at91/at91sam926x_lowlevel_init.c

[PATCH 3/4] pinctrl: AT91: Only use of_alias_get_id when probed from devicetree

2014-09-08 Thread Sascha Hauer
If probed from platform data we have to use dev-id instead. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/pinctrl/pinctrl-at91.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index

Re: AT91 pinctrl/gpio fixes

2014-09-08 Thread Raphaël Poggi
Hello, I just send patchs, to fix all this issues. 2014-09-08 15:23 GMT+02:00 Sascha Hauer s.ha...@pengutronix.de: Unfortunately the transition to pinctrl for AT91 caused some damage. The 926x do not compile anymore. Even when this is fixed the boards won't work since the new pinctrl driver

[PATCH v2] pinctrl: at91: add driver data

2014-09-08 Thread Raphaël Poggi
This commit adds the driver data for the gpio-at91 driver. Signed-off-by: Raphaël Poggi poggi.r...@gmail.com --- drivers/pinctrl/pinctrl-at91.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index d3423d0..3c6b38c

[PATCH v2] mach-at91: declare device tree clock

2014-09-08 Thread Raphaël Poggi
This commit use the clkdev_add_physbase function, to declare device tree and non device tree gpio clocks. Signed-off-by: Raphaël Poggi poggi.r...@gmail.com --- arch/arm/mach-at91/at91sam9g45.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git

Re: [PATCH] mach-at91: declare device tree clock

2014-09-08 Thread Sascha Hauer
On Mon, Sep 08, 2014 at 03:07:54PM +0200, Raphaël Poggi wrote: This commit use the clkdev_add_physbase function, to declare device tree and non device tree gpio clocks. Signed-off-by: Raphaël Poggi poggi.r...@gmail.com --- arch/arm/mach-at91/at91sam9g45.c | 13 - 1 file

Re: [PATCH] pinctrl: at91: add driver data

2014-09-08 Thread Sascha Hauer
On Mon, Sep 08, 2014 at 03:07:55PM +0200, Raphaël Poggi wrote: This commit adds the driver data for the gpio-at91 driver. Could you explain what exactly this patch fixes? It seems without this patch the pinctrl part is non functional. Is this correct? Sascha Signed-off-by: Raphaël Poggi