diff mbox

bttv: Add CyberVision CV06

Message ID 201304142326.22042.linux@rainbow-software.org (mailing list archive)
State New, archived
Headers show

Commit Message

Ondrej Zary April 14, 2013, 9:26 p.m. UTC
Add CyberVision CV06 4-camera card (from CyberVision SV card kit):
http://www.cybervision.com.tw/products-swcard_kits-sv.html
    
There are some interesting things on the card but they're not supported:
4 LEDs, a connector with 4 IN and 4 OUT pins, RESET IN and RESET OUT
connectors, a relay and CyberVision CV8088-SV16 chip

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>

Comments

Ondrej Zary April 15, 2013, 7:01 p.m. UTC | #1
On Sunday 14 April 2013 23:26:21 Ondrej Zary wrote:
> Add CyberVision CV06 4-camera card (from CyberVision SV card kit):
> http://www.cybervision.com.tw/products-swcard_kits-sv.html
>
> There are some interesting things on the card but they're not supported:
> 4 LEDs, a connector with 4 IN and 4 OUT pins, RESET IN and RESET OUT
> connectors, a relay and CyberVision CV8088-SV16 chip

As there's no documentation and even no driver for any OS available, I've 
measured the GPIO connections on the card:
GPIO[00..11] - CV8088-SV16 (probably a relabelled MCU)
GPIO[12..15] - VIN1..VIN4 odd/even field (probably for camera disconnect 
detection - detected by a LM1881 chip for each input)
GPIO[16..19] - IN1..IN4 pins on connector
GPIO[20..23] - OUT1..OUT4 pins on connector
diff mbox

Patch

diff --git a/drivers/media/pci/bt8xx/bttv-cards.c b/drivers/media/pci/bt8xx/bttv-cards.c
index 8bcf638..7bce09f 100644
--- a/drivers/media/pci/bt8xx/bttv-cards.c
+++ b/drivers/media/pci/bt8xx/bttv-cards.c
@@ -2833,6 +2833,16 @@  struct tvcard bttv_tvcards[] = {
 		.pll		= PLL_14,
 		.tuner_type	= TUNER_ABSENT,
 	},
+	[BTTV_BOARD_CYBERVISION_CV06] = {
+		.name		= "CyberVision CV06 (SV)",
+		.video_inputs	= 4,
+		/* .audio_inputs= 0, */
+		.svhs		= NO_SVHS,
+		.muxsel		= MUXSEL(2, 3, 1, 0),
+		.pll		= PLL_28,
+		.tuner_type	= TUNER_ABSENT,
+		.tuner_addr	= ADDR_UNSET,
+	},
 
 };
 
diff --git a/drivers/media/pci/bt8xx/bttv.h b/drivers/media/pci/bt8xx/bttv.h
index 2d4b466..bd35114 100644
--- a/drivers/media/pci/bt8xx/bttv.h
+++ b/drivers/media/pci/bt8xx/bttv.h
@@ -186,6 +186,7 @@ 
 #define BTTV_BOARD_TVT_TD3116		   0xa0
 #define BTTV_BOARD_APOSONIC_WDVR           0xa1
 #define BTTV_BOARD_BT848_14                0xa2
+#define BTTV_BOARD_CYBERVISION_CV06        0xa3
 
 /* more card-specific defines */
 #define PT2254_L_CHANNEL 0x10