[linux-sunxi] Re: [PATCH] clk: sunxi: Extend the simple gates and handle the Allwinner H3

2015-12-07 Thread Maxime Ripard
Hi Jean-Francois, On Tue, Dec 08, 2015 at 07:42:26AM +0100, Jean-Francois Moine wrote: > On Mon, 7 Dec 2015 08:31:02 -0600 > Rob Herring wrote: > > > On Sun, Dec 06, 2015 at 10:04:12AM +0100, Jean-Francois Moine wrote: > > > The H3 has a clock gate definition similar to the

[linux-sunxi] Re: [PATCH] clk: sunxi: Extend the simple gates and handle the Allwinner H3

2015-12-07 Thread Jean-Francois Moine
On Mon, 7 Dec 2015 08:31:02 -0600 Rob Herring wrote: > On Sun, Dec 06, 2015 at 10:04:12AM +0100, Jean-Francois Moine wrote: > > The H3 has a clock gate definition similar to the other Allwinner SoCs, > > but with a different parent clock for each single gate. > > > > Adding the

Re: [linux-sunxi] [PATCH 01/23] mtd: kill the ecclayout->oobavail field

2015-12-07 Thread Priit Laes
On Mon, 2015-12-07 at 23:25 +0100, Boris Brezillon wrote: > ecclayout->oobavail is just redundant with the mtd->oobavail field. > Moreover, it prevents static const definition of ecc layouts since > the > NAND framework is calculating this value based on the ecclayout- > >oobfree > field. > >

Re: [linux-sunxi] clk_out_a usage in mainline

2015-12-07 Thread Maxime Ripard
Hi, On Mon, Dec 07, 2015 at 12:49:42AM +0100, Danny Milosavljevic wrote: > Hi Chen-Yu, > > indeed, it works now. > > In case someone else wants to use it, it works like this: > > in the dts file I put: > > / { > tss463aa { > compatible = "atmel,tss463aa"; >

Re: [linux-sunxi] [PATCH v4] sun4i-codec: add inputs

2015-12-07 Thread Maxime Ripard
Hi Danny, On Sun, Dec 06, 2015 at 07:53:07PM +0100, Danny Milosavljevic wrote: > Hi, > > this is the fourth version of the patch that adds inputs to sun4i-codec. > > The inputs added are: > - FM-In Left and Right > - Line-In Left and Right > - Mic1-In > - Mic2-In > > Changes compared to v3

[linux-sunxi] Re: [PATCH] clk: sunxi: Extend the simple gates and handle the Allwinner H3

2015-12-07 Thread Rob Herring
On Sun, Dec 06, 2015 at 10:04:12AM +0100, Jean-Francois Moine wrote: > The H3 has a clock gate definition similar to the other Allwinner SoCs, > but with a different parent clock for each single gate. > > Adding the names of the parent clocks in both the source and output clocks > permits the use

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

2015-12-07 Thread Maxime Ripard
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 wrote: > > This patch adds support for 64 byte or bigger transfers on the > > sun4i SPI controller. Said transfers will be performed via DMA. > > > >

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 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 wrote: >> > This patch adds support for 64 byte or bigger

[linux-sunxi] Re: [PATCH 2/2] input: gt801_2plus1 - Add initial support for Goodix GT801 2+1

2015-12-07 Thread Julia Lawall
https://github.com/0day-ci/linux/commits/Priit-Laes/input-Driver-for-Goodix-GT801-2-1-touchscreen/20151207-152831 > base: https://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux.git > sunxi/for-next > :: branch date: 46 minutes ago > :: commit date: 46 minutes a

[linux-sunxi] Re: [PATCH v5 3/4] ARM: dts: sunxi: Add Allwinner H3 DTSI

2015-12-07 Thread Jean-Francois Moine
On Fri, 4 Dec 2015 22:24:42 +0100 Jens Kuske wrote: > The Allwinner H3 is a home entertainment system oriented SoC with > four Cortex-A7 cores and a Mali-400MP2 GPU. > > Signed-off-by: Jens Kuske > --- > arch/arm/boot/dts/sun8i-h3.dtsi | 497 >

[linux-sunxi] Re: [PATCH v5] clk: sunxi: Add CLK_OF_DECLARE support for sun8i-a23-apb0-clk driver

2015-12-07 Thread Maxime Ripard
Hi, On Thu, Dec 03, 2015 at 03:05:30PM +0800, Chen-Yu Tsai wrote: > The APBS clock on sun9i is the same as the APB0 clock on sun8i. With > sun9i we are supporting the PRCM clocks by using CLK_OF_DECLARE, > instead of through a PRCM mfd device and subdevices for each clock > and reset control. As

[linux-sunxi] Re: [PATCH resend 1/6] clk: sunxi: Add DRAM gates support for sun4i-a10

2015-12-07 Thread Maxime Ripard
On Sat, Dec 05, 2015 at 09:16:42PM +0800, Chen-Yu Tsai wrote: > The A10/A20 share the same set of DRAM clock gates, which controls > direct memory access for some peripherals. > > On the A10, bit 15 controls the system's DRAM clock output (possibly > to the DRAM chips), which we need to keep on.

[linux-sunxi] Re: [PATCH 2/2] input: gt801_2plus1 - Add initial support for Goodix GT801 2+1

2015-12-07 Thread Priit Laes
gt; > > > [auto build test WARNING on mripard/sunxi/for-next] > > [also build test WARNING on next-20151203] > > [cannot apply to input/next v4.4-rc4] > > > > url:    https://github.com/0day-ci/linux/commits/Priit-Laes/input-D > river-for-Goodix-GT801-2-1-touchsc

[linux-sunxi] Re: [PATCH resend 3/6] ARM: dts: sun4i: Add DRAM gates

2015-12-07 Thread Maxime Ripard
On Sat, Dec 05, 2015 at 09:16:44PM +0800, Chen-Yu Tsai wrote: > The DRAM gates controls direct memory access for some peripherals. > These peripherals include the display pipeline, so add the required > gates to the simplefb nodes as well. > > Signed-off-by: Chen-Yu Tsai Applied,

[linux-sunxi] Re: [PATCH v5 2/4] pinctrl: sunxi: Add H3 PIO controller support

2015-12-07 Thread Maxime Ripard
On Fri, Dec 04, 2015 at 10:24:41PM +0100, Jens Kuske wrote: > The H3 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: Jens Kuske Acked-by: Maxime Ripard

[linux-sunxi] Re: [PATCH resend 5/6] ARM: dts: sun7i: Add DRAM gates

2015-12-07 Thread Maxime Ripard
On Sat, Dec 05, 2015 at 09:16:46PM +0800, Chen-Yu Tsai wrote: > The DRAM gates controls direct memory access for some peripherals. > These peripherals include the display pipeline, so add the required > gates to the simplefb nodes as well. > > Signed-off-by: Chen-Yu Tsai Applied,

Re: [linux-sunxi] Requesting Help on a USD15, Allwinner Quadcore 1.2Ghz 64-bit A53 Hardware

2015-12-07 Thread shelandy
Hi KH: I think what Luc said is very true. The efficiency and power of open source community in helping developing a new thing depends on how open the hardware upstream is toward to the spec of the hardware. I am not currently working on Ubuntu arm port, but I am woring on other Linux (e.g.,

[linux-sunxi] Re: [PATCH v5 7/9] sunxi-tools: implement "write-with-progress" and "multiwrite"

2015-12-07 Thread Bernhard Nortmann
Am 30.11.2015 um 12:31 schrieb Siarhei Siamashka: What if 'count' is much larger than 'argc' here? The revised file_upload() now takes care of it, and will error out in that case. Regards, B. Nortmann -- You received this message because you are subscribed to the Google Groups

[linux-sunxi] Re: [PATCH v5 9/9] sunxi-tools: support updating the caption for "dialog --gauge"

2015-12-07 Thread Bernhard Nortmann
Am 30.11.2015 um 12:32 schrieb Siarhei Siamashka: Thanks, this looks good. Just the description of this new command is missing in the help message text (when the sunxi-fel tool is run without any arguments). -- You received this message because you are subscribed to the Google Groups

[linux-sunxi] Re: [PATCH v5 6/9] sunxi-tools: Add file_size() and factor out a reusable file_upload()

2015-12-07 Thread Bernhard Nortmann
Am 30.11.2015 um 12:30 schrieb Siarhei Siamashka: What if "name" is, for example, a directory instead of a file? [...] If the file does not exist, what is the "sunxi-fel" tool supposed to do? Do we want to silently ignore this? Agreed. That was too much on the "quick and dirty side". I've

[linux-sunxi] Re: [PATCH v5 0/8] sunxi-tools: support progress display for FEL utility

2015-12-07 Thread Bernhard Nortmann
Hi Siarhei! Am 30.11.2015 um 12:44 schrieb Siarhei Siamashka: Hello, I think that patches 1-5 can be pushed to github, even though I'm not completely happy about certain aspects of them. The patches 6-9 may need some additional fixes. Oh, by the way. The "sunxi-tools:" prefix in the commit

[linux-sunxi] Re: [PATCH v5 8/9] sunxi-tools: support FEL progress gauge via dialog utility

2015-12-07 Thread Bernhard Nortmann
Am 30.11.2015 um 12:32 schrieb Siarhei Siamashka: Don't we have a redundant code duplication here (copied from the "multiwrite" command implementation)? If I understand it correctly, only the progress callback function is different in all these implementations. Yup. That's what the new

[linux-sunxi] Re: [PATCH v5 3/4] ARM: dts: sunxi: Add Allwinner H3 DTSI

2015-12-07 Thread Jens Kuske
On 07/12/15 09:12, Jean-Francois Moine wrote: > On Fri, 4 Dec 2015 22:24:42 +0100 > Jens Kuske wrote: > >> The Allwinner H3 is a home entertainment system oriented SoC with >> four Cortex-A7 cores and a Mali-400MP2 GPU. >> >> Signed-off-by: Jens Kuske

Re: [linux-sunxi] [PATCH resend 2/6] clk: sunxi: Add VE (Video Engine) module clock driver for sun[457]i

2015-12-07 Thread Jens Kuske
On 05/12/15 14:16, Chen-Yu Tsai wrote: > The video engine has its own special module clock, consisting of a clock > gate, configurable dividers, and a reset control. > Hi, I've tested these patches on A20, everything works so far. I only read some bits from a random bitstream, so nothing fancy

[linux-sunxi] [PATCH 02/23] mtd: inftl: kill unused oobinfo field

2015-12-07 Thread Boris Brezillon
Signed-off-by: Boris Brezillon --- include/linux/mtd/inftl.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/mtd/inftl.h b/include/linux/mtd/inftl.h index 02cd5f9..8255118 100644 --- a/include/linux/mtd/inftl.h +++ b/include/linux/mtd/inftl.h

[linux-sunxi] [PATCH 01/23] mtd: kill the ecclayout->oobavail field

2015-12-07 Thread Boris Brezillon
ecclayout->oobavail is just redundant with the mtd->oobavail field. Moreover, it prevents static const definition of ecc layouts since the NAND framework is calculating this value based on the ecclayout->oobfree field. Signed-off-by: Boris Brezillon ---

[linux-sunxi] [PATCH 03/23] mtd: nftl: kill unused oobinfo field

2015-12-07 Thread Boris Brezillon
Signed-off-by: Boris Brezillon --- include/linux/mtd/nftl.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/mtd/nftl.h b/include/linux/mtd/nftl.h index b059629..044daa0 100644 --- a/include/linux/mtd/nftl.h +++ b/include/linux/mtd/nftl.h @@

[linux-sunxi] [PATCH 00/23] mtd: rework ECC layout definition

2015-12-07 Thread Boris Brezillon
Hello, This patchset aims at getting rid of the nand_ecclayout limitations. struct nand_ecclayout is defining fixed eccpos and oobfree arrays which can only be increased by modifying the MTD_MAX_ECCPOS_ENTRIES_LARGE and MTD_MAX_OOBFREE_ENTRIES_LARGE macros. This approach forces us to modify the

[linux-sunxi] [PATCH 04/23] mtd: nand: s3c2410: kill the ->ecc_layout field

2015-12-07 Thread Boris Brezillon
The s3c2410 is allowing board data to overload the default ECC layout defined inside the driver, but this feature is not used by board specific definitions. Kill this field so that we can easily move to a model where ecclayout are dynamically allocated by the NAND controller driver.

[linux-sunxi] [PATCH 08/23] mtd: nand: lpc32xx_mlc: fix ecc.size

2015-12-07 Thread Boris Brezillon
According to the ECC layout description the actual ecc.size is 512 bytes and not mtd->writesize. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/lpc32xx_mlc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[linux-sunxi] [PATCH 10/23] mtd: nand: simplify nand_bch_init() usage

2015-12-07 Thread Boris Brezillon
nand_bch_init() requires several arguments which could directly be deduced from the mtd device. Get rid of those useless parameters. nand_bch_init() is also requiring the caller to provide a proper eccbytes value, while this value could be deduced from the ecc.size and ecc.strength value.

[linux-sunxi] [PATCH 07/23] staging: mt29f_spinand: kill unused ecclayout field

2015-12-07 Thread Boris Brezillon
The spinand_info struct embeds a pointer to an ecclayout definition, but this field is never used in the mt29f driver. Signed-off-by: Boris Brezillon --- drivers/staging/mt29f_spinand/mt29f_spinand.h | 1 - 1 file changed, 1 deletion(-) diff --git

[linux-sunxi] [PATCH 22/23] mtd: nand: kill layout field

2015-12-07 Thread Boris Brezillon
Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 8 drivers/mtd/nand/nand_bch.c | 9 - include/linux/mtd/nand.h | 1 - 3 files changed, 18 deletions(-) diff --git a/drivers/mtd/nand/nand_base.c

[linux-sunxi] [PATCH 16/23] mtd: docg3: switch to mtd_ooblayout_ops

2015-12-07 Thread Boris Brezillon
Signed-off-by: Boris Brezillon --- drivers/mtd/devices/docg3.c | 34 +- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c index 6b516e1..7463dd8 100644 ---

[linux-sunxi] [PATCH 14/23] mtd: use mtd_set_ecclayout() where appropriate

2015-12-07 Thread Boris Brezillon
Use the mtd_set_ecclayout() helper instead of directly assigning the mtd->ecclayout field. Signed-off-by: Boris Brezillon --- drivers/mtd/devices/docg3.c| 2 +- drivers/mtd/mtdconcat.c| 2 +- drivers/mtd/mtdpart.c | 2 +-

[linux-sunxi] [PATCH 13/23] mtd: add mtd_set_ecclayout() helper function

2015-12-07 Thread Boris Brezillon
Add an mtd_set_ecclayout() helper function to avoid direct accesses to the mtd->ecclayout field. This will ease future refactor of ECC layout definition. Signed-off-by: Boris Brezillon --- include/linux/mtd/mtd.h | 6 ++ 1 file changed, 6 insertions(+)

[linux-sunxi] [PATCH 12/23] mtd: use mtd_eccpos() and mtd_oobfree() where appropriate

2015-12-07 Thread Boris Brezillon
The mtd_eccpos(), mtd_oobfree() and mtd_eccbytes() helper functions have been added to avoid direct accesses to the ecclayout, and thus allow for future rework. Use these helpers in all places where the oobfree[] and eccpos[] arrays are referenced. Signed-off-by: Boris Brezillon

[linux-sunxi] [PATCH 17/23] mtd: nand: implement the default mtd_ooblayout_ops

2015-12-07 Thread Boris Brezillon
Replace the default nand_ecclayout definitions for large and small page devices with the equivalent mtd_ooblayout_ops. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 138 +++ include/linux/mtd/nand.h

[linux-sunxi] [PATCH 21/23] staging: mt29f_spinand: switch to mtd_ooblayout_ops

2015-12-07 Thread Boris Brezillon
Signed-off-by: Boris Brezillon --- drivers/staging/mt29f_spinand/mt29f_spinand.c | 44 --- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/drivers/staging/mt29f_spinand/mt29f_spinand.c

[linux-sunxi] [PATCH 20/23] mtd: onenand: switch to mtd_ooblayout_ops

2015-12-07 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Modify the onenand drivers to switch to this approach. Signed-off-by: Boris Brezillon --- drivers/mtd/onenand/onenand_base.c | 144

[linux-sunxi] [PATCH 19/23] mtd: nand: switch all drivers to mtd_ooblayout_ops

2015-12-07 Thread Boris Brezillon
Implementing the mtd_ooblayout_ops interface is the new way of exposing ECC/OOB layout to MTD users. Modify all NAND drivers to switch to this approach. Signed-off-by: Boris Brezillon --- This commit is a collection of commits that have been squashed to into

[linux-sunxi] [PATCH 11/23] mtd: add mtd_eccpos(), mtd_oobfree() and mtd_eccbytes() helper functions

2015-12-07 Thread Boris Brezillon
In order to make the ecclayout definition completely dynamic we need to rework the way these different ECC layouts are defined and iterated. Create the mtd_eccpos(), mtd_oobfree() and mtd_eccbytes() helpers to hide ecclayout definition internals to their users. Signed-off-by: Boris Brezillon

[linux-sunxi] [PATCH 18/23] mtd: nand: bch: switch to nand_ecclayout_pos

2015-12-07 Thread Boris Brezillon
Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_bch.c | 33 +++-- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/drivers/mtd/nand/nand_bch.c b/drivers/mtd/nand/nand_bch.c index 9cff544..2937b49 100644 ---

[linux-sunxi] [PATCH 23/23] mtd: kill the nand_ecclayout struct

2015-12-07 Thread Boris Brezillon
Now that all mtd drivers have moved to the mtd_ooblayout_ops model we can safely remove the struct nand_ecclayout definition, and all the remaining places where it was still used. Signed-off-by: Boris Brezillon --- drivers/mtd/mtdchar.c | 12 ++--

[linux-sunxi] [PATCH 15/23] mtd: create an mtd_ooblayout_ops struct to ease ECC layout definition

2015-12-07 Thread Boris Brezillon
ECC layout definitions are currently exposed using the nand_ecclayout struct which embeds oobfree and eccpos arrays with predefined size. This approach was acceptable when the NAND were providing relatively small OOB regions, but MLC and TLC now provide OOB regions of several hundreds of bytes,

[linux-sunxi] Re: [PATCH 12/23] mtd: use mtd_eccpos() and mtd_oobfree() where appropriate

2015-12-07 Thread kbuild test robot
Hi Boris, [auto build test ERROR on next-20151207] [cannot apply to staging/staging-testing v4.4-rc4 v4.4-rc3 v4.4-rc2 v4.4-rc4] url: https://github.com/0day-ci/linux/commits/Boris-Brezillon/mtd-rework-ECC-layout-definition/20151208-063127 config: i386-randconfig-x006-12070758 (attached

[linux-sunxi] Re: [PATCH 22/23] mtd: nand: kill layout field

2015-12-07 Thread kbuild test robot
Hi Boris, [auto build test ERROR on next-20151207] [cannot apply to staging/staging-testing v4.4-rc4 v4.4-rc3 v4.4-rc2 v4.4-rc4] url: https://github.com/0day-ci/linux/commits/Boris-Brezillon/mtd-rework-ECC-layout-definition/20151208-063127 config: powerpc-allyesconfig (attached as .config

[linux-sunxi] Re: [PATCH 12/23] mtd: use mtd_eccpos() and mtd_oobfree() where appropriate

2015-12-07 Thread kbuild test robot
Hi Boris, [auto build test WARNING on next-20151207] [cannot apply to staging/staging-testing v4.4-rc4 v4.4-rc3 v4.4-rc2 v4.4-rc4] url: https://github.com/0day-ci/linux/commits/Boris-Brezillon/mtd-rework-ECC-layout-definition/20151208-063127 reproduce: make htmldocs All warnings (new ones

Re: [linux-sunxi] [PATCH 21/23] staging: mt29f_spinand: switch to mtd_ooblayout_ops

2015-12-07 Thread Julian Calaby
Hi Boris, On Tue, Dec 8, 2015 at 9:26 AM, Boris Brezillon wrote: > Signed-off-by: Boris Brezillon > --- > drivers/staging/mt29f_spinand/mt29f_spinand.c | 44 > --- > 1 file changed, 26

[linux-sunxi] [PATCH v5] sun4i-codec: add inputs

2015-12-07 Thread Danny Milosavljevic
Hi, this is the fifth version of the patch that adds inputs to sun4i-codec. (Previous versions have been on the linux-sunxi mailing list only, but this one went to the maintainers as well, Message-Id: 20151208042013.11d31f09 () dayas) The inputs added are: - FM-In Left and Right - Line-In

Re: [linux-sunxi] [PATCH v5] sun4i-codec: add inputs

2015-12-07 Thread Julian Calaby
Hi Danny, You commit message needs some work. Firstly the title should be a little more descriptive, maybe something like sun4i-codec: Add FM, Line and Mic inputs On Tue, Dec 8, 2015 at 2:48 PM, Danny Milosavljevic wrote: > Hi, > > this is the fifth version of the

[linux-sunxi] Re: [PATCH 04/23] mtd: nand: s3c2410: kill the ->ecc_layout field

2015-12-07 Thread Krzysztof Kozlowski
On 08.12.2015 07:25, Boris Brezillon wrote: > The s3c2410 is allowing board data to overload the default ECC layout > defined inside the driver, but this feature is not used by board > specific definitions. > Kill this field so that we can easily move to a model where ecclayout > are dynamically