[linux-sunxi] Re: [PATCH 1/2] touchscreen: sun4i-ts: A10 (sun4i) has double the temperature precision

2014-06-17 Thread Hans de Goede
Hi, On 06/16/2014 11:30 PM, Dmitry Torokhov wrote: Hi Hans, On Mon, Jun 16, 2014 at 08:24:28PM +0200, Hans de Goede wrote: Testing has revealed that the temperature in the rtp controller of the A10 (sun4i) SoC has a resolution of 50 milli degrees / step, where as the A13 (sun5i) and later

[linux-sunxi] Re: [PATCH v2 1/4] dt: bindings: add bindings for Broadcom bcm43xx sdio devices

2014-06-17 Thread Hans de Goede
Hi, On 06/16/2014 10:53 PM, Florian Fainelli wrote: 2014-06-16 10:56 GMT-07:00 Hans de Goede hdego...@redhat.com: From: Arend van Spriel ar...@broadcom.com The Broadcom bcm43xx sdio devices are fullmac devices that may be integrated in ARM platforms. Currently, the brcmfmac driver for these

[linux-sunxi] Re: [PATCH v6 3/7] mfd: AXP20x: Add bindings documentation

2014-06-17 Thread Boris BREZILLON
Hello, On 19/05/2014 21:47, Carlo Caione wrote: Bindings documentation for the AXP20x driver. In this file also sub-nodes are documented. I think this patch has been forgotten (I didn't find it in linus' tree or linux-next tree). Best Regards, Boris Signed-off-by: Carlo Caione

[linux-sunxi] [PATCH v4 1/7] mfd: axp20x: add AXP221 PMIC support

2014-06-17 Thread Boris BREZILLON
Add support for the AXP221 PMIC device to the existing AXP20x driver. The AXP221 defines a new set of registers, power supplies and regulators, but most of the API is similar to the AXP20x ones. The AXP20x irq chip definition is reused, though some interrupts are not available in the AXP221.

[linux-sunxi] [PATCH v4 3/7] regulator: axp20x: add support for AXP221 regulators

2014-06-17 Thread Boris BREZILLON
Add AXP221 regulator definitions and choose the appropriate definitions according to the variant id passed by the MFD device. Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com --- drivers/regulator/axp20x-regulator.c | 98 +--- 1 file changed, 90

[linux-sunxi] [PATCH v4 0/7] mfd: axp20x: add AXP221 PMIC support

2014-06-17 Thread Boris BREZILLON
Hello, This patch series adds basic support for X-Powers' AXP221 PMIC. At the moment the MFD device only exposes AXP221 regulators but other subdevices might be added later. Best Regards, Boris Changes since v3: - rework mfd probe to avoid multiple AXP variant tests - add new compatible

[linux-sunxi] [PATCH v4 2/7] regulator: axp20x: prepare support for multiple AXP chip families

2014-06-17 Thread Boris BREZILLON
Rework the AXP20X_ macros to support the several chip families, so that each family can define it's own set of regulators, and regulator matches. Pass a match table to the axp20x_regulator_parse_dt function instead of statically using the axp20x match table. Signed-off-by: Boris BREZILLON

[linux-sunxi] [PATCH v4 7/7] mfd: AXP20x: add x-powers,axp221 compatible string to DT bindings doc

2014-06-17 Thread Boris BREZILLON
Add x-powers,axp221 compatible string to the AXP20x DT bindings documentation. Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com --- Documentation/devicetree/bindings/mfd/axp20x.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[linux-sunxi] [PATCH v4 4/7] regulator: axp20x: reset probe data before each probe

2014-06-17 Thread Boris BREZILLON
The init_data and of_node fields of the axp2xx_matches tables are filled at each device probe by the axp20x_regulator_parse_dt function (which then calls the of_regulator_match function). This means we can probe a new device and consider data initialized during the probe of another device as

[linux-sunxi] [PATCH v4 5/7] regulator: add support for regulator set registration

2014-06-17 Thread Boris BREZILLON
PMIC devices often provide several regulators, and these regulators are all using the same regmap and are all attached to the same device (the PMIC device). Add helper functions (both simple and resource managed versions) to register and unregister such kind of regulator set. This implementation

[linux-sunxi] [PATCH v4 6/7] regulator: axp20x: make use of devm_regulator_set_register

2014-06-17 Thread Boris BREZILLON
Make use of the devm_regulator_set_register instead of registering each regulator provided by the PMIC. This also solves a self dependency issue where one regulator of the PMIC is used as a supply for anoher regulator provided by the same PMIC. Signed-off-by: Boris BREZILLON

[linux-sunxi] Re: [PATCH v2 1/4] dt: bindings: add bindings for Broadcom bcm43xx sdio devices

2014-06-17 Thread Arend van Spriel
On 17-06-14 08:32, Hans de Goede wrote: Hi, On 06/16/2014 10:53 PM, Florian Fainelli wrote: 2014-06-16 10:56 GMT-07:00 Hans de Goede hdego...@redhat.com: From: Arend van Spriel ar...@broadcom.com The Broadcom bcm43xx sdio devices are fullmac devices that may be integrated in ARM platforms.

Re: [linux-sunxi] [PATCH sunxi-tools v2] Add copyright headers to various files.

2014-06-17 Thread Ian Campbell
On Fri, 2014-06-13 at 07:42 +0100, Ian Campbell wrote: Hi Alejandro, I think yours is the last Ack which is needed for this change. Sorry to be a pain. Cheers, Ian. I'd like to package sunxi-tools for Debian and therefore it is important for the licensing information to be complete/accurate.

[linux-sunxi] Re: sun7i_tvd in kernel 3.4

2014-06-17 Thread baani . harjeet
On Wednesday, July 31, 2013 1:26:14 PM UTC+5:30, Enrico wrote: Hi, i've ported the sun7i_tvd from lichee-3.3 to Hans' fedora 3.4 kernel, testing it on olinuxino micro a20 with an angstrom 2013.06 rootfs, but i have this problem: root@olinuxino-a20:~# yavta -f NV12 -s 720x576 -c3 -n3

[linux-sunxi] Re: [PATCH v2 4/4] brcmfmac: Fix OOB interrupt not working for BCM43362

2014-06-17 Thread Arend van Spriel
On 16-06-14 19:56, Hans de Goede wrote: It has taken me a long long time to get the OOB interrupt working on the AP6210 sdio wifi/bt module found on various Allwinner A20 boards. In the end I found these magic register pokes in the cubietruck kernel tree:

Re: [linux-sunxi] Re: i2s audio codec support for sun7i

2014-06-17 Thread Puneet B
HI Jon, I tried with cubieboard android kernel , then there is no issue with i2s soundcard, because it is fetching all parameter from fex file. But only thing i am not able to invoke the external dac from machine driver and also i probed mclk,bclk which is working fine. Here i am attaching

[linux-sunxi] Re: sun7i_tvd in kernel 3.4

2014-06-17 Thread Enrico
Il giorno martedì 17 giugno 2014 13:34:45 UTC+2, baani@gmail.com ha scritto: hi enrico, are you able to fix the tvin drivers ?? can you pls send binaries for 3.4.79 lubuntu to baani.harjeet [a] gmail.com please please No i couldn't fix it and since there are no docs i gave up. I

Re: [linux-sunxi] Re: sun7i_tvd in kernel 3.4

2014-06-17 Thread jonsm...@gmail.com
On Tue, Jun 17, 2014 at 8:45 AM, Enrico ebut...@gmail.com wrote: Il giorno martedì 17 giugno 2014 13:34:45 UTC+2, baani@gmail.com ha scritto: hi enrico, are you able to fix the tvin drivers ?? can you pls send binaries for 3.4.79 lubuntu to baani.harjeet [a] gmail.com please please

Re: [linux-sunxi] Re: sun7i_tvd in kernel 3.4

2014-06-17 Thread Chen-Yu Tsai
On Tue, Jun 17, 2014 at 9:05 PM, jonsm...@gmail.com jonsm...@gmail.com wrote: On Tue, Jun 17, 2014 at 8:45 AM, Enrico ebut...@gmail.com wrote: Il giorno martedì 17 giugno 2014 13:34:45 UTC+2, baani@gmail.com ha scritto: hi enrico, are you able to fix the tvin drivers ?? can you pls send

[linux-sunxi] Re: [PATCH v2 4/4] brcmfmac: Fix OOB interrupt not working for BCM43362

2014-06-17 Thread Hans de Goede
Hi, On 06/17/2014 01:49 PM, Arend van Spriel wrote: On 16-06-14 19:56, Hans de Goede wrote: It has taken me a long long time to get the OOB interrupt working on the AP6210 sdio wifi/bt module found on various Allwinner A20 boards. In the end I found these magic register pokes in the

[linux-sunxi] [PATCH v2 13/20] clk: sunxi: Add A23 specific compatible to sun6i-a31-apb0-gates-clk

2014-06-17 Thread Chen-Yu Tsai
The sun6i-a31-apb0-gates-clk driver is generic in that it supports the clock-indicies DT property with clock-output-names to list the valid clock gate bits. However this might lead one to assume that the clock in the A23 is the same as the A31. To make it clear, we add a new compatible for the

[linux-sunxi] [PATCH v2 02/20] clk: sunxi: register clock gates with clkdev

2014-06-17 Thread Chen-Yu Tsai
The new important clock protect code requires the clocks be registered with clkdev. This was missing for sunxi_gates type clocks. Signed-off-by: Chen-Yu Tsai w...@csie.org Acked-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/clk/sunxi/clk-sunxi.c | 1 + 1 file changed, 1

[linux-sunxi] [PATCH v2 06/20] clk: sunxi: Fix rate_recalc for sun6i PLL1

2014-06-17 Thread Chen-Yu Tsai
PLL1 on sun6i is a factor clock with the N multiplier factor starting from 1. Set the .n_from_one field in the clock data to match. Signed-off-by: Chen-Yu Tsai w...@csie.org --- drivers/clk/sunxi/clk-sunxi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/sunxi/clk-sunxi.c

[linux-sunxi] [PATCH v2 20/20] ARM: sun8i: dt: Add Ippo-q8h v5 support

2014-06-17 Thread Chen-Yu Tsai
The Ippo-q8h is a tablet circiut board commonly found in cheap Android tablets with A23 SoCs. There are at least 2 versions of the board, with different peripherals, such as WiFi chips. This patch add supports for v5 of such boards, which has a ESP8089 WiFi chip (not supported) connected to mmc1.

[linux-sunxi] [PATCH v2 17/20] ARM: sunxi: Introduce Allwinner A23 support

2014-06-17 Thread Chen-Yu Tsai
The Allwinner A23 is a dual-core Cortex-A7-based SoC. It re-uses most of the IPs found in previous SoCs, notably the A31. Signed-off-by: Chen-Yu Tsai w...@csie.org --- arch/arm/mach-sunxi/Kconfig | 8 arch/arm/mach-sunxi/sunxi.c | 10 ++ 2 files changed, 18 insertions(+) diff

[linux-sunxi] [PATCH v2 14/20] pinctrl: sunxi: Add A23 PIO controller support

2014-06-17 Thread Chen-Yu Tsai
The A23 uses the same pin controller as previous SoC's from Allwinner. Add support for the pins controlled by the main PIO controller. Signed-off-by: Chen-Yu Tsai w...@csie.org Acked-by: Maxime Ripard maxime.rip...@free-electrons.com --- .../bindings/pinctrl/allwinner,sunxi-pinctrl.txt | 1 +

[linux-sunxi] [PATCH v2 07/20] clk: sunxi: Fix PLL6 calculation on sun6i

2014-06-17 Thread Chen-Yu Tsai
The N factor for PLL6 counts from 1 to 32, as specified in the A23 manual, and shown in Allwinner's original code. Also the PLL6 factors calculate the clock rate for PLL6x2, not the normal halved output for PLL6. This is what the factors clk .recalc_rate callback expects. This patch fixes the N

[linux-sunxi] [PATCH v2 03/20] clk: sunxi: move ahb_sdram to protected clock list

2014-06-17 Thread Chen-Yu Tsai
With sunxi_gates clocks registered with clkdev, we can use the protected clocks list to enable the ahb_sdram clock, instead of looking for it and adding CLK_IGNORE_UNUSED inline in the clock setup code. Signed-off-by: Chen-Yu Tsai w...@csie.org --- drivers/clk/sunxi/clk-sunxi.c | 8 +++- 1

[linux-sunxi] [PATCH v2 04/20] clk: sunxi: Fix gate indexing for sun6i-a31-apb0-gates

2014-06-17 Thread Chen-Yu Tsai
sun6i-a31-apb0-gates supports using clock-indices for holes between individual gates. However, the driver passes the number of gates registered in clk_data-clk_num, which of_clk_src_onecell_get uses to recognize the range of valid indices a consumer can use. This patch makes the driver pass the

[linux-sunxi] [PATCH v2 11/20] clk: sunxi: Add A23 clocks support

2014-06-17 Thread Chen-Yu Tsai
The clock control unit on the A23 is similar to the one found on the A31. The AHB1, APB1, APB2 gates on the A23 are almost identical to the ones on the A31, but some outputs are missing. The main CPU PLL (PLL1) however is like that on older Allwinner SoCs, such as the A10 or A20, but the N

[linux-sunxi] [PATCH v2 10/20] clk: sunxi: Add support for table-based divider clocks

2014-06-17 Thread Chen-Yu Tsai
A few of the clock modules have odd dividers, such as the 2 lowest dividers being the same (2), or have the same divider when the highest bit is set. This patch adds support for optional divider tables, so the clock framework will know about the odd values. Signed-off-by: Chen-Yu Tsai

[linux-sunxi] [PATCH v2 01/20] serial: 8250_dw: Add optional reset control support

2014-06-17 Thread Chen-Yu Tsai
The Allwinner A31 and A23 SoCs have a reset controller maintaining the UART in reset by default. This patch adds optional reset support to the driver. Signed-off-by: Chen-Yu Tsai w...@csie.org --- Documentation/devicetree/bindings/serial/snps-dw-apb-uart.txt | 1 +

[linux-sunxi] [PATCH v2 05/20] clk: sunxi: Support factor clocks with N multiplier factor starting from 1

2014-06-17 Thread Chen-Yu Tsai
The PLLs on newer Allwinner SoC's, such as the A31 and A23, have a N multiplier factor that starts from 1, not 0. This patch adds an option to the clock driver's config data structures to define the difference. Signed-off-by: Chen-Yu Tsai w...@csie.org Acked-by: Maxime Ripard

Re: [linux-sunxi] A10 CPU Temperature Sensor is abnormal?

2014-06-17 Thread Tong Zhang
Hi Siarhei, I measured the temperature of a10 using ds18b20 while set a10 at different freq. I think this is a rather rough measurement, because I noticed that a10 has big cap area(~ 1cm^2 ). but the ds18b20 is in TO-92 package (~10mm^2). The heat is not evenly spread among the chip

[linux-sunxi] Re: [PATCH v2 4/4] brcmfmac: Fix OOB interrupt not working for BCM43362

2014-06-17 Thread Arend van Spriel
On 17-06-14 16:32, Hans de Goede wrote: Hi, On 06/17/2014 01:49 PM, Arend van Spriel wrote: On 16-06-14 19:56, Hans de Goede wrote: It has taken me a long long time to get the OOB interrupt working on the AP6210 sdio wifi/bt module found on various Allwinner A20 boards. In the end I found

[linux-sunxi] Re: [PATCH 1/2] touchscreen: sun4i-ts: A10 (sun4i) has double the temperature precision

2014-06-17 Thread Hans de Goede
Hi, On 06/16/2014 11:30 PM, Dmitry Torokhov wrote: Hi Hans, On Mon, Jun 16, 2014 at 08:24:28PM +0200, Hans de Goede wrote: Testing has revealed that the temperature in the rtp controller of the A10 (sun4i) SoC has a resolution of 50 milli degrees / step, where as the A13 (sun5i) and later

[linux-sunxi] Re: [PATCH v2 4/5] pinctrl: sunxi: Properly handle level triggered gpio interrupts

2014-06-17 Thread Maxime Ripard
On Tue, Jun 03, 2014 at 05:13:17PM +0200, Hans de Goede wrote: Hi, On 06/03/2014 03:30 PM, Maxime Ripard wrote: On Sat, May 31, 2014 at 04:01:38PM +0200, Hans de Goede wrote: For level triggered gpio interrupts we need to use handle_fasteoi_irq, like we do with the irq-sunxi-nmi driver.

[linux-sunxi] Re: [PATCH v4 4/7] regulator: axp20x: reset probe data before each probe

2014-06-17 Thread Maxime Ripard
On Tue, Jun 17, 2014 at 09:38:40AM +0200, Boris BREZILLON wrote: The init_data and of_node fields of the axp2xx_matches tables are filled at each device probe by the axp20x_regulator_parse_dt function (which then calls the of_regulator_match function). This means we can probe a new device and

Re: [linux-sunxi] Re: sun7i_tvd in kernel 3.4

2014-06-17 Thread Emilio López
El 17/06/14 09:45, Enrico escribió: Il giorno martedì 17 giugno 2014 13:34:45 UTC+2, baani@gmail.com ha scritto: hi enrico, are you able to fix the tvin drivers ?? can you pls send binaries for 3.4.79 lubuntu to baani.harjeet [a] gmail.com http://gmail.com please please

[linux-sunxi] Re: [PATCH v2 05/20] clk: sunxi: Support factor clocks with N multiplier factor starting from 1

2014-06-17 Thread Rob Herring
On Tue, Jun 17, 2014 at 9:52 AM, Chen-Yu Tsai w...@csie.org wrote: The PLLs on newer Allwinner SoC's, such as the A31 and A23, have a N multiplier factor that starts from 1, not 0. This patch adds an option to the clock driver's config data structures to define the difference.