[linux-sunxi] Re: [PATCH v8 00/17] ARM: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-04-23 Thread Maxime Ripard
On Tue, Apr 22, 2014 at 02:17:30PM +0200, Hans de Goede wrote: Hi, On 04/22/2014 02:07 PM, Emilio López wrote: Hi Hans, El 22/04/14 08:01, Hans de Goede escribió: Hi All, Here is v8 of the sunxi-mmc patch-set David Lanzendörfer and I have been working on. The first 2 patches

[linux-sunxi] Re: [PATCH v8 10/17] ARM: dts: sun6i: Add mmc clocks

2014-04-23 Thread Maxime Ripard
On Tue, Apr 22, 2014 at 01:01:30PM +0200, Hans de Goede wrote: Add clk-nodes for the mmc clocks. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/boot/dts/sun6i-a31.dtsi | 32 1 file changed, 32 insertions(+) diff --git

[linux-sunxi] Re: [PATCH v8 07/17] ARM: dts: sun5i: Add mmc controller nodes

2014-04-23 Thread Maxime Ripard
On Tue, Apr 22, 2014 at 01:01:27PM +0200, Hans de Goede wrote: From: David Lanzendörfer david.lanzendoer...@o2s.ch Add nodes for the 3 mmc controllers found on A10s SoCs and for the 2 mmc controllers found on A13 SoCs. Signed-off-by: David Lanzendörfer david.lanzendoer...@o2s.ch

[linux-sunxi] Re: [PATCH v8 14/17] ARM: dts: sun6i: Enable the mmc controller on the m9

2014-04-23 Thread Maxime Ripard
On Tue, Apr 22, 2014 at 01:01:34PM +0200, Hans de Goede wrote: Tested on a Mele A1000G Quad. Signed-off-by: Hans de Goede hdego...@redhat.com This patch can be merged with the previous one. -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering

[linux-sunxi] Re: [PATCH v8 00/17] ARM: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs

2014-04-23 Thread Maxime Ripard
Hi Hans, On Tue, Apr 22, 2014 at 01:01:20PM +0200, Hans de Goede wrote: Hi All, Here is v8 of the sunxi-mmc patch-set David Lanzendörfer and I have been working on. The first 2 patches are depenencies which should go in through the clk tree, Mike can you pick these 2 up please ? :

[linux-sunxi] Re: [PATCH v8 11/17] ARM: dts: sun6i: Add mmc controller nodes

2014-04-23 Thread Maxime Ripard
On Tue, Apr 22, 2014 at 01:01:31PM +0200, Hans de Goede wrote: Add nodes for the 4 mmc controllers found on A31 SoCs to arch/arm/boot/dts/sun6i-a31.dtsi. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/boot/dts/sun6i-a31.dtsi | 52

Re: [linux-sunxi] Re: [PATCH v8 10/17] ARM: dts: sun6i: Add mmc clocks

2014-04-23 Thread Hans de Goede
Hi, On 04/23/2014 11:44 AM, Maxime Ripard wrote: On Tue, Apr 22, 2014 at 01:01:30PM +0200, Hans de Goede wrote: Add clk-nodes for the mmc clocks. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/boot/dts/sun6i-a31.dtsi | 32 1 file changed, 32

[linux-sunxi] [PATCH v8] sunxi-mmc: Drop cap MMC_CAP_SDIO_IRQ

2014-04-23 Thread Hans de Goede
Testing the wifi on my cubietruck has shown that sometimes sdio-irqs get missed, I've tried several approaches to fixing this, but all to no avail. So remove MMC_CAP_SDIO_IRQ from the claimed caps. We keep the rest of the sdio_irq code, so that it still can be enabled by setting cap-sdio-irq in

Re: [linux-sunxi] Re: [PATCH v8 07/17] ARM: dts: sun5i: Add mmc controller nodes

2014-04-23 Thread Hans de Goede
Hi, On 04/23/2014 11:48 AM, Maxime Ripard wrote: On Tue, Apr 22, 2014 at 01:01:27PM +0200, Hans de Goede wrote: From: David Lanzendörfer david.lanzendoer...@o2s.ch Add nodes for the 3 mmc controllers found on A10s SoCs and for the 2 mmc controllers found on A13 SoCs. Signed-off-by: David

[linux-sunxi] Re: [PATCH v8 11/17] ARM: dts: sun6i: Add mmc controller nodes

2014-04-23 Thread Hans de Goede
Hi, On 04/23/2014 11:50 AM, Maxime Ripard wrote: On Tue, Apr 22, 2014 at 01:01:31PM +0200, Hans de Goede wrote: Add nodes for the 4 mmc controllers found on A31 SoCs to arch/arm/boot/dts/sun6i-a31.dtsi. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/boot/dts/sun6i-a31.dtsi

[linux-sunxi] Re: [PATCH] reset: Add of_reset_control_get to reset.h

2014-04-23 Thread Maxime Ripard
Hi Philipp, On Mon, Apr 14, 2014 at 09:58:06AM +0200, Philipp Zabel wrote: Am Sonntag, den 13.04.2014, 14:09 +0200 schrieb Hans de Goede: of_reset_control_get is not declared static in drivers/reset/core.c, which is correct as we want to use it elsewhere too. But it does not have a protype

[linux-sunxi] Re: [PATCH v6 2/8] ARM: sunxi: Split out the various machines into separate files

2014-04-23 Thread Arnd Bergmann
On Thursday 17 April 2014, Maxime Ripard wrote: This will allow to add per-SoC hooks more easily. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/mach-sunxi/Makefile | 6 +- arch/arm/mach-sunxi/restart.c | 104 +++

[linux-sunxi] Re: [PATCH v5 7/7] ARM: sun6i: dt: Add A31 DMA controller to DTSI

2014-04-23 Thread Arnd Bergmann
On Thursday 13 March 2014, Maxime Ripard wrote: Now that we have a DMA driver, we can add the DMA bindings in the DTSI for the controller and the devices supported that can use DMA. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com Acked-by: Arnd Bergmann a...@arndb.de But why

[linux-sunxi] Re: [PATCH v6 6/8] ARM: sun6i: Sort the NMI node by physical address

2014-04-23 Thread Arnd Bergmann
On Thursday 17 April 2014, Maxime Ripard wrote: The DT are supposed to be ordered by physical address. Move the NMI node where it belongs. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com Acked-by: Arnd Bergmann a...@arndb.de -- You received this message because you are

[linux-sunxi] Re: [PATCH v6 3/8] ARM: sunxi: Move the clock protection to machine hooks

2014-04-23 Thread Arnd Bergmann
On Thursday 17 April 2014, Maxime Ripard wrote: Since we start to have a lot of clocks to protect, some of them in a few boards only, it becomes difficult to handle the clock protection without having to add per machine exceptions. Move these where they belong, in the machine definition

[linux-sunxi] Re: [PATCH v6 6/8] ARM: sun6i: Sort the NMI node by physical address

2014-04-23 Thread Maxime Ripard
On Wed, Apr 23, 2014 at 02:39:26PM +0200, Arnd Bergmann wrote: On Thursday 17 April 2014, Maxime Ripard wrote: The DT are supposed to be ordered by physical address. Move the NMI node where it belongs. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com Acked-by: Arnd

[linux-sunxi] Re: [PATCH v5 7/7] ARM: sun6i: dt: Add A31 DMA controller to DTSI

2014-04-23 Thread Maxime Ripard
On Wed, Apr 23, 2014 at 02:35:03PM +0200, Arnd Bergmann wrote: On Thursday 13 March 2014, Maxime Ripard wrote: Now that we have a DMA driver, we can add the DMA bindings in the DTSI for the controller and the devices supported that can use DMA. Signed-off-by: Maxime Ripard

[linux-sunxi] Re: [PATCH v6 3/8] ARM: sunxi: Move the clock protection to machine hooks

2014-04-23 Thread Maxime Ripard
On Wed, Apr 23, 2014 at 02:39:02PM +0200, Arnd Bergmann wrote: On Thursday 17 April 2014, Maxime Ripard wrote: Since we start to have a lot of clocks to protect, some of them in a few boards only, it becomes difficult to handle the clock protection without having to add per machine

[linux-sunxi] Re: [PATCH v6 2/8] ARM: sunxi: Split out the various machines into separate files

2014-04-23 Thread Maxime Ripard
On Wed, Apr 23, 2014 at 02:33:50PM +0200, Arnd Bergmann wrote: On Thursday 17 April 2014, Maxime Ripard wrote: This will allow to add per-SoC hooks more easily. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/mach-sunxi/Makefile | 6 +-

[linux-sunxi] Re: [PATCH v6 3/8] ARM: sunxi: Move the clock protection to machine hooks

2014-04-23 Thread Arnd Bergmann
On Wednesday 23 April 2014 15:17:20 Maxime Ripard wrote: +#include linux/clk.h #include linux/init.h #include linux/of_platform.h @@ -19,9 +20,17 @@ static void __init sun4i_dt_init(void) { + struct clk *clk; + sunxi_setup_restart();

[linux-sunxi] Re: [PATCH v6 2/8] ARM: sunxi: Split out the various machines into separate files

2014-04-23 Thread Arnd Bergmann
On Wednesday 23 April 2014 15:28:29 Maxime Ripard wrote: On Wed, Apr 23, 2014 at 02:33:50PM +0200, Arnd Bergmann wrote: On Thursday 17 April 2014, Maxime Ripard wrote: This will allow to add per-SoC hooks more easily. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com

[linux-sunxi] Re: [PATCH v3 7/7] ARM: sunxi: update the default ARCH_NR_GPIO for sunxi arch

2014-04-23 Thread Linus Walleij
On Tue, Apr 22, 2014 at 4:20 PM, Arnd Bergmann a...@arndb.de wrote: Patch applied, and g we need to get rid of these static #gpios defines in the long run. Yes, that would be nice. I guess the gpio-descriptor framework should have solved this, but we can't move everything over to that

[linux-sunxi] Re: [PATCH 2/7] gpiolib: Support purely name based gpiod lookup in device trees

2014-04-23 Thread Linus Walleij
On Tue, Apr 22, 2014 at 5:18 PM, Maxime Ripard maxime.rip...@free-electrons.com wrote: This patch has a dependency on the first patch of this serie, since it uses a binding that was documented there. Maybe you'll want to wait for the ACK from the DT maintainers to merge this one. Yeah I

[linux-sunxi] [PATCH 2/5] power: reset: Add Allwinner A31 reset code

2014-04-23 Thread Maxime Ripard
That code used to be in the machine code, but it's more fit here with other restart hooks. That will allow to cleanup the machine directory, while waiting for a proper watchdog driver for the A31. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/power/reset/Kconfig

[linux-sunxi] [PATCH 1/5] wdt: sunxi: Move restart code to the watchdog driver

2014-04-23 Thread Maxime Ripard
Most of the watchdog code is duplicated between the machine restart code and the watchdog driver. Add the restart hook to the watchdog driver, to be able to remove it from the machine code eventually. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/watchdog/sunxi_wdt.c

[linux-sunxi] [PATCH 4/5] ARM: sunxi: Remove reset code from the platform

2014-04-23 Thread Maxime Ripard
Now that reset is handled either by the watchdog driver for the sun4i, sun5i and sun7i, and by a driver of its own for sun6i, we can remove it from the platform code. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/mach-sunxi/sunxi.c | 98

[linux-sunxi] [PATCH 3/5] ARM: sunxi: Select restart drivers

2014-04-23 Thread Maxime Ripard
Make sure we have the restart hooks in the kernel by selecting them in Kconfig. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/mach-sunxi/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index

[linux-sunxi] [PATCH 5/5] ARM: sunxi: Remove sun4i and sun7i machine definitions

2014-04-23 Thread Maxime Ripard
The sun4i and sun7i machines are nothing more than a generic machine now, we can completely remove them. Only stays the sun6i machine, that needs to have its reset controller enabled before the timers. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/mach-sunxi/sunxi.c

[linux-sunxi] [PATCH 0/5] ARM: sunxi: Machine code cleanup

2014-04-23 Thread Maxime Ripard
Hi, This serie moves the restart code out of the mach-sunxi directory to either the watchdog driver or to a new driver in drivers/power/reset. Since the reset code was pretty much all the code left in the mach-sunxi directory for all the SoCs but the A31, we also can remove the whole machine

[linux-sunxi] Re: [PATCH 1/5] wdt: sunxi: Move restart code to the watchdog driver

2014-04-23 Thread Arnd Bergmann
On Wednesday 23 April 2014 17:04:32 Maxime Ripard wrote: Most of the watchdog code is duplicated between the machine restart code and the watchdog driver. Add the restart hook to the watchdog driver, to be able to remove it from the machine code eventually. Signed-off-by: Maxime Ripard

[linux-sunxi] Re: [PATCH 3/5] ARM: sunxi: Select restart drivers

2014-04-23 Thread Arnd Bergmann
On Wednesday 23 April 2014 17:04:34 Maxime Ripard wrote: Make sure we have the restart hooks in the kernel by selecting them in Kconfig. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- arch/arm/mach-sunxi/Kconfig | 4 1 file changed, 4 insertions(+) diff --git

[linux-sunxi] Re: [PATCH 4/5] ARM: sunxi: Remove reset code from the platform

2014-04-23 Thread Arnd Bergmann
On Wednesday 23 April 2014 17:04:35 Maxime Ripard wrote: Now that reset is handled either by the watchdog driver for the sun4i, sun5i and sun7i, and by a driver of its own for sun6i, we can remove it from the platform code. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com ---

[linux-sunxi] Re: [PATCH 5/5] ARM: sunxi: Remove sun4i and sun7i machine definitions

2014-04-23 Thread Arnd Bergmann
On Wednesday 23 April 2014 17:04:36 Maxime Ripard wrote: -static void __init sunxi_dt_init(void) -{ - of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); -} - -static const char * const sunxi_board_dt_compat[] = { - allwinner,sun4i-a10, -

[linux-sunxi] Re: [PATCH 2/5] power: reset: Add Allwinner A31 reset code

2014-04-23 Thread Arnd Bergmann
On Wednesday 23 April 2014 17:04:33 Maxime Ripard wrote: That code used to be in the machine code, but it's more fit here with other restart hooks. That will allow to cleanup the machine directory, while waiting for a proper watchdog driver for the A31. Signed-off-by: Maxime Ripard

[linux-sunxi] Olimex A20 Sata

2014-04-23 Thread Dennis Kerrisk
What kernel config options do I need to enable the SATA port on my Olimex A20 board? I did not see any sunxi specific options in in menuconfig Dennis -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop

[linux-sunxi] [PATCH 3/6] sunxi: hmdi: remove what looks like I2S leftovers

2014-04-23 Thread codekipper
From: Marcus Cooper codekip...@gmail.com Signed-off-by: Marcus Cooper codekip...@gmail.com --- sound/soc/sunxi/hdmiaudio/sunxi-hdmiaudio.c | 4 +- sound/soc/sunxi/hdmiaudio/sunxi-sndhdmi.c | 197 +--- 2 files changed, 5 insertions(+), 196 deletions(-) diff --git

[linux-sunxi] [PATCH 4/6] sunxi: hdmi: strip out more unneeded code

2014-04-23 Thread codekipper
From: Marcus Cooper codekip...@gmail.com The HDMI driver has been copied from the I2S driver and very little effort has been made to remove the unneeded parts. Therefore the registers that are used by the I2S hardware block are simply renamed and they serve no purpose in providing a functioning

[linux-sunxi] [PATCH 1/6] sunxi: hdmi: Removal of unneeded headers

2014-04-23 Thread codekipper
From: Marcus Cooper codekip...@gmail.com There is a lot of code in the HDMI driver that does nothing. This patch removes all the headers which are deemed unnecessary. Signed-off-by: Marcus Cooper codekip...@gmail.com --- sound/soc/sunxi/hdmiaudio/sndhdmi.c | 3 +--

[linux-sunxi] [PATCH 2/6] sunxi: hdmi: remove HDMI capture

2014-04-23 Thread codekipper
From: Marcus Cooper codekip...@gmail.com The A23 SDK does not mention HDMI capture and this seems to be left over from when this driver was copied from the I2S driver. Remove from codebase. Signed-off-by: Marcus Cooper codekip...@gmail.com --- sound/soc/sunxi/hdmiaudio/sunxi-hdmiaudio.c | 101

[linux-sunxi] [PATCH 6/6] sunxi: hdmi: added parameter checks

2014-04-23 Thread codekipper
From: Marcus Cooper codekip...@gmail.com The A23 SDK has additional parameter checks to ensure that null pointers are not being used. Signed-off-by: Marcus Cooper codekip...@gmail.com --- sound/soc/sunxi/hdmiaudio/sndhdmi.c | 4 sound/soc/sunxi/hdmiaudio/sunxi-hdmiaudio.c | 10

[linux-sunxi] [PATCH 0/6] HDMI Driver Cleanup

2014-04-23 Thread codekipper
From: Marcus Cooper codekip...@gmail.com Hi, There is a lot of code in the HDMI driver that does nothing. These patches removes all the unnecessary code, provides a clean up and some parameter checks which came from the comparing the drivers released under the A23 SDK. I have tested this on my

Re: [linux-sunxi] [PATCH u-boot-sunxi 1/2] sunxi: dram: Support more DRAM clock speeds (396, 468, 496, 512, 540)

2014-04-23 Thread Ian Campbell
On Mon, 2014-04-21 at 05:32 +0300, Siarhei Siamashka wrote: + if (clk = 540 clk 552) { If you wanted I think you could replace this if/else tree with switch (clk) { case 540 ... 551: /*stuff*/ case 512 ... 527: /*stuff*/ case

[linux-sunxi] Re: [PATCH v4 7/9] ARM: sun7i/sun4i: dt: Add AXP209 support to various boards

2014-04-23 Thread Carlo Caione
On Fri, Apr 18, 2014 at 04:15:51PM +0100, Mark Brown wrote: On Thu, Apr 17, 2014 at 12:06:34PM +0200, Carlo Caione wrote: I'm fighting with a small issue when using the regulator_bulk_register_supply_alias(). Problem is that when using the .parent_supplies entry in the MFD driver, I hit

[linux-sunxi] [PATCH] fel: Add A23 SoC ID

2014-04-23 Thread Chen-Yu Tsai
Signed-off-by: Chen-Yu Tsai w...@csie.org --- fel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fel.c b/fel.c index ba4212c..97f265e 100644 --- a/fel.c +++ b/fel.c @@ -166,6 +166,7 @@ void aw_fel_get_version(libusb_device_handle *usb) case 0x1625: soc_name=A13;break; case