OMAP3EVM: Add support for MT9T111 sensor
Subsystems (4)
cover OMAP3EVM: Add support for MT9T111 sensor
This patchset
-adds support for MT9T111 sensor on omap3evm. Currently the sensor driver supports only VGA resolution.
-enables MT9T111 sensor in omap2plus_defconfig.
This is applied on top of the following patchset
http://www.spinics.net/lists/linux-media/msg37270.html
which adds YUYV input support for OMAP3ISP.
---
Deepthy Ravi (2):
ispccdc: Configure CCDC_SYN_MODE register for UYVY8_2X8 and
YUYV8_2X8 formats
omap2plus_defconfig: Enable omap3isp and MT9T111 sensor drivers
Vaibhav Hiremath (3):
omap3evm: Enable regulators for camera interface [media] v4l: Add mt9t111 sensor driver
omap3evm: Add Camera board init/hookup file
arch/arm/configs/omap2plus_defconfig | 10 + arch/arm/mach-omap2/Makefile | 5 + arch/arm/mach-omap2/board-omap3evm-camera.c | 185 ++++ arch/arm/mach-omap2/board-omap3evm.c | 25 + drivers/media/video/Kconfig | 7 + drivers/media/video/Makefile | 1 + drivers/media/video/mt9t111.c | 793 ++++++++++++++++ drivers/media/video/mt9t111_reg.h | 1367 +++++++++++++++++++++++++++ drivers/media/video/omap3isp/ispccdc.c | 11 +- include/media/mt9t111.h | 45 + 10 files changed, 2446 insertions(+), 3 deletions(-) create mode 100644 arch/arm/mach-omap2/board-omap3evm-camera.c create mode 100644 drivers/media/video/mt9t111.c create mode 100644 drivers/media/video/mt9t111_reg.h create mode 100644 include/media/mt9t111.h
PATCH 1/5 omap3evm: Enable regulators for camera interface
From: Vaibhav Hiremath <[email protected]>
Enabled 1v8 and 2v8 regulator output, which is being used by camera module.
--- arch/arm/mach-omap2/board-omap3evm.c | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/board-omap3evm.c +21 -0
@@ -273,6 +273,25 @@ static struct omap_dss_board_info omap3_evm_dss_data = { .default_device = &omap3_evm_lcd_device, }; +static struct regulator_consumer_supply omap3evm_vaux3_supply[] = { +REGULATOR_SUPPLY ("cam_2v8" ,NULL ), +}; + +/* VAUX3 for CAM_2V8 */ +static struct regulator_init_data omap3evm_vaux3 = { + .constraints = { + .min_uV =2800000 , + .max_uV =2800000 , + .apply_uV = true, + .valid_modes_mask =REGULATOR_MODE_NORMAL + |REGULATOR_MODE_STANDBY , + .valid_ops_mask =REGULATOR_CHANGE_MODE + |REGULATOR_CHANGE_STATUS , + }, + .num_consumer_supplies =ARRAY_SIZE (omap3evm_vaux3_supply), + .consumer_supplies = omap3evm_vaux3_supply, +}; +static struct regulator_consumer_supply omap3evm_vmmc1_supply[] = {REGULATOR_SUPPLY ("vmmc" ,"omap_hsmmc.0" ), };
@@ -433,6 +452,7 @@ static struct twl4030_keypad_data omap3evm_kp_data = {/* ads7846 on SPI */ static struct regulator_consumer_supply omap3evm_vio_supply[] = {REGULATOR_SUPPLY ("vcc" ,"spi1.0" ), +REGULATOR_SUPPLY ("vio_1v8" ,NULL ), };/* VIO for ads7846 */
@@ -499,6 +519,7 @@ static struct twl4030_platform_data omap3evm_twldata = { .vio = &omap3evm_vio, .vmmc1 = &omap3evm_vmmc1, .vsim = &omap3evm_vsim, + .vaux3 = &omap3evm_vaux3, };static int __init omap3_evm_i2c_init (void )
Signature · 1 line
1.7.0.4
PATCH 2/5 v4l: Add mt9t111 sensor driver
In reply to Deepthy RaviFrom: Vaibhav Hiremath <[email protected]>
The MT9T111 is a 3.1Mp CMOS sensor from Aptina with its latest image signal processing (ISP) and 1.75??m pixel technology.
The sensor driver currently supports only VGA resolution.
--- drivers/media/video/Kconfig | 7 + drivers/media/video/Makefile | 1 + drivers/media/video/mt9t111.c | 793 +++++++++++++++++++++ drivers/media/video/mt9t111_reg.h | 1367 +++++++++++++++++++++++++++++++++++++ include/media/mt9t111.h | 45 ++ 5 files changed, 2213 insertions(+), 0 deletions(-) create mode 100644 drivers/media/video/mt9t111.c create mode 100644 drivers/media/video/mt9t111_reg.h create mode 100644 include/media/mt9t111.h
drivers/media/video/Kconfig +7 -0
@@ -482,6 +482,13 @@ config VIDEO_MT9V032 This is a Video4Linux2 sensor-level driver for the Micron MT9V032 752x480 CMOS sensor. +config VIDEO_MT9T111 + tristate "Aptina MT9T111 VGA CMOS IMAGE SENSOR" + depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API + ---help--- + This is a Video4Linux2 sensor-level driver for the Aptina MT9T111 + image sensor. + config VIDEO_TCM825X tristate "TCM825x camera sensor support" depends on I2C && VIDEO_V4L2
drivers/media/video/Makefile +1 -0
@@ -68,6 +68,7 @@ obj-$(CONFIG_VIDEO_TVEEPROM) += tveeprom.o obj-$(CONFIG_VIDEO_MT9V011) += mt9v011.o obj-$(CONFIG_VIDEO_MT9V032) += mt9v032.o obj-$(CONFIG_VIDEO_SR030PC30) += sr030pc30.o +obj-$(CONFIG_VIDEO_MT9T111) += mt9t111.o obj-$(CONFIG_VIDEO_NOON010PC30) += noon010pc30.o obj-$(CONFIG_VIDEO_M5MOLS) += m5mols/ obj-$(CONFIG_VIDEO_ADP1653) += adp1653.o
drivers/media/video/mt9t111.c new file +793 -0
793 lines not on this page · raw message
drivers/media/video/mt9t111_reg.h new file +1367 -0
1,367 lines not on this page · raw message
include/media/mt9t111.h new file +45 -0
45 lines not on this page · raw message
Signature · 1 line
1.7.0.4
PATCH 3/5 omap3evm: Add Camera board init/hookup file
In reply to Deepthy RaviFrom: Vaibhav Hiremath <[email protected]>
Adds board support for MT9T111 sensor.
--- arch/arm/mach-omap2/Makefile | 5 + arch/arm/mach-omap2/board-omap3evm-camera.c | 185 +++++++++++++++++++++++++++ arch/arm/mach-omap2/board-omap3evm.c | 4 + 3 files changed, 194 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-omap2/board-omap3evm-camera.c
arch/arm/mach-omap2/Makefile +5 -0
@@ -280,3 +280,8 @@ disp-$(CONFIG_OMAP2_DSS) := display.o obj-y += $(disp-m) $(disp-y) obj-y += common-board-devices.o twl-common.o + +ifeq ($(CONFIG_MACH_OMAP3EVM),y) +evm-camera-$(CONFIG_VIDEO_OMAP3) := board-omap3evm-camera.o +obj-y += $(evm-camera-m) $(evm-camera-y) +endif
arch/arm/mach-omap2/board-omap3evm-camera.c new file +185 -0
185 lines not on this page · raw message
arch/arm/mach-omap2/board-omap3evm.c +4 -0
@@ -572,6 +572,8 @@ static struct omap_board_mux omap35x_board_mux[] __initdata = { OMAP_PIN_OFF_NONE),OMAP3_MUX (GPMC_WAIT2 ,OMAP_MUX_MODE4 |OMAP_PIN_INPUT_PULLUP |OMAP_PIN_OFF_NONE ), +OMAP3_MUX (MCBSP1_FSR ,OMAP_MUX_MODE4 |OMAP_PIN_INPUT_PULLUP | +OMAP_PIN_OFF_NONE ), #ifdef CONFIG_WL12XX_PLATFORM_DATA/* WLAN IRQ - GPIO 149 */ OMAP3_MUX(UART1_RTS, OMAP_MUX_MODE4 | OMAP_PIN_INPUT),
@@ -597,6 +599,8 @@ static struct omap_board_mux omap36x_board_mux[] __initdata = {OMAP3_MUX (MCSPI1_CS1 ,OMAP_MUX_MODE4 |OMAP_PIN_INPUT_PULLUP |OMAP_PIN_OFF_INPUT_PULLUP |OMAP_PIN_OFF_OUTPUT_LOW |OMAP_PIN_OFF_WAKEUPENABLE ), +OMAP3_MUX (MCBSP1_FSR ,OMAP_MUX_MODE4 |OMAP_PIN_INPUT_PULLUP | +OMAP_PIN_OFF_NONE ),/* AM/DM37x EVM: DSS data bus muxed with sys_boot */ OMAP3_MUX (DSS_DATA18 ,OMAP_MUX_MODE3 |OMAP_PIN_OFF_NONE ), OMAP3_MUX(DSS_DATA19, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE),
Signature · 1 line
1.7.0.4
PATCH 4/5 ispccdc: Configure CCDC_SYN_MODE register for UYVY8_2X8 and YUYV8_2X8 formats
In reply to Deepthy RaviConfigure INPMOD and PACK8 fileds of CCDC_SYN_MODE register for UYVY8_2X8 and YUYV8_2X8 formats.
--- drivers/media/video/omap3isp/ispccdc.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-)
drivers/media/video/omap3isp/ispccdc.c +8 -3
@@ -985,8 +985,12 @@ static void ccdc_config_sync_if(struct isp_ccdc_device *ccdc, syn_mode &= ~ISPCCDC_SYN_MODE_INPMOD_MASK ;if (format->code ==V4L2_MBUS_FMT_YUYV8_2X8 || - format->code ==V4L2_MBUS_FMT_UYVY8_2X8 ) - syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR8 ; + format->code ==V4L2_MBUS_FMT_UYVY8_2X8 ){ +if (pdata && pdata->bt656) + syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR8 ; +else + syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR16 ; + }else if (format->code ==V4L2_MBUS_FMT_YUYV8_1X16 || format->code ==V4L2_MBUS_FMT_UYVY8_1X16 ) syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR16 ;
@@ -1172,7 +1176,8 @@ static void ccdc_configure(struct isp_ccdc_device *ccdc) syn_mode &= ~ISPCCDC_SYN_MODE_SDR2RSZ ;/* Use PACK8 mode for 1byte per pixel formats. */ -if (omap3isp_video_format_info (format->code)->width <=8 ) +if ((omap3isp_video_format_info (format->code)->width <=8 ) && + (omap3isp_video_format_info (format->code)->bpp <=8 )) syn_mode |=ISPCCDC_SYN_MODE_PACK8 ;else syn_mode &= ~ISPCCDC_SYN_MODE_PACK8 ;
Signature · 1 line
1.7.0.4
PATCH 5/5 omap2plus_defconfig: Enable omap3isp and MT9T111 sensor drivers
In reply to Deepthy RaviEnables multimedia driver, media controller api,
v4l2-subdev-api, omap3isp and mt9t111 sensor
drivers in omap2plus_defconfig.
--- arch/arm/configs/omap2plus_defconfig | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
arch/arm/configs/omap2plus_defconfig +10 -0
@@ -133,6 +133,16 @@ CONFIG_TWL4030_WATCHDOG=y CONFIG_REGULATOR_TWL4030=y CONFIG_REGULATOR_TPS65023=y CONFIG_REGULATOR_TPS6507X=y +CONFIG_MEDIA_SUPPORT=y +CONFIG_MEDIA_CONTROLLER=y +CONFIG_VIDEO_DEV=y +CONFIG_VIDEO_V4L2_COMMON=y +CONFIG_VIDEO_ALLOW_V4L1=y +CONFIG_VIDEO_V4L1_COMPAT=y +CONFIG_VIDEO_V4L2_SUBDEV_API=y +CONFIG_VIDEO_MEDIA=y +CONFIG_VIDEO_MT9T111=y +CONFIG_VIDEO_OMAP3=y CONFIG_FB=y CONFIG_FIRMWARE_EDID=y CONFIG_FB_MODE_HELPERS=y
Signature · 1 line
1.7.0.4
Re: [PATCH 2/5] [media] v4l: Add mt9t111 sensor driver
In reply to Deepthy RaviQuoted 10 lines · Deepthy Ravi
From: Vaibhav Hiremath <[email protected]>
The MT9T111 is a 3.1Mp CMOS sensor from Aptina with its latest image signal processing (ISP) and 1.75??m pixel technology.
The sensor driver currently supports only VGA resolution.Signed-off-by Vaibhav Hiremath <[email protected]>Signed-off-by Deepthy Ravi <[email protected]>
Quoted 10 lines
--- drivers/media/video/Kconfig | 7 + drivers/media/video/Makefile | 1 + drivers/media/video/mt9t111.c | 793 +++++++++++++++++++++ drivers/media/video/mt9t111_reg.h | 1367 +++++++++++++++++++++++++++++++++++++ include/media/mt9t111.h | 45 ++ 5 files changed, 2213 insertions(+), 0 deletions(-) create mode 100644 drivers/media/video/mt9t111.c create mode 100644 drivers/media/video/mt9t111_reg.h create mode 100644 include/media/mt9t111.h
NAK. The mt9t112 driver claims to also support mt9t111. I'm not sure, whether the driver has indeed been tested with mt9t111, but this is definitely something to verify. If the chips are indeed similar, please use the tree at
http://git.linuxtv.org/gliakhovetski/v4l-dvb.git/shortlog/refs/heads/rc1-for-3.2
which has converted the mt9t112 driver to be also used outside ot the soc-camera subsystem, and use that driver instead of adding another one.
Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
Re: [PATCH 5/5] omap2plus_defconfig: Enable omap3isp and MT9T111 sensor drivers
In reply to Deepthy RaviHi Deepthy,
Thanks for the patch.
Quoted 17 lines · On Tuesday 20 September 2011 16:56:52 Deepthy Ravi wrote:
Enables multimedia driver, media controller api,
v4l2-subdev-api, omap3isp and mt9t111 sensor
drivers inomap2plus_defconfig.Signed-off-by Deepthy Ravi <[email protected]>--- arch/arm/configs/omap2plus_defconfig | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)(quoted diff) +0
-0b/arch/arm/configs/omap2plus_defconfig index d5f00d7..548823d 100644
arch/arm/configs/omap2plus_defconfig +0
-0@@ -133,6 +133,16 @@ CONFIG_TWL4030_WATCHDOG=y CONFIG_REGULATOR_TWL4030=y CONFIG_REGULATOR_TPS65023=y CONFIG_REGULATOR_TPS6507X=y
arch/arm/configs/omap2plus_defconfig CONFIG_TWL4030_WATCHDOG=y · line 145
Quoted 10 lines
arch/arm/configs/omap2plus_defconfig +10
-0+CONFIG_MEDIA_SUPPORT=y +CONFIG_MEDIA_CONTROLLER=y +CONFIG_VIDEO_DEV=y +CONFIG_VIDEO_V4L2_COMMON=y +CONFIG_VIDEO_ALLOW_V4L1=y +CONFIG_VIDEO_V4L1_COMPAT=y +CONFIG_VIDEO_V4L2_SUBDEV_API=y +CONFIG_VIDEO_MEDIA=y +CONFIG_VIDEO_MT9T111=y +CONFIG_VIDEO_OMAP3=y
Shouldn't they be compiled as modules instead ?
Quoted 3 lines
arch/arm/configs/omap2plus_defconfig +0
-0CONFIG_FB=y CONFIG_FIRMWARE_EDID=y CONFIG_FB_MODE_HELPERS=y
Signature · 3 lines
Regards, Laurent Pinchart
Re: [PATCH 4/5] ispccdc: Configure CCDC_SYN_MODE register for UYVY8_2X8 and YUYV8_2X8 formats
In reply to Deepthy RaviHi Deepthy,
Thanks for the patch.
Quoted 29 lines · On Tuesday 20 September 2011 16:56:51 Deepthy Ravi wrote:
Configure INPMOD and PACK8 fileds of
CCDC_SYN_MODEregister forUYVY8_2X8andYUYV8_2X8formats.Signed-off-by Deepthy Ravi <[email protected]>--- drivers/media/video/omap3isp/ispccdc.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/drivers/media/video/omap3isp/ispccdc.cindex 418ba65..1dcf180 100644drivers/media/video/omap3isp/ispccdc.c +6
-2@@ -985,8 +985,12 @@ static void ccdc_config_sync_if(struct isp_ccdc_device *ccdc, syn_mode &= ~ISPCCDC_SYN_MODE_INPMOD_MASK ;if (format->code ==V4L2_MBUS_FMT_YUYV8_2X8 || - format->code ==V4L2_MBUS_FMT_UYVY8_2X8 ) - syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR8 ; + format->code ==V4L2_MBUS_FMT_UYVY8_2X8 ){ +if (pdata && pdata->bt656) + syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR8 ; +else + syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR16 ; + }else if (format->code ==V4L2_MBUS_FMT_YUYV8_1X16 || format->code ==V4L2_MBUS_FMT_UYVY8_1X16 )drivers/media/video/omap3isp/ispccdc.c +0
-0syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR16 ;
drivers/media/video/omap3isp/ispccdc.c static void ccdc_configure(struct isp_ccdc_device · line 1180
Quoted 6 lines
drivers/media/video/omap3isp/ispccdc.c +2
-1@@ -1172,7 +1176,8 @@ static void ccdc_configure(struct isp_ccdc_device *ccdc) syn_mode &= ~ISPCCDC_SYN_MODE_SDR2RSZ;/* Use PACK8 mode for 1byte per pixel formats. */ -if (omap3isp_video_format_info (format->code)->width <=8 ) +if ((omap3isp_video_format_info (format->code)->width <=8 ) && + (omap3isp_video_format_info (format->code)->bpp <=8 ))
I'm not sure to follow you. This will clear the PACK8 bit for the YUYV8_2X8 formats. Those formats are 8 bits wide, shouldn't PACK8 be set to store samples on 8 bits instead of 16 bits ?
Is this patch intended to support YUYV8_2X8 sensors in non BT.656 mode with the bridge enabled ? In that case, what would you think about setting the CCDC input format to YUYV8_1X16 instead ? This would better reflect the reality, as the bridge converts YUYV8_2X8 to YUYV8_1X16, and the CCDC is then fed with YUYV8_1X16.
Quoted 3 lines
drivers/media/video/omap3isp/ispccdc.c +0
-0syn_mode |=ISPCCDC_SYN_MODE_PACK8 ; else syn_mode &= ~ISPCCDC_SYN_MODE_PACK8;
Signature · 3 lines
Regards, Laurent Pinchart
Tony Lindgren
maintainerRe: [PATCH 5/5] omap2plus_defconfig: Enable omap3isp and MT9T111 sensor drivers
In reply to Laurent PinchartQuoted 6 lines · Laurent Pinchart
Quoted 6 lines
CONFIG_REGULATOR_TPS65023=y
CONFIG_REGULATOR_TPS6507X=yarch/arm/configs/omap2plus_defconfig +4
-0+CONFIG_MEDIA_SUPPORT=y +CONFIG_MEDIA_CONTROLLER=y +CONFIG_VIDEO_DEV=y +CONFIG_VIDEO_V4L2_COMMON=y
Quoted 8 lines
arch/arm/configs/omap2plus_defconfig CONFIG_TWL4030_WATCHDOG=y · line 145
Quoted 6 lines
arch/arm/configs/omap2plus_defconfig +6
-0+CONFIG_VIDEO_ALLOW_V4L1=y +CONFIG_VIDEO_V4L1_COMPAT=y +CONFIG_VIDEO_V4L2_SUBDEV_API=y +CONFIG_VIDEO_MEDIA=y +CONFIG_VIDEO_MT9T111=y +CONFIG_VIDEO_OMAP3=yShouldn't they be compiled as modules instead ?
Yes, let's not apply this.
Tony
RE: [PATCH 4/5] ispccdc: Configure CCDC_SYN_MODE register for UYVY8_2X8 and YUYV8_2X8 formats
In reply to Laurent PinchartHi Laurent,
Quoted 61 lines
________________________________________
From: Laurent Pinchart [laurent.pinchart at ideasonboard.com]
Sent: Wednesday, September 21, 2011 4:56 AM
To: Ravi, Deepthy
Cc: mchehab at infradead.org; tony at atomide.com; Hiremath, Vaibhav; linux-media at vger.kernel.org; linux at arm.linux.org.uk; linux-arm-kernel at lists.infradead.org; kyungmin.park at samsung.com; hverkuil at xs4all.nl; m.szyprowski at samsung.com; g.liakhovetski at gmx.de; Shilimkar, Santosh; khilman at deeprootsystems.com; david.woodhouse at intel.com; akpm at linux-foundation.org; linux-kernel at vger.kernel.org; linux-omap at vger.kernel.org; Sakari Ailus
Subject: Re: [PATCH 4/5] ispccdc: ConfigureCCDC_SYN_MODEregister forUYVY8_2X8andYUYV8_2X8formatsHi Deepthy,
Thanks for the patch.
Quoted 30 lines · On Tuesday 20 September 2011 16:56:51 Deepthy Ravi wrote:
Configure INPMOD and PACK8 fileds of
CCDC_SYN_MODEregister forUYVY8_2X8andYUYV8_2X8formats.Signed-off-by Deepthy Ravi <[email protected]>--- drivers/media/video/omap3isp/ispccdc.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/drivers/media/video/omap3isp/ispccdc.cindex 418ba65..1dcf180 100644drivers/media/video/omap3isp/ispccdc.c +0
-0@@ -985,8 +985,12 @@ static void ccdc_config_sync_if(struct
isp_ccdc_device
*ccdc,syn_mode &= ~ISPCCDC_SYN_MODE_INPMOD_MASK; if (format->code == V4L2_MBUS_FMT_YUYV8_2X8 ||drivers/media/video/omap3isp/ispccdc.c +6
-2- format->code == V4L2_MBUS_FMT_UYVY8_2X8) - syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR8 ; + format->code == V4L2_MBUS_FMT_UYVY8_2X8){ +if (pdata && pdata->bt656) + syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR8 ; +else + syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR16 ; + } else if (format->code == V4L2_MBUS_FMT_YUYV8_1X16 || format->code == V4L2_MBUS_FMT_UYVY8_1X16) syn_mode |= ISPCCDC_SYN_MODE_INPMOD_YCBCR16;drivers/media/video/omap3isp/ispccdc.c static void ccdc_configure(struct isp_ccdc_device · line 1181
Quoted 7 lines
drivers/media/video/omap3isp/ispccdc.c +2
-1@@ -1172,7 +1176,8 @@ static void ccdc_configure(struct isp_ccdc_device *ccdc) syn_mode &= ~ISPCCDC_SYN_MODE_SDR2RSZ;/* Use PACK8 mode for 1byte per pixel formats. */ -if (omap3isp_video_format_info (format->code)->width <=8 ) +if ((omap3isp_video_format_info (format->code)->width <=8 ) && + (omap3isp_video_format_info (format->code)->bpp <=8 ))I'm not sure to follow you. This will clear the PACK8 bit for the
YUYV8_2X8formats. Those formats are 8 bits wide, shouldn't PACK8 be set to store samples on 8 bits instead of 16 bits ?
Quoted 8 lines
Is this patch intended to support
YUYV8_2X8sensors in non BT.656 mode with the bridge enabled ? In that case, what would you think about setting the CCDC
input format toYUYV8_1X16instead ? This would better reflect the reality, as
the bridge convertsYUYV8_2X8toYUYV8_1X16, and the CCDC is then fed withYUYV8_1X16.
[Deepthy Ravi] Yes this is intended for YUYV8_2X8 sensors in non BT.656 with 8 to 16 bit bridge enabled. So the data has to be stored as 16 bits per sample. Thats why PACK8 is cleared . I am not sure about using YUYV8_1X16.
Quoted 9 lines
Quoted 3 lines
drivers/media/video/omap3isp/ispccdc.c +0
-0syn_mode |=ISPCCDC_SYN_MODE_PACK8 ; elsesyn_mode &= ~ISPCCDC_SYN_MODE_PACK8;--
Regards,Laurent Pinchart
Signature · 2 lines
Thanks, Deepthy Ravi
Re: [PATCH 4/5] ispccdc: Configure CCDC_SYN_MODE register for UYVY8_2X8 and YUYV8_2X8 formats
Hi Deepthy,
Quoted 57 lines · Deepthy
Quoted 50 lines · Laurent Pinchart
Quoted 36 lines · On Tuesday 20 September 2011 16:56:51 Deepthy Ravi wrote:
Configure INPMOD and PACK8 fileds of
CCDC_SYN_MODEregister forUYVY8_2X8andYUYV8_2X8formats.Signed-off-by Deepthy Ravi <[email protected]>---
drivers/media/video/omap3isp/ispccdc.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/drivers/media/video/omap3isp/ispccdc.cindex 418ba65..1dcf180 100644drivers/media/video/omap3isp/ispccdc.c +0
-0@@ -985,8 +985,12 @@ static void ccdc_config_sync_if(struct
isp_ccdc_device
*ccdc,syn_mode &= ~ISPCCDC_SYN_MODE_INPMOD_MASK; if (format->code == V4L2_MBUS_FMT_YUYV8_2X8 ||drivers/media/video/omap3isp/ispccdc.c +6
-2- format->code == V4L2_MBUS_FMT_UYVY8_2X8) - syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR8 ; + format->code == V4L2_MBUS_FMT_UYVY8_2X8){ +if (pdata && pdata->bt656) + syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR8 ; +else + syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR16 ; + } else if (format->code == V4L2_MBUS_FMT_YUYV8_1X16 || format->code == V4L2_MBUS_FMT_UYVY8_1X16) syn_mode |= ISPCCDC_SYN_MODE_INPMOD_YCBCR16;drivers/media/video/omap3isp/ispccdc.c static void ccdc_configure(struct isp_ccdc_device · line 1182
Quoted 8 lines
drivers/media/video/omap3isp/ispccdc.c +2
-1@@ -1172,7 +1176,8 @@ static void ccdc_configure(struct isp_ccdc_device *ccdc) syn_mode &= ~ISPCCDC_SYN_MODE_SDR2RSZ;/* Use PACK8 mode for 1byte per pixel formats. */ -if (omap3isp_video_format_info (format->code)->width <=8 ) +if ((omap3isp_video_format_info (format->code)->width <=8 ) && + (omap3isp_video_format_info (format->code)->bpp <=8 ))I'm not sure to follow you. This will clear the PACK8 bit for the
YUYV8_2X8formats. Those formats are 8 bits wide, shouldn't PACK8 be set to store samples on 8 bits instead of 16 bits ?Quoted 5 lines
Is this patch intended to support
YUYV8_2X8sensors in non BT.656 mode with the bridge enabled ? In that case, what would you think about setting the CCDC input format toYUYV8_1X16instead ? This would better reflect the reality, as the bridge convertsYUYV8_2X8toYUYV8_1X16, and the CCDC is then fed withYUYV8_1X16.
Quoted 3 lines
Yes this is intended for
YUYV8_2X8sensors in non BT.656 with 8 to 16 bit bridge enabled. So the data has to be stored as 16 bits per sample. Thats why PACK8 is cleared . I am not sure about usingYUYV8_1X16.
My original idea when I wrote the YV support patches was to implement this use case with YUYV8_2X8 at the sensor output and YUYV8_1X16 at the CCDC input. The ISP driver could then enable the bridge automatically. I'm not sure if that's the best solution though, it might be confusing for the users. What I would like to keep, however, is the idea of enabling the bridge automatically.
Sakari, any opinion on this ?
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
drivers/media/video/omap3isp/ispccdc.c +0
-0syn_mode |=ISPCCDC_SYN_MODE_PACK8 ;else syn_mode &= ~ISPCCDC_SYN_MODE_PACK8;
Signature · 3 lines
Regards, Laurent Pinchart
RE: [PATCH 4/5] ispccdc: Configure CCDC_SYN_MODE register for UYVY8_2X8 and YUYV8_2X8 formats
Quoted 72 lines
________________________________________
From: Laurent Pinchart [laurent.pinchart at ideasonboard.com]
Sent: Wednesday, September 21, 2011 2:36 PM
To: Ravi, Deepthy
Cc: mchehab at infradead.org; tony at atomide.com; Hiremath, Vaibhav; linux-media at vger.kernel.org; linux at arm.linux.org.uk; linux-arm-kernel at lists.infradead.org; kyungmin.park at samsung.com; hverkuil at xs4all.nl; m.szyprowski at samsung.com; g.liakhovetski at gmx.de; Shilimkar, Santosh; khilman at deeprootsystems.com; david.woodhouse at intel.com; akpm at linux-foundation.org; linux-kernel at vger.kernel.org; linux-omap at vger.kernel.org; Sakari Ailus
Subject: Re: [PATCH 4/5] ispccdc: ConfigureCCDC_SYN_MODEregister forUYVY8_2X8andYUYV8_2X8formatsHi Deepthy,
Quoted 57 lines · Deepthy
Quoted 50 lines · Laurent Pinchart
Quoted 36 lines · On Tuesday 20 September 2011 16:56:51 Deepthy Ravi wrote:
Configure INPMOD and PACK8 fileds of
CCDC_SYN_MODEregister forUYVY8_2X8andYUYV8_2X8formats.Signed-off-by Deepthy Ravi <[email protected]>---
drivers/media/video/omap3isp/ispccdc.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/drivers/media/video/omap3isp/ispccdc.cindex 418ba65..1dcf180 100644drivers/media/video/omap3isp/ispccdc.c +0
-0@@ -985,8 +985,12 @@ static void ccdc_config_sync_if(struct
isp_ccdc_device
*ccdc,syn_mode &= ~ISPCCDC_SYN_MODE_INPMOD_MASK; if (format->code == V4L2_MBUS_FMT_YUYV8_2X8 ||drivers/media/video/omap3isp/ispccdc.c +6
-2- format->code == V4L2_MBUS_FMT_UYVY8_2X8) - syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR8 ; + format->code == V4L2_MBUS_FMT_UYVY8_2X8){ +if (pdata && pdata->bt656) + syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR8 ; +else + syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR16 ; + } else if (format->code == V4L2_MBUS_FMT_YUYV8_1X16 || format->code == V4L2_MBUS_FMT_UYVY8_1X16) syn_mode |= ISPCCDC_SYN_MODE_INPMOD_YCBCR16;drivers/media/video/omap3isp/ispccdc.c static void ccdc_configure(struct isp_ccdc_device · line 1182
Quoted 8 lines
drivers/media/video/omap3isp/ispccdc.c +2
-1@@ -1172,7 +1176,8 @@ static void ccdc_configure(struct isp_ccdc_device *ccdc) syn_mode &= ~ISPCCDC_SYN_MODE_SDR2RSZ;/* Use PACK8 mode for 1byte per pixel formats. */ -if (omap3isp_video_format_info (format->code)->width <=8 ) +if ((omap3isp_video_format_info (format->code)->width <=8 ) && + (omap3isp_video_format_info (format->code)->bpp <=8 ))I'm not sure to follow you. This will clear the PACK8 bit for the
YUYV8_2X8formats. Those formats are 8 bits wide, shouldn't PACK8 be set to store samples on 8 bits instead of 16 bits ?Quoted 5 lines
Is this patch intended to support
YUYV8_2X8sensors in non BT.656 mode with the bridge enabled ? In that case, what would you think about setting the CCDC input format toYUYV8_1X16instead ? This would better reflect the reality, as the bridge convertsYUYV8_2X8toYUYV8_1X16, and the CCDC is then fed withYUYV8_1X16.Quoted 3 lines
Yes this is intended for
YUYV8_2X8sensors in non BT.656 with 8 to 16 bit bridge enabled. So the data has to be stored as 16 bits per sample. Thats why PACK8 is cleared . I am not sure about usingYUYV8_1X16.
Quoted 6 lines
My original idea when I wrote the YV support patches was to implement this use case with
YUYV8_2X8at the sensor output andYUYV8_1X16at the CCDC input. The ISP driver could then enable the bridge automatically. I'm not sure if that's the best solution though, it might be confusing for the users. What I would like to keep, however, is the idea of enabling the bridge automatically.
[Deepthy Ravi] But for streaming to start, the formats on both ends of the link should match. I believe setting different formats at sensor output and ccdc input will give a broken pipe error. Is my understanding correct ? If so, how do you propose to handle the situation ?
Quoted 11 lines
Sakari, any opinion on this ?
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
drivers/media/video/omap3isp/ispccdc.c +0
-0syn_mode |=ISPCCDC_SYN_MODE_PACK8 ;else syn_mode &= ~ISPCCDC_SYN_MODE_PACK8;--
Regards,Laurent Pinchart
Re: [PATCH 4/5] ispccdc: Configure CCDC_SYN_MODE register for UYVY8_2X8 and YUYV8_2X8 formats
In reply to Laurent PinchartQuoted 1 line · Laurent Pinchart
Hi Deepthy,
Hi,
(Dropped most of people and lists from cc. I don't think Andrew Morton, for example, has immediate interest towards this topic. Feel free to prome me wrong.)
Quoted 62 lines · Deepthy
Quoted 57 lines · Laurent Pinchart
Quoted 50 lines · On Tuesday 20 September 2011 16:56:51 Deepthy Ravi wrote:
Quoted 36 lines
Configure INPMOD and PACK8 fileds of
CCDC_SYN_MODEregister forUYVY8_2X8andYUYV8_2X8formats.Signed-off-by Deepthy Ravi <[email protected]>---
drivers/media/video/omap3isp/ispccdc.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/drivers/media/video/omap3isp/ispccdc.cindex 418ba65..1dcf180 100644drivers/media/video/omap3isp/ispccdc.c +0
-0@@ -985,8 +985,12 @@ static void ccdc_config_sync_if(struct
isp_ccdc_device
*ccdc,syn_mode &= ~ISPCCDC_SYN_MODE_INPMOD_MASK; if (format->code == V4L2_MBUS_FMT_YUYV8_2X8 ||drivers/media/video/omap3isp/ispccdc.c +6
-2- format->code == V4L2_MBUS_FMT_UYVY8_2X8) - syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR8 ; + format->code == V4L2_MBUS_FMT_UYVY8_2X8){ +if (pdata && pdata->bt656) + syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR8 ; +else + syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR16 ; + } else if (format->code == V4L2_MBUS_FMT_YUYV8_1X16 || format->code == V4L2_MBUS_FMT_UYVY8_1X16) syn_mode |= ISPCCDC_SYN_MODE_INPMOD_YCBCR16;drivers/media/video/omap3isp/ispccdc.c static void ccdc_configure(struct isp_ccdc_device · line 1182
Quoted 8 lines
drivers/media/video/omap3isp/ispccdc.c +2
-1@@ -1172,7 +1176,8 @@ static void ccdc_configure(struct isp_ccdc_device *ccdc) syn_mode &= ~ISPCCDC_SYN_MODE_SDR2RSZ;/* Use PACK8 mode for 1byte per pixel formats. */ -if (omap3isp_video_format_info (format->code)->width <=8 ) +if ((omap3isp_video_format_info (format->code)->width <=8 ) && + (omap3isp_video_format_info (format->code)->bpp <=8 ))I'm not sure to follow you. This will clear the PACK8 bit for the
YUYV8_2X8formats. Those formats are 8 bits wide, shouldn't PACK8 be set to store samples on 8 bits instead of 16 bits ?Quoted 5 lines
Is this patch intended to support
YUYV8_2X8sensors in non BT.656 mode with the bridge enabled ? In that case, what would you think about setting the CCDC input format toYUYV8_1X16instead ? This would better reflect the reality, as the bridge convertsYUYV8_2X8toYUYV8_1X16, and the CCDC is then fed withYUYV8_1X16.Quoted 3 lines
Yes this is intended for
YUYV8_2X8sensors in non BT.656 with 8 to 16 bit bridge enabled. So the data has to be stored as 16 bits per sample. Thats why PACK8 is cleared . I am not sure about usingYUYV8_1X16.
Quoted 7 lines
My original idea when I wrote the YV support patches was to implement this use case with
YUYV8_2X8at the sensor output andYUYV8_1X16at the CCDC input. The ISP driver could then enable the bridge automatically. I'm not sure if that's the best solution though, it might be confusing for the users. What I would like to keep, however, is the idea of enabling the bridge automatically.Sakari, any opinion on this ?
Are there any complications from the CCDC also listing the 2X8 formats as supported in its sink pad? I'd rather support them since doing it the other way might be somewhat confusing to the users. This would also mean media-ctl users would have to set both sink and source formats rather than just the source format when configuring the format for the link.
Quoted 12 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
drivers/media/video/omap3isp/ispccdc.c +0
-0syn_mode |=ISPCCDC_SYN_MODE_PACK8 ;else syn_mode &= ~ISPCCDC_SYN_MODE_PACK8;Signature · 7 lines
Regards, Laurent Pinchart -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Sakari Ailus e-mail: [email protected] jabber/XMPP/Gmail: [email protected]
Re: [PATCH 4/5] ispccdc: Configure CCDC_SYN_MODE register for UYVY8_2X8 and YUYV8_2X8 formats
Hi Sakari,
Quoted 71 lines · On Sunday 25 September 2011 13:17:17 Sakari Ailus wrote:
Quoted 70 lines · Laurent Pinchart
Quoted 57 lines · Deepthy
Quoted 50 lines · Laurent Pinchart
Quoted 36 lines · On Tuesday 20 September 2011 16:56:51 Deepthy Ravi wrote:
Configure INPMOD and PACK8 fileds of
CCDC_SYN_MODEregister forUYVY8_2X8andYUYV8_2X8formats.Signed-off-by Deepthy Ravi <[email protected]>---
drivers/media/video/omap3isp/ispccdc.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/drivers/media/video/omap3isp/ispccdc.cindex 418ba65..1dcf180 100644 ---a/drivers/media/video/omap3isp/ispccdc.c+++b/drivers/media/video/omap3isp/ispccdc.c(quoted diff) +0
-0@@ -985,8 +985,12 @@ static void ccdc_config_sync_if(struct
isp_ccdc_device
*ccdc,syn_mode &= ~ISPCCDC_SYN_MODE_INPMOD_MASK; if (format->code == V4L2_MBUS_FMT_YUYV8_2X8 ||drivers/media/video/omap3isp/ispccdc.c +6
-2- format->code == V4L2_MBUS_FMT_UYVY8_2X8) - syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR8 ; + format->code == V4L2_MBUS_FMT_UYVY8_2X8){ +if (pdata && pdata->bt656) + syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR8 ; +else + syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR16 ; + } else if (format->code == V4L2_MBUS_FMT_YUYV8_1X16 || format->code == V4L2_MBUS_FMT_UYVY8_1X16) syn_mode |= ISPCCDC_SYN_MODE_INPMOD_YCBCR16;drivers/media/video/omap3isp/ispccdc.c static void ccdc_configure(struct · line 1182
Quoted 8 lines
drivers/media/video/omap3isp/ispccdc.c +2
-1@@ -1172,7 +1176,8 @@ static void ccdc_configure(struct isp_ccdc_device *ccdc) syn_mode &= ~ISPCCDC_SYN_MODE_SDR2RSZ;/* Use PACK8 mode for 1byte per pixel formats. */ -if (omap3isp_video_format_info (format->code)->width <=8 ) +if ((omap3isp_video_format_info (format->code)->width <=8 ) && + (omap3isp_video_format_info (format->code)->bpp <=8 ))I'm not sure to follow you. This will clear the PACK8 bit for the
YUYV8_2X8formats. Those formats are 8 bits wide, shouldn't PACK8 be set to store samples on 8 bits instead of 16 bits ?Quoted 5 lines
Is this patch intended to support
YUYV8_2X8sensors in non BT.656 mode with the bridge enabled ? In that case, what would you think about setting the CCDC input format toYUYV8_1X16instead ? This would better reflect the reality, as the bridge convertsYUYV8_2X8toYUYV8_1X16, and the CCDC is then fed withYUYV8_1X16.Quoted 4 lines
Yes this is intended for
YUYV8_2X8sensors in non BT.656 with 8 to 16 bit bridge enabled. So the data has to be stored as 16 bits per sample. Thats why PACK8 is cleared . I am not sure about usingYUYV8_1X16.My original idea when I wrote the YV support patches was to implement this use case with
YUYV8_2X8at the sensor output andYUYV8_1X16at the CCDC input. The ISP driver could then enable the bridge automatically. I'm not sure if that's the best solution though, it might be confusing for the users. What I would like to keep, however, is the idea of enabling the bridge automatically.
Quoted 4 lines
Quoted 1 line
Sakari, any opinion on this ?
Are there any complications from the CCDC also listing the 2X8 formats as supported in its sink pad?
No, and the 2X8 formats need to be supported at the CCDC input, as BT.656 mode is not compatible with the bridge.
Quoted 2 lines
I'd rather support them since doing it the other way might be somewhat confusing to the users.
It can be confusing indeed, but it reflects reality :-) It's also how we currently handle the lane shifter.
If we incorporate the bridge inside the CCDC, only YUV 2X8 formats will be supported at the CCDC input. Whether to enable the bridge will then be a platform decision and hardcoded in board code instead of being configurable by the user. Couldn't that be an issue ?
Quoted 9 lines
This would also mean media-ctl users would have to set both sink and source formats rather than just the source format when configuring the format for the link.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
drivers/media/video/omap3isp/ispccdc.c +0
-0syn_mode |=ISPCCDC_SYN_MODE_PACK8 ;else syn_mode &= ~ISPCCDC_SYN_MODE_PACK8;
Signature · 3 lines
Regards, Laurent Pinchart
Re: [PATCH 4/5] ispccdc: Configure CCDC_SYN_MODE register for UYVY8_2X8 and YUYV8_2X8 formats
In reply to Ravi, DeepthyHi Deepthy,
Quoted 70 lines · Deepthy
Quoted 62 lines · Laurent Pinchart
Quoted 57 lines · Deepthy
Quoted 50 lines · Laurent Pinchart
Quoted 36 lines · On Tuesday 20 September 2011 16:56:51 Deepthy Ravi wrote:
Configure INPMOD and PACK8 fileds of
CCDC_SYN_MODEregister forUYVY8_2X8andYUYV8_2X8formats.Signed-off-by Deepthy Ravi <[email protected]>---
drivers/media/video/omap3isp/ispccdc.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/drivers/media/video/omap3isp/ispccdc.cindex 418ba65..1dcf180 100644 ---a/drivers/media/video/omap3isp/ispccdc.c+++b/drivers/media/video/omap3isp/ispccdc.c(quoted diff) +0
-0@@ -985,8 +985,12 @@ static void ccdc_config_sync_if(struct
isp_ccdc_device
*ccdc,syn_mode &= ~ISPCCDC_SYN_MODE_INPMOD_MASK; if (format->code == V4L2_MBUS_FMT_YUYV8_2X8 ||drivers/media/video/omap3isp/ispccdc.c +6
-2- format->code == V4L2_MBUS_FMT_UYVY8_2X8) - syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR8 ; + format->code == V4L2_MBUS_FMT_UYVY8_2X8){ +if (pdata && pdata->bt656) + syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR8 ; +else + syn_mode |=ISPCCDC_SYN_MODE_INPMOD_YCBCR16 ; + } else if (format->code == V4L2_MBUS_FMT_YUYV8_1X16 || format->code == V4L2_MBUS_FMT_UYVY8_1X16) syn_mode |= ISPCCDC_SYN_MODE_INPMOD_YCBCR16;drivers/media/video/omap3isp/ispccdc.c static void ccdc_configure(struct · line 1182
Quoted 8 lines
drivers/media/video/omap3isp/ispccdc.c +2
-1@@ -1172,7 +1176,8 @@ static void ccdc_configure(struct isp_ccdc_device *ccdc) syn_mode &= ~ISPCCDC_SYN_MODE_SDR2RSZ;/* Use PACK8 mode for 1byte per pixel formats. */ -if (omap3isp_video_format_info (format->code)->width <=8 ) +if ((omap3isp_video_format_info (format->code)->width <=8 ) && + (omap3isp_video_format_info (format->code)->bpp <=8 ))I'm not sure to follow you. This will clear the PACK8 bit for the
YUYV8_2X8formats. Those formats are 8 bits wide, shouldn't PACK8 be set to store samples on 8 bits instead of 16 bits ?Quoted 5 lines
Is this patch intended to support
YUYV8_2X8sensors in non BT.656 mode with the bridge enabled ? In that case, what would you think about setting the CCDC input format toYUYV8_1X16instead ? This would better reflect the reality, as the bridge convertsYUYV8_2X8toYUYV8_1X16, and the CCDC is then fed withYUYV8_1X16.Quoted 3 lines
Yes this is intended for
YUYV8_2X8sensors in non BT.656 with 8 to 16 bit bridge enabled. So the data has to be stored as 16 bits per sample. Thats why PACK8 is cleared . I am not sure about usingYUYV8_1X16.Quoted 6 lines
My original idea when I wrote the YV support patches was to implement this use case with
YUYV8_2X8at the sensor output andYUYV8_1X16at the CCDC input. The ISP driver could then enable the bridge automatically. I'm not sure if that's the best solution though, it might be confusing for the users. What I would like to keep, however, is the idea of enabling the bridge automatically.
Quoted 4 lines
But for streaming to start, the formats on both ends of the link should match. I believe setting different formats at sensor output and ccdc input will give a broken pipe error. Is my understanding correct ? If so, how do you propose to handle the situation ?
We already handle that situation for the lane shifter in ispvideo.c. The code could be extended.
Signature · 3 lines
Regards, Laurent Pinchart
RE: [PATCH 2/5] [media] v4l: Add mt9t111 sensor driver
In reply to Guennadi LiakhovetskiHi,
Quoted 14 lines
________________________________________
From: Gary Thomas [gary at mlbassoc.com]
Sent: Tuesday, September 27, 2011 7:21 PM
To: Ravi, Deepthy
Cc: laurent.pinchart at ideasonboard.com; mchehab at infradead.org; tony at atomide.com; Hiremath, Vaibhav; linux-media at vger.kernel.org; linux at arm.linux.org.uk; linux-arm-kernel at lists.infradead.org; kyungmin.park at samsung.com; hverkuil at xs4all.nl; m.szyprowski at samsung.com; g.liakhovetski at gmx.de; Shilimkar, Santosh; khilman at deeprootsystems.com; linux-kernel at vger.kernel.org; linux-omap at vger.kernel.org
Subject: Re: [PATCH v2 0/5] OMAP3EVM: Add support for MT9T111 sensorQuoted 6 lines · Deepthy Ravi
This patchset
-adds support for MT9T111 sensor on omap3evm. Currently the sensor driver supports only VGA resolution.
-enables MT9T111 sensor inomap2plus_defconfig.
Quoted 9 lines
Quoted 4 lines
This is dependent on the following patchset
http://www.spinics.net/lists/linux-media/msg37270.html
which adds YUYV input support for OMAP3ISP. And is applied on top of rc1-for-3.2 of gliakhovetski/v4l-dvb.gitWhy not use the same base as Lennart?
The set is based on
http://git.linuxtv.org/pinchartl/media.git/shortlog/refs/heads/omap3isp-omap3isp-next
[Deepthy Ravi] Because the patches for making mt9t112 driver usable outside the soc-camera subsystem are present in that base only . Its not there in Laurent's.
Quoted 36 lines
Quoted 26 lines
---
Changes in v2:
As per the discussion here,
https://lkml.org/lkml/2011/9/20/280
the existing mt9t112 driver is reused for
adding support for mt9t111 sensor.
Deepthy Ravi (3):
[media] v4l: Add support for mt9t111 sensor driver
ispccdc: ConfigureCCDC_SYN_MODEregister
omap2plus_defconfig: Enable omap3isp and MT9T111 sensor driversVaibhav Hiremath (2):
omap3evm: Enable regulators for camera interface
omap3evm: Add Camera board init/hookup filearch/arm/configs/omap2plus_defconfig | 9 + arch/arm/mach-omap2/Makefile | 5 + arch/arm/mach-omap2/board-omap3evm-camera.c | 185 ++++ arch/arm/mach-omap2/board-omap3evm.c | 26 + drivers/media/video/Kconfig | 7 + drivers/media/video/Makefile | 1 + drivers/media/video/mt9t111_reg.h | 1367 +++++++++++++++++++++++++++ drivers/media/video/mt9t112.c | 320 ++++++- drivers/media/video/omap3isp/ispccdc.c | 11 +- include/media/mt9t111.h | 45 + 10 files changed, 1937 insertions(+), 39 deletions(-)Quoted 3 lines
create mode 100644
arch/arm/mach-omap2/board-omap3evm-camera.ccreate mode 100644drivers/media/video/mt9t111_reg.hcreate mode 100644include/media/mt9t111.h--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------