[linux-sunxi] Re: [PATCH v3 5/7] clk: sunxi: add PRCM (Power/Reset/Clock Management) clks support

2014-05-14 Thread Mike Turquette
Quoting Boris BREZILLON (2014-05-14 00:30:59) > Hello Mike, > > On 14/05/2014 02:51, Mike Turquette wrote: > > Quoting Boris BREZILLON (2014-05-09 04:11:49) > >> +struct clk_ops ar100_ops = { > >> + .recalc_rate = ar100_recalc_rate, > >> + .determine_rate = ar100_determine_rate, > >> +

[linux-sunxi] [PATCH v7 2/3] [media] rc: add sunxi-ir driver

2014-05-14 Thread Alexander Bersenev
This patch adds driver for sunxi IR controller. It is based on Alexsey Shestacov's work based on the original driver supplied by Allwinner. Signed-off-by: Alexander Bersenev Signed-off-by: Alexsey Shestacov --- drivers/media/rc/Kconfig | 10 ++ drivers/media/rc/Makefile| 1 + drivers

[linux-sunxi] [PATCH v7 3/3] ARM: sunxi: Add IR controller support in DT on A20

2014-05-14 Thread Alexander Bersenev
This patch adds IR controller in A20 Device-Tree: - Two IR devices found in A20 user manual - Pins for two devices - One IR device physically found on Cubieboard 2 - One IR device physically found on Cubietruck Signed-off-by: Alexander Bersenev Signed-off-by: Alexsey Shestacov --- arch/arm/boot

[linux-sunxi] [PATCH v7 1/3] ARM: sunxi: Add documentation for sunxi consumer infrared devices

2014-05-14 Thread Alexander Bersenev
This patch adds documentation for Device-Tree bindings for sunxi IR controller. Signed-off-by: Alexander Bersenev Signed-off-by: Alexsey Shestacov --- .../devicetree/bindings/media/sunxi-ir.txt | 23 ++ 1 file changed, 23 insertions(+) create mode 100644 Documentati

[linux-sunxi] [PATCH v7 0/3] ARM: sunxi: Add support for consumer infrared devices

2014-05-14 Thread Alexander Bersenev
This patch introduces Consumer IR(CIR) support for sunxi boards. This is based on Alexsey Shestacov's work based on the original driver supplied by Allwinner. Signed-off-by: Alexander Bersenev Signed-off-by: Alexsey Shestacov --- Changes since version 1: - Fix timer memory leaks - Fix rac

Re: [linux-sunxi] TCP connection hangs with sunxi-3.4.75 at 1Gbit/s

2014-05-14 Thread Alejandro Mery
On 14/05/14 12:33, Jorge wrote: I remember having those problems with .75 and trying various things, I managed to make it happen less often, but I think it never disappeared. I'm now running 3.4.79 (see http://www.cubieforums.com/index.php?topic=1413.0), and I think that I haven't noticed the

[linux-sunxi] Re: [PATCH v6 3/3] ARM: sunxi: Add IR controller support in DT on A20

2014-05-14 Thread Александр Берсенев
Sending two changes as the patch. I am not using ir1_pins_a because cubietruck has only one ir port, but other A20 devices may have up to 2 ir ports. Signed-off-by: Alexander Bersenev diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index 40ded74..53a9ab1 10064

[linux-sunxi] "clk: sunxi: Remove clkdev registration" breaks sunxi kernels

2014-05-14 Thread Hans de Goede
Hi Maxime, I've added your "clk: sunxi: Remove clkdev registration" to my local sunxi-devel tree, and then on testing I found out the kernel would no longer boot, it would just sit there after printing some of its init messages. After reverting this patch everything works again. Regards, Hans

Re: [linux-sunxi] [PATCH v4 2/2] input: sun4i-ts: Add support for temperature sensor

2014-05-14 Thread Dmitry Torokhov
On Mon, May 12, 2014 at 04:44:51PM +0800, Chen-Yu Tsai wrote: > Hi, > > On Sun, May 11, 2014 at 4:06 PM, Hans de Goede wrote: > > @@ -232,14 +284,39 @@ static int sun4i_ts_probe(struct platform_device > > *pdev) > > writel(STYLUS_UP_DEBOUN(5) | STYLUS_UP_DEBOUN_EN(1) | TP_MODE_EN(1), > >

[linux-sunxi] Re: [PATCH RESEND v4 0/8] Add Allwinner A31 USB support

2014-05-14 Thread Greg Kroah-Hartman
On Wed, May 14, 2014 at 02:34:19PM +0200, Maxime Ripard wrote: > On Tue, May 13, 2014 at 05:44:14PM +0200, Maxime Ripard wrote: > > Hi everyone, > > > > This patchset adds support for the USB controllers found in the > > Allwinner A31. > > > > While the design is similar to the earlier Allwinner

Re: [linux-sunxi] [PATCH] Add U-Boot support for Olimex's A13-SOM

2014-05-14 Thread Tsvetan Usunov
Hans, these are assembling now and will be on the web next week, so there will be no differences Thanks Tsvetan 2014-05-14 16:42 GMT+03:00 Hans de Goede : > Hi, > > On 05/07/2014 08:24 AM, Димитър Гамишев wrote: >> Hi All, >> this patch adds u-boot support for a13-som boards by Olimex > > AFAIK th

[linux-sunxi] Re: [PATCH v4 1/7] reset: sunxi: document sunxi's reset controllers bindings

2014-05-14 Thread Philipp Zabel
Am Mittwoch, den 14.05.2014, 14:38 +0200 schrieb Boris BREZILLON: > Add DT bindings documentation for sunxi's reset controllers. > > Signed-off-by: Boris BREZILLON > Acked-by: Maxime Ripard Acked-by: Philipp Zabel > --- > .../bindings/reset/allwinner,sunxi-clock-reset.txt | 21 > ++

[linux-sunxi] Re: [PATCH v4 2/7] reset: sunxi: allow MFD subdevices probe

2014-05-14 Thread Philipp Zabel
Am Mittwoch, den 14.05.2014, 14:38 +0200 schrieb Boris BREZILLON: > The current implementation uses sunxi_reset_init function for both early > init and platform device probe. > > The sunxi_reset_init function uses DT to retrieve device resources, which > will be an issue if reset controllers are r

Re: [linux-sunxi] [PATCH] Add U-Boot support for Olimex's A13-SOM

2014-05-14 Thread Hans de Goede
Hi, On 05/07/2014 08:24 AM, Димитър Гамишев wrote: > Hi All, > this patch adds u-boot support for a13-som boards by Olimex AFAIK the a13-som is not officially released yet. It seems a bit early to add support for it, what if the final version is different. Also your patch is hopelessly mangled n

Re: [linux-sunxi] [PATCH u-boot-sunxi] sunxi: initialize DRAM after AXP

2014-05-14 Thread Hans de Goede
Hi, On 05/12/2014 11:05 AM, Siarhei Siamashka wrote: > The default dcdc3 voltage is only 1.2V after reset on the Cubietruck. > This might be too low for correct DRAM controller operation at high > clock frequencies and even the initialization itself may theoretically > fail. So we initialize AXP f

[linux-sunxi] Re: [PATCH v6 3/3] ARM: sunxi: Add IR controller support in DT on A20

2014-05-14 Thread Hans de Goede
Hi, On 05/13/2014 08:39 PM, Alexander Bersenev wrote: > diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi > b/arch/arm/boot/dts/sun7i-a20.dtsi > index 0ae2b77..40ded74 100644 > --- a/arch/arm/boot/dts/sun7i-a20.dtsi > +++ b/arch/arm/boot/dts/sun7i-a20.dtsi > @@ -724,6 +724,19 @@ >

Re: [linux-sunxi] [PATCH 2/3] ARM: sun7i: dt: Add Security System to A20 SoC DTS

2014-05-14 Thread Hans de Goede
Hi, On 05/13/2014 08:18 PM, LABBE Corentin wrote: > Signed-off-by: LABBE Corentin > --- > arch/arm/boot/dts/sun7i-a20.dtsi | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi > b/arch/arm/boot/dts/sun7i-a20.dtsi > index f4b00a5..714761b 100644 > -

[linux-sunxi] [PATCH] Documentation: dt: Add new compatible for the A31 USB Phy

2014-05-14 Thread Maxime Ripard
Document the freshly introduced compatible for the USB phy in use in the Allwinner A31 SoC. Signed-off-by: Maxime Ripard --- .../devicetree/bindings/phy/sun4i-usb-phy.txt | 23 -- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bin

[linux-sunxi] [PATCH RESEND v4 1/8] clk: sunxi: Implement A31 USB clock

2014-05-14 Thread Maxime Ripard
The A31 USB clock slightly differ from its older counterparts, mostly because it has a different gate for each PHY, while the older one had a single gate for all the phy. Signed-off-by: Maxime Ripard Reviewed-by: Hans de Goede Acked-by: Mike Turquette --- drivers/clk/sunxi/clk-sunxi.c | 6

[linux-sunxi] [PATCH v4 6/7] clk: sunxi: document PRCM clock compatible strings

2014-05-14 Thread Boris BREZILLON
Document new compatible strings for clock provided by the PRCM (Power/Reset/Clock Management) unit. Signed-off-by: Boris BREZILLON --- Documentation/devicetree/bindings/clock/sunxi.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/sunxi.txt b/Doc

[linux-sunxi] [PATCH v4 1/7] reset: sunxi: document sunxi's reset controllers bindings

2014-05-14 Thread Boris BREZILLON
Add DT bindings documentation for sunxi's reset controllers. Signed-off-by: Boris BREZILLON Acked-by: Maxime Ripard --- .../bindings/reset/allwinner,sunxi-clock-reset.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/a

[linux-sunxi] [PATCH v4 0/7] mfd: add basic sun6i A31 PRCM support

2014-05-14 Thread Boris BREZILLON
Hello, This patch series adds support for some functions provided by the PRCM (Power/Reset/Clock Management) unit: - AR100, AHB0 and APB0 clocks - APB0 reset controller Best Regards, Boris Changes since v3: - split clk drivers into 3 different drivers: ar100, apb0 and apb0_gates - fix indentati

[linux-sunxi] [PATCH v4 7/7] ARM: sunxi: dt: add PRCM clk and reset controller subdevices

2014-05-14 Thread Boris BREZILLON
Add DT definitions for PRCM (Power/Reset/Clock Management) clock and reset controller subdevices. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/sun6i-a31.dtsi | 38 ++ 1 file changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arc

[linux-sunxi] [PATCH v4 4/7] mfd: sun6i-prcm: document DT bindings

2014-05-14 Thread Boris BREZILLON
Document DT bindings of the PRCM (Power/Reset/Clock Management) unit. Signed-off-by: Boris BREZILLON --- .../devicetree/bindings/mfd/sun6i-prcm.txt | 59 ++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/sun6i-prcm.txt diff

[linux-sunxi] [PATCH v4 3/7] mfd: add support for sun6i PRCM (Power/Reset/Clock Management) unit

2014-05-14 Thread Boris BREZILLON
The PRCM (Power/Reset/Clock Management) block exposes several subdevices in different subsystems (clk, reset ...) Add basic support for the PRCM unit with clk (AR100, AHB0, and APB0 clks) and reset controller subdevices. Other subdevices might be added later (if needed). Signed-off-by: Boris BRE

[linux-sunxi] [PATCH v4 2/7] reset: sunxi: allow MFD subdevices probe

2014-05-14 Thread Boris BREZILLON
The current implementation uses sunxi_reset_init function for both early init and platform device probe. The sunxi_reset_init function uses DT to retrieve device resources, which will be an issue if reset controllers are registered from an MFD device that define resources from mfd_cell definition.

[linux-sunxi] [PATCH v4 5/7] clk: sunxi: add PRCM (Power/Reset/Clock Management) clks support

2014-05-14 Thread Boris BREZILLON
The PRCM (Power/Reset/Clock Management) unit provides several clock devices: - AR100 clk: used to clock the Power Management co-processor - AHB0 clk: used to clock the AHB0 bus - APB0 clk and gates: used to clk peripherals connected to the APB0 bus Add support for these clks in a separate driver s

Re: [linux-sunxi] [PATCH v6 2/3] ARM: sunxi: Add driver for sunxi IR controller

2014-05-14 Thread Code Kipper
Hi Alexander, although this patch is targeting sunxi ARM based hardware it doesn't have to be tied to this architecture. Could you rename the patch to something like [media] rc: add sunxi-ir driver. This is typical of the commit headers that you see in this directory. On 13 May 2014 20:39, Alexand

[linux-sunxi] Re: [PATCH RESEND v4 0/8] Add Allwinner A31 USB support

2014-05-14 Thread Maxime Ripard
On Tue, May 13, 2014 at 05:44:14PM +0200, Maxime Ripard wrote: > Hi everyone, > > This patchset adds support for the USB controllers found in the > Allwinner A31. > > While the design is similar to the earlier Allwinner SoCs that are > already supported, a few details here and there change, like

[linux-sunxi] Re: [PATCH RESEND v4 4/8] phy: usb: sunxi: Introduce Allwinner A31 USB PHY support

2014-05-14 Thread Maxime Ripard
Hi, On Wed, May 14, 2014 at 02:09:37PM +0530, Kishon Vijay Abraham I wrote: > > @@ -305,6 +315,7 @@ static int sun4i_usb_phy_probe(struct platform_device > > *pdev) > > static const struct of_device_id sun4i_usb_phy_of_match[] = { > > { .compatible = "allwinner,sun4i-a10-usb-phy" }, > >

[linux-sunxi] [PATCH] clk: sunxi: Remove clkdev registration

2014-05-14 Thread Maxime Ripard
We actually never used clkdev at all in the Allwinner support. Hence, this registration has always been dead code that can be removed. Signed-off-by: Maxime Ripard --- drivers/clk/sunxi/clk-a10-hosc.c | 3 +-- drivers/clk/sunxi/clk-a20-gmac.c | 2 -- drivers/clk/sunxi/clk-factors.h | 1 - dr

[linux-sunxi] Re: [PATCH v13 1/2] clk: sunxi: Fixup clk_sunxi_mmc_phase_control to take a clk rather then a hw_clk

2014-05-14 Thread Ulf Hansson
On 12 May 2014 14:04, Hans de Goede wrote: > __clk_get_hw is supposed to be used by clk providers, not clk consumers. > > Signed-off-by: Hans de Goede Reviewed-by: Ulf Hansson > --- > drivers/clk/sunxi/clk-sunxi.c | 3 ++- > include/linux/clk/sunxi.h | 2 +- > 2 files changed, 3 insertion

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

2014-05-14 Thread Hans de Goede
Hi, On 05/14/2014 02:03 PM, Ulf Hansson wrote: > On 12 May 2014 15:00, Arend van Spriel wrote: >> On 05/12/2014 02:04 PM, Hans de Goede wrote: >>> >>> From: David Lanzendörfer >>> >>> The Allwinner sunxi mmc host uses dma in bus-master mode using a built-in >>> designware idmac controller, which

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

2014-05-14 Thread Ulf Hansson
On 12 May 2014 15:00, Arend van Spriel wrote: > On 05/12/2014 02:04 PM, Hans de Goede wrote: >> >> From: David Lanzendörfer >> >> The Allwinner sunxi mmc host uses dma in bus-master mode using a built-in >> designware idmac controller, which is identical to the one found in the >> mmc-dw >> hosts.

Re: [linux-sunxi] Sun5i USB Problem

2014-05-14 Thread Emilio López
Hi, El 14/05/14 08:28, Paul Jones escribió: Hi All, I'm trying out the new 3.15 kernel on my A13-OLinuXino, but I'm having trouble getting usb to work. After eventually finding the option to turn on the usb phy (Why can't usb options be in the usb menu??) there is a clock problem. (See the en

[linux-sunxi] Sun5i USB Problem

2014-05-14 Thread Paul Jones
Hi All, I'm trying out the new 3.15 kernel on my A13-OLinuXino, but I'm having trouble getting usb to work. After eventually finding the option to turn on the usb phy (Why can't usb options be in the usb menu??) there is a clock problem. (See the end of the dmesg output below). The kernel boots

Re: [linux-sunxi] TCP connection hangs with sunxi-3.4.75 at 1Gbit/s

2014-05-14 Thread Jorge
I remember having those problems with .75 and trying various things, I managed to make it happen less often, but I think it never disappeared. I'm now running 3.4.79 (see http://www.cubieforums.com/index.php?topic=1413.0), and I think that I haven't noticed the hangs with this kernel. On Tue, Ma

[linux-sunxi] sunxi G2D issues

2014-05-14 Thread Ivan Kozic
Hi all, I ran a video through G2D in order to use the G2D palette mode to alter some colors. For start, I just ran a BITBLT which just does a CSC to same color space (both source and destination are set to G2D_FMT_IYUV422), so that I can see how video looks like after G2D rendering. The video c

Re: [linux-sunxi] [PATCH 3/2] net/designware: reorder struct dw_eth_dev to pack more efficiently.

2014-05-14 Thread Marek Vasut
On Wednesday, May 14, 2014 at 10:01:59 AM, Siarhei Siamashka wrote: > On Wed, 14 May 2014 08:52:50 +0100 > > Ian Campbell wrote: > > On Wed, 2014-05-14 at 10:44 +0300, Siarhei Siamashka wrote: > > > > diff --git a/drivers/net/designware.h b/drivers/net/designware.h > > > > index 382b0c7..6d94b3a

Re: [linux-sunxi] [PATCH 3/2] net/designware: reorder struct dw_eth_dev to pack more efficiently.

2014-05-14 Thread Ian Campbell
On Wed, 2014-05-14 at 11:32 +0300, Siarhei Siamashka wrote: > On Wed, 14 May 2014 11:01:59 +0300 > Siarhei Siamashka wrote: > > > On Wed, 14 May 2014 08:52:50 +0100 > > Ian Campbell wrote: > > > > > On Wed, 2014-05-14 at 10:44 +0300, Siarhei Siamashka wrote: > > > > > diff --git a/drivers/net/d

[linux-sunxi] Re: [PATCH RESEND v4 4/8] phy: usb: sunxi: Introduce Allwinner A31 USB PHY support

2014-05-14 Thread Kishon Vijay Abraham I
Hi, On Tuesday 13 May 2014 09:14 PM, Maxime Ripard wrote: > The USB phy controller in the A31 differs mostly from the older controllers > because it has a clock dedicated for each phy, while the older ones were > having > a single clock for all the phys. > > Signed-off-by: Maxime Ripard > Revie

Re: [linux-sunxi] [PATCH 3/2] net/designware: reorder struct dw_eth_dev to pack more efficiently.

2014-05-14 Thread Siarhei Siamashka
On Wed, 14 May 2014 11:01:59 +0300 Siarhei Siamashka wrote: > On Wed, 14 May 2014 08:52:50 +0100 > Ian Campbell wrote: > > > On Wed, 2014-05-14 at 10:44 +0300, Siarhei Siamashka wrote: > > > > diff --git a/drivers/net/designware.h b/drivers/net/designware.h > > > > index 382b0c7..6d94b3a 100644

Re: [linux-sunxi] [PATCH 3/2] net/designware: reorder struct dw_eth_dev to pack more efficiently.

2014-05-14 Thread Siarhei Siamashka
On Wed, 14 May 2014 08:52:50 +0100 Ian Campbell wrote: > On Wed, 2014-05-14 at 10:44 +0300, Siarhei Siamashka wrote: > > > diff --git a/drivers/net/designware.h b/drivers/net/designware.h > > > index 382b0c7..6d94b3a 100644 > > > --- a/drivers/net/designware.h > > > +++ b/drivers/net/designware.h

[linux-sunxi] Re: [PATCH v6 3/3] ARM: sunxi: Add IR controller support in DT on A20

2014-05-14 Thread Maxime Ripard
On Wed, May 14, 2014 at 12:39:02AM +0600, Alexander Bersenev wrote: > This patch adds IR controller in A20 Device-Tree: > - Two IR devices found in A20 user manual > - Pins for two devices > - One IR device physically found on Cubieboard 2 > - One IR device physically found on Cubietruck > > Signe

Re: [linux-sunxi] [PATCH 3/2] net/designware: reorder struct dw_eth_dev to pack more efficiently.

2014-05-14 Thread Ian Campbell
On Wed, 2014-05-14 at 10:44 +0300, Siarhei Siamashka wrote: > > diff --git a/drivers/net/designware.h b/drivers/net/designware.h > > index 382b0c7..6d94b3a 100644 > > --- a/drivers/net/designware.h > > +++ b/drivers/net/designware.h > > @@ -215,13 +215,13 @@ struct dmamacdescr { > > #endif > > >

Re: [linux-sunxi] [PATCH 3/2] net/designware: reorder struct dw_eth_dev to pack more efficiently.

2014-05-14 Thread Siarhei Siamashka
On Thu, 01 May 2014 20:01:58 +0100 Ian Campbell wrote: > The {tx,rx}_mac_descrtable fields are aligned to ARCH_DMA_MINALIGN, which > could > be 256 or even larger. That means there is a potentially huge hole in the > struct before those fields, so move them to the front where they are better > p

[linux-sunxi] Re: [PATCH v3 5/7] clk: sunxi: add PRCM (Power/Reset/Clock Management) clks support

2014-05-14 Thread Boris BREZILLON
Hello Mike, On 14/05/2014 02:51, Mike Turquette wrote: > Quoting Boris BREZILLON (2014-05-09 04:11:49) >> +struct clk_ops ar100_ops = { >> + .recalc_rate = ar100_recalc_rate, >> + .determine_rate = ar100_determine_rate, >> + .set_parent = ar100_set_parent, >> + .get_parent

Re: [linux-sunxi] [PATCH 2/3] ARM: sun7i: dt: Add Security System to A20 SoC DTS

2014-05-14 Thread Hans de Goede
Hi Labbe, Thanks for working on this. I've one small comment about this patch. I'll the review of the actual crypto code up to the experts :) On 05/13/2014 08:18 PM, LABBE Corentin wrote: > Signed-off-by: LABBE Corentin > --- > arch/arm/boot/dts/sun7i-a20.dtsi | 9 + > 1 file changed, 9