[linux-sunxi] Re: [PATCH 2/7] sun5i: add USB EHCI settings

2014-07-28 Thread Ian Campbell
On Sun, 2014-07-27 at 23:25 +0200, Hans de Goede wrote: Specific USB EHCI settings to be set for sun5i if CONFIG_USB_EHCI is enabled. Note we don't specify default VBUS gpio pins for sun5i since they vary too much from board to board. It seems to be just random chance (or more likely,

[linux-sunxi] Re: [PATCH 3/7] sunxi: Enable EHCI on various sunxi boards

2014-07-28 Thread Ian Campbell
On Sun, 2014-07-27 at 23:25 +0200, Hans de Goede wrote: Most sunxi boards have the EHCI controller hooked up, enable it on all relevant boards. The switch to Kconfig can't come soon enough IMHO... Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Ian Campbell i...@hellion.org.uk

[linux-sunxi] Re: [PATCH 4/7] sunxi: Add CONFIG_MACPWR option

2014-07-28 Thread Ian Campbell
On Sun, 2014-07-27 at 23:25 +0200, Hans de Goede wrote: On some boards the phy needs to be powered up through a gpio, add support for this. I assume from the context that this is the Ethernet PHY? I'm a bit surprised there isn't some sort of de facto existing naming etc for something like

Re: [linux-sunxi] Re: [PATCH 4/7] sunxi: Add CONFIG_MACPWR option

2014-07-28 Thread Chen-Yu Tsai
On Mon, Jul 28, 2014 at 3:48 PM, Ian Campbell i...@hellion.org.uk wrote: On Sun, 2014-07-27 at 23:25 +0200, Hans de Goede wrote: On some boards the phy needs to be powered up through a gpio, add support for this. I assume from the context that this is the Ethernet PHY? I'm a bit surprised

[linux-sunxi] Re: [PATCH 5/7] sun4i: Add support for a number of new sun4i boards

2014-07-28 Thread Ian Campbell
On Sun, 2014-07-27 at 23:25 +0200, Hans de Goede wrote: Add support for boards which I own and which already have a dts file in the upstream kernel. Between this and the next two patches are we missing any which have a kernel dts? (Just OOI) I don't think this conflicts with the DRAM reworking

Re: [linux-sunxi] Re: [PATCH 4/7] sunxi: Add CONFIG_MACPWR option

2014-07-28 Thread Ian Campbell
On Mon, 2014-07-28 at 15:51 +0800, Chen-Yu Tsai wrote: On Mon, Jul 28, 2014 at 3:48 PM, Ian Campbell i...@hellion.org.uk wrote: On Sun, 2014-07-27 at 23:25 +0200, Hans de Goede wrote: On some boards the phy needs to be powered up through a gpio, add support for this. I assume from

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

2014-07-28 Thread Mark Brown
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: It feels a little fragile to rely on the organisation of the clock tree and the naming thereof. If the IP block is ever reused on an SoC with a different clock

[linux-sunxi] [PATCH v4 6/6] ARM: sunxi: Add A31 RTC driver to multi_v7_defconfig

2014-07-28 Thread Chen-Yu Tsai
Now that we have a driver for A31's RTC, enable it in multi_v7_defconfig. Signed-off-by: Chen-Yu Tsai w...@csie.org --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index

[linux-sunxi] [PATCH v4 5/6] ARM: sunxi: Add A31 RTC driver to sunxi_defconfig

2014-07-28 Thread Chen-Yu Tsai
Now that we have a driver for A31's RTC, enable it in the default sunxi config. Signed-off-by: Chen-Yu Tsai w...@csie.org --- arch/arm/configs/sunxi_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig index

[linux-sunxi] [PATCH v4 0/6] ARM: sunxi: RTC support for A31/A23

2014-07-28 Thread Chen-Yu Tsai
Hi everyone, This is v3 of the sun6i RTC series. This series adds support for the RTC in A31 and A23 SoCs. The series applies to sunxi-next. The A31 has a new RTC block that is separate from the timer block. It has separate interrupts for each of the alarms, and a different format for the

[linux-sunxi] [PATCH v4 1/6] rtc: sun6i: Add sun6i RTC driver

2014-07-28 Thread Chen-Yu Tsai
This patch introduces the driver for the RTC in the Allwinner A31 and A23 SoCs. Unlike the RTC found in A10/A20 SoCs, which was part of the timer, the RTC in A31/A23 are a separate hardware block, which also contain a few controls for the RTC block hardware (a regulator and RTC block GPIO pin

[linux-sunxi] [PATCH v4 3/6] ARM: dts: sun6i: add rtc device node

2014-07-28 Thread Chen-Yu Tsai
Now that we have a driver for sun6i's rtc hardware, add a device node for it so we can use it. Signed-off-by: Chen-Yu Tsai w...@csie.org --- arch/arm/boot/dts/sun6i-a31.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi

[linux-sunxi] [PATCH v4 4/6] ARM: dts: sun8i: add rtc device node

2014-07-28 Thread Chen-Yu Tsai
sun8i shares the same rtc hardware as sun6i. Now that we have a driver for it, add a device node to the DTSI for it so we can use it. Signed-off-by: Chen-Yu Tsai w...@csie.org --- arch/arm/boot/dts/sun8i-a23.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git

[linux-sunxi] Re: [PATCH 2/7] sun5i: add USB EHCI settings

2014-07-28 Thread Hans de Goede
Hi, On 07/28/2014 09:42 AM, Ian Campbell wrote: On Sun, 2014-07-27 at 23:25 +0200, Hans de Goede wrote: Specific USB EHCI settings to be set for sun5i if CONFIG_USB_EHCI is enabled. Note we don't specify default VBUS gpio pins for sun5i since they vary too much from board to board. It

Re: [linux-sunxi] Re: [PATCH 4/7] sunxi: Add CONFIG_MACPWR option

2014-07-28 Thread Hans de Goede
Hi, On 07/28/2014 09:48 AM, Ian Campbell wrote: On Sun, 2014-07-27 at 23:25 +0200, Hans de Goede wrote: On some boards the phy needs to be powered up through a gpio, add support for this. I assume from the context that this is the Ethernet PHY? Yes, I'll amend the commit msg before

[linux-sunxi] Re: [PATCH 5/7] sun4i: Add support for a number of new sun4i boards

2014-07-28 Thread Hans de Goede
Hi, On 07/28/2014 09:54 AM, Ian Campbell wrote: On Sun, 2014-07-27 at 23:25 +0200, Hans de Goede wrote: Add support for boards which I own and which already have a dts file in the upstream kernel. Between this and the next two patches are we missing any which have a kernel dts? (Just OOI)

[linux-sunxi] Re: [PATCH] ARM: dt: sun6i: Add #address-cells and #size-cells to i2c controller nodes

2014-07-28 Thread Maxime Ripard
On Mon, Jul 21, 2014 at 10:54:27PM +0800, Chen-Yu Tsai wrote: dtc was giving warnings for missing #address-cells and #size-cells for the new sun6i-a31-hummingbird.dts, which has a i2c-based rtc device. This patch adds the properties for all i2c controller nodes for sun6i. Signed-off-by:

[linux-sunxi] Re: [PATCH v11 0/2] Add support for the Allwinner A31 DMA Controller

2014-07-28 Thread Maxime Ripard
Hi Russell, On Fri, Jul 25, 2014 at 05:45:19PM +0100, Russell King - ARM Linux wrote: On Fri, Jul 25, 2014 at 06:37:46PM +0200, Maxime Ripard wrote: Hi Vinod, On Fri, Jul 25, 2014 at 06:42:17PM +0530, Vinod Koul wrote: - don't use devm_request_irq(). You have irq enabled and you have

[linux-sunxi] Re: [PATCH 1/2] pinctrl: sunxi: use gpiolib API to mark a GPIO used as an IRQ

2014-07-28 Thread Linus Walleij
On Mon, Jul 14, 2014 at 7:24 PM, Chen-Yu Tsai w...@csie.org wrote: When an IRQ is started on a GPIO line, mark this GPIO as IRQ in the gpiolib so we can keep track of the usage centrally. Signed-off-by: Chen-Yu Tsai w...@csie.org Patch applied with Maxime's ACK. Yours, Linus Walleij --

[linux-sunxi] Re: [PATCH 2/2] pinctrl: sunxi: number gpio ranges starting from 0

2014-07-28 Thread Linus Walleij
On Mon, Jul 14, 2014 at 7:24 PM, Chen-Yu Tsai w...@csie.org wrote: The pinctrl-sunxi driver originally used the pin number as the gpio range offset. This resulted in large, bogus gpio numbers for the new sun6i-a31-r pinctrl devices. This patch makes the driver number the gpios ranges

[linux-sunxi] Re: [PATCH v11 0/2] Add support for the Allwinner A31 DMA Controller

2014-07-28 Thread Maxime Ripard
On Fri, Jul 25, 2014 at 10:12:18PM +0530, Vinod Koul wrote: On Fri, Jul 25, 2014 at 06:37:46PM +0200, Maxime Ripard wrote: Can you please send follow patches for these: - don't recall if I pointed earlier, but can we use direct conversion for calculating convert_burst() and

[linux-sunxi] Re: [PATCH] ARM: dt: sun6i: Add #address-cells and #size-cells to i2c controller nodes

2014-07-28 Thread Arnd Bergmann
On Monday 28 July 2014 11:35:32 Maxime Ripard wrote: On Mon, Jul 21, 2014 at 10:54:27PM +0800, Chen-Yu Tsai wrote: dtc was giving warnings for missing #address-cells and #size-cells for the new sun6i-a31-hummingbird.dts, which has a i2c-based rtc device. This patch adds the properties

[linux-sunxi] Re: [PATCH] ARM: dt: sun6i: Add #address-cells and #size-cells to i2c controller nodes

2014-07-28 Thread Maxime Ripard
On Mon, Jul 28, 2014 at 12:21:34PM +0200, Arnd Bergmann wrote: On Monday 28 July 2014 11:35:32 Maxime Ripard wrote: On Mon, Jul 21, 2014 at 10:54:27PM +0800, Chen-Yu Tsai wrote: dtc was giving warnings for missing #address-cells and #size-cells for the new sun6i-a31-hummingbird.dts, which

[linux-sunxi] Re: [PATCH v11 0/2] Add support for the Allwinner A31 DMA Controller

2014-07-28 Thread Vinod Koul
On Mon, Jul 28, 2014 at 12:14:02PM +0200, Maxime Ripard wrote: On Fri, Jul 25, 2014 at 10:12:18PM +0530, Vinod Koul wrote: On Fri, Jul 25, 2014 at 06:37:46PM +0200, Maxime Ripard wrote: Can you please send follow patches for these: - don't recall if I pointed earlier, but can we use

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

2014-07-28 Thread Maxime Ripard
Hi Mark, On Sun, Jul 27, 2014 at 07:49:42PM +0100, Mark Brown wrote: 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: It feels a little fragile to rely on the organisation of the clock tree and the naming

Re: [linux-sunxi] Jpeg decoded using Cedarx

2014-07-28 Thread Manuel Braga
On Mon, 28 Jul 2014 16:19:50 +0800 (CST) li lijiamin...@163.com wrote: hi all, I use the code in github(https://github.com/jemk/cedrus) to decode jpeg in A20, but found that the code has bug when decode many jpeg Of course it has bugs, those are experimental source code not intended to be

[linux-sunxi] Re: compiling sunxi 3.4 problem

2014-07-28 Thread mamat
behrooz vosough behroozvosough@... writes: hii had problem with gt811_ts at cubieboard2 and i edit gt811_ts.c at kernel source sunxi 3.4.90 i use this document http://linux-sunxi.org/Linux_Kernel#Compilation for compiling at my pc(lubuntu 13.10)when i enter this line make -j4 ARCH=arm