[linux-sunxi] Re: [PATCH] pinctrl: sunxi: Fix multi bank interrupt support in gpio_to_irq

2014-07-04 Thread Maxime Ripard
Hi, On Tue, Jul 01, 2014 at 12:04:59AM +0800, Chen-Yu Tsai wrote: When mapping the interrupts, the gpio_to_irq function did not consider the bank number of the gpio pin in question, only the offset or the interrupt number in the bank. As a result, requests for interrupts in the later banks

[linux-sunxi] Re: [PATCH] pinctrl: sunxi: Remove gpio_out function from sun5i-a13 PG0/1/2 pins

2014-07-04 Thread Maxime Ripard
Hi, On Tue, Jul 01, 2014 at 11:25:08PM +0800, Chen-Yu Tsai wrote: The A13 user manual states pins PG0/1/2 only have GPIO input and interrupt functions. Remove the gpio_out functions for these pins. Signed-off-by: Chen-Yu Tsai w...@csie.org Good catch! Acked-by: Maxime Ripard

[linux-sunxi] Re: [PATCH] pinctrl: sunxi: Fix multi bank interrupt support in gpio_to_irq

2014-07-04 Thread Chen-Yu Tsai
On Fri, Jul 4, 2014 at 3:03 PM, Maxime Ripard maxime.rip...@free-electrons.com wrote: Hi, On Tue, Jul 01, 2014 at 12:04:59AM +0800, Chen-Yu Tsai wrote: When mapping the interrupts, the gpio_to_irq function did not consider the bank number of the gpio pin in question, only the offset or the

[linux-sunxi] Re: [PATCH] pinctrl: sunxi: Fix multi bank interrupt support in gpio_to_irq

2014-07-04 Thread Maxime Ripard
On Fri, Jul 04, 2014 at 03:11:04PM +0800, Chen-Yu Tsai wrote: On Fri, Jul 4, 2014 at 3:03 PM, Maxime Ripard maxime.rip...@free-electrons.com wrote: Hi, On Tue, Jul 01, 2014 at 12:04:59AM +0800, Chen-Yu Tsai wrote: When mapping the interrupts, the gpio_to_irq function did not consider

[linux-sunxi] Re: [PATCH v10 2/2] dmaengine: sun6i: Add driver for the Allwinner A31 DMA controller

2014-07-04 Thread Maxime Ripard
Hi Mark, On Tue, Jul 01, 2014 at 01:48:52PM +0100, Mark Rutland wrote: On Tue, Jul 01, 2014 at 08:21:19AM +0100, Maxime Ripard wrote: On Mon, Jun 30, 2014 at 04:33:05PM +0100, Mark Rutland wrote: On Mon, Jun 30, 2014 at 04:19:06PM +0100, Maxime Ripard wrote: On Mon, Jun 30, 2014 at

Re: [linux-sunxi] fatal error: libcedarv.h: No such file or directory

2014-07-04 Thread Simo Xefil
Hello! Thank you, now, after 6 hours of compiling, and solving some problems, I was able to end the installation. The actual issue is, the binary cannot start: root@lemaker:/allwinner/xbmc-pvr-binhf/bin# ./xbmc /allwinner/xbmc-pvr-binhf/lib/xbmc/xbmc.bin: error while loading shared

[linux-sunxi] Re: A20: SPI Drivers

2014-07-04 Thread bruce bushby
What kernel version are you using? I created much the same (if not identicle) patches but I ran into: drivers/spi/spi-sun7i.c:30:22: fatal error: mach/dma.h: No such file or directory Any reason you're not using the sun4i spi drivers? I think I've made some progress, a ps listing shows:

Re: [linux-sunxi] fatal error: libcedarv.h: No such file or directory

2014-07-04 Thread Andreas Baierl
find / -name libGLESv2.so Seems you are missing the mali binaries, or something messed up while making opengles dependencies. Or maybe your paths are wrong. I assume, you are compiling directly on the device? Regards Am 04.07.2014 10:23, schrieb Simo Xefil: Hello! Thank you, now, after 6

Re: [linux-sunxi] [PATCH u-boot-sunxi] sunxi: fix failure of mmc init

2014-07-04 Thread Hans de Goede
Hi, On 07/04/2014 04:31 AM, Wills Wang wrote: Hi, diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index bbfe8a3..f0cb760 100644 --- a/drivers/mmc/sunxi_mmc.c +++ b/drivers/mmc/sunxi_mmc.c @@ -173,8 +173,6 @@ static int mmc_core_init(struct mmc *mmc) /* Reset

Re: [linux-sunxi] fatal error: libcedarv.h: No such file or directory

2014-07-04 Thread Simo Xefil
Yess, I've compiled it directly on the device (so long time ;)) Here the location of the file: root@lemaker:~# find / -name libGLESv2.so /data/software/xbmc-install/xbmca10/tools/a10/depends/opengles/sunxi-mali/lib/mali/r2p4/armel/framebuffer/libGLESv2.so Also it's in the sunxi-mali deps it

Re: [linux-sunxi] fatal error: libcedarv.h: No such file or directory

2014-07-04 Thread Andreas Baierl
Do you have the mali.ko present in /lib/modules/... ? If so do a modprobe mali. And move to #linux-sunxi or #cubieboard @ freenode for further discussions. linux-sunxi ml is not the right place for this kind of problem imo. BTW, where is bananapi support located? Regards Am 04.07.2014 10:57,

[linux-sunxi] Current state of a31 kernel

2014-07-04 Thread uli . raich
Hi, Since quite some time I have been giving courses on embedded system and lately using a10 tablets for this purpose. I am now considering to switch to the a31 but I would need to know if the kernel and drivers are already in a usable state as the sunxi page on the a31 states: Proper Linux

Re: [linux-sunxi] [PATCH u-boot-sunxi] sunxi: fix failure of mmc init

2014-07-04 Thread Wills Wang
Hi, Hi, On 07/04/2014 04:31 AM, Wills Wang wrote: Hi, diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index bbfe8a3..f0cb760 100644 --- a/drivers/mmc/sunxi_mmc.c +++ b/drivers/mmc/sunxi_mmc.c @@ -173,8 +173,6 @@ static int mmc_core_init(struct mmc *mmc) /* Reset

[linux-sunxi] Re: A20 + OV5640 (parallel) issues

2014-07-04 Thread alex simohin
Hi! I've done everything according to the instructions http://docs.cubieboard.org/tutorials/dvk521/documentations/a20/driver_porting_and_configuration . fex file I changed to ov5640. Pay attention to the sections in the manual porting I2C bus driver and porting csi driver. вторник, 1 июля 2014

Re: [linux-sunxi] Re: A20: SPI Drivers

2014-07-04 Thread jonsm...@gmail.com
Isn't SPI already working in Emilio's kernel? http://git.elopez.com.ar/linux/commits/branch/sunxi-dma On Fri, Jul 4, 2014 at 4:32 AM, bruce bushby bruce.bus...@gmail.com wrote: What kernel version are you using? I created much the same (if not identicle) patches but I ran into:

Re: [linux-sunxi] Re: A20: SPI Drivers

2014-07-04 Thread Maxime Ripard
On Fri, Jul 04, 2014 at 08:52:25AM -0400, jonsm...@gmail.com wrote: Isn't SPI already working in Emilio's kernel? SPI is actually working on every kernel since 3.15 (without DMA though). -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com

Re: [linux-sunxi] Re: A20: SPI Drivers

2014-07-04 Thread Maxime Ripard
On Fri, Jul 04, 2014 at 02:27:32PM +0100, bruce bushby wrote: Does this mean that it's not possible to have SPI0-SPI3 + ethernet working at the same time? It is. The EMAC pins are also routed in the PH bank. So if your board uses the relevant PA pins for the SPI controllers, and the PH pins for

Re: [linux-sunxi] Re: A20: SPI Drivers

2014-07-04 Thread bruce bushby
Got it, I wanted to make sure there wasn't some multiplexing voodoo which I had never heard about. I remember the Beaglebone had the omap pin mux so figured pin control was similar. Fortunately I don't need ethernet, but looking at the Olimex A20-SOM I'm not sure all the SPI devices are

Re: [linux-sunxi] Re: A20: SPI Drivers

2014-07-04 Thread bruce bushby
*downloaded.rather then purchased: http://events.linuxfoundation.org/sites/events/files/slides/petazzoni-device-tree-dummies.pdf Maxime: Thanks for the link! On Fri, Jul 4, 2014 at 4:28 PM, bruce bushby bruce.bus...@gmail.com wrote: Got it, I wanted to make sure there wasn't some

[linux-sunxi] Wifi on Cubietruck, 3.16

2014-07-04 Thread jonsm...@gmail.com
So is AP6210 support in mainline 3.16-rc1? I don't have a wireless device when I boot it but I do get some log messages at boot Can the AP6210 be probed? I don't see anything in the Cubietruck DTS loading the driver. This is on Emilio's DMA tree.

Re: [linux-sunxi] [PATCH u-boot-sunxi] sunxi: fix failure of mmc init

2014-07-04 Thread Henrik Nordström
fre 2014-07-04 klockan 17:14 +0800 skrev Wills Wang: +gctrl = readl(mmchost-reg-gctrl); +gctrl = ~SUNXI_MMC_GCTRL_ACCESS_BY_AHB; The above line seems redundant / unnecessary. These lines are based on read-modify-write principle, the mmc hardware on sunxi have no detail document,

[linux-sunxi] [PATCH sunxi-tools] usb-boot: Trivial typo fix s/fint/find

2014-07-04 Thread Ian Campbell
Signed-off-by: Ian Campbell i...@hellion.org.uk --- usb-boot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usb-boot b/usb-boot index 40d32ab..3881d29 100755 --- a/usb-boot +++ b/usb-boot @@ -67,7 +67,7 @@ if [ `wc -c $felboot | cut '-d ' -f1` -gt 15616 ]; then exit 1

[linux-sunxi] Re: [PATCH v3 1/4] pinctrl: sunxi: Add IRQCHIP_SKIP_SET_WAKE flag for pinctrl irq chip

2014-07-04 Thread Linus Walleij
On Sun, Jun 29, 2014 at 4:10 PM, Hans de Goede hdego...@redhat.com wrote: From: Chen-Yu Tsai w...@csie.org The sunxi pinctrl irq chip driver does not support wakeup at the moment. Adding IRQCHIP_SKIP_SET_WAKE lets the irqs work with drivers using wakeup. Signed-off-by: Chen-Yu Tsai

[linux-sunxi] Re: [PATCH v3 2/4] pinctrl: sunxi: Move setting of mux to irq type from unmask to request_resources

2014-07-04 Thread Linus Walleij
On Sun, Jun 29, 2014 at 4:11 PM, Hans de Goede hdego...@redhat.com wrote: With level triggered interrupt mask / unmask will get called for each interrupt, doing the somewhat expensive mux setting on each unmask thus is not a good idea. Instead add a request_resources callback and do it there.

[linux-sunxi] Re: [PATCH v3 3/4] pinctrl: sunxi: Properly handle level triggered gpio interrupts

2014-07-04 Thread Linus Walleij
On Sun, Jun 29, 2014 at 4:11 PM, Hans de Goede hdego...@redhat.com wrote: For level triggered gpio interrupts we need to use handle_fasteoi_irq, like we do with the irq-sunxi-nmi driver. This is necessary to give threaded interrupt handlers a chance to actuall clear the source of the interrupt

[linux-sunxi] Re: [PATCH v3 4/4] pinctrl: sunxi: Define enable / disable irq callbacks for level triggered irqs

2014-07-04 Thread Linus Walleij
On Sun, Jun 29, 2014 at 4:11 PM, Hans de Goede hdego...@redhat.com wrote: Some drivers use disable_irq / enable_irq and do the work clearing the source in another thread instead of using a threaded interrupt handler. The irqchip used not having irq_disable and irq_enable callbacks in this

[linux-sunxi] Re: [PATCH] pinctrl: sunxi: Fix multi bank interrupt support in gpio_to_irq

2014-07-04 Thread Linus Walleij
On Mon, Jun 30, 2014 at 6:04 PM, Chen-Yu Tsai w...@csie.org wrote: When mapping the interrupts, the gpio_to_irq function did not consider the bank number of the gpio pin in question, only the offset or the interrupt number in the bank. As a result, requests for interrupts in the later banks

[linux-sunxi] Reboot regression in 3.16 mainline

2014-07-04 Thread jonsm...@gmail.com
Somewhere between 3.15 and 3.16-rc1 reboot got broken on the A20 Cubietruck. Does someone know where to look? It is a pain to bisect those early 3.16 commits. This is on vanilla mainline with no patches applied. -- Jon Smirl jonsm...@gmail.com -- You received this message because you are

Re: [linux-sunxi] Current state of a31 kernel

2014-07-04 Thread Neal Peacock
Hello, I'm not too up to date on the mainlining efforts. However I had success with the a31 running Linux. The GPU worked under mer and I managed to get Ubuntu touch booting. It did have problems but it ran. I posted some of this on my github but I haven't looked at it in almost a year. I