[linux-sunxi] Re: [PATCH v3 2/8] clk: sunxi: update clock-output-names dt binding documentation

2014-01-15 Thread Maxime Ripard
On Thu, Jan 09, 2014 at 04:52:39PM +0800, Chen-Yu Tsai wrote: clock-output-names is now required for most of sunxi clock nodes, to provide the name of the corresponding clock. Add the new requirements, exceptions, as well as examples. Signed-off-by: Chen-Yu Tsai w...@csie.org Acked-by:

Re: [linux-sunxi] Re: A good SD card image for A10-OLinuXino-Lime?

2014-01-15 Thread TsvetanUsunov
I was not going to sugar-coat anything here. And I understand that using the 16-bit memory bus width was a side effect of extreme cost reduction. The primary LIME competitors are likely not high end ARM devices, but Raspberry Pi and low cost microcontrollers. The whole point of my

[linux-sunxi] Re: [PATCH v2] ARM: sun4i: dt: Add basic board support for LinkSprite pcDuino

2014-01-15 Thread Maxime Ripard
Hi, On Mon, Jan 13, 2014 at 02:15:01PM +0100, Zoltan HERPAI wrote: From b2cd1681fe988584028d280ca79249f4ebcb271c Mon Sep 17 00:00:00 2001 From: Zoltan HERPAI wigy...@uid0.hu Date: Mon, 13 Jan 2014 14:00:12 +0100 Subject: [PATCH v2] ARM: sun4i: dt: Add basic board support for LinkSprite

[linux-sunxi] Re: [PATCH v2] ARM: sun4i: dt: Add basic board support for LinkSprite pcDuino

2014-01-15 Thread Maxime Ripard
On Mon, Jan 13, 2014 at 02:15:01PM +0100, Zoltan HERPAI wrote: From b2cd1681fe988584028d280ca79249f4ebcb271c Mon Sep 17 00:00:00 2001 From: Zoltan HERPAI wigy...@uid0.hu Date: Mon, 13 Jan 2014 14:00:12 +0100 Subject: [PATCH v2] ARM: sun4i: dt: Add basic board support for LinkSprite pcDuino

Re: [linux-sunxi] Re: A good SD card image for A10-OLinuXino-Lime?

2014-01-15 Thread Hans de Goede
Hi, On 01/15/2014 09:08 AM, TsvetanUsunov wrote: I was not going to sugar-coat anything here. And I understand that using the 16-bit memory bus width was a side effect of extreme cost reduction. The primary LIME competitors are likely not high end ARM devices, but Raspberry Pi

[linux-sunxi] [RFC PATCH v2 04/11] of: mtd: add NAND timings bindings documentation

2014-01-15 Thread Boris BREZILLON
Add a NAND timing properties to NAND dt doc. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- Documentation/devicetree/bindings/mtd/nand.txt | 34 1 file changed, 34 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/nand.txt

[linux-sunxi] [RFC PATCH v2 05/11] mtd: nand: add sunxi NFC support

2014-01-15 Thread Boris BREZILLON
Add the sunxi NAND Flash Controller driver. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- drivers/mtd/nand/Kconfig |6 + drivers/mtd/nand/Makefile |1 + drivers/mtd/nand/sunxi_nand.c | 718 + 3 files changed, 725

[linux-sunxi] [RFC PATCH v2 00/11] mtd: nand: add sunxi NAND Flash Controller support

2014-01-15 Thread Boris BREZILLON
Hello, This series add the sunxi NFC support with up to 8 NAND chip connected. I'm still in the early stages drivers development and some key features are missing, but it's usable (I tested it on the cubietruck board). Here's what's missing: - DMA support - HW randomization support - many

[linux-sunxi] [RFC PATCH v2 01/11] mtd: nand: retrieve ECC requirements from Hynix READ ID byte 4

2014-01-15 Thread Boris BREZILLON
The Hynix nand flashes store their ECC requirements in byte 4 of its id (returned on READ ID command). Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- drivers/mtd/nand/nand_base.c | 37 + 1 file changed, 37 insertions(+) diff --git

[linux-sunxi] [RFC PATCH v2 02/11] mtd: nand: define struct nand_timings

2014-01-15 Thread Boris BREZILLON
Define a struct containing the standard NAND timings as described in NAND datasheets. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- include/linux/mtd/nand.h | 44 1 file changed, 44 insertions(+) diff --git a/include/linux/mtd/nand.h

[linux-sunxi] [RFC PATCH v2 03/11] of: mtd: add NAND timings retrieval support

2014-01-15 Thread Boris BREZILLON
Add a function to retrieve NAND timings from a given DT node. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- drivers/of/of_mtd.c| 47 +++ include/linux/of_mtd.h |9 + 2 files changed, 56 insertions(+) diff --git

[linux-sunxi] [PATCH] Add mmc support for sun4i

2014-01-15 Thread Wills Wang
--- drivers/mmc/host/Kconfig | 2 +- drivers/mmc/host/sunxi-mci.h | 45 +++- 2 files changed, 33 insertions(+), 14 deletions(-) diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig index 958a428..5f1d3d8 100644 ---

[linux-sunxi] [RFC PATCH v2 07/11] ARM: dt/sunxi: add NFC node to Allwinner A20 SoC

2014-01-15 Thread Boris BREZILLON
Add NAND Flash controller node definition to the A20 SoC. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- arch/arm/boot/dts/sun7i-a20.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index

[linux-sunxi] [RFC PATCH v2 10/11] mtd: nand: add sunxi HW ECC support

2014-01-15 Thread Boris BREZILLON
Add HW ECC support for the sunxi NAND Flash Controller. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- drivers/mtd/nand/sunxi_nand.c | 251 - 1 file changed, 245 insertions(+), 6 deletions(-) diff --git a/drivers/mtd/nand/sunxi_nand.c

[linux-sunxi] [RFC PATCH v2 09/11] ARM: sunxi/dt: enable NAND on cubietruck board

2014-01-15 Thread Boris BREZILLON
Enable the NFC and describe the NAND flash connected to this controller. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 31 1 file changed, 31 insertions(+) diff --git

[linux-sunxi] Re: [PATCH] Add mmc support for sun4i

2014-01-15 Thread wills
It's for sunxi-3.4, use new mmc driver for sun4i. On Wednesday, January 15, 2014 5:55:19 PM UTC+8, wills wrote: --- drivers/mmc/host/Kconfig | 2 +- drivers/mmc/host/sunxi-mci.h | 45 +++- 2 files changed, 33 insertions(+), 14 deletions(-)

[linux-sunxi] Re: [RFC PATCH v2 10/11] mtd: nand: add sunxi HW ECC support

2014-01-15 Thread boris brezillon dev
You'll find the lines I added to test the HW randomizer below: On 15/01/2014 10:51, Boris BREZILLON wrote: Add HW ECC support for the sunxi NAND Flash Controller. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- drivers/mtd/nand/sunxi_nand.c | 251

[linux-sunxi] Re: How to use socketcan in android application layer

2014-01-15 Thread thanx
Peter Chen xingkongcp@... writes: Sorry for my poor english.I mean I want to write an APP to send/receive CAN message.Since I use socketcan, so I wonder how to write the APP in a proper way.Do I need to write the HAL, JNI and service?Or I can just use the network programming way. And for

Re: [linux-sunxi] [PATCH] pinctrl: sunxi: Honor GPIO output initial vaules

2014-01-15 Thread Maxime Ripard
Hi Chen-Yu, Nice catch :) On Wed, Jan 15, 2014 at 04:21:12PM +0800, Chen-Yu Tsai wrote: Hi, On Wed, Jan 15, 2014 at 8:37 AM, Ma Haijun mahaij...@gmail.com wrote: Hi, I think it is better to set the output value first to avoid glitch. If I understand the user manual correctly,

[linux-sunxi] Re: [PATCH] ARM: dts: sun7i: add pin muxing options for UART2

2014-01-15 Thread Maxime Ripard
On Tue, Jan 14, 2014 at 10:49:50PM +0800, Chen-Yu Tsai wrote: UART2 is used on CubieTruck to connect to the Bluetooth module. Add the pin set used in this case. Signed-off-by: Chen-Yu Tsai w...@csie.org Queued for 3.15, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel

Re: [linux-sunxi] Re: ethernet is not working...

2014-01-15 Thread Puneet B
Hi ma haijun, My wifi chip ap6210 is not working. Here My log regarding wifi: wakeup src cnt is : 0. [0.373732] [wifi]: select wifi: ap6210 !! [0.374115] [ap6xxx]: module power name [0.374134] [ap6xxx]: ap6xxx module power set by axp. [0.374151] [ap6xxx]: get power regulator

[linux-sunxi] Re: [RFC PATCH v2 10/11] mtd: nand: add sunxi HW ECC support

2014-01-15 Thread boris brezillon dev
On 15/01/2014 10:51, Boris BREZILLON wrote: Add HW ECC support for the sunxi NAND Flash Controller. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- drivers/mtd/nand/sunxi_nand.c | 251 - 1 file changed, 245 insertions(+), 6 deletions(-)

Re: [linux-sunxi] Booting Android with uboot

2014-01-15 Thread jonsm...@gmail.com
On Wed, Jan 15, 2014 at 12:44 AM, Henrik Nordström hen...@henriknordstrom.net wrote: tis 2014-01-14 klockan 22:44 -0500 skrev jonsm...@gmail.com: I can boot Linux using this procedure without problem, but I can't get my Android kernel to boot. Android kernel just hangs... What is the

[linux-sunxi] [RFC PATCH v2 10/11] mtd: nand: add sunxi HW ECC support

2014-01-15 Thread Boris BREZILLON
Add HW ECC support for the sunxi NAND Flash Controller. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- drivers/mtd/nand/sunxi_nand.c | 260 - 1 file changed, 254 insertions(+), 6 deletions(-) diff --git a/drivers/mtd/nand/sunxi_nand.c

[linux-sunxi] Re: [RFC PATCH v2 10/11] mtd: nand: add sunxi HW ECC support

2014-01-15 Thread boris brezillon dev
On 15/01/2014 13:47, Boris BREZILLON wrote: Add HW ECC support for the sunxi NAND Flash Controller. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- drivers/mtd/nand/sunxi_nand.c | 260 - 1 file changed, 254 insertions(+), 6 deletions(-)

Re: [linux-sunxi] [PATCH] pinctrl: sunxi: Honor GPIO output initial vaules

2014-01-15 Thread Chen-Yu Tsai
Hi, On Wed, Jan 15, 2014 at 6:02 PM, Maxime Ripard maxime.rip...@free-electrons.com wrote: Hi Chen-Yu, Nice catch :) On Wed, Jan 15, 2014 at 04:21:12PM +0800, Chen-Yu Tsai wrote: Hi, On Wed, Jan 15, 2014 at 8:37 AM, Ma Haijun mahaij...@gmail.com wrote: Hi, I think it is better to

[linux-sunxi] Re: [PATCH] ARM: sunxi: change the AllWinner A1X to sunxi

2014-01-15 Thread Gerardo Di Iorio
hi, 2014/1/15 Arnd Bergmann a...@arndb.de On Wednesday 15 January 2014 10:10:06 Maxime Ripard wrote: On Thu, Jan 09, 2014 at 04:34:04PM +0100, Gerardo Di Iorio wrote: Change the AllWinner A1X SOCs to Allwinner Sunxi SOCs Signed-off-by: Gerardo Di Iorio aret...@gmail.com ---

[linux-sunxi] Re: [PATCH] ARM: sunxi: Add driver for sunxi usb phy

2014-01-15 Thread Kishon Vijay Abraham I
On Wednesday 15 January 2014 04:28 AM, Hans de Goede wrote: The Allwinner A1x / A2x SoCs have 2 or 3 usb phys which are all accessed through a single set of registers. Besides this there are also some other phy related bits which need poking, which are per phy, but shared between the ohci and

[linux-sunxi] Re: [PATCH v5 1/2] ohci-platform: Add support for devicetree instantiation

2014-01-15 Thread Hans de Goede
Hi, On 01/14/2014 08:08 PM, Alan Stern wrote: On Mon, 13 Jan 2014, Hans de Goede wrote: Add support for ohci-platform instantiation from devicetree, including optionally getting clks and a phy from devicetree, and enabling / disabling those on power_on / off. This should allow using

Re: [linux-sunxi] Re: help with NAND access of A20 based MELE M5

2014-01-15 Thread nilsnuls0
вторник, 14 января 2014 г., 7:10:51 UTC+4 пользователь Rajesh Mallah написал: dear nils nuls, can u pls post the nand related lines of  your dmesg? ie dmesg | grep -i nand also can you tell what is the flash chip on ur board? regds mallah. On Tue, Jan 14, 2014 at

[linux-sunxi] [PATCH v6 2/2] ehci-platform: Add support for clks and phy passed through devicetree

2014-01-15 Thread Hans de Goede
Currently ehci-platform is only used in combination with devicetree when used with some Via socs. By extending it to (optionally) get clks and a phy from devicetree, and enabling / disabling those on power_on / off, it can be used more generically. Specifically after this commit it can be used for

[linux-sunxi] [PATCH v6 1/2] ohci-platform: Add support for devicetree instantiation

2014-01-15 Thread Hans de Goede
Add support for ohci-platform instantiation from devicetree, including optionally getting clks and a phy from devicetree, and enabling / disabling those on power_on / off. This should allow using ohci-platform from devicetree in various cases. Specifically after this commit it can be used for the

Re: [linux-sunxi] Booting Android with uboot

2014-01-15 Thread jonsm...@gmail.com
On Wed, Jan 15, 2014 at 2:24 AM, Ma Haijun mahaij...@gmail.com wrote: Hi, The problem is AW's kernel has a different machine id. That was the problem. I adjusted the Allwinner SDK to use the sunxi machine ID and it boots now. sun7i.h:#define CONFIG_MACH_TYPE 4283 -Original

[linux-sunxi] Re: [PATCH v6 1/2] ohci-platform: Add support for devicetree instantiation

2014-01-15 Thread Alan Stern
On Wed, 15 Jan 2014, Hans de Goede wrote: +static int ohci_platform_power_on(struct platform_device *dev) +{ + struct usb_hcd *hcd = platform_get_drvdata(dev); + struct ohci_platform_priv *priv = hcd_to_ohci_priv(hcd); + int clk, ret; + + for (clk = 0; clk OHCI_MAX_CLKS

[linux-sunxi] Re: [RFC PATCH 3/9] of: mtd: add NAND timings retrieval support

2014-01-15 Thread boris brezillon
On 15/01/2014 16:09, boris brezillon wrote: Hello Jason, On 09/01/2014 18:35, Jason Gunthorpe wrote: On Thu, Jan 09, 2014 at 09:36:18AM +0100, boris brezillon wrote: You might want to check if you can boil down the DT timings from the huge list to just an ONFI mode number.. Sure, but the

[linux-sunxi] Re: How to use socketcan in android application layer

2014-01-15 Thread Mihail Tommonen
tiistai, 14. tammikuuta 2014 23.12.28 UTC+2 thanx kirjoitti: Peter Chen xingkongcp@... writes: Sorry for my poor english.I mean I want to write an APP to send/receive CAN message.Since I use socketcan, so I wonder how to write the APP in a proper way.Do I need to write the HAL,

[linux-sunxi] Re: How to use socketcan in android application layer

2014-01-15 Thread thanxm
On Wednesday, January 15, 2014 6:19:53 PM UTC+1, Mihail Tommonen wrote: tiistai, 14. tammikuuta 2014 23.12.28 UTC+2 thanx kirjoitti:Peter Chen xingkongcp@... writes: Sorry for my poor english.I mean I want to write an APP to send/receive CAN message.Since I use socketcan,

Re: [linux-sunxi] Re: Announcing Fedora 19 ARM remix for Allwinner SOCs release 1, now with A20 support

2014-01-15 Thread Nelson Grodzicki
By the way, perhaps someone have the new RTL8188etv.ko module already compiled for A13 available and want to share it with me?? Nelson 2014/1/14 Steev Klimaszewski st...@pwnieexpress.com On Tue, Jan 14, 2014 at 12:09 PM, Nelson Grodzicki neje...@gmail.comwrote: Thanks, any LINK to download

Re: [linux-sunxi] Re: help with NAND access of A20 based MELE M3 (was M5)

2014-01-15 Thread Rajesh Mallah
AND Finally i could get my eMMC on MELE M3. (1) the script.bin had to be modified to enable sdc_used=1 for mmc2_para. (2) uboot env param required to be modified to indicate that rootfs is /dev/mmcblk1p2 I thank everyone for helping. Hope it helps someone else trying to the

[linux-sunxi] Re: [PATCH v6 1/2] ohci-platform: Add support for devicetree instantiation

2014-01-15 Thread Hans de Goede
Hi, On 01/15/2014 05:30 PM, Alan Stern wrote: On Wed, 15 Jan 2014, Hans de Goede wrote: +static int ohci_platform_power_on(struct platform_device *dev) +{ + struct usb_hcd *hcd = platform_get_drvdata(dev); + struct ohci_platform_priv *priv = hcd_to_ohci_priv(hcd); + int clk,

[linux-sunxi] [PATCH v7 1/2] ohci-platform: Add support for devicetree instantiation

2014-01-15 Thread Hans de Goede
Add support for ohci-platform instantiation from devicetree, including optionally getting clks and a phy from devicetree, and enabling / disabling those on power_on / off. This should allow using ohci-platform from devicetree in various cases. Specifically after this commit it can be used for the

[linux-sunxi] [PATCH v7 0/2] ohci and ehci-platform clks, phy and dt support

2014-01-15 Thread Hans de Goede
Hi All, This version of my ohci and ehci-platform clks, phy and dt support patch-set, really fixes the 2 small bugs Alan found. Regards, Hans -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving

[linux-sunxi] uboot for Mele M3 A20

2014-01-15 Thread Rajesh Mallah
Hi i would like to install uboot on the internal MMC card of mele m3 (A20 , 1024MB) model. could anyone suggest which uboot source and what board config should work. thanks (but sorry if the question was too novice). regds mallah. -- You received this message because you are subscribed to the

[linux-sunxi] Re: uboot for Mele M3 A20

2014-01-15 Thread Rajesh Mallah
i am following : https://github.com/linux-sunxi/u-boot-sunxi/wiki i used sunxi branch and make cubietruck ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dd if=u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8 U-Boot SPL 2014.01-rc1-09154-geccc92d (Jan 16 2014 - 01:41:18) Board:

[linux-sunxi] Re: [PATCH v7 0/2] ohci and ehci-platform clks, phy and dt support

2014-01-15 Thread Alan Stern
On Wed, 15 Jan 2014, Hans de Goede wrote: Hi All, This version of my ohci and ehci-platform clks, phy and dt support patch-set, really fixes the 2 small bugs Alan found. All okay -- this time I can't find anything to complain about. :-) Alan Stern -- You received this message because

Re: [linux-sunxi] Re: Announcing Fedora 19 ARM remix for Allwinner SOCs release 1, now with A20 support

2014-01-15 Thread Nelson Grodzicki
Dear Afonso: IT'S ALIVE !!! As always, the simplest the best. It worked first attempt. Now I will start to work on my projetct. I need to deactivate the xfce4 desktop and replace the xfwm4 for the old good OPENBOX and be able to launch a startx session form SSH. Any suggestions to make a shortcut

[linux-sunxi] Re: [PATCH] ARM: sunxi: Add driver for sunxi usb phy

2014-01-15 Thread Maxime Ripard
Hi Hans, Please keep me in CC for all the Allwinner-related patches. On Tue, Jan 14, 2014 at 11:58:25PM +0100, Hans de Goede wrote: The Allwinner A1x / A2x SoCs have 2 or 3 usb phys which are all accessed through a single set of registers. Besides this there are also some other phy related

RE: [linux-sunxi] Re: [PATCH v5 2/2] ehci-platform: Add support for clks and phy passed through devicetree

2014-01-15 Thread Ma Haijun
Hi -Original Message- From: linux-sunxi@googlegroups.com [mailto:linux-sunxi@googlegroups.com] On Behalf Of Alan Stern Sent: Wednesday, January 15, 2014 3:18 AM To: Hans de Goede Cc: Tony Prisk; linux-arm-ker...@lists.infradead.org; devicetree; linux-usb;

[linux-sunxi] Re: [PATCH] ARM: sunxi: Add driver for sunxi usb phy

2014-01-15 Thread Kishon Vijay Abraham I
Hi, On Wednesday 15 January 2014 09:18 PM, Hans de Goede wrote: Hi, On 01/15/2014 04:00 PM, Kishon Vijay Abraham I wrote: On Wednesday 15 January 2014 04:28 AM, Hans de Goede wrote: The Allwinner A1x / A2x SoCs have 2 or 3 usb phys which are all accessed through a single set of registers.

[linux-sunxi] [PATCH v2] pinctrl: sunxi: Honor GPIO output initial vaules

2014-01-15 Thread Chen-Yu Tsai
Some GPIO users, such as fixed-regulator, request GPIO output with initial value of 1. This was ignored by sunxi driver. Signed-off-by: Chen-Yu Tsai w...@csie.org --- Changes since v2: * Set output value before setting the pin function to avoid a glitch. drivers/pinctrl/pinctrl-sunxi.c |

Re: [linux-sunxi] Re: [PATCH] ARM: sunxi: Add driver for sunxi usb phy

2014-01-15 Thread Chen-Yu Tsai
Hi Hans, On Wed, Jan 15, 2014 at 11:48 PM, Hans de Goede hdego...@redhat.com wrote: Hi, On 01/15/2014 04:00 PM, Kishon Vijay Abraham I wrote: On Wednesday 15 January 2014 04:28 AM, Hans de Goede wrote: [...] +static int sun4i_usb_phy_init(struct phy *_phy) +{ + struct sun4i_usb_phy

Re: [linux-sunxi] A20 dram applied to A10

2014-01-15 Thread Siarhei Siamashka
On Mon, 13 Jan 2014 09:52:36 -0800 (PST) nilsnu...@gmail.com wrote: понедельник, 13 января 2014 г., 16:25:57 UTC+4 пользователь Siarhei Siamashka написал: You can try to do the following test, which stresses the CPU even more: $ wget

[linux-sunxi] Re: How to test wifi in A20.

2014-01-15 Thread Puneet B
Hi My wifi chip ap6210 is not working. Here My log regarding wifi: wakeup src cnt is : 0. [0.373732] [wifi]: select wifi: ap6210 !! [0.374115] [ap6xxx]: module power name [0.374134] [ap6xxx]: ap6xxx module power set by axp. [0.374151] [ap6xxx]: get power regulator failed. [