[linux-sunxi] [PATCH 1/2] ARM: dts: sun8i: Add pmic nodes to sun8i-a23-gt90h-v4

2016-03-12 Thread Hans de Goede
Add nodes for the axp223 pmic and its regulators as found on a23-gt90h-v4 tablets. Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun8i-a23-gt90h-v4.dts | 89 1 file changed, 89 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a23-gt90h-v4.dts b/arch/arm/

[linux-sunxi] [PATCH 2/2] ARM: dts: sun8i: Add backlight / pwm nodes to sun8i-a23-gt90h-v4

2016-03-12 Thread Hans de Goede
Add nodes for the backlight / pwm found on a23-gt90h-v4 tablets. Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun8i-a23-gt90h-v4.dts | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a23-gt90h-v4.dts b/arch/arm/boot/dts/sun8i-a23-gt90h-v

Re: [linux-sunxi] Re: allwinner-zh/media-codec demo

2016-03-12 Thread jonsm...@gmail.com
On Sat, Mar 12, 2016 at 7:38 PM, jonsm...@gmail.com wrote: > On Sat, Mar 12, 2016 at 7:37 PM, @lex wrote: >> You are right, i changed the input format to NV12 on GuvcView and got lower >> CPU usage (250%) and Temp ~75C. >> I does not help much overall. > > You need an ffmpeg that has been taught

Re: [linux-sunxi] Re: allwinner-zh/media-codec demo

2016-03-12 Thread jonsm...@gmail.com
On Sat, Mar 12, 2016 at 7:37 PM, @lex wrote: > You are right, i changed the input format to NV12 on GuvcView and got lower > CPU usage (250%) and Temp ~75C. > I does not help much overall. You need an ffmpeg that has been taught how to use the hardware decode features on your SOC. Don't know if

Re: [linux-sunxi] Re: allwinner-zh/media-codec demo

2016-03-12 Thread @lex
You are right, i changed the input format to NV12 on GuvcView and got lower CPU usage (250%) and Temp ~75C. I does not help much overall. On Saturday, March 12, 2016 at 8:47:38 PM UTC-3, Rosimildo DaSilva wrote: > > I have this camera, and if you change the "start_video.sh" script to > something

Re: [linux-sunxi] Re: allwinner-zh/media-codec demo

2016-03-12 Thread Rosimildo DaSilva
Some cameras are H.264 aware and they usually uses the UVC interface. They usually are mounted as two /dev/videoX devices. The YUYV amd MJPEG are on video0 and H.264 on video1. I have a couple of ELP cameras that do that. They really good. I have tested them OPI PC they work just fine. R O

Re: [linux-sunxi] Re: allwinner-zh/media-codec demo

2016-03-12 Thread jonsm...@gmail.com
On Sat, Mar 12, 2016 at 7:16 PM, @lex wrote: > Interesting, can you check if it is a feature of this camera or the new > kernel? > If you have OPI PC, can you check that? It dual stream is feature of camera firmware. It is part of the Skype certification requirements from 2012. I think this can

Re: [linux-sunxi] Re: allwinner-zh/media-codec demo

2016-03-12 Thread @lex
Interesting, can you check if it is a feature of this camera or the new kernel? If you have OPI PC, can you check that? On Saturday, March 12, 2016 at 8:10:57 PM UTC-3, Jon Smirl wrote: > > Look carefully at my sonix video parameters... > notice that there are two /dev/videoX devices > > This i

Re: [linux-sunxi] Re: allwinner-zh/media-codec demo

2016-03-12 Thread Rosimildo DaSilva
I have this camera, and if you change the "start_video.sh" script to something like this you can see... the results... the CPU usage is much lower... echo "Starting H264 Encoder..." $FFMPEG -f v4l2 -input_format yuyv422 -r 10 -s 1280x720 -i $SRC_VIDEO -pix_fmt yuv420p

Re: [linux-sunxi] Re: allwinner-zh/media-codec demo

2016-03-12 Thread jonsm...@gmail.com
My examples are running on Ubuntu with kernel 4.2. jonsmirl@terra:/work/gm/linux-3.3-fa$ uname -a Linux terra 4.2.0-33-generic #38-Ubuntu SMP Tue Mar 8 22:42:18 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux jonsmirl@terra:/work/gm/linux-3.3-fa$ The linux-3.3-fa prompt is because I am painfully working o

Re: [linux-sunxi] Re: allwinner-zh/media-codec demo

2016-03-12 Thread jonsm...@gmail.com
Look carefully at my sonix video parameters... notice that there are two /dev/videoX devices This is done so that the screen display app can use the the uncompressed stream while forwarding on the h.264 stream without decompressing it. The uncompressed stream does not need much CPU to display. jo

Re: [linux-sunxi] Re: allwinner-zh/media-codec demo

2016-03-12 Thread @lex
Inspired by so many good arguments on USB uvc cameras i decided to test one, a 720P HD used in ODROID, so you can take a look and see how good it is for Orange Pi PC (Allwinner H3) and decide if having Encode/Decode by HW worth the effort or we throw in the towel, it is up to you. This is simp

Re: [linux-sunxi] Re: allwinner-zh/media-codec demo

2016-03-12 Thread jonsm...@gmail.com
On Sat, Mar 12, 2016 at 3:01 PM, Rosimildo DaSilva wrote: > Jon, > Thanks for yours always informative posts. > > I think someone should come up with a HDMI ==> CSI (MIPI ) interface board > for these OrangePI PCs... it would be owesome, instead of these gspca > crap... they have now. newer A

Re: [linux-sunxi] Re: allwinner-zh/media-codec demo

2016-03-12 Thread Rosimildo DaSilva
Jon, Thanks for yours always informative posts. I think someone should come up with a HDMI ==> CSI (MIPI ) interface board for these OrangePI PCs... it would be owesome, instead of these gspca crap... they have now. Jon, maybe you can help me... I am looking for an 720p or 1080p camera, H

Re: [linux-sunxi] Re: allwinner-zh/media-codec demo

2016-03-12 Thread jonsm...@gmail.com
gspca is around 10 years old and it pre-dates UVC. The 291 image chip can take higher resolution stills, but mine only has a 720P sensor on it. The 292 image chip has similar performance at 1080P. I have wasted far too much time trying to get Allwinner cameras working properly and I won't touch t

[linux-sunxi] [PATCH] pinctrl: sunxi: Fix A33 external interrupts not working

2016-03-12 Thread Hans de Goede
pinctrl-sun8i-a33.c (and the dts) declare only 2 interrupt banks, where as the closely related a23 has 3 banks. This matches with the datasheet for the A33 where only interrupt banks B and G are specified where as the A23 has banks A, B and G. However the A33 being the A23 derative it is means tha

[linux-sunxi] [PATCH] regulator: axp20x: Fix axp209 ldo4 ranges

2016-03-12 Thread Hans de Goede
The axp209 ldo4 regulator has a hole at (skips) 2600 mV and 2900 mV, fix its range table to match. Signed-off-by: Hans de Goede --- drivers/regulator/axp20x-regulator.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulato

Re: [linux-sunxi] Re: allwinner-zh/media-codec demo

2016-03-12 Thread @lex
Thanks Jon. I have some thoughts on this proposed hardware solution: * This camera will not be recognized as uvc usb device, unless you add it to the device list, no big deal i think. Your kernel is 3.3 but i think you or someone else already added it to uvc device list. (i may be wrong), * O

Re: [linux-sunxi] GSoC 2014 #1 status report - Improving Allwinner SoC support

2016-03-12 Thread jonsm...@gmail.com
So a long later I think I might have stumbled onto the explanation for this in the Freescale ASOC driver (fsl_dma.c). /** * fsl_dma_hw_params: continue initializing the DMA links * * This function obtains hardware parameters about the opened stream and * programs the DMA controller accordingly

Re: [linux-sunxi] How to get IRQ number for a GPIO?

2016-03-12 Thread ION GROZEA
Hi, Thank you for your reply. I forgot to mention thet the question is valid for A20. The only reference i can find is EINT0 for pin PH00, unfortunately i cant assign this value in the driver and the only clue i got so far is the use of gpio_to_irq function but this doesn't work or i don't know

Re: [linux-sunxi] How to get IRQ number for a GPIO?

2016-03-12 Thread Priit Laes
On Sat, 2016-03-12 at 01:18 -0800, ION GROZEA wrote: > Hello all, > > I am trying to add the MPU9150 driver in to kernel 3.4.39 > > In the mach-sun71/core.c i have > > #define MPU_IRQ gpio_to_irq(176) - i need the IRQ for PH00 > > static struct i2c_board_info __initdata inv_mpu_i2c2_boar

[linux-sunxi] How to get IRQ number for a GPIO?

2016-03-12 Thread ION GROZEA
Hello all, I am trying to add the MPU9150 driver in to kernel 3.4.39 In the mach-sun71/core.c i have #define MPU_IRQ gpio_to_irq(176) - i need the IRQ for PH00 static struct i2c_board_info __initdata inv_mpu_i2c2_board_info[] = { { I2C_BOARD_INFO("mpu9150", 0x69), .irq = MPU_IRQ, .platform_dat

Re: [linux-sunxi] Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2016-03-12 Thread Code Kipper
Hi Danny, I've got some patches to go which covers pretty much everything that we can manage with the sun4i-codec. I'm only lacking testing of certain bits as I don't have capable hardware(i.e. FM capture). I've ignored the phone out part of the A20 as I couldn't find the pins. I'll try to upload t