Re: Re: [linux-sunxi] How to adjust bitrate of allwinner's encoder dynamically

2015-04-29 Thread lyc . achun
HI, I realize encoder reference linux-codec-release-V1.2(https://github.com/juanfont/cedar-encoder),The encoder operation interface VENC_CMD_SET_FROFILE_LEVEL, VENC_CMD_SET_BITRATE,VENC_CMD_SET_QP_RANGE not be used, after setting the encoder does not support this command is given, According

[linux-sunxi] Re: linux 4 a10s emac problem

2015-04-29 Thread Maxime Ripard
On Sun, Apr 26, 2015 at 05:12:24PM +0200, Michal Suchanek wrote: What is the actual issue that revert this commit fixed? Ethernet not working. That's a symptom, not a disease. If you want a cure for something, usually, a symptom doesn't give you anything. Maxime -- Maxime Ripard, Free

[linux-sunxi] Re: linux 4 a10s emac problem

2015-04-29 Thread Michal Suchanek
On 26 April 2015 at 17:12, Michal Suchanek hramr...@gmail.com wrote: On 26 April 2015 at 16:41, Maxime Ripard maxime.rip...@free-electrons.com wrote: On Sun, Apr 26, 2015 at 04:17:35PM +0200, Michal Suchanek wrote: On 25 April 2015 at 16:56, Michal Suchanek hramr...@gmail.com wrote: Hello,

[linux-sunxi] Re: linux 4 a10s emac problem

2015-04-29 Thread Maxime Ripard
On Wed, Apr 29, 2015 at 10:59:29AM +0200, Michal Suchanek wrote: On 26 April 2015 at 17:12, Michal Suchanek hramr...@gmail.com wrote: On 26 April 2015 at 16:41, Maxime Ripard maxime.rip...@free-electrons.com wrote: On Sun, Apr 26, 2015 at 04:17:35PM +0200, Michal Suchanek wrote: On 25

[linux-sunxi] [PATCH 1/4] ARM: dts: sunxi: sun5i: add spi2_pins_b.

2015-04-29 Thread Michal Suchanek
spi2_pins_a are only available on A10s Signed-off-by: Michal Suchanek hramr...@gmail.com --- arch/arm/boot/dts/sun5i.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun5i.dtsi b/arch/arm/boot/dts/sun5i.dtsi index 186d25f..9f22c28 100644 ---

[linux-sunxi] [PATCH 0/4] A10s Olinuxino Micro DT SPI patches

2015-04-29 Thread Michal Suchanek
Hello, this adds spi2 bus on A10s Olinuxino Micro board. Thanks Michal Michal Suchanek (4): ARM: dts: sunxi: sun5i: add spi2_pins_b. ARM: dts: sunxi: sun5i-a10s: add spi2_pins_a. ARM: dts: sunxi: A10s Olinuxino Micro: add spi2. ARM: dts: sunxi: Add SPI aliases on A10s Olinuxino.

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

2015-04-29 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

[linux-sunxi] [PATCH 2/4] ARM: dts: sunxi: sun5i-a10s: add spi2_pins_a.

2015-04-29 Thread Michal Suchanek
Extra SPI pins on A10s not shared with A13. Signed-off-by: Michal Suchanek hramr...@gmail.com --- arch/arm/boot/dts/sun5i-a10s.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-a10s.dtsi b/arch/arm/boot/dts/sun5i-a10s.dtsi index a78c95d..3cdd122 100644 ---

[linux-sunxi] Re: [PATCH RESEND v6 4/6] regulator: axp20x: add support for AXP22X regulators

2015-04-29 Thread Lee Jones
On Fri, 10 Apr 2015, Mark Brown wrote: On Fri, Apr 10, 2015 at 12:09:04PM +0800, Chen-Yu Tsai wrote: This patch depends on the previous patch regulator: axp20x: prepare support for multiple AXP chip families and the mfd header from the first patch mfd: axp20x: add AXP22x PMIC support.

[linux-sunxi] Re: A20 NAND Issues

2015-04-29 Thread Ivan Kozic
Hi Steven, I've solved the issue by using PhoenixCard, which correctly updates the NAND with image you specify (in my case the one for Olimex A20 Olinuxino Micro). I had no idea that you were active here, otherwise I'd post the output. I'll probably try again tomorrow or on Friday so I can

[linux-sunxi] Re: [RFC 1/2] drivers: soc: sunxi: sram: add debug prints.

2015-04-29 Thread Maxime Ripard
Hi, On Wed, Apr 29, 2015 at 12:00:24PM +0200, Michal Suchanek wrote: Log messages about claimed sram. A good message usually involves what you are fixing, why and how. Signed-off-by: Michal Suchanek hramr...@gmail.com --- drivers/soc/sunxi/sunxi_sram.c | 14 ++ 1 file changed,

Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.

2015-04-29 Thread Michal Suchanek
On 29 April 2015 at 19:40, Mark Brown broo...@kernel.org wrote: On Tue, Apr 28, 2015 at 10:43:37PM +0200, Michal Suchanek wrote: I know you have a viewpoint on this but engaging in this way is not helping anyone. The point is that patching the kernel to use spidev is totally useless

[linux-sunxi] Re: [RFC 2/2] drivers: soc: sunxi: sram: claim for device not cpu.

2015-04-29 Thread Maxime Ripard
On Wed, Apr 29, 2015 at 08:04:03PM +0200, Michal Suchanek wrote: The claim function assigns sram to cpu which when called from the emac driver causes exactly the issue the call is supposed to prevent: emac does not work because it does not have sram available. Add additional parameter to the

Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.

2015-04-29 Thread Michal Suchanek
On 29 April 2015 at 20:06, Mark Brown broo...@kernel.org wrote: On Wed, Apr 29, 2015 at 07:44:59PM +0200, Michal Suchanek wrote: On 29 April 2015 at 19:40, Mark Brown broo...@kernel.org wrote: Please stop this, it is not helpful. Then please make one of the useful ways of instantiating

Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.

2015-04-29 Thread Geert Uytterhoeven
On Wed, Apr 29, 2015 at 8:37 PM, Michal Suchanek hramr...@gmail.com wrote: I am using a version of Maxime's patch myself right now. It does not seem it's going to be include in the kernel any time soon, however. FWIW I added the ability to open any CS, even those claimed by kernel drivers.

Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.

2015-04-29 Thread Mark Brown
On Wed, Apr 29, 2015 at 07:44:59PM +0200, Michal Suchanek wrote: On 29 April 2015 at 19:40, Mark Brown broo...@kernel.org wrote: Please stop this, it is not helpful. Then please make one of the useful ways of instantiating spidev nodes approved or suggest another that when implemented can

[linux-sunxi] [RFC 2/2] drivers: soc: sunxi: sram: claim for device not cpu.

2015-04-29 Thread Michal Suchanek
The claim function assigns sram to cpu which when called from the emac driver causes exactly the issue the call is supposed to prevent: emac does not work because it does not have sram available. Add additional parameter to the sunxi_sram_claim to determine if the sram is claimed for cpu or

[linux-sunxi] [RFC 0/2] emac sram fix.

2015-04-29 Thread Michal Suchanek
Hello, The latter patch fixes the emac problem. The earlier is just hack for adding some debug info. Thanks Michal Michal Suchanek (2): drivers: soc: sunxi: sram: add debug prints. drivers: soc: sunxi: sram: claim for device not cpu. drivers/net/ethernet/allwinner/sun4i-emac.c | 2 +-

[linux-sunxi] [RFC 1/2] drivers: soc: sunxi: sram: add debug prints.

2015-04-29 Thread Michal Suchanek
Log messages about claimed sram. Signed-off-by: Michal Suchanek hramr...@gmail.com --- drivers/soc/sunxi/sunxi_sram.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/soc/sunxi/sunxi_sram.c b/drivers/soc/sunxi/sunxi_sram.c index 5b76fd1..3d03e89 100644

Re: Re: [linux-sunxi] How to adjust bitrate of allwinner's encoder dynamically

2015-04-29 Thread jonsm...@gmail.com
On Tue, Apr 28, 2015 at 10:37 PM, kevin.z.m...@gmail.com kevin.z.m...@gmail.com wrote: Hi, The encoder allows you to set the MaxQp(0~51), MinQp(0~51), and MaxBitrate parameters. MaxQp and MinQp are used to controlpicture quality and MaxBitrate is used to clamp the maximum encoding bit rate