Re: [linux-sunxi] [PATCH v3 06/10] regulator: AXP20x: Add support for regulators subsystem

2014-03-28 Thread Priit Laes
Ühel kenal päeval, N, 27.03.2014 kell 22:29, kirjutas Carlo Caione: AXP202 and AXP209 come with two synchronous step-down DC-DCs and five LDOs. This patch introduces basic support for those regulators. Signed-off-by: Carlo Caione ca...@caione.org --- drivers/regulator/Kconfig|

[linux-sunxi] Re: [PATCH v3 04/10] input: misc: Add driver for AXP20x Power Enable Key

2014-03-28 Thread Dmitry Torokhov
Hi Carlo, On Thu, Mar 27, 2014 at 10:29:18PM +0100, Carlo Caione wrote: This patch add support for the Power Enable Key found on MFD AXP202 and AXP209. Besides the basic support for the button, the driver adds two entries in sysfs to configure the time delay for power on/off. Signed-off-by:

[linux-sunxi] Re: [U-Boot] [PATCH v2 1/9] sunxi: initial sun7i clocks and timer support.

2014-03-28 Thread Ian Campbell
On Thu, 2014-03-27 at 23:36 +0100, Marek Vasut wrote: On Thursday, March 27, 2014 at 11:12:38 PM, Ian Campbell wrote: On Thu, 2014-03-27 at 23:00 +0100, Marek Vasut wrote: On Thursday, March 27, 2014 at 10:29:56 PM, Ian Campbell wrote: On Mon, 2014-03-24 at 21:52 +0100, Marek Vasut

Re: [linux-sunxi] [PATCH-3.4] sunxi-mci: incorrect MMC_DMA_DES_BIT_LEFT

2014-03-28 Thread Hans de Goede
Hi, On 03/28/2014 03:15 AM, Wills Wang wrote: In sun5i/sun6i/sun7i, the maximum of DMA DES bits are 16, the maximum buffer size is (1 15) No the maximum buffer size is 2 ^ 16, which gets expressed as a buf-size of 0 in the register. I've added a printf to ensure the maximum buf size actually

[linux-sunxi] Re: [U-Boot] [PATCH v2 1/9] sunxi: initial sun7i clocks and timer support.

2014-03-28 Thread Hans de Goede
Hi, On 03/28/2014 09:20 AM, Ian Campbell wrote: On Thu, 2014-03-27 at 23:36 +0100, Marek Vasut wrote: On Thursday, March 27, 2014 at 11:12:38 PM, Ian Campbell wrote: On Thu, 2014-03-27 at 23:00 +0100, Marek Vasut wrote: On Thursday, March 27, 2014 at 10:29:56 PM, Ian Campbell wrote: On Mon,

[linux-sunxi] Re: [U-Boot] [PATCH v2 5/9] sunxi: generic sun7i build infrastructure.

2014-03-28 Thread Ian Campbell
On Thu, 2014-03-27 at 23:37 +0100, Marek Vasut wrote: On Thursday, March 27, 2014 at 11:05:21 PM, Ian Campbell wrote: On Mon, 2014-03-24 at 22:01 +0100, Marek Vasut wrote: diff --git a/arch/arm/cpu/armv7/sunxi/u-boot-spl-fel.lds b/arch/arm/cpu/armv7/sunxi/u-boot-spl-fel.lds new file

[linux-sunxi] Re: [U-Boot] [PATCH v2 5/9] sunxi: generic sun7i build infrastructure.

2014-03-28 Thread Marek Vasut
On Friday, March 28, 2014 at 09:26:50 AM, Ian Campbell wrote: On Thu, 2014-03-27 at 23:37 +0100, Marek Vasut wrote: On Thursday, March 27, 2014 at 11:05:21 PM, Ian Campbell wrote: On Mon, 2014-03-24 at 22:01 +0100, Marek Vasut wrote: diff --git

[linux-sunxi] Re: [U-Boot] [PATCH v2 1/9] sunxi: initial sun7i clocks and timer support.

2014-03-28 Thread Marek Vasut
On Friday, March 28, 2014 at 09:20:17 AM, Ian Campbell wrote: On Thu, 2014-03-27 at 23:36 +0100, Marek Vasut wrote: On Thursday, March 27, 2014 at 11:12:38 PM, Ian Campbell wrote: On Thu, 2014-03-27 at 23:00 +0100, Marek Vasut wrote: On Thursday, March 27, 2014 at 10:29:56 PM, Ian

Re: [linux-sunxi] [PATCH] sunxi: use DIV_ROUND_UP in clock setup instead of custom RDIV

2014-03-28 Thread Hans de Goede
Hi, On 03/27/2014 10:25 PM, Ian Campbell wrote: RDIV is lacking a set of brackets compared with DIV_ROUND_UP but due to precedence rules things work out the same for all callers. Confirmed with objdump before and after. Signed-off-by: Ian Campbell i...@hellion.org.uk Thanks, I've applied

[linux-sunxi] Re: [PATCH v3 01/10] mfd: AXP20x: Add mfd driver for AXP20x PMIC

2014-03-28 Thread Lee Jones
This patch introduces the preliminary support for PMICs X-Powers AXP202 and AXP209. The AXP209 and AXP202 are the PMUs (Power Management Unit) used by A10, A13 and A20 SoCs and developed by X-Powers, a sister company of Allwinner. The core enables support for two subsystems: - PEK (Power

[linux-sunxi] Re: [PATCH v3 08/10] ARM: sun7i/sun4i: dt: Add AXP209 support to various boards

2014-03-28 Thread Maxime Ripard
On Thu, Mar 27, 2014 at 10:29:22PM +0100, Carlo Caione wrote: Signed-off-by: Hans de Goede hdego...@redhat.com Signed-off-by: Carlo Caione ca...@caione.org --- arch/arm/boot/dts/sun4i-a10-a1000.dts | 13 + arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 13

[linux-sunxi] [PATCH u-boot-sunxi 03/11] arm: sunxi: Setup the A31 UART0 muxing

2014-03-28 Thread Hans de Goede
From: Maxime Ripard maxime.rip...@free-electrons.com Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/cpu/armv7/sunxi/board.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/cpu/armv7/sunxi/board.c

[linux-sunxi] [PATCH u-boot-sunxi 05/11] ARM: sun6i: Setup the UART0 clocks

2014-03-28 Thread Hans de Goede
From: Maxime Ripard maxime.rip...@free-electrons.com Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/cpu/armv7/sunxi/clock.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[linux-sunxi] [PATCH u-boot-sunxi 10/11] sunxi: Add mmc support for sun6i / A31

2014-03-28 Thread Hans de Goede
Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/cpu/armv7/sunxi/clock.c | 3 +++ arch/arm/include/asm/arch-sunxi/clock-sun6i.h | 21 + drivers/mmc/sunxi_mmc.c | 9 - include/configs/sunxi-common.h| 2

[linux-sunxi] [PATCH u-boot-sunxi 00/11] Initial sun6i support

2014-03-28 Thread Hans de Goede
Hi All, Here is a u-boot-sunxi patch series adding initial sun6i support, it is based on Maxime's bring up work for sun6i, to which I've added mmc support. Note that this makes some changes to how we handle the mmc module clock in general, which brings the u-boot code in line with what the

[linux-sunxi] [PATCH u-boot-sunxi 07/11] sunxi: Enable pll6 by default on all models

2014-03-28 Thread Hans de Goede
So that we can use it as a clocksource for modules, ie for mmc. This allows discoupling the actual mmc clock rate we get from the ram speed, and will lead to getting exact clockspeeds for mmc rather then something approximately right. As an added bonus this makes things easier on sun6i since pll5

[linux-sunxi] [PATCH u-boot-sunxi 09/11] sunxi-mmc: Simplify data_buf1_sz calculations

2014-03-28 Thread Hans de Goede
Since SDXC_DES_BUFFER_MAX_LEN is always a power of 2, (SDXC_DES_BUFFER_MAX_LEN - 1) SDXC_DES_BUFFER_MAX_LEN is just a really complicated way of writing 0. Since writing 0 to data_buf1_sz means transfer SDXC_DES_BUFFER_MAX_LEN bytes, there is no need to set remain to SDXC_DES_BUFFER_MAX_LEN when

[linux-sunxi] [PATCH u-boot-sunxi 06/11] sunxi-mmc: Make mmc mod clk div pll clk freq independent

2014-03-28 Thread Hans de Goede
Change how we calculate the mod clk div so that it will work for a pll clk of 600 or 1200 too. Signed-off-by: Hans de Goede hdego...@redhat.com --- drivers/mmc/sunxi_mmc.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/sunxi_mmc.c

[linux-sunxi] [PATCH u-boot-sunxi 08/11] sunxi-mmc: Use pll6 as clock source

2014-03-28 Thread Hans de Goede
This discouples the actual mmc clock rate we get from the ram speed, which leads to getting exact clockspeeds for mmc rather then something approximately right. As an added bonus this makes things easier on sun6i since pll5 cannot be used as a module source at all there. This has been tested on

[linux-sunxi] [PATCH u-boot-sunxi 11/11] sunxi: Fix clock_twi_onoff for sun6i

2014-03-28 Thread Hans de Goede
Note this is something I noticed while working on the clock stuff for the mmc support. Likely more work is needed to get twi to work on sun6i, this is just a first step. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/cpu/armv7/sunxi/clock.c | 6 +- 1 file changed, 5

[linux-sunxi] Re: [RFC 3/5] ARM: sun6i: dt: Add mmc host nodes

2014-03-28 Thread Maxime Ripard
On Thu, Mar 27, 2014 at 11:24:34AM +0100, Hans de Goede wrote: Hi, On 03/27/2014 10:58 AM, Maxime Ripard wrote: On Wed, Mar 26, 2014 at 09:17:59PM +0100, Hans de Goede wrote: Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/boot/dts/sun6i-a31.dtsi | 59

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

2014-03-28 Thread Maxime Ripard
On Mon, Mar 24, 2014 at 04:02:03PM +0100, Hans de Goede wrote: Hi, On 03/24/2014 03:06 PM, Maxime Ripard wrote: On Tue, Mar 11, 2014 at 12:00:14PM +0100, Hans de Goede wrote: 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

[linux-sunxi] Re: [RFC 4/5] ARM: sun6i: dt: Add new sun6i-a31-m9 dts file for Mele M9

2014-03-28 Thread Hans de Goede
Hi, On 03/28/2014 11:21 AM, Maxime Ripard wrote: On Thu, Mar 27, 2014 at 04:56:34PM +0100, Hans de Goede wrote: Hi, On 03/27/2014 10:59 AM, Maxime Ripard wrote: On Wed, Mar 26, 2014 at 09:18:00PM +0100, Hans de Goede wrote: Add a new sun6i-a31-m9 dts file for the Mele M9 / Mele A1000G Quad.

Re: [linux-sunxi] [RFC PATCH u-boot 0/2] Try to improve sunxi DRAM setup code

2014-03-28 Thread Siarhei Siamashka
On Thu, 27 Mar 2014 16:26:02 +0100 Hans de Goede hdego...@redhat.com wrote: Hi, Thanks for the patches. I've merged and pushed the 1st one. The 2nd one esp. is a good find and a nice cleanup. It also seems to explain why we were getting various reports about instability on the

Re: [linux-sunxi] [PATCH] sunxi: use DIV_ROUND_UP in clock setup instead of custom RDIV

2014-03-28 Thread Ian Campbell
On Fri, 2014-03-28 at 09:43 +0100, Hans de Goede wrote: Hi, On 03/27/2014 10:25 PM, Ian Campbell wrote: RDIV is lacking a set of brackets compared with DIV_ROUND_UP but due to precedence rules things work out the same for all callers. Confirmed with objdump before and after.

Re: [linux-sunxi] [PATCH u-boot-sunxi 00/11] Initial sun6i support

2014-03-28 Thread Chen-Yu Tsai
Hi, On Fri, Mar 28, 2014 at 6:16 PM, Hans de Goede hdego...@redhat.com wrote: Hi All, Here is a u-boot-sunxi patch series adding initial sun6i support, it is based on Maxime's bring up work for sun6i, to which I've added mmc support. Note that this makes some changes to how we handle the

[linux-sunxi] Re: MK808C wiki page.

2014-03-28 Thread Code Kipper
Hi Luc, Nickpic awayThere is a button above the HDMI conector and I guess this is for triggering FEL mode. As a SD card user I've never had the need to go down this path but I could have a go over the weekend. As for ADB I saw when I was connected to my Q8H that it was detecting the USB

Re: [linux-sunxi] [RFC PATCH u-boot 0/2] Try to improve sunxi DRAM setup code

2014-03-28 Thread Olliver Schinagl
On 03/28/2014 11:42 AM, Siarhei Siamashka wrote: On Thu, 27 Mar 2014 16:26:02 +0100 Hans de Goede hdego...@redhat.com wrote: Hi, Thanks for the patches. I've merged and pushed the 1st one. The 2nd one esp. is a good find and a nice cleanup. It also seems to explain why we were getting

[linux-sunxi] Re: MK808C wiki page.

2014-03-28 Thread Luc Verhaegen
On Fri, Mar 28, 2014 at 01:07:44PM +0100, Code Kipper wrote: Hi Luc, Nickpic awayThere is a button above the HDMI conector and I guess this is for triggering FEL mode. As a SD card user I've never had the need to go down this path but I could have a go over the weekend. There are

Re: [linux-sunxi] [PATCH u-boot-sunxi 10/11] sunxi: Add mmc support for sun6i / A31

2014-03-28 Thread Olliver Schinagl
On 03/28/2014 11:16 AM, Hans de Goede wrote: Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/cpu/armv7/sunxi/clock.c | 3 +++ arch/arm/include/asm/arch-sunxi/clock-sun6i.h | 21 + drivers/mmc/sunxi_mmc.c | 9 -

Re: [linux-sunxi] [PATCH u-boot-sunxi 00/11] Initial sun6i support

2014-03-28 Thread Olliver Schinagl
On 03/28/2014 12:24 PM, Chen-Yu Tsai wrote: Hi, On Fri, Mar 28, 2014 at 6:16 PM, Hans de Goede hdego...@redhat.com wrote: Hi All, Here is a u-boot-sunxi patch series adding initial sun6i support, it is based on Maxime's bring up work for sun6i, to which I've added mmc support. Note that this

Re: [linux-sunxi] [PATCH u-boot-sunxi 10/11] sunxi: Add mmc support for sun6i / A31

2014-03-28 Thread Hans de Goede
Hi, On 03/28/2014 01:38 PM, Olliver Schinagl wrote: On 03/28/2014 11:16 AM, Hans de Goede wrote: Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/cpu/armv7/sunxi/clock.c | 3 +++ arch/arm/include/asm/arch-sunxi/clock-sun6i.h | 21 +

[linux-sunxi] Re: [PATCH v3 08/10] ARM: sun7i/sun4i: dt: Add AXP209 support to various boards

2014-03-28 Thread Maxime Ripard
On Fri, Mar 28, 2014 at 11:38:39AM +, Mark Brown wrote: On Fri, Mar 28, 2014 at 11:11:46AM +0100, Maxime Ripard wrote: Here, you would just include the dtsi at the top of the file, and in the DTSI, you would have something like: axp209 { regulators { ... } }

Re: [linux-sunxi] [PATCH] sunxi: whitespace cleanup to fel mode linker script.

2014-03-28 Thread Hans de Goede
Hi, On 03/28/2014 12:57 PM, Olliver Schinagl wrote: On 03/27/2014 11:05 PM, Ian Campbell wrote: This makes the script somewhat more conformant to the upstream coding style using in other linker scripts. Add a license header at the same time. Signed-off-by: Ian Campbell i...@hellion.org.uk

[linux-sunxi] A23 tablet

2014-03-28 Thread jtd
Hi all, I am new to the list. Is there any work happening on the A23 ? I have a couple 7 MIIDs with me. SOC A23 RAM GT8UB512M 16 512 x 16 ddr3 Flash H27UCG8t2b Hynix 8GB PMU AXP223 Touch Gsl1680 Wifi RTL8188 Any pointers to getting debian on to this. Sunxi wiki does not seem to have any

[linux-sunxi] Re: [PATCH v3 06/10] regulator: AXP20x: Add support for regulators subsystem

2014-03-28 Thread Mark Brown
On Thu, Mar 27, 2014 at 10:29:20PM +0100, Carlo Caione wrote: +static int axp20x_set_suspend_voltage(struct regulator_dev *rdev, int uV) +{ + int sel = regulator_map_voltage_iterate(rdev, uV, uV); + + if (sel 0) + return sel; + + return

Re: [linux-sunxi] A23 tablet

2014-03-28 Thread Olliver Schinagl
On 03/28/2014 07:43 AM, jtd wrote: Hi all, I am new to the list. Is there any work happening on the A23 ? Nothing yet. Some devs have started to obtain A23 hardware, myself I'm getting one sent by AW, but haven't received it yet. Once devs have hardware, we can start adding support, but

Re: [linux-sunxi] [PATCH u-boot-sunxi 10/11] sunxi: Add mmc support for sun6i / A31

2014-03-28 Thread Olliver Schinagl
On 03/28/2014 01:45 PM, Hans de Goede wrote: Hi, On 03/28/2014 01:38 PM, Olliver Schinagl wrote: On 03/28/2014 11:16 AM, Hans de Goede wrote: Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/cpu/armv7/sunxi/clock.c | 3 +++

Re: [linux-sunxi] [PATCH] sunxi: whitespace cleanup to fel mode linker script.

2014-03-28 Thread Olliver Schinagl
On 03/28/2014 01:48 PM, Hans de Goede wrote: Hi, On 03/28/2014 12:57 PM, Olliver Schinagl wrote: On 03/27/2014 11:05 PM, Ian Campbell wrote: This makes the script somewhat more conformant to the upstream coding style using in other linker scripts. Add a license header at the same time.

Re: [linux-sunxi] [PATCH u-boot-sunxi 2/2] sunxi: Split clock code into common, sun4i and sun6i code

2014-03-28 Thread Hans de Goede
Hi, On 03/28/2014 10:38 PM, Hans de Goede wrote: Rather then having effectively 2 copies of a function through function in 2 separate C-files, this is much easier to read and maintain. Oops, this should have read: Rather then having effectively 2 copies of a function through #ifdef

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

2014-03-28 Thread rdv0011
пятница, 28 марта 2014 г., 11:41:49 UTC+2 пользователь Ivan Kozic написал: Hi, You haven't given much info about this - take care with Cubieboard 1 2 - as far as I can remember they don't have PIXCLK routed for CSI0 port, so it's completely unusable. You should use CSI1. Regarding the

Re: [linux-sunxi] [PATCH 3.4] sun7i: enable performance counters

2014-03-28 Thread Siarhei Siamashka
On Thu, 27 Mar 2014 12:00:25 + Mans Rullgard m...@mansr.com wrote: The PMUs on sun7i use the undocumented IRQs 152 and 153 for core 0 and 1 respectively. Signed-off-by: Mans Rullgard m...@mansr.com Thanks, this is a really nice find and now we get ARM performance counters working on all