[linux-sunxi] [PATCH 6/6] ARM: dts: sun7i: Add VE (Video Engine) module clock node

2015-12-05 Thread Chen-Yu Tsai
The video engine has its own module clock, which also includes a reset control for it. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun7i-a20.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index 21169c0a6

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

2015-12-05 Thread Chen-Yu Tsai
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 --- arch/arm/boot/dts/sun4i-a10.dtsi | 36 1 file changed,

[linux-sunxi] [PATCH 4/6] ARM: dts: sun4i: Add VE (Video Engine) module clock node

2015-12-05 Thread Chen-Yu Tsai
The video engine has its own module clock, which also includes a reset control for it. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun4i-a10.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index 849d0242e

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

2015-12-05 Thread Chen-Yu Tsai
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 --- arch/arm/boot/dts/sun7i-a20.dtsi | 32 +--- 1 file changed, 29 i

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

2015-12-05 Thread Chen-Yu Tsai
The video engine has its own special module clock, consisting of a clock gate, configurable dividers, and a reset control. On later (sun[68]i) families, the reset control is moved out of this piece of hardware and grouped with reset controls of other peripherals. Signed-off-by: Chen-Yu Tsai ---

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

2015-12-05 Thread Chen-Yu Tsai
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. On the A20 this has been moved to the DRAM controller, becoming a no-op.

[linux-sunxi] [PATCH 0/6] ARM: sunxi: Add support for A10/A20 Video Engine clocks

2015-12-05 Thread Chen-Yu Tsai
Hi everyone, This series adds support for the clocks used by the Video Engine (VPU / video codec hardware) on the Allwinner A10/A20. The series purposely excludes sun5i (A10s/A13/R8) to avoid any conflicts with Maxime's KMS driver series, but adding it should be easy. VE clocks for the newer gener

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

2015-12-05 Thread Chen-Yu Tsai
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 --- arch/arm/boot/dts/sun4i-a10.dtsi | 36 1 file changed,

[linux-sunxi] [PATCH resend 4/6] ARM: dts: sun4i: Add VE (Video Engine) module clock node

2015-12-05 Thread Chen-Yu Tsai
The video engine has its own module clock, which also includes a reset control for it. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun4i-a10.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index 849d0242e

[linux-sunxi] [PATCH resend 6/6] ARM: dts: sun7i: Add VE (Video Engine) module clock node

2015-12-05 Thread Chen-Yu Tsai
The video engine has its own module clock, which also includes a reset control for it. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun7i-a20.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index 21169c0a6

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

2015-12-05 Thread Chen-Yu Tsai
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. On the A20 this has been moved to the DRAM controller, becoming a no-op.

[linux-sunxi] [PATCH resend 0/6] ARM: sunxi: Add support for A10/A20 Video Engine clocks

2015-12-05 Thread Chen-Yu Tsai
Hi everyone, (Series resent with linux-arm-kernel list added.) This series adds support for the clocks used by the Video Engine (VPU / video codec hardware) on the Allwinner A10/A20. The series purposely excludes sun5i (A10s/A13/R8) to avoid any conflicts with Maxime's KMS driver series, but addi

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

2015-12-05 Thread Chen-Yu Tsai
The video engine has its own special module clock, consisting of a clock gate, configurable dividers, and a reset control. On later (sun[68]i) families, the reset control is moved out of this piece of hardware and grouped with reset controls of other peripherals. Signed-off-by: Chen-Yu Tsai ---

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

2015-12-05 Thread Chen-Yu Tsai
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 --- arch/arm/boot/dts/sun7i-a20.dtsi | 32 +--- 1 file changed, 29 i

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 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 > Tested-by: Michal Suchanek looks like this patch was dropped. sun4i still do

[linux-sunxi] Re: a20-olinuxino-micro openocd

2015-12-05 Thread wolfgang . weingarten
Hi Benjamin, thanx for answering. "autodetect" was not working. But now i'm 1 step further. Seems that the jtag interface is disabled if debian image is running. If i remove SD card, openocd can communicate with cpu over jtag. There are further issues. I have to develop a openocd script. Do

[linux-sunxi] [PATCH v1] sun4i-codec: add "FM-In" and "Line-In" playback controls (volume and muting switch).

2015-12-05 Thread Danny Milosavljevic
This patch adds "FM-In" and "Line-In" playback mixer controls to sun4i-codec in . It was successfully tested on A20-OLinuXino-LIME2. Muting works and the volume controls work. Note that enabling audio on LIME2 requires a minimal 'status = "okay"' dts patch

[linux-sunxi] Mainline Linux git setup and usage

2015-12-05 Thread Danny Milosavljevic
Hello, when trying to setup a build environment for mainline Linux I ran into some problems: I tried the following: $ git clone --depth 1 git://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux.git $ git checkout sunxi/for-next error: pathspec 'sunxi/for-next' did not match any file(s) kno

[linux-sunxi] Re: [PATCH v5 1/4] clk: sunxi: Add H3 clocks support

2015-12-05 Thread Rob Herring
On Fri, Dec 04, 2015 at 10:24:40PM +0100, Jens Kuske wrote: > The H3 clock control unit is similar to the those of other sun8i family > members like the A23. > > It adds a new bus gates clock similar to the simple gates, but with a > different parent clock for each single gate. > Some of the gates

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

2015-12-05 Thread Rob Herring
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 > --- > .../bindings/pinctrl/allwinner,sunxi-pinctrl.txt | 1 +

[linux-sunxi] [PATCH v3 0/2] sun4i-codec: add "FM-In" and "Line-In" playback controls

2015-12-05 Thread Danny Milosavljevic
Hi, this patch series adds "FM-In" and "Line-In" playback controls and ALSA power management for it. I tested it successfully using headphones, a radio for FM-In/Line-In and alsamixer. Regards, Danny Danny: sun4i-codec.c | 66 +++--- 1

Re: [linux-sunxi] [PATCH v3 0/2] sun4i-codec: add "FM-In" and "Line-In" playback controls

2015-12-05 Thread Danny Milosavljevic
On Sun, 6 Dec 2015 07:06:42 +0100 Danny Milosavljevic wrote: > Hi, > > this patch series adds "FM-In" and "Line-In" playback controls and ALSA power > management for it. > > I tested it successfully using headphones, a radio for FM-In/Line-In and > alsamixer. > > Regards, >Danny > > Dan

[linux-sunxi] [PATCH v3 1/2] sun4i-codec: add "FM-In" and "Line-In" playback controls (volume and muting switch).

2015-12-05 Thread Danny Milosavljevic
Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 32 1 file changed, 32 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index bcbf4da..9866cb1 100644 --- a/sound/soc/sunxi/sun4i-codec.c +++ b/sound/so

[linux-sunxi] [PATCH v3 2/2] sun4i-codec: add "FM-In" and "Line-In" playback controls (volume and muting switch), including DAPM.

2015-12-05 Thread Danny Milosavljevic
Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 34 ++ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 9866cb1..d75bc21 100644 --- a/sound/soc/sunxi/sun4i-cod

[linux-sunxi] RFC: sun4i-codec: simplifying mixer control names

2015-12-05 Thread Danny Milosavljevic
Hi, I'm trying out how it would look if we simplified the names of the mixer controls: Right now, the controls look like this: numid=3,iface=MIXER,name='FM-In Playback Volume' numid=2,iface=MIXER,name='Line-In Playback Volume' numid=4,iface=MIXER,name='Left Mixer Left DAC Playback Switch' numid

Re: [linux-sunxi] [PATCH v3 1/2] sun4i-codec: add "FM-In" and "Line-In" playback controls (volume and muting switch).

2015-12-05 Thread Code Kipper
> #define SUN4I_CODEC_DAC_ACTL_DACAENR (31) > #define SUN4I_CODEC_DAC_ACTL_DACAENL (30) > #define SUN4I_CODEC_DAC_ACTL_MIXEN (29) > +#define SUN4I_CODEC_DAC_ACTL_LINEIN_OUTPUT_VOLUME (26) /* 1 bit */ > +#define SUN4I_CODEC_DAC_ACTL_FM

Re: [linux-sunxi] [PATCH v3 2/2] sun4i-codec: add "FM-In" and "Line-In" playback controls (volume and muting switch), including DAPM.

2015-12-05 Thread Code Kipper
On 6 December 2015 at 07:13, Danny Milosavljevic wrote: > Signed-off-by: Danny Milosavljevic > --- > sound/soc/sunxi/sun4i-codec.c | 34 ++ > 1 file changed, 22 insertions(+), 12 deletions(-) > > diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-c

Re: [linux-sunxi] Mainline Linux git setup and usage

2015-12-05 Thread Priit Laes
On Sun, 2015-12-06 at 00:45 +0100, Danny Milosavljevic wrote: > Hello, > > when trying to setup a build environment for mainline Linux I ran > into some problems: Which tutorial (or wiki page) did you follow? > > I tried the following: > > $ git clone --depth 1 > git://git.kernel.org/pub/scm/l