[linux-sunxi] Using coreboot to boot from NAND witout boot0/boot1

2014-03-11 Thread mrnuke
Yes, it is possible. I've made a page on how to do exactly this: http://linux-sunxi.org/Coreboot The instructions are probably crap and you won't be able to follow through, but please let me know where you get stuck, so I can update the page accordingly, but it seems to be possible. I don't have

Re: [linux-sunxi] [A10] Getting u-boot onto freshly partitioned Nand for booting Linux

2014-03-11 Thread Neal Peacock
Answers in line. Thanks On Mar 9, 2014 11:34 AM, "hunter hu" wrote: > > Hi Neal, > > Thanks for that. > > I have no idea about the magic signing value, I have 3 questions and comments: > > 1> If I just use the original nandb.img which was dd out of the nand itself, will that still be needed? No

Re: [linux-sunxi] Re: [PATCH 6/7] regulator: AXP20x: Add support for regulators subsystem

2014-03-11 Thread Mark Brown
On Tue, Mar 11, 2014 at 10:06:59PM +0100, Carlo Caione wrote: > On Tue, Mar 11, 2014 at 07:29:40PM +, Mark Brown wrote: > > With the above code the driver will return an error and never get as far > > as registering the regulator. > I agree, but if I register the regulators without having the

Re: [linux-sunxi] Re: [PATCH 6/7] regulator: AXP20x: Add support for regulators subsystem

2014-03-11 Thread Carlo Caione
On Tue, Mar 11, 2014 at 07:29:40PM +, Mark Brown wrote: > On Tue, Mar 11, 2014 at 08:24:11PM +0100, Carlo Caione wrote: > > On Mon, Mar 03, 2014 at 10:56:16AM +0900, Mark Brown wrote: > > > > > + regulators = of_find_node_by_name(np, "regulators"); > > > > + if (!regulators) { > >

[linux-sunxi] dt: How to best handle SPI pingroup declarations

2014-03-11 Thread mrnuke
I've been wanting to get SPI up and running on the cubie, which now is as simple as declaring the relevant nodes in devicetree. The issue here is how and where to declare the pingroups. Take for example the fictional A1l sunli SoC: SPI0 on sunli has 5 signals, each muxable to one of two pins: s

Re: [linux-sunxi] Re: [PATCH 6/7] regulator: AXP20x: Add support for regulators subsystem

2014-03-11 Thread Mark Brown
On Tue, Mar 11, 2014 at 08:24:11PM +0100, Carlo Caione wrote: > On Mon, Mar 03, 2014 at 10:56:16AM +0900, Mark Brown wrote: > > > + regulators = of_find_node_by_name(np, "regulators"); > > > + if (!regulators) { > > > + dev_err(&pdev->dev, "regulators node not found\n"); > > > + re

Re: [linux-sunxi] Re: [PATCH 6/7] regulator: AXP20x: Add support for regulators subsystem

2014-03-11 Thread Carlo Caione
On Mon, Mar 03, 2014 at 10:56:16AM +0900, Mark Brown wrote: > > + np = of_node_get(pdev->dev.parent->of_node); > > + if (!np) > > + return 0; > > + > > + regulators = of_find_node_by_name(np, "regulators"); > > + if (!regulators) { > > + dev_err(&pdev->dev, "regulato

[linux-sunxi] Re: [RFC PATCH v2 04/14] mtd: nand: define struct nand_timings

2014-03-11 Thread Jason Gunthorpe
On Mon, Mar 10, 2014 at 02:44:04PM +0100, Boris BREZILLON wrote: > Some timings are missing here (see Table 55 in the ONFI spec): Right.. The 'mode' covers only the raw electrical parameters needed to exchange commands, other timings cover the commands themselves. Notably the timing mode does no

Re: [linux-sunxi] Re: [RFC PATCH v2 08/14] mtd: nand: add sunxi NAND flash controller support

2014-03-11 Thread Jason Gunthorpe
On Mon, Mar 10, 2014 at 12:17:31PM +0100, Boris BREZILLON wrote: > Hello Jason, > > Le 29/01/2014 20:10, Jason Gunthorpe a écrit : > >On Wed, Jan 29, 2014 at 03:46:20PM -0300, Ezequiel Garcia wrote: > > > >>After CE# has been pulled high and then transitioned low again, the host > >>should issue a

Re: [linux-sunxi] Re: Stk1160 driver

2014-03-11 Thread André Kerber
Ok I thought that I do not have to dive into building kernel modules using a ubuntu port un the cubieboard... I have about 25MB/sec from USB port to sd card and about 30MB/sec to SATA and successfully captured stk1160 video including audio today using the easycap driver. The problem is that onl

Re: [U-Boot] Default initrd and fdt load behaviour on ARM (Was: Re: [linux-sunxi] Re: Not able to boot ramdisk on cubietruck)

2014-03-11 Thread Tom Rini
On Tue, Mar 11, 2014 at 03:21:54PM +, Ian Campbell wrote: > On Tue, 2014-03-11 at 09:48 -0400, Tom Rini wrote: > > On Tue, Mar 11, 2014 at 10:38:05AM +, Ian Campbell wrote: > > > But what is the reason for the default behaviour of bootz doing things > > > which do not conform to linux/Docum

[linux-sunxi] Re: [PATCH v5 6/8] ARM: dts: sun4i: Add support for mmc

2014-03-11 Thread David Lanzendörfer
Hi > Oh, good catch, thanks! Fixed in the sunxi-devel branch > in my *personal* git repo. I'll also push this to the official linux-sunxi > sunxi-devel branch later today. Fixed it for the next patch set as well. -david signature.asc Description: This is a digitally signed message part.

[linux-sunxi] [PATCH] irqchip: sun4i: Fix acomment about mask register initialization

2014-03-11 Thread Hans de Goede
The comment was claiming that we were masking all irqs, while the code actually *un*masks all of them. Signed-off-by: Hans de Goede --- drivers/irqchip/irq-sun4i.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-sun4i.c b/drivers/irqchip/irq-sun4i.c index

Re: [linux-sunxi] [PATCH] ARM: sun4i: dt: Add AXP209 support to the cubieboard

2014-03-11 Thread Hans de Goede
Hi, Thanks for working on this, I've had this on my todo list myself. Unfortunately is is not this easy. On 03/11/2014 01:22 AM, mrnuke wrote: > Signed-off-by: Alexandru Gagniuc > --- > arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 10 ++ > 1 file changed, 10 insertions(+) > > diff --gi

[linux-sunxi] Re: [PATCH v5 6/8] ARM: dts: sun4i: Add support for mmc

2014-03-11 Thread Hans de Goede
Hi, Oh, good catch, thanks! Fixed in the sunxi-devel branch in my *personal* git repo. I'll also push this to the official linux-sunxi sunxi-devel branch later today. Regards, Hans On 03/10/2014 10:49 PM, mr.nuke...@gmail.com wrote: > On Tuesday, February 11, 2014 1:34:25 PM UTC-6, David Lanz

[linux-sunxi] [PATCH] irqchip: sun4i: Fix irq 0 not working

2014-03-11 Thread Hans de Goede
SUN4I_IRQ_VECTOR_REG containing 0 can mean one of 2 things: 1) irq 0 pending 2) no more irqs pending So we must loop always atleast once to make irq 0 work, otherwise irq 0 will never get serviced and we end up with a hard hang because sun4i_handle_irq gets re-entered constantly. Signed-off-by: H

Re: [U-Boot] Default initrd and fdt load behaviour on ARM (Was: Re: [linux-sunxi] Re: Not able to boot ramdisk on cubietruck)

2014-03-11 Thread Ian Campbell
On Tue, 2014-03-11 at 09:48 -0400, Tom Rini wrote: > On Tue, Mar 11, 2014 at 10:38:05AM +, Ian Campbell wrote: > > But what is the reason for the default behaviour of bootz doing things > > which do not conform to linux/Documentation/arm/Booting and therefore is > > not going to boot? > > Beca

Re: [linux-sunxi] A31 pmic (axp221) support

2014-03-11 Thread Hans de Goede
Hi, On 03/11/2014 01:15 PM, Olliver Schinagl wrote: > On 03/10/14 22:31, Hans de Goede wrote: >> Hi, >> >> On 03/10/2014 05:04 PM, Olliver Schinagl wrote: >>> Hey Hans, >>> >>> I played with the a31 stuff in u-boot a while ago. Lacking hardware, there >>> was little I was able to do, but check ou

Re: [linux-sunxi] About decoding latency on A10 chip

2014-03-11 Thread Olliver Schinagl
On 03/11/14 15:33, lhavc2...@gmail.com wrote: Hello everyone, I am developing a video streaming application that using A10 board for live scenario, everything runs well but I found that there are 3 frames delay on decoding phase. Seems there's no option for low-latency decoding in linux-armhf

Re: [linux-sunxi] Re: Stk1160 driver

2014-03-11 Thread Ezequiel Garcia
On Mar 11, Emilio López wrote: > >>Do you have any idea? I definitely have a build in the modules directory... > > You most likely have a broken symlink there. You (or someone else) probably > cross-built the kernel but didn't install the kernel headers there. You > should install them to build st

[linux-sunxi] About decoding latency on A10 chip

2014-03-11 Thread lhavc2010
Hello everyone, I am developing a video streaming application that using A10 board for live scenario, everything runs well but I found that there are 3 frames delay on decoding phase. Seems there's no option for low-latency decoding in linux-armhf build of cedarv library, but the other one, armh

[linux-sunxi] Re: Stk1160 driver

2014-03-11 Thread Emilio López
Hi there, El 11/03/14 00:40, Ezequiel Garcia escribió: André, I'm leaving the question intact for context, and adding some folks. On Mon, Mar 10, 2014 at 8:55 PM, André Kerber wrote: I am sorry to disturb you because of the old stk1160 driver, but I am very stuck and did not find any answe

Re: [U-Boot] Default initrd and fdt load behaviour on ARM (Was: Re: [linux-sunxi] Re: Not able to boot ramdisk on cubietruck)

2014-03-11 Thread Tom Rini
On Tue, Mar 11, 2014 at 10:38:05AM +, Ian Campbell wrote: > Adding u-boot list since I think this is a general issue/question. > > On Sun, 2014-03-09 at 20:00 +0100, Olliver Schinagl wrote: > > On 03/09/14 16:18, tyler.ba...@linaro.org wrote: > > > On Sunday, March 9, 2014 8:06:27 AM UTC-7, ty

Re: Default initrd and fdt load behaviour on ARM (Was: Re: [linux-sunxi] Re: Not able to boot ramdisk on cubietruck)

2014-03-11 Thread Olliver Schinagl
On 03/11/14 11:38, Ian Campbell wrote: Adding u-boot list since I think this is a general issue/question. On Sun, 2014-03-09 at 20:00 +0100, Olliver Schinagl wrote: On 03/09/14 16:18, tyler.ba...@linaro.org wrote: On Sunday, March 9, 2014 8:06:27 AM UTC-7, tyler...@linaro.org wrote: Hello, I

Re: [linux-sunxi] A31 pmic (axp221) support

2014-03-11 Thread Olliver Schinagl
On 03/10/14 22:31, Hans de Goede wrote: Hi, On 03/10/2014 05:04 PM, Olliver Schinagl wrote: Hey Hans, I played with the a31 stuff in u-boot a while ago. Lacking hardware, there was little I was able to do, but check out this patch that might (or not at all) work/give an idea for the p2wi and

Re: [linux-sunxi] How is the kernel mainlining process?

2014-03-11 Thread Olliver Schinagl
On 03/11/14 11:19, Draplater wrote: Have mmc support been add yet? SDIO Driver (WiP: Hans De Goede, David Lanzendörfer) WiP -> Work in Progress. I belive in the devel branches it works. On Monday, March 10, 2014 9:48:28 PM UTC+8, Olliver Schinagl wrote: On 03/06/14 05:59, Draplater wro

Re: [linux-sunxi] [PATCH u-boot] cmd_gpio: fix warning with GPIO_OSCILLATE

2014-03-11 Thread Olliver Schinagl
On 03/11/14 09:38, Ian Campbell wrote: On Sun, 2014-03-09 at 20:10 +0100, Olliver Schinagl wrote: Ian, sorry for not replying earlier, but isn't that a bug-fix against the generic U-Boot? In that case, it's probably wise to post it on the u-boot mailing list :) As Henrik says it's actually su

[linux-sunxi] Re: A31 pmic (axp221) support

2014-03-11 Thread Hans de Goede
Hi, On 03/11/2014 11:44 AM, Maxime Ripard wrote: > Hi Hans, > > (you should really fix your mailer, it has the bad habit of screwing > the wrapping) Yeah that is caused by enigmail, sorry about that it should be fixed now > On Tue, Mar 11, 2014 at 11:16:16AM +0100, Hans de Goede wrote: >>> Ther

Re: Default initrd and fdt load behaviour on ARM (Was: Re: [linux-sunxi] Re: Not able to boot ramdisk on cubietruck)

2014-03-11 Thread Priit Laes
Ühel kenal päeval, T, 11.03.2014 kell 10:38, kirjutas Ian Campbell: > Adding u-boot list since I think this is a general issue/question. > > On Sun, 2014-03-09 at 20:00 +0100, Olliver Schinagl wrote: > > On 03/09/14 16:18, tyler.ba...@linaro.org wrote: > > > On Sunday, March 9, 2014 8:06:27 AM UTC

[linux-sunxi] Re: A31 pmic (axp221) support

2014-03-11 Thread Maxime Ripard
Hi Hans, (you should really fix your mailer, it has the bad habit of screwing the wrapping) On Tue, Mar 11, 2014 at 11:16:16AM +0100, Hans de Goede wrote: > > There's still some subtleties I don't get yet, but the more I > > think about this, the more I feel like we'll have to write our own > > b

Default initrd and fdt load behaviour on ARM (Was: Re: [linux-sunxi] Re: Not able to boot ramdisk on cubietruck)

2014-03-11 Thread Ian Campbell
Adding u-boot list since I think this is a general issue/question. On Sun, 2014-03-09 at 20:00 +0100, Olliver Schinagl wrote: > On 03/09/14 16:18, tyler.ba...@linaro.org wrote: > > On Sunday, March 9, 2014 8:06:27 AM UTC-7, tyler...@linaro.org wrote: > >> Hello, > >> > >> I am trying to boot the c

[linux-sunxi] Re: [PATCH v4 6/7] DMA: sun6i: Add driver for the Allwinner A31 DMA controller

2014-03-11 Thread Shevchenko, Andriy
On Tue, 2014-03-11 at 11:08 +0100, Maxime Ripard wrote: [] > > > + spin_lock_irq(&sdev->lock); > > > + for (pchan_idx = 0; pchan_idx < NR_MAX_CHANNELS; pchan_idx++) { > > > + pchan = &sdev->pchans[pchan_idx]; > > > + > > > + if (pchan->vchan == NULL && !list_empty(&sdev->pending))

[linux-sunxi] g_mass_storage issues with 3.4.79+

2014-03-11 Thread FW72
Hi all! I'm currently trying to use the g_mass_storage on a linux-sunxi 3.4.79+ kernel (A10-Olinuxino-lime board connected to Win7 host) without success. So far I learned that USB device mode might be (or is?) broken in current kernel - at least on Allwinner SOCs but maybe my information is out

Re: [linux-sunxi] How is the kernel mainlining process?

2014-03-11 Thread Draplater
Have mmc support been add yet? On Monday, March 10, 2014 9:48:28 PM UTC+8, Olliver Schinagl wrote: > > On 03/06/14 05:59, Draplater wrote: > > Website linux-sunxi writes: > > "The upstream code does not support NAND, MMC or SATA, you can only boot > > off a USB harddisk." (from http://linux-s

[linux-sunxi] Re: A31 pmic (axp221) support

2014-03-11 Thread Hans de Goede
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, On 03/11/2014 10:21 AM, Maxime Ripard wrote: > On Mon, Mar 10, 2014 at 10:29:02PM +0100, Hans de Goede wrote: Is this bus similar enough to i2c that we can use the i2c subsys for this, maybe with an extra controller flag, or do we need

[linux-sunxi] Re: Stk1160 driver

2014-03-11 Thread André Kerber
Hi! Thanks for the very fast Response! Unfortunately there is no working Linux image for cubieboard2 with Linux kernel > 3.4 so I hoped to be able to use your stk1160 port. Capturing with the easycap driver works also, but after approx 10 sec the video gets very slow and mencoder says video buf

[linux-sunxi] Re: Stk1160 driver

2014-03-11 Thread Ezequiel Garcia
André, I'm leaving the question intact for context, and adding some folks. On Mon, Mar 10, 2014 at 8:55 PM, André Kerber wrote: > > I am sorry to disturb you because of the old stk1160 driver, but I am very > stuck and did not find any answer googling for more than 2 hours... > > If you could g

Re: [linux-sunxi] A31 pmic (axp221) support

2014-03-11 Thread Richard W.M. Jones
On Sun, Mar 09, 2014 at 08:41:35AM +0100, Hans de Goede wrote: > Hi Maxime, > > Yesterday I've been playing a bit with my Mele A1000G Quad, with the purpose > of > trying to get usb and mmc working there. I already have wens' gmac patches > for the > A31 in my tree, so for starters I tried to ge

[linux-sunxi] Re: A31 pmic (axp221) support

2014-03-11 Thread Maxime Ripard
On Mon, Mar 10, 2014 at 10:29:02PM +0100, Hans de Goede wrote: > >> Is this bus similar enough to i2c that we can use the i2c subsys > >> for this, maybe with an extra controller flag, or do we need to > >> likely write a whole new subsys for this ? > > > > It really looks like I2C, except that at

[linux-sunxi] Re: [PATCH v4 6/7] DMA: sun6i: Add driver for the Allwinner A31 DMA controller

2014-03-11 Thread Maxime Ripard
On Mon, Mar 10, 2014 at 06:57:00PM +0100, Arnd Bergmann wrote: > On Monday 10 March 2014 17:51:56 Maxime Ripard wrote: > > > > > > Neither "pll6" nor "ahb1_mux" are listed in the DT binding. Also, why > > > is it the driver's business to set the parent? > > > > Those are global clocks, so it's no

Re: [linux-sunxi] [PATCH u-boot] cmd_gpio: fix warning with GPIO_OSCILLATE

2014-03-11 Thread Ian Campbell
On Sun, 2014-03-09 at 20:10 +0100, Olliver Schinagl wrote: > Ian, > > sorry for not replying earlier, but isn't that a bug-fix against the > generic U-Boot? In that case, it's probably wise to post it on the > u-boot mailing list :) As Henrik says it's actually sunxi functionality. This partic