Re: [linux-sunxi] Dual channel LVDS panel with A10/A20

2017-09-11 Thread Michal Suchanek
Hello, On 11 September 2017 at 18:46, Priit Laes <pl...@plaes.org> wrote: > On Mon, Sep 11, 2017 at 06:26:36PM +0200, Michal Suchanek wrote: >> Hello, >> >> anyone used a dual channel LVDS panel with a Cubieboard? >> >> I have a LVDS board that has 4+4 LV

Re: [linux-sunxi] AXP209 question

2017-09-11 Thread Michal Suchanek
Hello, On 10 September 2017 at 18:23, wrote: > Hi all, > > I use AXP209 and A20. Is there way that A20 not power on upon DC voltage > connection to AXP209. I mean if board is off and I plug DC voltage that > AXP209 only continue to charge battery without power ON board?

[linux-sunxi] Dual channel LVDS panel with A10/A20

2017-09-11 Thread Michal Suchanek
Hello, anyone used a dual channel LVDS panel with a Cubieboard? I have a LVDS board that has 4+4 LVDS pair inputs and only one clock input. Presumably I can switch both LVDS clocks to the same source so they are effectively the same but I have no idea about splitting the panel data between the

Re: [linux-sunxi] A23 Labeled as A33 !!

2017-03-29 Thread Michal Suchanek
Hello, On 29 March 2017 at 13:19, Eyad Majali wrote: > Hi, > I have a Q8 Tablet with the Soc clearly labeled A33 Quad core , when I > compiled u-boot for A33 it didnt work and showed error initializing dram, > but when compiled for A23 it worked correctly , and gave an ID

Re: [linux-sunxi] Re: [PATCH RESEND v5] ARM: sun4i: spi: Allow transfers larger than FIFO size

2016-10-17 Thread Michal Suchanek
On 17 October 2016 at 10:26, Alex Gagniuc <mr.nuke...@gmail.com> wrote: > On Thu, Aug 20, 2015 at 6:48 AM, Michal Suchanek <hramr...@gmail.com> wrote: >> Hello, >> >> On 14 August 2015 at 01:08, Alex G. <mr.nuke...@gmail.com> wrote: >>> On 08/10/

[linux-sunxi] Re: [PATCH v3 00/13] sunxi spi fixes

2016-07-30 Thread Michal Suchanek
On 29 July 2016 at 22:22, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > On Mon, Jul 25, 2016 at 10:03:14AM +0200, Michal Suchanek wrote: >> Hello, >> >> On 25 July 2016 at 09:32, Maxime Ripard >> <maxime.rip...@free-electrons.com> wrote: >&g

[linux-sunxi] Re: [PATCH v3 00/13] sunxi spi fixes

2016-07-25 Thread Michal Suchanek
Hello, On 25 July 2016 at 09:32, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > On Fri, Jun 17, 2016 at 12:34:44PM +0200, Michal Suchanek wrote: >> Hello, >> >> On 13 June 2016 at 21:57, Maxime Ripard >> <maxime.rip...@free-electrons.com> wrote:

[linux-sunxi] SPI NOR with jumper wires reliability?

2016-07-18 Thread Michal Suchanek
Hello, I am using a w25q32 spi-nor flash (in a spring socket or on a tiny board with pin headers) connected with jumper wires to the GPIO header on an A10s OlinuXino Micro and now Orange Pi One. The problem is that sometimes the flash works quite reliably at 40MHz and at other times I cannot get

Re: [linux-sunxi] Re: [PATCH v2 06/14] ARM: sun8i: clk: Add clk-factor rate application method

2016-07-15 Thread Michal Suchanek
Hello, On 15 July 2016 at 15:48, Ondřej Jirman wrote: > > > On 15.7.2016 15:27, Jean-Francois Moine wrote: >> On Fri, 15 Jul 2016 12:38:54 +0200 >> Ondřej Jirman wrote: >> If so, then yes, trying to switch to the 24MHz oscillator before applying

Re: [linux-sunxi] Console on VGA and not on UART

2016-07-13 Thread Michal Suchanek
Starting Kernel" on VGA but after i can't see anything. I think > maybe the Linux Kernel is on UART. > How can i modify it?? > > Thanks > > Il giorno mercoledì 13 luglio 2016 08:29:46 UTC+2, Michal Suchanek ha > scritto: >> >> http://linux-sunxi.org/Mainline_U-Boot

Re: [linux-sunxi] Console on VGA and not on UART

2016-07-13 Thread Michal Suchanek
; configuration? > > Thanks > > Il giorno martedì 12 luglio 2016 20:16:21 UTC+2, Michal Suchanek ha scritto: >> >> Hello, >> >> On 12 July 2016 at 19:57, dlbp <paolo.de...@gmail.com> wrote: >> > Hello to everybody!!! >> > I have tried to mou

Re: [linux-sunxi] Console on VGA and not on UART

2016-07-12 Thread Michal Suchanek
Hello, On 12 July 2016 at 19:57, dlbp wrote: > Hello to everybody!!! > I have tried to mount XEN on Cubietruck using this wiki ( > http://www.sourcediver.org/blog/2014/06/19/running-arch-linux-arm-with-xen-on-cubieboard-2/ > ) > > But there is a big problem: i

Re: [linux-sunxi] Boot failure on A33 powered tablet

2016-07-12 Thread Michal Suchanek
On 12 July 2016 at 13:14, Steven Saunderson <essat2...@gmail.com> wrote: > > > On Monday, 11 July 2016 22:18:49 UTC+10, Steven Saunderson wrote: > >> >> On Monday, 11 July 2016 21:32:36 UTC+10, Michal Suchanek wrote: > > >> >> Either way, you can t

Re: [linux-sunxi] Re: USB OTG on Orange Pi PC

2016-07-04 Thread Michal Suchanek
On 1 July 2016 at 17:57, Ondřej Jirman <m...@xff.cz> wrote: > > > On 1.7.2016 13:19, Michal Suchanek wrote: >> On 1 July 2016 at 13:02, Michal Suchanek <hramr...@gmail.com> wrote: >>> On 30 June 2016 at 22:30, Ondřej Jirman <m...@xff.cz> wrote: >

Re: [linux-sunxi] Re: USB OTG on Orange Pi PC

2016-07-01 Thread Michal Suchanek
On 1 July 2016 at 13:02, Michal Suchanek <hramr...@gmail.com> wrote: > On 30 June 2016 at 22:30, Ondřej Jirman <m...@xff.cz> wrote: >> On 30.6.2016 20:21, Michal Suchanek wrote: >>> On 30 June 2016 at 20:06, Michal Suchanek <hramr...@gmail.com> wrote: >>&g

Re: [linux-sunxi] Re: USB OTG on Orange Pi PC

2016-07-01 Thread Michal Suchanek
On 30 June 2016 at 22:30, Ondřej Jirman <m...@xff.cz> wrote: > On 30.6.2016 20:21, Michal Suchanek wrote: >> On 30 June 2016 at 20:06, Michal Suchanek <hramr...@gmail.com> wrote: >>> Hello, >>> >>> On 30 June 2016 at 16:44, Ondřej Jirman

Re: [linux-sunxi] [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One

2016-07-01 Thread Michal Suchanek
On 30 June 2016 at 17:50, Michal Suchanek <hramr...@gmail.com> wrote: > On 30 June 2016 at 17:16, Michal Suchanek <hramr...@gmail.com> wrote: >> On 30 June 2016 at 16:19, Ondřej Jirman <meg...@megous.com> wrote: >>> Hello, >>)k, so I tried> >>>

Re: [linux-sunxi] Re: USB OTG on Orange Pi PC

2016-06-30 Thread Michal Suchanek
On 30 June 2016 at 20:06, Michal Suchanek <hramr...@gmail.com> wrote: > Hello, > > On 30 June 2016 at 16:44, Ondřej Jirman <m...@xff.cz> wrote: >> Hi, >> >> hopefuly, it was the NPE that I fixed. It was specifically in the H3 usb >> phy code path for p

Re: [linux-sunxi] Re: USB OTG on Orange Pi PC

2016-06-30 Thread Michal Suchanek
Hello, On 30 June 2016 at 16:44, Ondřej Jirman wrote: > Hi, > > hopefuly, it was the NPE that I fixed. It was specifically in the H3 usb > phy code path for phy0. So I believe it was untested, > because I didn't find any dts file that would use phy0. > This WorksForMe(TM). I can

Re: [linux-sunxi] [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One

2016-06-30 Thread Michal Suchanek
On 30 June 2016 at 17:16, Michal Suchanek <hramr...@gmail.com> wrote: > On 30 June 2016 at 16:19, Ondřej Jirman <meg...@megous.com> wrote: >> Hello, >> >> On 30.6.2016 13:13, Michal Suchanek wrote: >>> Hello, >>> >>> On 25 June 2016 at

Re: [linux-sunxi] [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One

2016-06-30 Thread Michal Suchanek
On 30 June 2016 at 16:19, Ondřej Jirman <meg...@megous.com> wrote: > Hello, > > On 30.6.2016 13:13, Michal Suchanek wrote: >> Hello, >> >> On 25 June 2016 at 05:45, <meg...@megous.com> wrote: >>> From: Ondrej Jirman <meg...@megous.com>

Re: [linux-sunxi] [PATCH v2 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One

2016-06-30 Thread Michal Suchanek
Hello, On 25 June 2016 at 05:45, wrote: > From: Ondrej Jirman > > Use Xulong Orange Pi One GPIO based regulator for > passive cooling and thermal management. > > Signed-off-by: Ondrej Jirman > --- >

Re: [linux-sunxi] Re: [PATCH 06/14] ARM: dts: sun8i: Add cpu0 label to sun8i-h3.dtsi

2016-06-30 Thread Michal Suchanek
Hello, On 29 June 2016 at 23:11, Ondřej Jirman wrote: > On 29.6.2016 22:45, Maxime Ripard wrote: >> Hi, >> >> On Sat, Jun 25, 2016 at 04:50:24PM +0200, Ondřej Jirman wrote: >>> On 25.6.2016 09:02, Maxime Ripard wrote: On Sat, Jun 25, 2016 at 09:02:48AM +0800, Chen-Yu Tsai

Re: [linux-sunxi] Unreliable boot on Mele-A2000

2016-06-17 Thread Michal Suchanek
Hello, On 16 June 2016 at 18:36, Stefan Monnier wrote: >>> But this last step often fails with timeouts or bad CRC checksums or >>> other errors (the exact errors vary from time to time). I'd estimate >>> that the boot succeeds about 1/3 of the time. >> Could you post

[linux-sunxi] Re: [PATCH v3 00/13] sunxi spi fixes

2016-06-17 Thread Michal Suchanek
Hello, On 13 June 2016 at 21:57, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > On Mon, Jun 13, 2016 at 05:46:48PM -0000, Michal Suchanek wrote: >> Hello, >> >> This is update of the sunxi spi patches that should give full-featured SPI >> driver. >

[linux-sunxi] Re: [PATCH v3 00/13] sunxi spi fixes

2016-06-13 Thread Michal Suchanek
Hello, On 13 June 2016 at 21:57, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > On Mon, Jun 13, 2016 at 05:46:48PM -0000, Michal Suchanek wrote: >> Hello, >> >> This is update of the sunxi spi patches that should give full-featured SPI >> driver. >

Re: [linux-sunxi] [PATCH v3 07/13] spi: sunxi: rename constants to match between sun4i and sun6i

2016-06-13 Thread Michal Suchanek
Hello, On 14 June 2016 at 01:31, Julian Calaby <julian.cal...@gmail.com> wrote: > Hi Michal, > > On Tue, Jun 14, 2016 at 3:46 AM, Michal Suchanek <hramr...@gmail.com> wrote: >> SUNXI_CTL_ -> SUNXI_TFR_CTL_ >> SUNXI_TFR_CTL_LMTF -> SUNXI_TFR_CTL_F

Re: [linux-sunxi] [PATCH v3 10/13] spi: sunxi: merge sun4i and sun6i SPI driver

2016-06-13 Thread Michal Suchanek
Hello, On 14 June 2016 at 01:43, Julian Calaby <julian.cal...@gmail.com> wrote: > Hi Michal, > > On Tue, Jun 14, 2016 at 3:46 AM, Michal Suchanek <hramr...@gmail.com> wrote: >> The drivers are very similar and share multiple flaws which needed >> separate fixes f

[linux-sunxi] [PATCH v3 12/13] spi: sunxi: remove CONFIG_SPI_SUN6I

2016-06-13 Thread Michal Suchanek
This is no longer used. Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- arch/arm/configs/multi_v7_defconfig | 1 - arch/arm/configs/sunxi_defconfig| 1 - drivers/spi/Kconfig | 6 -- 3 files changed, 8 deletions(-) diff --git a/arch/arm/configs/multi_v7_def

[linux-sunxi] [PATCH v3 10/13] spi: sunxi: merge sun4i and sun6i SPI driver

2016-06-13 Thread Michal Suchanek
The drivers are very similar and share multiple flaws which needed separate fixes for both drivers. Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- drivers/spi/Kconfig | 8 +- drivers/spi/Makefile| 1 - drivers/spi/spi-sun4i.c | 156 +++-- drivers/spi/spi-s

[linux-sunxi] [PATCH v3 07/13] spi: sunxi: rename constants to match between sun4i and sun6i

2016-06-13 Thread Michal Suchanek
SUNXI_CTL_ -> SUNXI_TFR_CTL_ SUNXI_TFR_CTL_LMTF -> SUNXI_TFR_CTL_FBS SUNXI_TFR_CTL_CS_ACTIVE_LOW -> SUNXI_TFR_CTL_SPOL and some SUNXI_???_CTL_ -> SUNXI_CTL_ for constants migrated to different registers between sun4i and sun6i No functional change. Signed-off-by: Michal Suc

[linux-sunxi] [PATCH v3 11/13] dt: spi: sun4i: merge sun4i and sun6i binding doc

2016-06-13 Thread Michal Suchanek
Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- .../devicetree/bindings/spi/spi-sun4i.txt | 21 ++- .../devicetree/bindings/spi/spi-sun6i.txt | 24 -- 2 files changed, 11 insertions(+), 34 deletions(-) delete mode 100644 Documen

[linux-sunxi] [PATCH v3 09/13] spi: sunxi: use register map

2016-06-13 Thread Michal Suchanek
-by: Michal Suchanek <hramr...@gmail.com> --- drivers/spi/spi-sun4i.c | 227 ++-- drivers/spi/spi-sun6i.c | 243 2 files changed, 322 insertions(+), 148 deletions(-) diff --git a/drivers/spi/spi-sun4i.c b/drive

[linux-sunxi] [PATCH v3 01/13] spi: sunxi: set maximum and minimum speed of SPI master

2016-06-13 Thread Michal Suchanek
maximum speed of the SPI clock as 100MHz and minimum as 3kHz. Setting the SPI clock to out-of-spec values can lock up the SoC. Signed-off-by: Michal Suchanek <hramr...@gmail.com> -- v2: new patch v3: fix constant style --- drivers/spi/spi-sun4i.c | 2 ++ drivers/spi/spi-sun6i.c | 2 ++ 2

[linux-sunxi] [PATCH v3 08/13] spi: sunxi: synchronize whitespace, comments, struct

2016-06-13 Thread Michal Suchanek
Minimize differences between sun4i and sun6i driver without code changes. Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- drivers/spi/spi-sun4i.c | 11 ++- drivers/spi/spi-sun6i.c | 8 +++- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/s

[linux-sunxi] [PATCH v3 05/13] spi: sun6i: update CS handling from spi-sun4i

2016-06-13 Thread Michal Suchanek
While trying to merge sun4i and sun6i spi drivers I noticed the sun4i driver seems to have more reasonable CS handling. Update sun6i to same. Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- drivers/spi/spi-sun6i.c | 22 +++--- 1 file changed, 19 insertions

[linux-sunxi] [PATCH v3 03/13] spi: sun4i: fix FIFO limit

2016-06-13 Thread Michal Suchanek
When testing SPI without DMA I noticed that filling the FIFO on the spi controller causes timeout. Always leave room for one byte in the FIFO. Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- v2: use EMSGSIZE instead of EINVAL v3: fix comment style --- drivers/spi/spi-sun4i.

[linux-sunxi] [PATCH v3 00/13] sunxi spi fixes

2016-06-13 Thread Michal Suchanek
tested on sun6i. Emilio López (1): spi: sun4i: add DMA support Michal Suchanek (12): spi: sunxi: set maximum and minimum speed of SPI master spi: sunxi: fix transfer timeout spi: sun4i: fix FIFO limit spi: sunxi: expose maximum transfer size limit spi: sun6i: update CS handling from spi

Re: [linux-sunxi] spidev on BananaPi R1 not working.

2016-06-05 Thread Michal Suchanek
Hello, On 4 June 2016 at 19:26, 'Eckhardt Ulrich' via linux-sunxi wrote: > Hi, > > I managed to get the SPI devices /dev/spidev0.0 and /dev/spidev0.1 to be > visible using the mainline kernel 4.4.11 on my BananaPi R1 (Allwinner A20) > with the attached patch to

Re: [linux-sunxi] Re: [PATCH 5/5] RFC spi: sun4i: add DMA support

2016-06-05 Thread Michal Suchanek
On 2 June 2016 at 16:26, Mark Brown <broo...@kernel.org> wrote: > On Thu, Jun 02, 2016 at 02:14:26PM +0200, Michal Suchanek wrote: >> On 2 June 2016 at 06:42, Priit Laes <pl...@plaes.org> wrote: >> > On Wed, 2016-06-01 at 20:00 +0200, Maxime Ripard wrote: > >>

Re: [linux-sunxi] Re: [PATCH 5/5] RFC spi: sun4i: add DMA support

2016-06-02 Thread Michal Suchanek
On 2 June 2016 at 06:42, Priit Laes <pl...@plaes.org> wrote: > On Wed, 2016-06-01 at 20:00 +0200, Maxime Ripard wrote: >> Hi, >> >> On Mon, May 30, 2016 at 04:50:16PM +0100, Mark Brown wrote: >> > >> > On Mon, May 30, 2016 at 05:28:10PM +0200, Michal

[linux-sunxi] Re: [PATCH 5/5] RFC spi: sun4i: add DMA support

2016-05-31 Thread Michal Suchanek
On 31 May 2016 at 15:27, Mark Brown <broo...@kernel.org> wrote: > On Tue, May 31, 2016 at 12:44:54PM +0200, Michal Suchanek wrote: >> On 30 May 2016 at 17:50, Mark Brown <broo...@kernel.org> wrote: >> > On Mon, May 30, 2016 at 05:28:10PM +0200, Michal Suchanek wrote

Re: [linux-sunxi] [PATCH 1/5] spi: sunxi: fix transfer timeout

2016-05-31 Thread Michal Suchanek
Hello On 30 May 2016 at 13:23, Mark Brown <broo...@kernel.org> wrote: > On Fri, May 27, 2016 at 03:10:11PM +1000, Julian Calaby wrote: >> On Fri, May 27, 2016 at 3:05 PM, Michal Suchanek <hramr...@gmail.com> wrote: > >> >> Also, should the changes for the dri

[linux-sunxi] Re: [PATCH 5/5] RFC spi: sun4i: add DMA support

2016-05-31 Thread Michal Suchanek
On 30 May 2016 at 17:50, Mark Brown <broo...@kernel.org> wrote: > On Mon, May 30, 2016 at 05:28:10PM +0200, Michal Suchanek wrote: >> On 30 May 2016 at 17:03, Mark Brown <broo...@kernel.org> wrote: > >> > I really don't think it's worth caring too much about cases

[linux-sunxi] Re: [PATCH 5/5] RFC spi: sun4i: add DMA support

2016-05-30 Thread Michal Suchanek
Hello, On 30 May 2016 at 17:03, Mark Brown <broo...@kernel.org> wrote: > On Mon, May 30, 2016 at 02:11:51PM +0200, Geert Uytterhoeven wrote: >> On Mon, May 30, 2016 at 1:26 PM, Mark Brown <broo...@kernel.org> wrote: >> > On Thu, May 26, 2016 at 07:25:25P

[linux-sunxi] Re: [PATCH 3/5] spi: sunxi: expose maximum transfer size limit

2016-05-30 Thread Michal Suchanek
Hello, On 30 May 2016 at 10:37, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > On Thu, May 26, 2016 at 07:25:24PM -0000, Michal Suchanek wrote: >> The sun4i spi hardware can trasfer at most 63 bytes of data without DMA >> support so report the limi

Re: [linux-sunxi] [PATCH 1/5] spi: sunxi: fix transfer timeout

2016-05-26 Thread Michal Suchanek
On 27 May 2016 at 04:05, Julian Calaby <julian.cal...@gmail.com> wrote: > Hi Michal, > > On Fri, May 27, 2016 at 5:25 AM, Michal Suchanek <hramr...@gmail.com> wrote: >> The trasfer timeout is fixed at 1000 ms. Reading a 4Mbyte flash over >> 1MHz SPI bus take

[linux-sunxi] [PATCH 4/5] spi: sunxi: set maximum and minimum speed of SPI master

2016-05-26 Thread Michal Suchanek
. Setting the SPI clock to out-of-spec values can lock up the SoC. Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- drivers/spi/spi-sun4i.c | 2 ++ drivers/spi/spi-sun6i.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/spi/spi-sun4i.c b/drivers/spi/spi-sun4i.c index b

[linux-sunxi] [PATCH 0/5] sunxi spi fixes

2016-05-26 Thread Michal Suchanek
support Michal Suchanek (4): spi: sunxi: fix transfer timeout spi: sun4i: fix FIFO limit spi: sunxi: expose maximum transfer size limit spi: sunxi: set maximum and minimum speed of SPI master drivers/spi/spi-sun4i.c | 186 +--- drivers/spi/spi

[linux-sunxi] [PATCH 3/3] ARM: dts: sun5i: Add spi2 alias on A10s Olinuxino

2016-05-26 Thread Michal Suchanek
spi2 is available on the UEXT connector The bus is named spi2 in the A10s manual and Olinuxino manual so it is pointless to alias it to something else like spi0. Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts | 1 + 1 file chan

[linux-sunxi] [PATCH 1/5] spi: sunxi: fix transfer timeout

2016-05-26 Thread Michal Suchanek
The trasfer timeout is fixed at 1000 ms. Reading a 4Mbyte flash over 1MHz SPI bus takes way longer than that. Calculate the timeout from the actual time the transfer is supposed to take and multiply by 2 for good measure. Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- v2: - fix

[linux-sunxi] [PATCH 3/5] spi: sunxi: expose maximum transfer size limit

2016-05-26 Thread Michal Suchanek
The sun4i spi hardware can trasfer at most 63 bytes of data without DMA support so report the limitation. Same on sun6i. Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- drivers/spi/spi-sun4i.c | 6 ++ drivers/spi/spi-sun6i.c | 6 ++ 2 files changed, 12 insertions(+) diff

[linux-sunxi] [PATCH 2/5] spi: sun4i: fix FIFO limit

2016-05-26 Thread Michal Suchanek
When testing SPI without DMA I noticed that filling the FIFO on the spi controller causes timeout. Always leave room for one byte in the FIFO. Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- v2: use EMSGSIZE instead of EINVAL --- drivers/spi/spi-sun4i.c | 8 ++-- 1 file chan

[linux-sunxi] [PATCH 5/5] RFC spi: sun4i: add DMA support

2016-05-26 Thread Michal Suchanek
From: Emilio López <emi...@elopez.com.ar> This patch adds support for 64 byte or bigger transfers on the sun4i SPI controller. Said transfers will be performed via DMA. Signed-off-by: Emilio López <emi...@elopez.com.ar> Signed-off-by: Michal Suchanek <hramr...@gmail.com> -

[linux-sunxi] [PATCH 2/3] ARM: dts: sun5i: add spi2 on A10s Olinuxino Micro

2016-05-26 Thread Michal Suchanek
spi2 is available on the UEXT connector Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts b/arch/arm/boot/dts/sun5i-a10s-oli

[linux-sunxi] [PATCH] usb: select NOP_USB_XCEIV by drivers that require it

2016-05-26 Thread Michal Suchanek
nse that there is no actual piece of hardware you can point at and say you did not include driver for this so it won't work. So just change all depends on it to select. Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- drivers/usb/chipidea/Kconfig | 3 ++- drivers/usb/musb/Kconfig

[linux-sunxi] [PATCH 1/3] ARM: dts: sun5i: a10s: add spi2 pins

2016-05-26 Thread Michal Suchanek
Used on A10s Olinuxino. Signed-off-by: Michal Suchanek <hramr...@gmail.com> --- arch/arm/boot/dts/sun5i-a10s.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-a10s.dtsi b/arch/arm/boot/dts/sun5i-a10s.dtsi index bddd0de..651837c 100644 ---

Re: [linux-sunxi] A20 NAND BAD block issue

2016-05-24 Thread Michal Suchanek
Hello, On 24 May 2016 at 11:29, Zaahir Khan wrote: > > Hi All, > > We are using customized A20 based on Cubie2 Board. Android 4.2.2 Source > from third party "a20_sdk30". > > Using SK Hynix NAND H27UCG8T2BTR 8GB. > > Board was not booting up, so when tried to re-flash

Re: [linux-sunxi] Stability problems on A20 (lime2)

2016-05-24 Thread Michal Suchanek
On 24 May 2016 at 11:27, Olliver Schinagl <oli...@schinagl.nl> wrote: > Hey Michal, > > On 24-05-16 11:21, Michal Suchanek wrote: >> >> Hello, >> >> 1) built new kernel. locked up by running a spidev test program > > ironically, i do have the spidev mo

Re: [linux-sunxi] Stability problems on A20 (lime2)

2016-05-24 Thread Michal Suchanek
Hello, On 24 May 2016 at 10:09, Olliver Schinagl wrote: > The weirdest thing happend last week however, when in the course of 5 days, > first 8 and then 15 lime2's all crashed within seconds of each-other. Like > clockwork. > > Talking to Olimex, that say they had a

[linux-sunxi] Re: sunxi spi clock problem

2016-05-22 Thread Michal Suchanek
On 22 May 2016 at 18:41, Michal Suchanek <hramr...@gmail.com> wrote: > Hello, > > The debugfs output shows that spi2 is reparented under pll5 and the > pll5 frequency remains unchanged. > > The request to get a 2GHz clock for spi is fulfilled on best-effort > basis by g

[linux-sunxi] Re: sunxi spi clock problem

2016-05-22 Thread Michal Suchanek
, Chen-Yu Tsai <w...@csie.org> wrote: > Hi, > > On Sun, May 22, 2016 at 10:18 PM, Michal Suchanek <hramr...@gmail.com> wrote: >> Hello, >> >> I tried running a spidev test program on linux 4.6 and I uncovered a >> problem with the sunxi clk framework. &

[linux-sunxi] sunxi spi clock problem

2016-05-22 Thread Michal Suchanek
Hello, I tried running a spidev test program on linux 4.6 and I uncovered a problem with the sunxi clk framework. Basically the system would lock up after running the test program. Digging deeper I found that it locks up with commit [47284e3e0f3c427c93f8583549b6c938e8a18015] spi: sun4i: allow

Re: [linux-sunxi] Re: [PATCH 4/9] spi: sun4i: add DMA support

2016-05-16 Thread Michal Suchanek
On 20 August 2015 at 16:56, Maxime Ripard wrote: >> + /* Enable Dedicated DMA requests */ >> + reg = sun4i_spi_read(sspi, SUN4I_CTL_REG); >> + reg |= SUN4I_CTL_DMAMC_DEDICATED; >> + sun4i_spi_write(sspi,

Re: [linux-sunxi] All Allwinner kernels rootable with an echo

2016-05-10 Thread Michal Suchanek
On 10 May 2016 at 10:07, Benjamin Henrion wrote: > All Allwinner kernels rootable with an echo: > > https://olimex.wordpress.com/2016/05/10/how-to-root-any-allwinner-device-running-android-and-most-of-the-chinese-pi-clones-which-bet-on-allwinner-android-linux-kernel/ > > Insane!

Re: [linux-sunxi] [PATCH] musb: sunxi: Ignore VBus errors in host-only mode

2016-05-04 Thread Michal Suchanek
On 14 September 2015 at 22:25, Maxime Ripard wrote: > On Thu, Sep 10, 2015 at 08:38:38PM +0200, Hans de Goede wrote: >> Hi, >> >> On 10-09-15 20:30, Maxime Ripard wrote: >> >On Thu, Sep 10, 2015 at 08:23:23PM +0200, Hans de Goede wrote: >> >>Hi, >> >> >> >>On

Re: [linux-sunxi] Re: random decryption errors with sun4i-ss on dm-crypt

2016-03-14 Thread Michal Suchanek
Hello, On 14 March 2016 at 07:58, Corentin LABBE wrote: > Le 13/03/2016 23:35, Timo S. a écrit : >> Hi Corentin, >> >> Am 13.03.2016 17:32 schrieb "Corentin LABBE" > >: >>> >>> Le 13/03/2016 16:21,

Re: [linux-sunxi] reason for Allwinner SoC specific pinctrl drivers?

2016-01-05 Thread Michal Suchanek
On 5 January 2016 at 13:05, Andre Przywara <andre.przyw...@arm.com> wrote: > Hi Michal, > > thanks for your input! > > On 04/01/16 21:36, Michal Suchanek wrote: >> Hello, >> >> On 4 January 2016 at 18:27, Vishnu Patekar <vishnupatekar

Re: [linux-sunxi] Re: [PATCH v2 1/3] reset: Add shared reset_control_[de]assert variants

2016-01-04 Thread Michal Suchanek
On 4 January 2016 at 21:39, Philipp Zabel wrote: > Am Samstag, den 19.12.2015, 11:55 +0100 schrieb Hans de Goede: >> On 18-12-15 12:08, Maxime Ripard wrote: >> > - If the reset line is in a !exclusive use with more than 1 user, >> >the refcount is modified

Re: [linux-sunxi] reason for Allwinner SoC specific pinctrl drivers?

2016-01-04 Thread Michal Suchanek
Hello, On 4 January 2016 at 18:27, Vishnu Patekar wrote: > Hello Andre, > This is something we can do for future SOCs. > > On 4 Jan 2016 19:02, "Andre Przywara" wrote: >> >> Hi, >> >> while looking at the Allwinner A64 SoC support, I was

Re: [linux-sunxi] [PATCH 1/2] spi: sun4i: add DMA support

2015-12-07 Thread Michal Suchanek
On 7 December 2015 at 16:46, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > Hi, > > On Sat, Dec 05, 2015 at 07:01:36PM +0100, Michal Suchanek wrote: >> Hello, >> >> On 30 May 2014 at 22:27, Emilio López <emi...@elopez.com.ar> wrote: >> &g

Re: [linux-sunxi] [PATCH 1/2] spi: sun4i: add DMA support

2015-12-05 Thread Michal Suchanek
Hello, On 30 May 2014 at 22:27, Emilio López <emi...@elopez.com.ar> wrote: > This patch adds support for 64 byte or bigger transfers on the > sun4i SPI controller. Said transfers will be performed via DMA. > > Signed-off-by: Emilio López <emi...@elopez.com.ar> > Tested

[linux-sunxi] [PATCH 9/9] ARM: dts: sunxi: Add SPI aliases on A10s Olinuxino.

2015-08-20 Thread Michal Suchanek
SPI aliases give nicer spidev device node names. Signed-off-by: Michal Suchanek hramr...@gmail.com --- arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts b/arch/arm/boot/dts/sun5i-a10s

[linux-sunxi] [PATCH 1/9] spi: sunxi: fix transfer timeout

2015-08-20 Thread Michal Suchanek
The trasfer timeout is fixed at 1000 ms. Reading a 4Mbyte flash over 1MHz SPI bus takes way longer than that. Calculate the timeout from the actual time the transfer is supposed to take and multiply by 2 for good measure. Signed-off-by: Michal Suchanek hramr...@gmail.com --- drivers/spi/spi

[linux-sunxi] [PATCH 7/9] ARM: dts: sun5i: add SPI pins on A13 and A10s

2015-08-20 Thread Michal Suchanek
According to datasheet some pins are available on A10s only while others are shared with A13. Signed-off-by: Michal Suchanek hramr...@gmail.com --- This time add all spi pins and make the CS pins separate as is seen with current sun4i DTs --- arch/arm/boot/dts/sun5i-a10s.dtsi | 21

[linux-sunxi] [PATCH 3/9] spi: sunxi: check that transfer speed is non-zero

2015-08-20 Thread Michal Suchanek
When the maximum transfer speed is not set for a SPI slave the value remains 0 and the code in sunxi SPI divides by it. Use an arbitrary speed instead in that case. Signed-off-by: Michal Suchanek hramr...@gmail.com --- drivers/spi/spi-sun4i.c | 15 ++- drivers/spi/spi-sun6i.c | 15

[linux-sunxi] [PATCH 6/9] ARM: dts: sunxi: add spi aliases on cubieboards

2015-08-20 Thread Michal Suchanek
Aliases give nicer device node names. Signed-off-by: Michal Suchanek hramr...@gmail.com --- arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 1 + arch/arm/boot/dts/sun7i-a20-cubieboard2.dts | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts b/arch/arm

[linux-sunxi] [PATCH 8/9] ARM: dts: sunxi: A10s Olinuxino Micro: add spi2.

2015-08-20 Thread Michal Suchanek
spi2 is exposed on the UEXT connector. Signed-off-by: Michal Suchanek hramr...@gmail.com --- arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts b/arch/arm/boot/dts/sun5i-a10s-olinuxino

[linux-sunxi] [PATCH 0/9] spi/sunxi patches

2015-08-20 Thread Michal Suchanek
support Michal Suchanek (8): spi: sunxi: fix transfer timeout spi: sun4i: fix FIFO limit spi: sunxi: check that transfer speed is non-zero ARM: dts: sun7i: cubieboard2: Enable SPI0 ARM: dts: sunxi: add spi aliases on cubieboards ARM: dts: sun5i: add SPI pins on A13 and A10s ARM: dts

[linux-sunxi] [PATCH 5/9] ARM: dts: sun7i: cubieboard2: Enable SPI0

2015-08-20 Thread Michal Suchanek
Only SPI0 is enabled. The schematic denotes it as the only SPI bus. Other SPI pins are reserved for different peripherals. Signed-off-by: Michal Suchanek hramr...@gmail.com --- arch/arm/boot/dts/sun7i-a20-cubieboard2.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot

[linux-sunxi] [PATCH 2/9] spi: sun4i: fix FIFO limit

2015-08-20 Thread Michal Suchanek
When testing SPI without DMA I noticed that filling the FIFO on the spi controller causes timeout. Always leave room for one byte in the FIFO. Signed-off-by: Michal Suchanek hramr...@gmail.com --- drivers/spi/spi-sun4i.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

Re: [linux-sunxi] Re: [PATCH RESEND v5] ARM: sun4i: spi: Allow transfers larger than FIFO size

2015-08-20 Thread Michal Suchanek
Hello, On 14 August 2015 at 01:08, Alex G. mr.nuke...@gmail.com wrote: On 08/10/2015 07:54 AM, Michal Suchanek wrote: On 10 August 2015 at 15:44, Olliver Schinagl oliver+l...@schinagl.nl wrote: Hey Michal, As without this patch, we cannot use something like mmc-spi due to the restriction

[linux-sunxi] Re: [PATCH 3/9] spi: sunxi: check that transfer speed is non-zero

2015-08-20 Thread Michal Suchanek
On 20 August 2015 at 16:48, Maxime Ripard maxime.rip...@free-electrons.com wrote: On Thu, Aug 20, 2015 at 02:19:46PM -, Michal Suchanek wrote: When the maximum transfer speed is not set for a SPI slave the value remains 0 and the code in sunxi SPI divides by it. Use an arbitrary speed

[linux-sunxi] Re: [PATCH 2/3] mmc: dw_mmc: simplify the SDMMC_CLKEN_LOW_PWR logic

2015-08-17 Thread Michal Suchanek
Hello, On 17 August 2015 at 16:42, Alim Akhtar alim.akh...@gmail.com wrote: HI On Mon, Aug 17, 2015 at 4:56 PM, Jaehoon Chung jh80.ch...@samsung.com wrote: On 08/17/2015 02:52 PM, Michal Suchanek wrote: Hello, On 17 August 2015 at 03:55, Jaehoon Chung jh80.ch...@samsung.com wrote: Hi

Re: [linux-sunxi] Re: ARM: sunxi: Experiences NAND flash

2015-08-17 Thread Michal Suchanek
Hello On 17 August 2015 at 09:34, Boris Brezillon boris.brezil...@free-electrons.com wrote: Hi Oliver, Sorry for the late reply (I was in vacation for the last 2 weeks) On Tue, 11 Aug 2015 14:16:52 +0200 Olliver Schinagl oliver+l...@schinagl.nl wrote: Now I know that the mtd stuff is

[linux-sunxi] Re: [PATCH 2/3] mmc: dw_mmc: simplify the SDMMC_CLKEN_LOW_PWR logic

2015-08-16 Thread Michal Suchanek
Hello, On 17 August 2015 at 03:55, Jaehoon Chung jh80.ch...@samsung.com wrote: Hi, Michal. On 08/12/2015 09:23 PM, Michal Suchanek wrote: The driver has open-coded test for SDIO cards. Use the mmc core provided MMC_QUIRK_BROKEN_CLK_GATING flag instead. Did you use the clock-gating for SDIO

[linux-sunxi] [PATCH 2/3] mmc: dw_mmc: simplify the SDMMC_CLKEN_LOW_PWR logic

2015-08-12 Thread Michal Suchanek
The driver has open-coded test for SDIO cards. Use the mmc core provided MMC_QUIRK_BROKEN_CLK_GATING flag instead. As a bonus this may enable clock gating on SDIO cards that are known to work with it. Signed-off-by: Michal Suchanek hramr...@gmail.com --- drivers/mmc/host/dw_mmc.c | 33

[linux-sunxi] [PATCH 3/3] mmc: sunxi: use controller automatic clock gating.

2015-08-12 Thread Michal Suchanek
When core does not set the MMC_QUIRK_BROKEN_CLK_GATING flag enable automatic hardware controlled clock gating on the mmc interface. Signed-off-by: Michal Suchanek hramr...@gmail.com --- drivers/mmc/host/sunxi-mmc.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers

[linux-sunxi] [PATCH resend 1/3] mmc: sunxi: fix timeout in sunxi_mmc_oclk_onoff

2015-08-12 Thread michal . suchanek
clock gating enabled nonetheless. This patch sets the timeout to 750ms and adds debug prints which show how long enabling/disabling the clock took so more data can be collected from other systems. Signed-off-by: Michal Suchanek hramr...@gmail.com -- - fix formatting --- drivers/mmc/host/sunxi

Re: [linux-sunxi] MMC clock gating broken on a20

2015-08-12 Thread Michal Suchanek
On 12 August 2015 at 13:55, Olliver Schinagl oliver+l...@schinagl.nl wrote: Actually, I've reverted hans's mmc: sunxi: Don't start commands while the card is busy and that makes it disapear as well. So it looks like that patch triggers the aggressiveness more? It probably inserts delays

[linux-sunxi] [PATCH 0/3] misc MMC fixes

2015-08-12 Thread Michal Suchanek
there either. Thanks Michal Michal Suchanek (3): mmc: sunxi: fix timeout in sunxi_mmc_oclk_onoff mmc: dw_mmc: simplify the SDMMC_CLKEN_LOW_PWR logic mmc: sunxi: use controller automatic clock gating. drivers/mmc/host/dw_mmc.c| 33 +++-- drivers/mmc/host/sunxi-mmc.c

Re: [linux-sunxi] MMC clock gating broken on a20

2015-08-12 Thread Michal Suchanek
Hello, On 12 August 2015 at 13:40, Olliver Schinagl oliver+l...@schinagl.nl wrote: Hey all, I'm noticing the exact same thing using hans's sunxi-wip from a few days ago. I did see a patch from you about this very issue I belive mmc: sunxi: fix timeout in sunxi_mmc_oclk_onoff but can't

[linux-sunxi] [PATCH v3 1/3] mmc: sunxi: fix timeout in sunxi_mmc_oclk_onoff

2015-08-12 Thread Michal Suchanek
clock gating enabled nonetheless. This patch sets the timeout to 750ms. Signed-off-by: Michal Suchanek hramr...@gmail.com --- v3 - remove debug message v2 - fix formatting --- drivers/mmc/host/sunxi-mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sunxi

Re: [linux-sunxi] [PATCH 3/3] mmc: sunxi: use controller automatic clock gating.

2015-08-12 Thread Michal Suchanek
On 12 August 2015 at 15:19, Olliver Schinagl oliver+l...@schinagl.nl wrote: Hey, On 12-08-15 14:35, Hans de Goede wrote: Hi, On 12-08-15 14:23, Michal Suchanek wrote: When core does not set the MMC_QUIRK_BROKEN_CLK_GATING flag enable automatic hardware controlled clock gating on the mmc

Re: [linux-sunxi] Re: [PATCH RESEND v5] ARM: sun4i: spi: Allow transfers larger than FIFO size

2015-08-10 Thread Michal Suchanek
On 10 August 2015 at 15:44, Olliver Schinagl oliver+l...@schinagl.nl wrote: Hey Michal, On 10-08-15 13:07, Michal Suchanek wrote: Hello, On 08-08-15 20:45, Olliver Schinagl wrote: Hey all, Alexandru Gagniuc mr.nuke.me@... writes: SPI transfers were limited to one FIFO depth, which

Re: [linux-sunxi] [PATCH v2 1/3] ARM: dts: sun5i: Enable USB DRC on A10s OLinuxIno Micro

2015-07-31 Thread Michal Suchanek
Hello, On 31 July 2015 at 14:53, Hans de Goede hdego...@redhat.com wrote: Enable the otg/drc usb controller on the A10s OLinuxIno Micro. Note the A10s OlinuxIno Micro always has some voltage on its otg power pin, even if the usb-vbus0-regulator is disabled, the leaked voltage is enough to

[linux-sunxi] Re: [PATCH 4/4] mtd: nand: print full chip ID

2015-07-30 Thread Michal Suchanek
Hello, On 30 July 2015 at 09:17, Boris Brezillon boris.brezil...@free-electrons.com wrote: Hans, Michal, On Wed, 29 Jul 2015 19:53:54 +0200 Hans de Goede hdego...@redhat.com wrote: From: Michal Suchanek hramr...@gmail.com Full chip ID is printed so user has data to paste from syslog

Re: [linux-sunxi] [PATCH 4/4] mtd: nand: print full chip ID

2015-07-29 Thread Michal Suchanek
On 30 July 2015 at 01:37, Julian Calaby julian.cal...@gmail.com wrote: Hi Hans, Michal, On Thu, Jul 30, 2015 at 3:53 AM, Hans de Goede hdego...@redhat.com wrote: From: Michal Suchanek hramr...@gmail.com Full chip ID is printed so user has data to paste from syslog in case of chip

[linux-sunxi] Re: [PATCH v2 2/2] mfd: ax20x: Add axp152 support

2015-07-10 Thread Michal Suchanek
Hello, I see missing 'p' in axp20x in the subject u.u Please fix before merging this anywhere. Thanks Michal -- You received this message because you are subscribed to the Google Groups linux-sunxi group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [linux-sunxi] Further Allwinner misbehaviour.

2015-06-25 Thread Michal Suchanek
Hello, On 25 June 2015 at 11:56, 'Simos Xenitellis' via linux-sunxi linux-sunxi@googlegroups.com wrote: The way I see the whole situation is this: It is true that Allwinner did not make effort over the years for mainline Linux kernel support. Whatever support is there for the A10, A13, A20,

  1   2   3   4   >