Re: Re: [linux-sunxi] How to adjust bitrate of allwinner's encoder dynamically
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 within the bitrate statistical time; The default configuration is MinQp = 10; MaxQp = 40. If you could not get it to work for lower bitrates , please try to change MaxQp to a bigger value, then maybe reduce the qulity of the picture. kevin.z.m...@gmail.com From: jonsm...@gmail.com Date: 2015-04-27 21:22 To: achun liu CC: linux-sunxi Subject: Re: [linux-sunxi] How to adjust bitrate of allwinner's encoder dynamically On Mon, Apr 27, 2015 at 2:45 AM, wrote: > hi,all, > > How to adjust bitrate of allwinner's encoder dynamically,I tried to change, > but did not seem to effect. I could not get it to work for lower bitrates. After about 1.5Mb/s it stopped doing anything. I needed 500Kb/s for my application and was unable to get that. > > BR, > > -- > 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 linux-sunxi+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Jon Smirl jonsm...@gmail.com -- 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 linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.
On 28 April 2015 at 19:17, Mark Brown wrote: > On Tue, Apr 28, 2015 at 04:22:24PM +0200, Michal Suchanek wrote: >> On 28 April 2015 at 16:16, Mark Brown wrote: > >> > That is not the case as you well know. As has been said several times >> > the compatible for the device should be added to the match table in >> > spidev.c. > >> That's a way unusable for people who actually want to use spidev so it >> might be TheApprovedWay(tm) but not RightWay(tm). > > I'm pretty sure that someone who's able to edit one file can edit two. > 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 complication which is brought on spidev users by obtuse kernel maintainers. This patch applied to a kernel which is distributed with the board solves the problem for all spidev users of the board which TheApprovedWay(tm) does not. 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 linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[linux-sunxi] [PATCH] ARM: sunxi: dts: split IR pins for A10 and A20
From: Marcus Cooper Currently none of the target boards nor the driver supports IR TX. However this pin is used in a few instances as a GPIO. Split the pin ctrl descriptions so that only the IR RX is configured to be used. Signed-off-by: Marcus Cooper --- arch/arm/boot/dts/sun4i-a10.dtsi | 18 -- arch/arm/boot/dts/sun7i-a20.dtsi | 18 -- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index 1d7fd68..50df9b7 100644 --- a/arch/arm/boot/dts/sun4i-a10.dtsi +++ b/arch/arm/boot/dts/sun4i-a10.dtsi @@ -798,14 +798,28 @@ }; ir0_pins_a: ir0@0 { - allwinner,pins = "PB3","PB4"; + allwinner,pins = "PB4"; + allwinner,function = "ir0"; + allwinner,drive = ; + allwinner,pull = ; + }; + + ir0_pins_b: ir0@1 { + allwinner,pins = "PB3"; allwinner,function = "ir0"; allwinner,drive = ; allwinner,pull = ; }; ir1_pins_a: ir1@0 { - allwinner,pins = "PB22","PB23"; + allwinner,pins = "PB23"; + allwinner,function = "ir1"; + allwinner,drive = ; + allwinner,pull = ; + }; + + ir1_pins_b: ir1@1 { + allwinner,pins = "PB22"; allwinner,function = "ir1"; allwinner,drive = ; allwinner,pull = ; diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index 4163ade..6168a9f 100644 --- a/arch/arm/boot/dts/sun7i-a20.dtsi +++ b/arch/arm/boot/dts/sun7i-a20.dtsi @@ -1001,14 +1001,28 @@ }; ir0_pins_a: ir0@0 { - allwinner,pins = "PB3","PB4"; + allwinner,pins = "PB4"; + allwinner,function = "ir0"; + allwinner,drive = ; + allwinner,pull = ; + }; + + ir0_pins_b: ir0@1 { + allwinner,pins = "PB3"; allwinner,function = "ir0"; allwinner,drive = ; allwinner,pull = ; }; ir1_pins_a: ir1@0 { - allwinner,pins = "PB22","PB23"; + allwinner,pins = "PB23"; + allwinner,function = "ir1"; + allwinner,drive = ; + allwinner,pull = ; + }; + + ir1_pins_b: ir1@1 { + allwinner,pins = "PB22"; allwinner,function = "ir1"; allwinner,drive = ; allwinner,pull = ; -- 2.3.6 -- 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 linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.
On Tue, Apr 28, 2015 at 04:22:24PM +0200, Michal Suchanek wrote: > On 28 April 2015 at 16:16, Mark Brown wrote: > > That is not the case as you well know. As has been said several times > > the compatible for the device should be added to the match table in > > spidev.c. > That's a way unusable for people who actually want to use spidev so it > might be TheApprovedWay(tm) but not RightWay(tm). I'm pretty sure that someone who's able to edit one file can edit two. I know you have a viewpoint on this but engaging in this way is not helping anyone. -- 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 linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. signature.asc Description: Digital signature
Re: [linux-sunxi] orange pi plus (Allwinner H3 based) has a "Debian server" image available since today
I contacted him and asked for the SDK/BSP, he replied to wait for about a week, that was two weeks ago. So i guess they are still cleaning up some things and are closer to release it. On Tuesday, April 28, 2015 at 3:59:55 AM UTC-3, Simos Xenitellis wrote: > > > On Tue, Apr 28, 2015 at 1:29 AM, > wrote: > >> No sources I guess :-( But maybe something useful to be gleaned from it? >> >> http://www.orangepi.org/downloaded/download.html >> >> > Reading the orangepi.org website pages, it appears feasible for someone > to get in contact with Steven (see website footer for details) > and talk about these issues. > But please, no gung-ho this time. > > Simos > -- 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 linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.
On 28 April 2015 at 16:12, Maxime Ripard wrote: > On Tue, Apr 28, 2015 at 07:03:16AM -0700, Eric D. wrote: >> Hi, >> >> I give Maxime's patch a try and got 4 spidev devices : >> /dev/spidev32766.[0-3] >> >> root@bpi:~# ls -lh /dev/spidev* >> crw--- 1 root root 153, 0 Apr 28 15:52 /dev/spidev32766.0 >> crw--- 1 root root 153, 1 Apr 28 15:52 /dev/spidev32766.1 >> crw--- 1 root root 153, 2 Apr 28 15:52 /dev/spidev32766.2 >> crw--- 1 root root 153, 3 Apr 28 15:52 /dev/spidev32766.3 >> >> Shouldn't they be numbered from like spidev0.[0-3]. >> Is this an udev problem ? any clues ? > > You're missing an SPI alias in the DT. Indeed, adding some SPI aliases makes the device nodes tidier: aliases { serial0 = &uart0; serial1 = &uart2; serial2 = &uart3; spi0 = &spi0; spi1 = &spi1; spi2 = &spi2; }; However, SPI usage examples I have seen showed some random high number. 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 linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.
On 28 April 2015 at 16:16, Mark Brown wrote: > On Tue, Apr 28, 2015 at 02:52:54PM +0200, Michal Suchanek wrote: >> On 28 April 2015 at 14:15, Eric D. wrote: > >> > I was just seeking a way to make spidev device appear under mainline kernel >> > and found this thread. >> > Could someone explain the right way to do this ? > >> There is no approved RightWay(tm). > > That is not the case as you well know. As has been said several times > the compatible for the device should be added to the match table in > spidev.c. That's a way unusable for people who actually want to use spidev so it might be TheApprovedWay(tm) but not RightWay(tm). 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 linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.
On Tue, Apr 28, 2015 at 02:52:54PM +0200, Michal Suchanek wrote: > On 28 April 2015 at 14:15, Eric D. wrote: > > I was just seeking a way to make spidev device appear under mainline kernel > > and found this thread. > > Could someone explain the right way to do this ? > There is no approved RightWay(tm). That is not the case as you well know. As has been said several times the compatible for the device should be added to the match table in spidev.c. -- 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 linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. signature.asc Description: Digital signature
Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.
On Tue, Apr 28, 2015 at 07:03:16AM -0700, Eric D. wrote: > Hi, > > I give Maxime's patch a try and got 4 spidev devices : > /dev/spidev32766.[0-3] > > root@bpi:~# ls -lh /dev/spidev* > crw--- 1 root root 153, 0 Apr 28 15:52 /dev/spidev32766.0 > crw--- 1 root root 153, 1 Apr 28 15:52 /dev/spidev32766.1 > crw--- 1 root root 153, 2 Apr 28 15:52 /dev/spidev32766.2 > crw--- 1 root root 153, 3 Apr 28 15:52 /dev/spidev32766.3 > > Shouldn't they be numbered from like spidev0.[0-3]. > Is this an udev problem ? any clues ? You're missing an SPI alias in the DT. Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- 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 linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. signature.asc Description: Digital signature
Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.
On 28 April 2015 at 16:03, Eric D. wrote: > Hi, > > I give Maxime's patch a try and got 4 spidev devices : > /dev/spidev32766.[0-3] > > root@bpi:~# ls -lh /dev/spidev* > crw--- 1 root root 153, 0 Apr 28 15:52 /dev/spidev32766.0 > crw--- 1 root root 153, 1 Apr 28 15:52 /dev/spidev32766.1 > crw--- 1 root root 153, 2 Apr 28 15:52 /dev/spidev32766.2 > crw--- 1 root root 153, 3 Apr 28 15:52 /dev/spidev32766.3 > > Shouldn't they be numbered from like spidev0.[0-3]. > Is this an udev problem ? any clues ? I don't know where the 32766 comes from but it's normal. It seems to be the same number every time for the same port. If you really wanted you could probably rename the device nodes with udev. Or with only one spi bus enabled /dev/spidev*.0 should work too. 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 linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.
Hi, I give Maxime's patch a try and got 4 spidev devices : /dev/spidev32766.[0-3] root@bpi:~# ls -lh /dev/spidev* crw--- 1 root root 153, 0 Apr 28 15:52 /dev/spidev32766.0 crw--- 1 root root 153, 1 Apr 28 15:52 /dev/spidev32766.1 crw--- 1 root root 153, 2 Apr 28 15:52 /dev/spidev32766.2 crw--- 1 root root 153, 3 Apr 28 15:52 /dev/spidev32766.3 Shouldn't they be numbered from like spidev0.[0-3]. Is this an udev problem ? any clues ? For now I will try with this devices. Thanks a lot, Eric On Tuesday, April 28, 2015 at 2:53:37 PM UTC+2, Michal Suchanek wrote: > > On 28 April 2015 at 14:15, Eric D. > > wrote: > > Hi, > > > > I'am a mainline linux user of A20 (bananapi). I'am currently running a > > debian jessie with latest mainline kernel (4.0.0+). > > I have a project of home automation, based on nrfl04+ spi driven > wireless > > chip. > > I was just seeking a way to make spidev device appear under mainline > kernel > > and found this thread. > > Could someone explain the right way to do this ? > > There is no approved RightWay(tm). > > However, you can use this patch: > > https://lkml.org/lkml/2014/4/28/612 > > which is probably the least controversial way for now. > > The example at the start of the thread also works but is > CertainlyNotApprovedWay(tm). > > HTH > > 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 linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.
On 28 April 2015 at 14:15, Eric D. wrote: > Hi, > > I'am a mainline linux user of A20 (bananapi). I'am currently running a > debian jessie with latest mainline kernel (4.0.0+). > I have a project of home automation, based on nrfl04+ spi driven wireless > chip. > I was just seeking a way to make spidev device appear under mainline kernel > and found this thread. > Could someone explain the right way to do this ? There is no approved RightWay(tm). However, you can use this patch: https://lkml.org/lkml/2014/4/28/612 which is probably the least controversial way for now. The example at the start of the thread also works but is CertainlyNotApprovedWay(tm). HTH 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 linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [linux-sunxi] [PATCH 2/3] spidev: Add DT binding example.
Hi, I'am a mainline linux user of A20 (bananapi). I'am currently running a debian jessie with latest mainline kernel (4.0.0+). I have a project of home automation, based on nrfl04+ spi driven wireless chip. I was just seeking a way to make spidev device appear under mainline kernel and found this thread. Could someone explain the right way to do this ? Thanks for your time, Regards, Eric -- 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 linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[linux-sunxi] Re: A20 NAND Issues
On Monday, April 27, 2015 at 11:14:28 PM UTC+10, Ivan Kozic wrote: > > By the way, I have also tried CTNandBoot app from Git (user phelum) and > this also breaks somewhere and doesn't actually do anything... > > Hi Ivan, That's my app and it's a shame it didn't help. Have you tried the latest version (dated 2015-3-12) ? I changed some bits after problems loading a CubieBoard2 and also added options to force past errors. But some people report problems when using a PC. I did hit a problem when using a PC with a USB3 port. Maybe contact me via PM if you want to chase the issue. The "breaks somewhere" comment sounds like it dies when re-opening the USB connection for phase 2. Phase 2 is when the code gets downloaded and written. Cheers, Steven -- 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 linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [linux-sunxi] orange pi plus (Allwinner H3 based) has a "Debian server" image available since today
On Tue, Apr 28, 2015 at 1:29 AM, wrote: > No sources I guess :-( But maybe something useful to be gleaned from it? > > http://www.orangepi.org/downloaded/download.html > > Reading the orangepi.org website pages, it appears feasible for someone to get in contact with Steven (see website footer for details) and talk about these issues. But please, no gung-ho this time. Simos -- 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 linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.