[linux-sunxi] [PATCH 2/5] pinctrl: sun6i: Add A31s pinctrl support

2014-11-23 Thread Hans de Goede
The A31s is a stripped down version of the A31, as such it is missing some pins and some functions on some pins. The new pinctrl-sun6i-a31s.c this commit adds is a copy of pinctrl-sun6i-a31s.c with the missing pins and functions removed. Note there is no a31s specific version of

[linux-sunxi] [PATCH 1/5] pinctrl: sun6i: Add some missing functions, fix i2c3 muxing

2014-11-23 Thread Hans de Goede
While working on pinctrl for the A31s, I noticed that function 4 of PA15 - PA18 was missing, add these. I also noticed that i2c3 sck / sda got assigned to PB5 PB6, this should be PB4 PB5, fix this as well. Signed-off-by: Hans de Goede hdego...@redhat.com ---

[linux-sunxi] [PATCH 4/5] ARM: dts: sun6i: Add sun6i-a31s.dtsi

2014-11-23 Thread Hans de Goede
Add a dtsi file for A31s based boards. This is a copy of sun6i-a31.dtsi, with: -The main pinctrl compatible changed to allwinner,sun6i-a31s.dtsi -The ohci2 controller is present according to the data-sheet, but not routed to the outside, so remove it from the dtsi as having an always disabled

[linux-sunxi] [PATCH 5/5] ARM: dts: sun6i: Add dts file for CSQ CS908 board

2014-11-23 Thread Hans de Goede
The CSQ CS908 is an A31s based top-set box, with 1G RAM, 8G NAND, rtl8188etv usb wifi, 2 USB A receptacles (1 connected through the OTG controller), ethernet, 3.5 mm jack with a/v out and hdmi out:

[linux-sunxi] [PATCH 0/5] sun6i: Add A31s (pinctrl) support

2014-11-23 Thread Hans de Goede
Hi Maxime and Linus, Here is a patch series for the A31s, a variant of the already supported A31 with less pins. As such this patch-set introduces pinctrl support for it + a dtsi + the first board using it. I'm not sure if sunxi pinctrl patches go through Maxime's tree or Linus' tree, so I'll

[linux-sunxi] [PATCH v2 4/9] rc: sunxi-cir: Add support for an optional reset controller

2014-11-23 Thread Hans de Goede
On sun6i the cir block is attached to the reset controller, add support for de-asserting the reset if a reset controller is specified in dt. Signed-off-by: Hans de Goede hdego...@redhat.com Acked-by: Mauro Carvalho Chehab mche...@osg.samsung.com Acked-by: Maxime Ripard

[linux-sunxi] [PATCH v2 2/9] clk: sunxi: Make sun4i_a10_mod0_data available outside of clk-mod0.c

2014-11-23 Thread Hans de Goede
The sun6i prcm has mod0 compatible clocks, these need a separate driver because the prcm uses the mfd framework, but we do want to re-use the standard mod0 clk handling from clk-mod0.c for this, export sun4i_a10_mod0_data, so that the prcm mod0 clk driver can use this. Signed-off-by: Hans de

[linux-sunxi] [PATCH v2 9/9] ARM: dts: sun6i: Enable ir receiver on the Mele M9

2014-11-23 Thread Hans de Goede
The Mele M9 has an ir receiver, enable it. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/boot/dts/sun6i-a31-m9.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31-m9.dts b/arch/arm/boot/dts/sun6i-a31-m9.dts index 4202c64..94ddf9c 100644 ---

[linux-sunxi] [PATCH v2 0/9] sun6i / A31 ir receiver support

2014-11-23 Thread Hans de Goede
Hi All, Here is v2 of my sun6i ir receiver support patch-set as with v1, this touches clk, mfd (for the prcm clks), dts and media/rc code. Changes in v2: -clk: sunxi: Give sunxi_factors_register a registers parameter -Updated commit message to mention the removal of __init -Add error checking

[linux-sunxi] [PATCH v2 3/9] clk: sunxi: Add prcm mod0 clock driver

2014-11-23 Thread Hans de Goede
Add a driver for mod0 clocks found in the prcm. Currently there is only one mod0 clocks in the prcm, the ir clock. Signed-off-by: Hans de Goede hdego...@redhat.com --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi/Makefile| 2 +-

[linux-sunxi] [PATCH v2 8/9] ARM: dts: sun6i: Add pinmux settings for the ir pins

2014-11-23 Thread Hans de Goede
Add pinmux settings for the ir receive pin of the A31. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/boot/dts/sun6i-a31.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi index d33e758..90b7537

[linux-sunxi] [PATCH v2 6/9] ARM: dts: sun6i: Add ir_clk node

2014-11-23 Thread Hans de Goede
Add an ir_clk sub-node to the prcm node. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/boot/dts/sun6i-a31.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi index a01b215..4aa628b 100644 ---

[linux-sunxi] [PATCH v2 1/9] clk: sunxi: Give sunxi_factors_register a registers parameter

2014-11-23 Thread Hans de Goede
Before this commit sunxi_factors_register uses of_iomap(node, 0) to get the clk registers. The sun6i prcm has factor clocks, for which we want to use sunxi_factors_register, but of_iomap(node, 0) does not work for the prcm factor clocks, because the prcm uses the mfd framework, so the registers

[linux-sunxi] [PATCH v2 5/9] rc: sunxi-cir: Add support for the larger fifo found on sun5i and sun6i

2014-11-23 Thread Hans de Goede
Add support for the larger fifo found on sun5i and sun6i, having a separate compatible for the ir found on sun5i sun6i also is useful if we ever want to add ir transmit support, because the sun5i sun6i version do not have transmit support. Note this commits also adds checking for the

[linux-sunxi] Re: [PATCH 5/9] rc: sunxi-cir: Add support for the larger fifo found on sun5i and sun6i

2014-11-23 Thread Maxime Ripard
On Fri, Nov 21, 2014 at 11:13:17AM +0100, Hans de Goede wrote: Hi, On 11/21/2014 10:59 AM, Maxime Ripard wrote: On Fri, Nov 21, 2014 at 09:42:09AM +0100, Hans de Goede wrote: Hi, On 11/21/2014 09:26 AM, Maxime Ripard wrote: Hi Mauro, On Thu, Nov 20, 2014 at 02:28:56PM -0200,

[linux-sunxi] Re: [PATCH] boards:sunxi: Add MSI Primo73 tablet

2014-11-23 Thread Siarhei Siamashka
On Sun, 12 Oct 2014 03:49:17 +0300 Siarhei Siamashka siarhei.siamas...@gmail.com wrote: This is a 7 tablet with Allwinner A20 SoC. More details at http://linux-sunxi.org/MSI_Primo73 DRAM settings are the same as in the pre-installed Android firmware. Reliability has been verified by

Re: [linux-sunxi] [PATCH u-boot-sunxi] sunxi: axp152: dcdc3 scale is 50mV / step not 25mV / step

2014-11-23 Thread Siarhei Siamashka
On Mon, 13 Oct 2014 14:54:45 +0200 Hans de Goede hdego...@redhat.com wrote: Currently uboot wrongly uses 25mV / step for dcdc3, this is a copy and paste error introduced when adding the axp152_mvolt_to_target during review of the axp152.c driver. This results in u-boot setting Vddr to 2.3V

Re: [linux-sunxi] [PATCH 3.4] sunxi: g2d: handle noop blits

2014-11-23 Thread Siarhei Siamashka
On Fri, 7 Nov 2014 04:54:10 -0500 Andreas Baierl l...@imkreisrum.de wrote: From: Andreas Baierl ich...@imkreisrum.de Zero area blits are technically valid noops and are requested bay libvdpau. Return 0 when blit area is zero without performing bogus calculations. This reverts commit

Re: [linux-sunxi] [PATCH 1/2 3.4] Re-Enable symmetric multiprocessing for sun7i

2014-11-23 Thread Siarhei Siamashka
On Mon, 10 Nov 2014 09:06:31 +0100 Andreas Baierl l...@imkreisrum.de wrote: From: Andreas Baierlich...@imkreisrum.de Signed-off-by: Andreas Baierlich...@imkreisrum.de --- arch/arm/configs/sun7i_defconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

Re: [linux-sunxi] [PATCH 2/2 3.4] Enable CONFIG_FHANDLE required for systemd = 209

2014-11-23 Thread Siarhei Siamashka
On Mon, 10 Nov 2014 09:06:35 +0100 Andreas Baierl l...@imkreisrum.de wrote: From: Andreas Baierlich...@imkreisrum.de Signed-off-by: Andreas Baierlich...@imkreisrum.de --- arch/arm/configs/sun7i_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [linux-sunxi] [PATCH 3.4] sunxi: disp: Fix division by zero.

2014-11-23 Thread Siarhei Siamashka
On Thu, 13 Nov 2014 06:27:39 -0500 Andreas Baierl l...@imkreisrum.de wrote: From: Andreas Baierl ich...@imkreisrum.de If DISP_CMD_VIDEO_START is called and layer.para.src_win.width = 0, a division by zero is happening. This patch is ported from Allwinner's display driver code. It catches

[linux-sunxi] Re: [PATCH 1/2] sunxi: axp152: Keep DRAM / Vddr at bootloader set value

2014-11-23 Thread Siarhei Siamashka
On Wed, 15 Oct 2014 22:13:54 +0300 Siarhei Siamashka siarhei.siamas...@gmail.com wrote: On Wed, 15 Oct 2014 12:10:44 +0200 Hans de Goede hdego...@redhat.com wrote: Some fex files contain wrong values, causing stability issues. Signed-off-by: Hans de Goede hdego...@redhat.com ---

[linux-sunxi] Re: [PATCH 2/2] sunxi: nand: Fix nand clk calculation

2014-11-23 Thread Siarhei Siamashka
On Fri, 31 Oct 2014 09:53:52 +0200 Siarhei Siamashka siarhei.siamas...@gmail.com wrote: On Thu, 16 Oct 2014 10:42:19 +0200 Hans de Goede hdego...@redhat.com wrote: Hi, On 10/15/2014 09:28 PM, Siarhei Siamashka wrote: On Wed, 15 Oct 2014 12:10:45 +0200 Hans de Goede

Re: Re: [linux-sunxi] Allwinner documentation (hardware datasheet, user manual) for A10, A10s, A13, A20, A31, A31s

2014-11-23 Thread RFat
Alright, the manual of the A80 is OUT! (https://github.com/allwinner-zh/documents) Thanks a lot Kevin! -R On Tuesday, October 14, 2014 4:39:06 AM UTC+3, Zhao Zhili wrote: You are right. China have suffer too much from idealism. Now they come to the other way. Don't say something too

Re: [linux-sunxi] [PATCH 3.4] sunxi: disp: Fix division by zero.

2014-11-23 Thread Andreas Baierl
Am 24.11.2014 00:57, schrieb Siarhei Siamashka: On Thu, 13 Nov 2014 06:27:39 -0500 Andreas Baierl l...@imkreisrum.de wrote: From: Andreas Baierl ich...@imkreisrum.de If DISP_CMD_VIDEO_START is called and layer.para.src_win.width = 0, a division by zero is happening. This patch is ported from