PXA Quick capture interface with HV7131RP-Camera
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi
I am trying to get a camera to work together with an PXA270 processor. My system has the following specs:
Platform: Gumstix Verdex Pro
Camera: HV7131RP
OS: Linux 2.6.28
I wrote a simple driver for the camera which omits all the i2c-stuff because the camera starts already in a default configuration which works fine for me.
A V4L2-device is generated and everything looks fine. But when i start to capture, no data arrives BUT the Quick Capture Interface outputs a MCLK and the camera responds with a PCLK, LV and FV (and data of couse).
For getting a bit closer to the origin of the problem I disabled DMA in pxa_camera.c and enabled all Interrupts in the CICR0 register. No interrupt is generated. Even by disabling DMA and IRQ and looking into CISR nothing happens.
I checked all the CIF registers bitwise. The polarity of the LV and FV is correct, the alternate pin functions are correct, the interrupt bit is non-masked, the size of the pixel matrix is correct. I'm a bit desperate because at the moment I have no idea what to do next. I would be thankful for any hint.
Greetings,
Bennet.
Quoted 10 lines · Bennet Fischer
Hi
I am trying to get a camera to work together with an PXA270 processor. My system has the following specs:
Platform: Gumstix Verdex Pro
Camera: HV7131RP
OS: Linux 2.6.28
Quoted 16 lines
I wrote a simple driver for the camera which omits all the i2c-stuff because the camera starts already in a default configuration which works fine for me.
A V4L2-device is generated and everything looks fine. But when i start to capture, no data arrives BUT the Quick Capture Interface outputs a MCLK and the camera responds with a PCLK, LV and FV (and data of couse).
For getting a bit closer to the origin of the problem I disabled DMA inpxa_camera.cand enabled all Interrupts in the CICR0 register. No interrupt is generated. Even by disabling DMA and IRQ and looking into CISR nothing happens.
I checked all the CIF registers bitwise. The polarity of the LV and FV is correct, the alternate pin functions are correct, the interrupt bit is non-masked, the size of the pixel matrix is correct. I'm a bit desperate because at the moment I have no idea what to do next. I would be thankful for any hint.
Maybe you could post your platform data, i.e., your struct pxacamera_platform_data?
Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
struct pxacamera_platform_data gumstix_pxacamera_platform_data = {
.init = gumstix_pxacamera_init,
.flags = PXA_CAMERA_MASTER | PXA_CAMERA_DATAWIDTH_8 |
PXA_CAMERA_PCLK_EN | PXA_CAMERA_MCLK_EN | PXA_CAMERA_PCP,
.mclk_10khz = 1000,
};
^^ some register values are overwritten by my driver, so the more interesting part are the register values of the quick capture interface.
Here are the register values taken at the end of the capture:
CICR0: 900003FF
- DMAEN = 1
- ENB = 1
- All interrupts masked
CICR1: 13F8012
- DW = 2 (8 Bit)
- COLOR_SP = 2 (YCbCr)
- PPL = 639
CICR2: 0
CICR3: 1DF
- LPF = 479
CICR4: D80005
- DIV = 5
- MCLK_EN = 1
- VSP = 1
- PCP = 1
- PCLK_EN = 1
CISR: 0
^^ No interrupt flag is set
CITOR: 0
CIFR: 0 (even by enabling the fifos with 7 it doesn't work)
So according to the registers it should work. I even checked if the PCLK, FV and LV signals arrive at the CPU by reading the according pins as GPIOs.
2009/2/1 Guennadi Liakhovetski <[email protected]>:
Quoted 38 lines · Bennet Fischer
Quoted 11 lines
Hi
I am trying to get a camera to work together with an PXA270 processor. My system has the following specs:
Platform: Gumstix Verdex Pro
Camera: HV7131RP
OS: Linux 2.6.28Quoted 16 lines
I wrote a simple driver for the camera which omits all the i2c-stuff because the camera starts already in a default configuration which works fine for me.
A V4L2-device is generated and everything looks fine. But when i start to capture, no data arrives BUT the Quick Capture Interface outputs a MCLK and the camera responds with a PCLK, LV and FV (and data of couse).
For getting a bit closer to the origin of the problem I disabled DMA inpxa_camera.cand enabled all Interrupts in the CICR0 register. No interrupt is generated. Even by disabling DMA and IRQ and looking into CISR nothing happens.
I checked all the CIF registers bitwise. The polarity of the LV and FV is correct, the alternate pin functions are correct, the interrupt bit is non-masked, the size of the pixel matrix is correct. I'm a bit desperate because at the moment I have no idea what to do next. I would be thankful for any hint.Maybe you could post your platform data, i.e., your struct
pxacamera_platform_data?Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer