Re: [linux-sunxi] clk_out_a usage in mainline

2015-12-11 Thread google
John, my reference design is OLIMEX EVB, CPU manual and Linux kernel 4.4 EVB has no pullup on the pin PI12, CPU manual has no mention of a possible pullup for the clk_out_a and Linux Kernel does not enable internal pullup Maybe something can be better documented ? Please, do not be

Re: [linux-sunxi][PATCH 2/2] ARM: dts: sun7i: Add audio codec to Itead Ibox

2015-12-11 Thread Maxime Ripard
Hi, On Tue, Dec 08, 2015 at 07:29:04PM +0100, codekip...@gmail.com wrote: > From: Marcus Cooper > > Signed-off-by: Marcus Cooper A commit log would be nice :) > --- > arch/arm/boot/dts/sun7i-a20-itead-ibox.dts | 4 > 1 file changed, 4

Re: [linux-sunxi][PATCH 1/2] ARM: dts: sun7i: Add Itead Ibox support

2015-12-11 Thread Maxime Ripard
Hi, On Tue, Dec 08, 2015 at 07:29:03PM +0100, codekip...@gmail.com wrote: > From: Marcus Cooper > > The Itead Ibox is a multi board device based on the Allwinner A20 SoC. > It contains the A20 Itead Core module and a base board for the external > interfaces. > > The core

Re: [linux-sunxi] [PATCH] Add fex file for Inet D70 A33 tablet

2015-12-11 Thread Hans de Goede
Hi, On 02-12-15 00:58, Justin Swartz wrote: Signed-off-by: Justin Swartz Thanks, applied and pushed. Regards, Hans --- sys_config/a33/inet_d70_a33.fex | 971 1 file changed, 971 insertions(+) create mode

[linux-sunxi] [PATCH v5 15/58] mtd: nand: denali: use the mtd instance embedded in struct nand_chip

2015-12-11 Thread Boris Brezillon
struct nand_chip now embeds an mtd device. Make use of this mtd instance. Signed-off-by: Boris Brezillon --- Changes since v4: - fix conflict after changes brought in v5 of patch 1 --- Changes generated with the following coccinelle script --->8--- virtual

[linux-sunxi] [PATCH v5 01/58] mtd: nand: denali: add missing nand_release() call in denali_remove()

2015-12-11 Thread Boris Brezillon
Unregister the NAND device from the NAND subsystem when removing a denali NAND controller, otherwise the MTD attached to the NAND device is still exposed by the MTD layer, and accesses to this device will likely crash the system. Signed-off-by: Boris Brezillon

[linux-sunxi] Re: [PATCH v4 01/58] mtd: nand: denali: add missing nand_release() call in denali_remove()

2015-12-11 Thread Boris Brezillon
Hi Brian, On Thu, 10 Dec 2015 16:40:08 -0800 Brian Norris wrote: > On Thu, Dec 10, 2015 at 08:59:45AM +0100, Boris Brezillon wrote: > > Unregister the NAND device from the NAND subsystem when removing a denali > > NAND controller, otherwise the MTD attached to the

[linux-sunxi] [PATCH v5 41/58] mtd: nand: socrates: use the mtd instance embedded in struct nand_chip

2015-12-11 Thread Boris Brezillon
struct nand_chip now embeds an mtd device. Make use of this mtd instance. Signed-off-by: Boris Brezillon --- Changes since v4: - fix build error --- Changes generated with the following coccinelle script --->8--- virtual patch @fix1@ identifier __chipfield,

[linux-sunxi] Re: [PATCH v5 01/58] mtd: nand: denali: add missing nand_release() call in denali_remove()

2015-12-11 Thread Boris Brezillon
Hi Dinh, On Fri, 11 Dec 2015 10:50:21 -0600 Dinh Nguyen wrote: > Hi Boris, > > On Fri, Dec 11, 2015 at 9:10 AM, Boris Brezillon > wrote: > > + Dinh (who made commit 2a0a288ec258) > > > > Also added back the Fixes tag. > > > > On Fri,

[linux-sunxi] Re: [PATCH v5 01/58] mtd: nand: denali: add missing nand_release() call in denali_remove()

2015-12-11 Thread Boris Brezillon
+ Dinh (who made commit 2a0a288ec258) Also added back the Fixes tag. On Fri, 11 Dec 2015 15:02:34 +0100 Boris Brezillon wrote: > Unregister the NAND device from the NAND subsystem when removing a denali > NAND controller, otherwise the MTD attached to the

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

2015-12-11 Thread Philipp Zabel
Hi Hans, thanks for moving this forward. Am Freitag, den 11.12.2015, 16:41 +0100 schrieb Hans de Goede: > Add reset_control_deassert_shared / reset_control_assert_shared > functions which are intended for use by drivers for hw blocks which > (may) share a reset line with another driver / hw

[linux-sunxi] Re: [PATCH v4 01/58] mtd: nand: denali: add missing nand_release() call in denali_remove()

2015-12-11 Thread Boris Brezillon
Hi Dan, On Fri, 11 Dec 2015 17:39:47 +0300 Dan Carpenter wrote: > On Fri, Dec 11, 2015 at 02:53:20PM +0100, Boris Brezillon wrote: > > Hi Brian, > > > > On Thu, 10 Dec 2015 16:40:08 -0800 > > Brian Norris wrote: > > > > > On Thu, Dec 10,

[linux-sunxi] [PATCH v4 2/2] phy-sun4i-usb: Add support for the host usb-phys found on the H3 SoC

2015-12-11 Thread Hans de Goede
From: Reinder de Haan Note this commit only adds support for phys 1-3, phy 0, the otg phy, is not yet (fully) supported after this commit. Signed-off-by: Reinder de Haan Signed-off-by: Hans de Goede --- Changes in v2: -Change

[linux-sunxi] [PATCH v2 3/3] ohci-platform: Add support for controllers with multiple reset lines

2015-12-11 Thread Hans de Goede
At least the EHCI/OHCI found on the Allwinnner H3 SoC needs multiple reset lines, the controller will not initialize while the reset for its companion is still asserted, which means we need to de-assert 2 resets for the controller to work. Signed-off-by: Hans de Goede ---

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

2015-12-11 Thread Hans de Goede
Add reset_control_deassert_shared / reset_control_assert_shared functions which are intended for use by drivers for hw blocks which (may) share a reset line with another driver / hw block. Unlike the regular reset_control_[de]assert functions these functions keep track of how often

[linux-sunxi] [PATCH v2 2/3] ehci-platform: Add support for controllers with multiple reset lines

2015-12-11 Thread Hans de Goede
From: Reinder de Haan At least the EHCI/OHCI found on the Allwinnner H3 SoC needs multiple reset lines, the controller will not initialize while the reset for its companion is still asserted, which means we need to de-assert 2 resets for the controller to work.

[linux-sunxi] Re: [PATCH v4 01/58] mtd: nand: denali: add missing nand_release() call in denali_remove()

2015-12-11 Thread Boris Brezillon
Hi Brian, On Thu, 10 Dec 2015 16:40:08 -0800 Brian Norris wrote: > On Thu, Dec 10, 2015 at 08:59:45AM +0100, Boris Brezillon wrote: > > Unregister the NAND device from the NAND subsystem when removing a denali > > NAND controller, otherwise the MTD attached to the

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

2015-12-11 Thread Danny Milosavljevic
Hi CK, Hi Mark, (I've added Mark - since he committed the original soc-ops line of code below - and the list) On Mon, 7 Dec 2015 07:30:07 +0100 Code Kipper wrote: [...] > > +static DECLARE_TLV_DB_SCALE(sun4i_codec_linein_output_volume_scale, -150, > > 150, 0); > These

[linux-sunxi] [PATCH v2] spi: dts: sun4i: Add support for inter-word wait cycles using the SPI Wait Clock Register

2015-12-11 Thread Marcus Weseloh
Adds support and binding documentation for a new slave device property "sun4i,spi-word-wait-ns" that allows to set a hardware based delay between the transmission of words using the SPI Wait Clock Register. The SPI hardware needs 3 clock cycles to set up the delay, which makes the minimum non-zero

[linux-sunxi] Re: [PATCH v4 01/58] mtd: nand: denali: add missing nand_release() call in denali_remove()

2015-12-11 Thread Brian Norris
Hi Boris, On Fri, Dec 11, 2015 at 11:03:05PM +0100, Boris Brezillon wrote: > On Thu, 10 Dec 2015 16:40:08 -0800 > Brian Norris wrote: > > On Thu, Dec 10, 2015 at 08:59:45AM +0100, Boris Brezillon wrote: > > > Unregister the NAND device from the NAND subsystem when

[linux-sunxi] [PATCH] ARM: dts: sun4i: gemei-g9: Enable PA GPIO pin configuration

2015-12-11 Thread Priit Laes
PA GPIO pin (PH15) controls power to external amplifier (FT2012Q). This patch depends on 'ASoC: sun4i-codec: Add support for PA gpio pin' authored by Hans de Goede. Priit Laes (1): ARM: dts: sun4i: gemei-g9: Enable PA GPIO pin configuration arch/arm/boot/dts/sun4i-a10-gemei-g9.dts | 14

[linux-sunxi] [PATCH] ARM: dts: sun4i: gemei-g9: Enable PA GPIO pin configuration

2015-12-11 Thread Priit Laes
PA GPIO pin (PH15) controls power to external amplifier (FT2012Q). Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun4i-a10-gemei-g9.dts | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sun4i-a10-gemei-g9.dts

Re: [linux-sunxi] Transport stream controller usage at A20-olinuxino

2015-12-11 Thread User Android
Hello, I try get Transport Stream on A-20-Olinuxino. I fix *.fex file, use patch Allwinner_TSC_driver.0.0.4.A.linux-sunxi-stage3.4.schorpp.04, compile the kernel (3.4.104) and modules, read data from /dev/tsc_dev but i have only 0. I read TSC registers and all values are equal 0. I make

Re: [linux-sunxi] ARM: dts: sun7i: Enable audio codec on MK808C

2015-12-11 Thread Maxime Ripard
Hi, On Tue, Dec 08, 2015 at 07:31:26PM +0100, codekip...@gmail.com wrote: > From: Marcus Cooper > > Signed-off-by: Marcus Cooper Please make a commit log. Thanks, Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android

Re: [linux-sunxi] clk_out_a usage in mainline

2015-12-11 Thread Chen-Yu Tsai
On Fri, Dec 11, 2015 at 4:51 PM, wrote: > The most up to date documentation is the following > https://github.com/allwinner-zh > > > documents/A20/A20_User_Manual_v1.4_20150510.pdf > > Page 289 has no mention of the fact that to actually have clk_out_a you need > to set the

Re: [linux-sunxi] clk_out_a usage in mainline

2015-12-11 Thread 'John S' via linux-sunxi
"goo...@engidea.com" wrote: >> AFAIK board designs using this all have an external pull-up resistor.>> >> Maybe this pin is open-drain by design? >> Also, for higher clock rates you should increase the drive>> 30 mA should be >> good enough for clock rates up to 50 MHz. >

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

2015-12-11 Thread Linus Walleij
On Fri, Dec 4, 2015 at 10:24 PM, 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 Patch applied with Rob's &

Re: [linux-sunxi] clk_out_a usage in mainline

2015-12-11 Thread Chen-Yu Tsai
On Fri, Dec 11, 2015 at 4:03 PM, wrote: >> AFAIK board designs using this all have an external pull-up resistor. >> Maybe this pin is open-drain by design? >> >> Also, for higher clock rates you should increase the drive strength. >> >> 30 mA should be good enough for clock

[linux-sunxi] Re: [PATCH 1/3] ARM: dts: sun7i: Olimex A20-SOM-EVB: Add LRADC keys

2015-12-11 Thread Maxime Ripard
Hi, On Thu, Dec 10, 2015 at 09:31:59PM +0100, Karsten Merker wrote: > The Olimex A20-SOM-EVB is an evaluation board for the Olimex > A20-SOM system-on-module. It provides a set of android-style > buttons (labeled "VOL+", "VOL-", "MENU", "SEARCH", "HOME", "ESC" > and "ENTER") which are connected

Re: [linux-sunxi] clk_out_a usage in mainline

2015-12-11 Thread google
> > AFAIK board designs using this all have an external pull-up resistor. > Maybe this pin is open-drain by design? > > Also, for higher clock rates you should increase the drive strength. > > 30 mA should be good enough for clock rates up to 50 MHz. > Assuming that what you write is

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

2015-12-11 Thread Danny Milosavljevic
Hi Chen-Yu, On Fri, 11 Dec 2015 11:23:33 +0800 Chen-Yu Tsai wrote: > If everything is known beforehand, having 2 separate read only tables is > probably better. No need for maintainers / reviewers to squint. :) Yeah, that's what v6 already does. Suggestion 4 was to copy it at

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

2015-12-11 Thread Hans de Goede
Hi, On 11-12-15 18:10, Philipp Zabel wrote: Hi Hans, thanks for moving this forward. Thanks for the quick review, I've a couple of (simple) questions about your review remarks once those are cleared up I'll post a new version (of just this patch). Am Freitag, den 11.12.2015, 16:41 +0100

[linux-sunxi] [PATCH v2 3/4] ARM: dts: sun5i: Enable onboard codec used on the UTOO P66 tablet

2015-12-11 Thread Hans de Goede
The UTOO P66 tablet uses the A13's integrated audio codec, enable it. Signed-off-by: Hans de Goede --- Changes in v2: -Adjust for gpio rename from pa-gpios to allwinner,pa-gpios --- arch/arm/boot/dts/sun5i-a13-utoo-p66.dts | 14 ++ 1 file changed, 14

[linux-sunxi] [PATCH v2 4/4] ARM: dts: sun4i: Enable onboard codec used on the pov protab2-ips9 tablet

2015-12-11 Thread Hans de Goede
The pov protab2-ips9 tablet uses the A10's integrated audio codec, enable it. Signed-off-by: Hans de Goede --- Changes in v2: -Adjust for gpio rename from pa-gpios to allwinner,pa-gpios --- arch/arm/boot/dts/sun4i-a10-pov-protab2-ips9.dts | 14 ++ 1 file

[linux-sunxi] [PATCH v2 2/4] ASoC: sun4i-codec: Add support for PA gpio pin

2015-12-11 Thread Hans de Goede
Add support for PA gpio pin for controlling an external amplifier as used on some Allwinner boards. Signed-off-by: Hans de Goede --- Changes in v2: -Use a dapm speaker widget (SND_SOC_DAPM_SPK) to control the gpio -Rename gpio in devicetree from pa-gpios to

[linux-sunxi] [PATCH v2 1/4] ASoC: sun4i-codec: Rename codec dapm widgets and routes

2015-12-11 Thread Hans de Goede
Rename the codec dapm widgets and routes with a _codec prefix. This is a preparation patch for adding card dapm widgets and routes. Signed-off-by: Hans de Goede --- Changes in v2: -New patch in v2 of this patchset --- sound/soc/sunxi/sun4i-codec.c | 12 ++-- 1 file

[linux-sunxi] Re: [PATCH v2 2/3] ehci-platform: Add support for controllers with multiple reset lines

2015-12-11 Thread Hans de Goede
Hi, On 11-12-15 18:13, Philipp Zabel wrote: Am Freitag, den 11.12.2015, 16:41 +0100 schrieb Hans de Goede: From: Reinder de Haan At least the EHCI/OHCI found on the Allwinnner H3 SoC needs multiple reset lines, the controller will not initialize while the reset for its

[linux-sunxi] Re: [PATCH v5 0/9] mfd: axp20x: Add support for RSB based AXP223

2015-12-11 Thread Chen-Yu Tsai
Hi Lee, On Fri, Nov 27, 2015 at 2:43 PM, Chen-Yu Tsai wrote: > Hi everyone, > > This is v5 of the AXP223 PMIC series. v5 cleans up the code before and > after the axp20x split, as suggested by Andy. Any chance you could merge this series (patches 1~7) for 4.5? The DTS patches

Re: [linux-sunxi] clk_out_a usage in mainline

2015-12-11 Thread google
The most up to date documentation is the following https://github.com/allwinner-zh documents /A20 / *A20_User_Manual_v1.4_20150510.pdf* Page 289 has no mention of the fact that to actually