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

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 > --- > arch/arm/mach-at91/at91sam9g45.c | 13 - > 1 file changed, 8 insertio

[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 --- 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 100644 --- a/drivers/p

[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 --- arch/arm/mach-at91/at91sam9g45.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-at91/at91sam9g45.c b/arch/a

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 : > 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()

[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 --- 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 e212f7a..3c194df 100644 ---

[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 --- 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 b/arch/arm/mach-at91/at91sam926x_lowlevel_

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 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 --- arch/arm/mach-at91/at91sam926x_lowlevel_init.c | 1 - arch/arm/mach-at91/include/mach/gpio.h | 42 -- 2 files changed, 19 insertions(+), 24 deletions(-)

[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 --- drivers/pinctrl/pinctrl-at91.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-at91.c b/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 --- arch/arm/mach-at91/at91sam9g45.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-at91/at91sam9g45.c b/arch/a

[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 --- 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 100644 --- a/drivers/p

[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 --- drivers/pinctrl/pinctrl-at91.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-at91

[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 --- drivers/pinctrl/pinctrl-at91.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index 3dc81c7..d3

[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 handle

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

2014-09-08 Thread Steffen Trumtrar
From: Sascha Hauer 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 Signed-off-by: Steffen Trumtrar --- .../bindings/firmware/altr,passive-serial

[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 --- .../bindings/firmware/altr,socfpga-fpga-mgr.txt | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Docu

[PATCH v4 4/5] Firmware: socfpga: Add SoCFPGA FPGA program support

2014-09-08 Thread Steffen Trumtrar
From: Sascha Hauer Signed-off-by: Sascha Hauer --- arch/arm/dts/socfpga.dtsi | 6 + arch/arm/mach-socfpga/Makefile| 1 + arch/arm/mach-socfpga/include/mach/socfpga-regs.h | 2 + drivers/firmware/Kconfig | 3 + drivers/

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

2014-09-08 Thread Steffen Trumtrar
From: Juergen Beisert 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 devices aswell. A us

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

2014-09-08 Thread Steffen Trumtrar
From: Juergen Beisert This handler uses a regular SPI master and a few GPIOs to program an Altera FPGA in serial mode. Signed-off-by: Juergen Beisert Signed-off-by: Sascha Hauer Signed-off-by: Steffen Trumtrar --- Notes: Changes since v3: - fix some typos - use USECOND in

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 : > Signed-off-by: Antony Pavlov > Cc: Franck Jullien > --- > Documentation/boards/openrisc.rst | 51 > +++ > 1 file changed, 51 insertions(+) > > diff --git a/Documentation/boards/openrisc.rst > b/Document