[PATCH] video: mxsfb: Fix colors display on lower color depth

2013-04-18 Thread Maxime Ripard
back to the default controller behaviour. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/video/mxsfb.c |5 - 1 file changed, 5 deletions(-) diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 76c..2cfaf8b 100644 --- a/drivers/video/mxsfb.c +++ b

Re: [PATCH 1/3] iio: Add Nuvoton NAU7802 ADC driver

2013-04-22 Thread Maxime Ripard
be at all in the device tree anyway. Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH] pinctrl: sunxi: Rename wemac functions to emac

2013-04-08 Thread Maxime Ripard
Hi Linus, Le 27/03/2013 14:12, Maxime Ripard a écrit : The pin functions associated to the ethernet controller were introduced with the label wemac, which was the name of the ethernet driver in the allwinner source tree, while the real name of the IP is actually emac, as advertised in several

Re: [PATCH] gpio: pca953x: fix irq_domain_add_simple usage

2013-04-11 Thread Maxime Ripard
let's see if I get it to Torvalds in time. Can I have some ACK from Maxime? Sure, Acked-by: Maxime Ripard maxime.rip...@free-electrons.com Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send

[PATCH 1/2] video: ssd1307fb: Add support for SSD1306 OLED controller

2013-04-12 Thread Maxime Ripard
The Solomon SSD1306 OLED controller is very similar to the SSD1307, except for the fact that the power is given through an external PWM for the 1307, and while the 1306 can generate its own power without any PWM. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- .../devicetree

[PATCH 2/2] ARM: dts: cfa10036: Change the OLED display to SSD1306

2013-04-12 Thread Maxime Ripard
The SSD1307 was used in an early prototype that will never get distributed. The final board now has a SSD1306 instead, that has its own power generation unit and thus doesn't need any PWM. The panel attached to it also changed. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com

Re: [PATCH 1/2] ARM: irq: Call irqchit_init if no init_irq function is specified

2013-03-28 Thread Maxime Ripard
a v2 with the suggested change. Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo

Re: [PATCH 2/2] ARM: remove mach .init_irq for irqchip_init users

2013-03-28 Thread Maxime Ripard
Hi Simon, Le 28/03/2013 13:42, Simon Horman a écrit : On Thu, Mar 28, 2013 at 10:41:44AM +0100, Maxime Ripard wrote: Now that the arm core code calls irqchip_init, we can remove it from all the machines that were using it. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com

[PATCH 1/2] ARM: irq: Call irqchit_init if no init_irq function is specified

2013-03-28 Thread Maxime Ripard
More and more sub-architectures are using only the irqchip_init function. Make the core code call this function if no init_irq field is provided in the machine description to remove some boilerplate code. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/kernel/irq.c

[PATCH 2/2] ARM: remove mach .init_irq for irqchip_init users

2013-03-28 Thread Maxime Ripard
Now that the arm core code calls irqchip_init, we can remove it from all the machines that were using it. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com Acked-by: Simon Horman horms+rene...@verge.net.au --- arch/arm/mach-bcm/board_bcm.c |1 - arch/arm/mach-msm

Re: [PATCH] serial: 8250_dw: add support for clk api

2013-03-28 Thread Maxime Ripard
Hi Greg, Le 29/03/2013 00:03, Greg Kroah-Hartman a écrit : On Wed, Mar 27, 2013 at 01:35:48PM +0100, Maxime Ripard wrote: From: Emilio López emi...@elopez.com.ar This commit implements support for using the clk api; this lets us use the clocks property with device tree, instead of having

[PATCHv2] serial: 8250_dw: add support for clk api

2013-03-28 Thread Maxime Ripard
From: Emilio López emi...@elopez.com.ar This commit implements support for using the clk api; this lets us use the clocks property with device tree, instead of having to use clock-frequency. Signed-off-by: Emilio López emi...@elopez.com.ar Signed-off-by: Maxime Ripard maxime.rip...@free

Re: [PATCH 1/2] video: ssd1307fb: Add support for SSD1306 OLED controller

2013-03-29 Thread Maxime Ripard
Hi Jean Christophe, Le 29/03/2013 19:38, Jean-Christophe PLAGNIOL-VILLARD a écrit : On 17:44 Wed 06 Mar , Maxime Ripard wrote: [snip] static int ssd1307fb_probe(struct i2c_client *client, const struct i2c_device_id *id) { struct fb_info *info; -u32

Re: [PATCH 1/6] serial: 8250_dw: add support for clocks property when using DeviceTree

2013-03-15 Thread Maxime Ripard
-- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 4/6] ARM: sunxi: dt: Add uart3 dt node

2013-03-15 Thread Maxime Ripard
Both A10 and A13 Allwinner SoCs have a Synopsys APB uart3 device available, so add it to the sunxi.dtsi file Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com Acked-by: Emilio López emi...@elopez.com.ar --- arch/arm/boot/dts/sunxi.dtsi | 10 ++ 1 file changed, 10 insertions

[PATCH 6/6] ARM: sunxi: hackberry: Add UART muxing

2013-03-15 Thread Maxime Ripard
We previously relied on the bootloader to do the muxing of the UART for the Hackberry. Don't rely on it anymore and use pinctrl. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com Acked-by: Emilio López emi...@elopez.com.ar --- arch/arm/boot/dts/sun4i-a10-hackberry.dts |2 ++ 1

[PATCH 2/6] ARM: sunxi: dt: Use clocks property instead of clock-frequency for the UARTs

2013-03-15 Thread Maxime Ripard
It will be especially useful when we will have the clock definitions in the device tree. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com Acked-by: Emilio López emi...@elopez.com.ar Tested-by: Emilio López emi...@elopez.com.ar --- arch/arm/boot/dts/sunxi.dtsi |4 ++-- 1 file

[PATCH 3/6] ARM: sunxi: dt: Move uart0 to sun4i-a10.dtsi

2013-03-15 Thread Maxime Ripard
The UART0 is only available on the Allwinner A10 SoCs, and not on the A13, so move the uart0 node to sun4i-a10.dtsi. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com Acked-by: Emilio López emi...@elopez.com.ar Tested-by: Emilio López emi...@elopez.com.ar --- arch/arm/boot/dts/sun4i

[PATCH 5/6] ARM: sunxi: dt: Add A10 UARTs to the dtsi.

2013-03-15 Thread Maxime Ripard
The Allwinner A10 SoC has 8 available UARTs, which is 6 more than on the A13, so add the missing UARTs to the sun4i-a10 dtsi. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com Acked-by: Emilio López emi...@elopez.com.ar --- arch/arm/boot/dts/sun4i-a10.dtsi | 51

[PATCH 1/6] serial: 8250_dw: add support for clk api

2013-03-15 Thread Maxime Ripard
From: Emilio López emi...@elopez.com.ar This commit implements support for using the clk api; this lets us use the clocks property with device tree, instead of having to use clock-frequency. Signed-off-by: Emilio López emi...@elopez.com.ar Signed-off-by: Maxime Ripard maxime.rip...@free

[PATCH 4/5] ARM: cubieboard: Enable ethernet (WEMAC) support in dts

2013-03-15 Thread Maxime Ripard
From: Stefan Roese s...@denx.de Signed-off-by: Stefan Roese s...@denx.de --- arch/arm/boot/dts/sun4i-a10-cubieboard.dts |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts index 88e2dc1..7a3872d

[PATCH 5/5] ARM: hackberry: dt: Add Ethernet controller to the Hackberry device tree

2013-03-15 Thread Maxime Ripard
Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sun4i-a10-hackberry.dts | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10-hackberry.dts b/arch/arm/boot/dts/sun4i-a10-hackberry.dts index f84549a..3808c1a

[PATCH 1/5] net: Add davicom wemac ethernet driver found on Allwinner A10 SoC's

2013-03-15 Thread Maxime Ripard
heavily cleaned up. Signed-off-by: Stefan Roese s...@denx.de Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- .../devicetree/bindings/net/davicom-wemac.txt | 20 + drivers/net/ethernet/Makefile |2 +- drivers/net/ethernet/davicom/Kconfig

[PATCH 2/5] ARM: sunxi: Add wemac to sun4i dtsi

2013-03-15 Thread Maxime Ripard
Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sun4i-a10.dtsi |7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index 03d2b53..f3c2158 100644 --- a/arch/arm/boot/dts/sun4i-a10.dtsi

[PATCH 3/5] ARM: sun4i: Add muxing options for the ethernet controller

2013-03-15 Thread Maxime Ripard
Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sun4i-a10.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index f3c2158..fc4ce45 100644 --- a/arch/arm/boot/dts/sun4i-a10

Re: [PATCH 1/5] net: Add davicom wemac ethernet driver found on Allwinner A10 SoC's

2013-03-15 Thread Maxime Ripard
Le 15/03/2013 21:50, Maxime Ripard a écrit : From: Stefan Roese s...@denx.de The Allwinner A10 has an ethernet controller that is advertised as coming from Davicom. The exact feature set of this controller is unknown, since there is no public documentation for this IP, and this driver

[PATCH 3/7] ARM: sunxi: Rename uart nodes to serial

2013-03-19 Thread Maxime Ripard
The other architecture use serial@address for their uart nodes, so rename our uart dt nodes to be consistent Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sun4i-a10-cubieboard.dts |4 ++-- arch/arm/boot/dts/sun4i-a10-hackberry.dts |2 +- arch/arm

[PATCH 5/7] ARM: sunxi: dt: Add uart3 dt node

2013-03-19 Thread Maxime Ripard
Both A10 and A13 Allwinner SoCs have a Synopsys APB uart3 device available, so add it to the sunxi.dtsi file Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com Acked-by: Emilio López emi...@elopez.com.ar --- arch/arm/boot/dts/sunxi.dtsi | 10 ++ 1 file changed, 10 insertions

[PATCH 7/7] ARM: sunxi: hackberry: Add UART muxing

2013-03-19 Thread Maxime Ripard
We previously relied on the bootloader to do the muxing of the UART for the Hackberry. Don't rely on it anymore and use pinctrl. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com Acked-by: Emilio López emi...@elopez.com.ar --- arch/arm/boot/dts/sun4i-a10-hackberry.dts |2 ++ 1

[PATCH 6/7] ARM: sunxi: dt: Add A10 UARTs to the dtsi.

2013-03-19 Thread Maxime Ripard
The Allwinner A10 SoC has 8 available UARTs, which is 6 more than on the A13, so add the missing UARTs to the sun4i-a10 dtsi. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com Acked-by: Emilio López emi...@elopez.com.ar --- arch/arm/boot/dts/sun4i-a10.dtsi | 50

[PATCH 4/7] ARM: sunxi: dt: Move uart0 to sun4i-a10.dtsi

2013-03-19 Thread Maxime Ripard
The UART0 is only available on the Allwinner A10 SoCs, and not on the A13, so move the uart0 node to sun4i-a10.dtsi. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com Acked-by: Emilio López emi...@elopez.com.ar Tested-by: Emilio López emi...@elopez.com.ar --- arch/arm/boot/dts/sun4i

[PATCH 1/7] serial: 8250_dw: add support for clk api

2013-03-19 Thread Maxime Ripard
From: Emilio López emi...@elopez.com.ar This commit implements support for using the clk api; this lets us use the clocks property with device tree, instead of having to use clock-frequency. Signed-off-by: Emilio López emi...@elopez.com.ar --- drivers/tty/serial/8250/8250_dw.c | 33

[PATCH 2/7] ARM: sunxi: dt: Use clocks property instead of clock-frequency for the UARTs

2013-03-19 Thread Maxime Ripard
It will be especially useful when we will have the clock definitions in the device tree. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com Acked-by: Emilio López emi...@elopez.com.ar Tested-by: Emilio López emi...@elopez.com.ar --- arch/arm/boot/dts/sunxi.dtsi |4 ++-- 1 file

Re: [PATCH 1/7] serial: 8250_dw: add support for clk api

2013-03-19 Thread Maxime Ripard
Hi, Le 19/03/2013 11:35, Maxime Ripard a écrit : From: Emilio López emi...@elopez.com.ar This commit implements support for using the clk api; this lets us use the clocks property with device tree, instead of having to use clock-frequency. Signed-off-by: Emilio López emi...@elopez.com.ar

[PATCH] serial: 8250_dw: add support for clk api

2013-03-19 Thread Maxime Ripard
From: Emilio López emi...@elopez.com.ar This commit implements support for using the clk api; this lets us use the clocks property with device tree, instead of having to use clock-frequency. Signed-off-by: Emilio López emi...@elopez.com.ar --- drivers/tty/serial/8250/8250_dw.c | 33

Re: [PATCH 1/5] net: Add davicom wemac ethernet driver found on Allwinner A10 SoC's

2013-03-19 Thread Maxime Ripard
); +if (reg_val != 0x0143414d) { Where is that magic value coming from? The original code. Maybe I should define it to something like UNDOCUMENTED_VOODOO_MAGIC1, or something like that, but I have no idea what it relates to in the hardware :S Thanks for your review, Maxime -- Maxime Ripard, Free

[PATCH] ARM: AT91: Fix typo in restart code panic message

2013-03-23 Thread Maxime Ripard
Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/mach-at91/setup.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-at91/setup.c b/arch/arm/mach-at91/setup.c index 4b67847..6b4608d 100644 --- a/arch/arm/mach-at91/setup.c +++ b/arch/arm

[PATCH] regulator: Fix typo in of_get_regulator function comments

2013-03-23 Thread Maxime Ripard
Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/regulator/core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index da9782b..edfa223 100644 --- a/drivers/regulator/core.c +++ b/drivers

[PATCH 2/5] ARM: sunxi: Add EMAC controller node to sun4i DTSI

2013-03-23 Thread Maxime Ripard
Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sun4i-a10.dtsi |7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index 03d2b53..a6bd36a 100644 --- a/arch/arm/boot/dts/sun4i-a10.dtsi

[PATCH 4/5] ARM: cubieboard: Enable ethernet (WEMAC) support in dts

2013-03-23 Thread Maxime Ripard
From: Stefan Roese s...@denx.de Signed-off-by: Stefan Roese s...@denx.de --- arch/arm/boot/dts/sun4i-a10-cubieboard.dts |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts index 88e2dc1..9bf4b4f

[PATCH 5/5] ARM: hackberry: dt: Add Ethernet controller to the Hackberry device tree

2013-03-23 Thread Maxime Ripard
The Hackberry has a PHY that needs to be powered up through a GPIO, so we need to use a fixed regulator here. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sun4i-a10-hackberry.dts | 32 + 1 file changed, 32 insertions(+) diff

[PATCH 1/5] net: Add EMAC ethernet driver found on Allwinner A10 SoC's

2013-03-23 Thread Maxime Ripard
been heavily cleaned up. Signed-off-by: Stefan Roese s...@denx.de Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- .../bindings/net/allwinner,sun4i-emac.txt | 19 + drivers/net/ethernet/Kconfig |1 + drivers/net/ethernet/Makefile

[PATCH 3/5] ARM: sun4i: Add muxing options for the ethernet controller

2013-03-23 Thread Maxime Ripard
The EMAC only has one pinset available for muxing, so hopefully, we cover all cases. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sun4i-a10.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm

[PATCH 04/10] clocksource: sunxi: Rename sunxi to sun4i

2013-03-25 Thread Maxime Ripard
for this kind of compability, we just use the oldest SoC name that has this IP, so let's do just this. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/mach-sunxi/Kconfig |4 +- drivers/clocksource/Kconfig |2 +- drivers/clocksource/Makefile |2

[PATCH 09/10] ARM: sunxi: Rework the restart code

2013-03-25 Thread Maxime Ripard
-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/mach-sunxi/sunxi.c | 58 ++- 1 file changed, 35 insertions(+), 23 deletions(-) diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c index 634e335..e6f5101 100644 --- a/arch

[PATCH 08/10] ARM: sunxi: dt: Update interrupt controller compatible string

2013-03-25 Thread Maxime Ripard
Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sun4i-a10.dtsi |2 +- arch/arm/boot/dts/sun5i-a13.dtsi |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index

[PATCH 10/10] ARM: sunxi: dt: Update watchdog compatible string

2013-03-25 Thread Maxime Ripard
Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sun4i-a10.dtsi |2 +- arch/arm/boot/dts/sun5i-a13.dtsi |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index

[PATCH 06/10] irqchip: sunxi: Make use of the IRQCHIP_DECLARE macro

2013-03-25 Thread Maxime Ripard
This allows to remove some boilerplate code. At the same time, call the set_handle_irq function in the initialization function of the irqchip, so that we can remove it from the machine declaration. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/mach-sunxi/sunxi.c

[PATCH 07/10] irqchip: sunxi: Rename sunxi to sun4i

2013-03-25 Thread Maxime Ripard
for this kind of compability, we just use the oldest SoC name that has this IP, so let's do just this. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/irqchip/Makefile|2 +- drivers/irqchip/irq-sun4i.c | 149 +++ drivers/irqchip/irq

[PATCH 02/10] clocksource: sunxi: Cleanup the timer code

2013-03-25 Thread Maxime Ripard
The timer code was not exact to some aspects, since most of this code was written wihout any datasheet. Make the needed corrections to match the datasheet. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/clocksource/sunxi_timer.c | 48

[PATCH 01/10] ARM: sunxi: dt: Reorganize the dtsi

2013-03-25 Thread Maxime Ripard
In the early days, the A10 and A13 shared quite some code. Nowadays it shares less and less code, the A31 diverging even more, so it doesn't make much sense to continue to maintain this structure, just use one DTSI for every SoC, and that's it. Signed-off-by: Maxime Ripard maxime.rip...@free

[PATCH 05/10] ARM: sunxi: dt: Update timer compatible string

2013-03-25 Thread Maxime Ripard
Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sun4i-a10.dtsi |2 +- arch/arm/boot/dts/sun5i-a13.dtsi |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index

[PATCH 03/10] clocksource: sunxi: make use of CLKSRC_OF

2013-03-25 Thread Maxime Ripard
Using CLKSRC_OF allows to remove the SoC specific sunxi_timer.h header, and instead of using a custom init function in the machine definition use the standard clocksource_of_init function. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/mach-sunxi/Kconfig |1

Re: [PATCH 03/10] clocksource: sunxi: make use of CLKSRC_OF

2013-03-25 Thread Maxime Ripard
Hi Rob, Le 25/03/2013 14:50, Rob Herring a écrit : On 03/25/2013 08:30 AM, Maxime Ripard wrote: Using CLKSRC_OF allows to remove the SoC specific sunxi_timer.h header, and instead of using a custom init function in the machine definition use the standard clocksource_of_init function. Signed

Re: [PATCH 08/10] ARM: sunxi: dt: Update interrupt controller compatible string

2013-03-25 Thread Maxime Ripard
Hi Rob, Le 25/03/2013 14:59, Rob Herring a écrit : On 03/25/2013 08:30 AM, Maxime Ripard wrote: Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sun4i-a10.dtsi |2 +- arch/arm/boot/dts/sun5i-a13.dtsi |2 +- 2 files changed, 2 insertions(+), 2

[PATCH 01/10] ARM: sunxi: dt: Reorganize the dtsi

2013-03-26 Thread Maxime Ripard
In the early days, the A10 and A13 shared quite some code. Nowadays it shares less and less code, the A31 diverging even more, so it doesn't make much sense to continue to maintain this structure, just use one DTSI for every SoC, and that's it. Signed-off-by: Maxime Ripard maxime.rip...@free

[PATCH 07/10] irqchip: sunxi: Rename sunxi to sun4i

2013-03-26 Thread Maxime Ripard
for this kind of compability, we just use the oldest SoC name that has this IP, so let's do just this. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- ...lwinner,sunxi-ic.txt = allwinner,sun4i-ic.txt} |4 +- drivers/irqchip/Makefile |2 +- drivers/irqchip

[PATCH 08/10] ARM: sunxi: dt: Update interrupt controller compatible string

2013-03-26 Thread Maxime Ripard
Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sun4i-a10.dtsi |2 +- arch/arm/boot/dts/sun5i-a13.dtsi |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index

[PATCH 10/10] ARM: sunxi: dt: Update watchdog compatible string

2013-03-26 Thread Maxime Ripard
Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sun4i-a10.dtsi |2 +- arch/arm/boot/dts/sun5i-a13.dtsi |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index

[PATCH 03/10] clocksource: sunxi: make use of CLKSRC_OF

2013-03-26 Thread Maxime Ripard
Using CLKSRC_OF allows to remove the SoC specific sunxi_timer.h header, and instead of using a custom init function in the machine definition use the standard clocksource_of_init function. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/mach-sunxi/Kconfig |1

[PATCH 05/10] ARM: sunxi: dt: Update timer compatible string

2013-03-26 Thread Maxime Ripard
Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sun4i-a10.dtsi |2 +- arch/arm/boot/dts/sun5i-a13.dtsi |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index

[PATCH 09/10] ARM: sunxi: Rework the restart code

2013-03-26 Thread Maxime Ripard
-by: Maxime Ripard maxime.rip...@free-electrons.com --- .../watchdog/{sunxi-wdt.txt = sun4i-wdt.txt} |6 +- arch/arm/mach-sunxi/sunxi.c| 58 2 files changed, 38 insertions(+), 26 deletions(-) rename Documentation/devicetree/bindings/watchdog

[PATCH 06/10] irqchip: sunxi: Make use of the IRQCHIP_DECLARE macro

2013-03-26 Thread Maxime Ripard
This allows to remove some boilerplate code. At the same time, call the set_handle_irq function in the initialization function of the irqchip, so that we can remove it from the machine declaration. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/mach-sunxi/sunxi.c

[PATCH 04/10] clocksource: sunxi: Rename sunxi to sun4i

2013-03-26 Thread Maxime Ripard
for this kind of compability, we just use the oldest SoC name that has this IP, so let's do just this. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- ...r,sunxi-timer.txt = allwinner,sun4i-timer.txt} |4 +-- arch/arm/mach-sunxi/Kconfig|4 +-- drivers

[PATCH 02/10] clocksource: sunxi: Cleanup the timer code

2013-03-26 Thread Maxime Ripard
The timer code was not exact to some aspects, since most of this code was written wihout any datasheet. Make the needed corrections to match the datasheet. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/clocksource/sunxi_timer.c | 48

Re: [PATCH] serial: 8250_dw: add support for clk api

2013-03-26 Thread Maxime Ripard
Hi Greg, Le 21/03/2013 09:47, Heikki Krogerus a écrit : On Tue, Mar 19, 2013 at 11:52:49AM +0100, Maxime Ripard wrote: From: Emilio López emi...@elopez.com.ar This commit implements support for using the clk api; this lets us use the clocks property with device tree, instead of having to use

[PATCH] serial: 8250_dw: add support for clk api

2013-03-27 Thread Maxime Ripard
From: Emilio López emi...@elopez.com.ar This commit implements support for using the clk api; this lets us use the clocks property with device tree, instead of having to use clock-frequency. Signed-off-by: Emilio López emi...@elopez.com.ar --- drivers/tty/serial/8250/8250_dw.c | 33

[PATCH] pinctrl: sunxi: Rename wemac functions to emac

2013-03-27 Thread Maxime Ripard
of the device tree bindings, and that these part of the bindings have not yet be released in a kernel version, it seems like the good timing to change it and assure consistency. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/pinctrl/pinctrl-sunxi.c | 36

[PATCH 1/2] ARM: irq: Call irqchit_init if no init_irq function is specified

2013-03-28 Thread Maxime Ripard
More and more sub-architectures are using only the irqchip_init function. Make the core code call this function if no init_irq field is provided in the machine description to remove some boilerplate code. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/kernel/irq.c

[PATCH 2/2] ARM: remove mach .init_irq for irqchip_init users

2013-03-28 Thread Maxime Ripard
Now that the arm core code calls irqchip_init, we can remove it from all the machines that were using it. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/mach-bcm/board_bcm.c |1 - arch/arm/mach-msm/board-dt-8660.c |1 - arch/arm

[PATCH] ARM: mxs: cfa10049: Fix fb initialisation function

2013-03-05 Thread Maxime Ripard
Commit 1fe42740 (ARM: dts: mxs: Add the LCD to the 10049 board) seem to have been applied with some fuzzyness, and the framebuffer initialisation code for the CFA-10049 ended up in the CFA-10037 initialisation function. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm

v3.9-rc1: swapper/0 [ INFO: possible circular locking dependency detected ]

2013-03-06 Thread Maxime Ripard
[2.396110] [c000e8e4] (__irq_svc+0x44/0x54) from [c000fd58] (cpu_idle+0x60/0xec) [2.403990] [c000fd58] (cpu_idle+0x60/0xec) from [c04e970c] (start_kernel+0x260/0x2a0) [2.412291] [c04e970c] (start_kernel+0x260/0x2a0) from [40008040] (0x40008040) -- Maxime Ripard, Free Electrons

Re: v3.9-rc1: swapper/0 [ INFO: possible circular locking dependency detected ]

2013-03-06 Thread Maxime Ripard
Hi Alexander, Thanks for your reply. Le 06/03/2013 14:43, Alexander Shishkin a écrit : On 6 March 2013 12:33, Maxime Ripard maxime.rip...@free-electrons.com wrote: Just noticed this in 3.9-rc1 on an iMX28 (ARM) board with a config based on mxs_defconfig. I'm using the patchset Add tested

3.9-rc1: hz.bc compilation breakage

2013-03-06 Thread Maxime Ripard
build, with the following configuration file: http://code.bulix.org/m4y7se-83102?raw Reverting commit 1b66e0fd (kernel: Replace timeconst.pl with a bc script) make the compilation go on as usual. Thanks, Maxime -- Maxime Ripard, Free Electrons Kernel, drivers, real-time and embedded Linux

[PATCH 1/2] pinctrl: sunxi: Add Allwinner A10 pin functions

2013-03-06 Thread Maxime Ripard
The initial driver contained only a limited set of pins functions because we lacked of documentation on it. Now that we have such documentation, finish to fill the array. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/pinctrl/pinctrl-sunxi.c | 733

[PATCH 2/2] pinctrl: sunxi: Add Allwinner A13 pin functions

2013-03-06 Thread Maxime Ripard
The initial driver contained only a limited set of pins functions because we lacked of documentation on it. Now that we have such documentation, finish to fill the array. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/pinctrl/pinctrl-sunxi.c | 239

[PATCH 1/2] video: ssd1307fb: Add support for SSD1306 OLED controller

2013-03-06 Thread Maxime Ripard
The Solomon SSD1306 OLED controller is very similar to the SSD1307, except for the fact that the power is given through an external PWM for the 1307, and while the 1306 can generate its own power without any PWM. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- .../devicetree

[PATCH 2/2] ARM: dts: cfa10036: Change the OLED display to SSD1306

2013-03-06 Thread Maxime Ripard
The SSD1307 was used in an early prototype that will never get distributed. The final board now has a SSD1306 instead, that has its own power generation unit and thus doesn't need any PWM. The panel attached to it also changed. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com

Re: v3.9-rc1: swapper/0 [ INFO: possible circular locking dependency detected ]

2013-03-07 Thread Maxime Ripard
Hi Peter, Le 07/03/2013 09:08, Peter Chen a écrit : On Wed, Mar 06, 2013 at 11:33:02AM +0100, Maxime Ripard wrote: [2.149645] other info that might help us debug this: [2.149645] [2.157667] Possible unsafe locking scenario: [2.157667] [2.163598]CPU0

Re: 3.9-rc1: hz.bc compilation breakage

2013-03-07 Thread Maxime Ripard
Hi, Le 07/03/2013 04:41, H. Peter Anvin a écrit : On 03/06/2013 06:36 AM, Maxime Ripard wrote: I'm compiling the kernel for an iMX28(ARM) board, and since 3.9-rc1, I get the following error at compilation time: make[3]: *** No rule to make target `/home/max/Work/2012/crystalfontz/rewrite

Re: 3.9-rc1: hz.bc compilation breakage

2013-03-07 Thread Maxime Ripard
Le 07/03/2013 16:06, H. Peter Anvin a écrit : On 03/07/2013 02:42 AM, Maxime Ripard wrote: I triggered this issue when switching to 3.9-rc1, and oldconfig runs at that time, and now, running menuconfig doesn't generates it either. I am not sure what you mean with clean out-of-tree, however

[PATCH 1/6] serial: 8250_dw: add support for clocks property when using DeviceTree

2013-03-07 Thread Maxime Ripard
From: Emilio López emi...@elopez.com.ar This commit implements support for using the clocks DT property, instead of having to use clock-frequency. Signed-off-by: Emilio López emi...@elopez.com.ar --- drivers/tty/serial/8250/8250_dw.c | 32 ++-- 1 file changed, 22

[PATCH 2/6] ARM: sunxi: dt: Use clocks property instead of clock-frequency for the UARTs

2013-03-07 Thread Maxime Ripard
It will be especially useful when we will have the clock definitions in the device tree. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sunxi.dtsi |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sunxi.dtsi b/arch

[PATCH 3/6] ARM: sunxi: dt: Move uart0 to sun4i-a10.dtsi

2013-03-07 Thread Maxime Ripard
The UART0 is only available on the Allwinner A10 SoCs, and not on the A13, so move the uart0 node to sun4i-a10.dtsi. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sun4i-a10.dtsi | 10 ++ arch/arm/boot/dts/sunxi.dtsi | 10 -- 2 files

[PATCH 4/6] ARM: sunxi: dt: Add uart3 dt node

2013-03-07 Thread Maxime Ripard
Both A10 and A13 Allwinner SoCs have a Synopsys APB uart3 device available, so add it to the sunxi.dtsi file Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sunxi.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts

[PATCH 5/6] ARM: sunxi: dt: Add A10 UARTs to the dtsi.

2013-03-07 Thread Maxime Ripard
The Allwinner A10 SoC has 8 available UARTs, which is 6 more than on the A13, so add the missing UARTs to the sun4i-a10 dtsi. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sun4i-a10.dtsi | 51 ++ 1 file changed, 51

[PATCH 6/6] ARM: sunxi: hackberry: Add UART muxing

2013-03-07 Thread Maxime Ripard
We previously relied on the bootloader to do the muxing of the UART for the Hackberry. Don't rely on it anymore and use pinctrl. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/boot/dts/sun4i-a10-hackberry.dts |2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH] ARM: sunxi: add missing include for mdelay()

2012-11-30 Thread Maxime Ripard
Cartwright josh.cartwri...@ni.com Acked-by: Maxime Ripard maxime.rip...@free-electrons.com --- Fixes multiplatform build error seen with today's linux-next-20121129. arch/arm/mach-sunxi/sunxi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach

Re: [PATCH] clocksource: use clockevents_config_and_register() where possible

2012-11-30 Thread Maxime Ripard
the codes less error prone and gain some positive diff stat. Signed-off-by: Shawn Guo shawn@linaro.org Acked-by: Maxime Ripard maxime.rip...@free-electrons.com Maxime -- Maxime Ripard, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training

Re: [PATCH] irqchip: irq-sunxi: Add terminating entry for sunxi_irq_dt_ids

2012-12-03 Thread Maxime Ripard
Le 02/12/2012 15:40, Axel Lin a écrit : The of_device_id table is supposed to be zero-terminated. Applied, thanks. -- Maxime Ripard, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from

Re: [PATCH] clocksource: sunxi_timer: Add terminating entry for sunxi_timer_dt_ids

2012-12-03 Thread Maxime Ripard
Le 02/12/2012 16:08, Axel Lin a écrit : The of_device_id table is supposed to be zero-terminated. Applied, thanks -- Maxime Ripard, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from

Re: [PATCH] ARM: sunxi: Include linux/delay.h

2012-12-03 Thread Maxime Ripard
Thanks, Maxime -- Maxime Ripard, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

[PATCH 1/5] fb: hx8357: Change parameters of the write function to u8

2013-02-13 Thread Maxime Ripard
Moving from void* to u8* removes the need for castslater on in the function. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/video/backlight/hx8357.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/backlight/hx8357.c b/drivers

[PATCH 3/5] fb: hx8357: Remove useless error message

2013-02-13 Thread Maxime Ripard
In case of a failing allocation, a dump stack will be printed anyway, so the dev_err is redundant. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/video/backlight/hx8357.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/backlight

[PATCH 5/5] fb: hx8357: Use static arrays for LCD configuration

2013-02-13 Thread Maxime Ripard
This allows a smaller and less error-prone code by using static arrays and the ARRAY_SIZE macro. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/video/backlight/hx8357.c | 173 +- 1 file changed, 95 insertions(+), 78 deletions

[PATCH 4/5] fb: hx8357: Remove trailing period

2013-02-13 Thread Maxime Ripard
Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/video/backlight/hx8357.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/hx8357.c b/drivers/video/backlight/hx8357.c index 7c82561..6da8ebe 100644 --- a/drivers/video/backlight

[PATCH 2/5] fb: hx8357: Fix inverted parameters for kcalloc

2013-02-13 Thread Maxime Ripard
The element size and the number of elements was inverted in the kcalloc call. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/video/backlight/hx8357.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/backlight/hx8357.c b/drivers/video

[PATCH] sunxi: Cleanup the reset code and add meaningful registers defines

2013-02-04 Thread Maxime Ripard
Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/mach-sunxi/sunxi.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c index 1dc8a92..f9555c3 100644 --- a/arch/arm/mach

Re: [PATCHv4] ARM: sunxi: gpio: Add Allwinner SoCs GPIO drivers

2013-01-29 Thread Maxime Ripard
Hi Linus, Le 29/01/2013 23:38, Linus Walleij a écrit : On Mon, Jan 28, 2013 at 9:33 PM, Maxime Ripard maxime.rip...@free-electrons.com wrote: The IP responsible for the muxing on the Allwinner SoCs are also handling the GPIOs on the system. This patch adds the needed driver that relies

Re: [PATCH 1/3] pinctrl: sunxi: Add of_xlate function

2013-01-29 Thread Maxime Ripard
Le 29/01/2013 23:41, Linus Walleij a écrit : On Sun, Jan 27, 2013 at 8:02 PM, Maxime Ripard maxime.rip...@free-electrons.com wrote: Since the pin controller of sunxi chips is represented as a single bank in the driver. Since this is neither convenient nor represented that way

  1   2   3   4   5   6   7   8   9   10   >