Skip to contentSkip to conversation

davinci vpbe: V4L2 Display driver for DM644X

PATCH Superseded Manjunath Hadli 5 participants 14 messages Nov 8, 2010 – Nov 19, 2010 Media (V4L/DVB)

v1 of 15 Superseded Latest is v15 →

lore
Share & tools
lore
#0 lore raw

cover davinci vpbe: V4L2 Display driver for DM644X

This driver is written for Texas Instruments's DM644X VPBE IP. This SoC supports 2 video planes and 2 OSD planes as part of its OSD (On Screen Display) block. The OSD lanes predminantly support RGB space and the Video planes support YUV data. Out of these 4, the 2 video planes are supported as part of the V4L2 driver. These would be enumerated as video2 and video3 dev nodes.
The blending and video timing generator unit (VENC- for Video Encoder) is the unit which combines/blends the output of these 4 planes into a single stream and this output is given to Video input devices like TV and other digital LCDs. The software for VENC is designed as a subdevice with support for SD(NTSC and PAL) modes and 2 outputs. This SoC forms the iniial implementation of its later additions like DM355 and DM365.

Muralidharan Karicheri (6):
davinci vpbe: V4L2 display driver for DM644X SoC davinci vpbe: VPBE display driver
davinci vpbe: OSD(On Screen Display ) block davinci vpbe: VENC( Video Encoder) implementation davinci vpbe: platform specific additions davinci vpbe: Build infrastructure for VPBE driver

 arch/arm/mach-davinci/board-dm644x-evm.c     |   85 +-
 arch/arm/mach-davinci/dm644x.c               |  181 ++-
 arch/arm/mach-davinci/include/mach/dm644x.h  |    4 +
 drivers/media/video/davinci/Kconfig          |   22 +
 drivers/media/video/davinci/Makefile         |    2 +
 drivers/media/video/davinci/vpbe.c           |  861 ++++++++++
 drivers/media/video/davinci/vpbe_display.c   | 2283 ++++++++++++++++++++++++++
 drivers/media/video/davinci/vpbe_osd.c       | 1208 ++++++++++++++
 drivers/media/video/davinci/vpbe_osd_regs.h  |  389 +++++
 drivers/media/video/davinci/vpbe_venc.c      |  617 +++++++
 drivers/media/video/davinci/vpbe_venc_regs.h |  189 +++
 include/media/davinci/vpbe.h                 |  187 +++
 include/media/davinci/vpbe_display.h         |  144 ++
 include/media/davinci/vpbe_osd.h             |  397 +++++
 include/media/davinci/vpbe_types.h           |  170 ++
 include/media/davinci/vpbe_venc.h            |   70 +
 16 files changed, 6790 insertions(+), 19 deletions(-)
 create mode 100644 drivers/media/video/davinci/vpbe.c
 create mode 100644 drivers/media/video/davinci/vpbe_display.c
 create mode 100644 drivers/media/video/davinci/vpbe_osd.c
 create mode 100644 drivers/media/video/davinci/vpbe_osd_regs.h
 create mode 100644 drivers/media/video/davinci/vpbe_venc.c
 create mode 100644 drivers/media/video/davinci/vpbe_venc_regs.h
 create mode 100644 include/media/davinci/vpbe.h
 create mode 100644 include/media/davinci/vpbe_display.h
 create mode 100644 include/media/davinci/vpbe_osd.h
 create mode 100644 include/media/davinci/vpbe_types.h
 create mode 100644 include/media/davinci/vpbe_venc.h
#1 lore raw

Manjunath,

Thank you for putting up this patch together. I didn't see the 1/6 of this series in the mailing list. Also it appears as if the patch came from me. Please add my sign-off as second, you being the first.

Murali

Quoted 56 lines · Manjunath Hadli

This driver is written for Texas Instruments's DM644X VPBE IP. This SoC supports 2 video planes and 2 OSD planes as part of its OSD (On Screen Display) block. The OSD lanes predminantly support RGB space and the Video planes support YUV data. Out of these 4, the 2 video planes are supported as part of the V4L2 driver. These would be enumerated as video2 and video3 dev nodes.
The blending and video timing generator unit (VENC- for Video Encoder) is the unit which combines/blends the output of these 4 planes into a single stream and this output is given to Video input devices like TV and other digital LCDs. The software for VENC is designed as a subdevice with support for SD(NTSC and PAL) modes and 2 outputs. This SoC forms the iniial implementation of its later additions like DM355 and DM365.

Muralidharan Karicheri (6):
 davinci vpbe: V4L2 display driver for DM644X SoC davinci vpbe: VPBE display driver
 davinci vpbe: OSD(On Screen Display ) block davinci vpbe: VENC( Video Encoder) implementation davinci vpbe: platform specific additions davinci vpbe: Build infrastructure for VPBE driver

 arch/arm/mach-davinci/board-dm644x-evm.c     |   85 +- arch/arm/mach-davinci/dm644x.c               |  181 ++- arch/arm/mach-davinci/include/mach/dm644x.h  |    4 + drivers/media/video/davinci/Kconfig          |   22 + drivers/media/video/davinci/Makefile         |    2 + drivers/media/video/davinci/vpbe.c           |  861 ++++++++++ drivers/media/video/davinci/vpbe_display.c   | 2283 ++++++++++++++++++++++++++ drivers/media/video/davinci/vpbe_osd.c       | 1208 ++++++++++++++ drivers/media/video/davinci/vpbe_osd_regs.h  |  389 +++++ drivers/media/video/davinci/vpbe_venc.c      |  617 +++++++ drivers/media/video/davinci/vpbe_venc_regs.h |  189 +++ include/media/davinci/vpbe.h                 |  187 +++ include/media/davinci/vpbe_display.h         |  144 ++ include/media/davinci/vpbe_osd.h             |  397 +++++ include/media/davinci/vpbe_types.h           |  170 ++ include/media/davinci/vpbe_venc.h            |   70 +

 16 files changed, 6790 insertions(+), 19 deletions(-)

 create mode 100644 drivers/media/video/davinci/vpbe.c create mode 100644 drivers/media/video/davinci/vpbe_display.c create mode 100644 drivers/media/video/davinci/vpbe_osd.c create mode 100644 drivers/media/video/davinci/vpbe_osd_regs.h create mode 100644 drivers/media/video/davinci/vpbe_venc.c create mode 100644 drivers/media/video/davinci/vpbe_venc_regs.h create mode 100644 include/media/davinci/vpbe.h create mode 100644 include/media/davinci/vpbe_display.h create mode 100644 include/media/davinci/vpbe_osd.h create mode 100644 include/media/davinci/vpbe_types.h create mode 100644 include/media/davinci/vpbe_venc.h

--
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
Murali Karicheri
[email protected]
#2 lore raw

Murali,
I will change the name order.
Thanks and Regards,
-manju

Quoted 70 lines · Muralidharan Karicheri

Manjunath,

Thank you for putting up this patch together. I didn't see the 1/6 of this series in the mailing list. Also it appears as if the patch came from me. Please add my sign-off as second, you being the first.

Murali

Quoted 52 lines · Manjunath Hadli

This driver is written for Texas Instruments's DM644X VPBE IP. This SoC supports 2 video planes and 2 OSD planes as part of its OSD (On Screen Display) block. The OSD lanes predminantly support RGB space and the Video planes support YUV data. Out of these 4, the 2 video planes are supported as part of the V4L2 driver. These would be enumerated as video2 and video3 dev nodes.
The blending and video timing generator unit (VENC- for Video Encoder) is the unit which combines/blends the output of these 4 planes into a single stream and this output is given to Video input devices like TV and other digital LCDs. The software for VENC is designed as a subdevice with support for SD(NTSC and PAL) modes and 2 outputs. This SoC forms the iniial implementation of its later additions like DM355 and DM365.

Muralidharan Karicheri (6):
 davinci vpbe: V4L2 display driver for DM644X SoC davinci vpbe: VPBE display driver
 davinci vpbe: OSD(On Screen Display ) block davinci vpbe: VENC( Video Encoder) implementation davinci vpbe: platform specific additions davinci vpbe: Build infrastructure for VPBE driver

 arch/arm/mach-davinci/board-dm644x-evm.c     |   85 +- arch/arm/mach-davinci/dm644x.c               |  181 ++- arch/arm/mach-davinci/include/mach/dm644x.h  |    4 + drivers/media/video/davinci/Kconfig          |   22 + drivers/media/video/davinci/Makefile         |    2 + drivers/media/video/davinci/vpbe.c           |  861 ++++++++++ drivers/media/video/davinci/vpbe_display.c   | 2283
++++++++++++++++++++++++++
 drivers/media/video/davinci/vpbe_osd.c       | 1208 ++++++++++++++ drivers/media/video/davinci/vpbe_osd_regs.h  |  389 +++++ drivers/media/video/davinci/vpbe_venc.c      |  617 +++++++ drivers/media/video/davinci/vpbe_venc_regs.h |  189 +++ include/media/davinci/vpbe.h                 |  187 +++ include/media/davinci/vpbe_display.h         |  144 ++ include/media/davinci/vpbe_osd.h             |  397 +++++ include/media/davinci/vpbe_types.h           |  170 ++ include/media/davinci/vpbe_venc.h            |   70 +

 16 files changed, 6790 insertions(+), 19 deletions(-)

 create mode 100644 drivers/media/video/davinci/vpbe.c create mode 100644 drivers/media/video/davinci/vpbe_display.c create mode 100644 drivers/media/video/davinci/vpbe_osd.c create mode 100644 drivers/media/video/davinci/vpbe_osd_regs.h create mode 100644 drivers/media/video/davinci/vpbe_venc.c create mode 100644 drivers/media/video/davinci/vpbe_venc_regs.h create mode 100644 include/media/davinci/vpbe.h create mode 100644 include/media/davinci/vpbe_display.h create mode 100644 include/media/davinci/vpbe_osd.h create mode 100644 include/media/davinci/vpbe_types.h create mode 100644 include/media/davinci/vpbe_venc.h

Quoted 5 lines

--
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

--
Murali Karicheri
[email protected]

#3 lore raw

mediabus enums

Hello Guennadi,
Your media-bus enumerations capture the formats quite well. I needed the following for support on Davinci SOCs and liked to check with you if these are covered in some format in the list.
1. Parallel RGB 666 (18 data lines+ 5 sync lines)
2. YUYV16 (16 lines) (16 data lines + 4 or 5 sync lines)

Thanks and Regards,
-Manju

#4 lore raw

Re: mediabus enums

Quoted 6 lines · Manjunath

Hello Guennadi,
Your media-bus enumerations capture the formats quite well. I needed
the following for support on Davinci SOCs and liked to check with you if these are covered in some format in the list.
1. Parallel RGB 666 (18 data lines+ 5 sync lines)
2. YUYV16 (16 lines) (16 data lines + 4 or 5 sync lines)

According to the subdev-formats.xml

http://git.linuxtv.org/pinchartl/media.git?a=blob;f=Documentation/DocBook/v4l/subdev-formats.xml;h=3688f27185f72ab109e3094c268e04f67cb8643e;hb=refs/heads/media-0003-subdev-pad

they should be called V4L2_MBUS_FMT_RGB666_1X18 (or BGR666...) and V4L2_MBUS_FMT_YUYV16_1X16. Notice, that these codes do not define the complete bus topology, e.g., they say nothing about sync signals. This is a separate topic.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

#5 lore raw

Re: mediabus enums

Hi Guennadi,

Quoted 10 lines · On Thursday 11 November 2010 16:32:02 Guennadi Liakhovetski wrote:
Quoted 8 lines · Manjunath

Hello Guennadi,

Your media-bus enumerations capture the formats quite well. I needed

the following for support on Davinci SOCs and liked to check with you if these are covered in some format in the list.
1. Parallel RGB 666 (18 data lines+ 5 sync lines)
2. YUYV16 (16 lines) (16 data lines + 4 or 5 sync lines)

Quoted 7 lines

According to the subdev-formats.xml

http://git.linuxtv.org/pinchartl/media.git?a=blob;f=Documentation/DocBook/v
4l/subdev-formats.xml;h=3688f27185f72ab109e3094c268e04f67cb8643e;hb=refs/he ads/media-0003-subdev-pad

they should be called V4L2_MBUS_FMT_RGB666_1X18 (or BGR666...)

Agreed.

Quoted 1 line

and V4L2_MBUS_FMT_YUYV16_1X16.

Depending on what Manjunath meant, this should be either YUYV16_2X16 or YUYV8_1X16. 16 bits per sample seems quite high to me, I suppose it should then be YUYV8_1X16.

Quoted 2 lines

Notice, that these codes do not define the complete bus topology, e.g., they say nothing about sync signals. This is a separate topic.

Signature · 3 lines
Regards,

Laurent Pinchart
#6 lore raw

RE: mediabus enums

Quoted 22 lines · Laurent Pinchart

Hi Guennadi,

Quoted 19 lines · On Thursday 11 November 2010 16:32:02 Guennadi Liakhovetski wrote:
Quoted 9 lines · Manjunath

Hello Guennadi,

Your media-bus enumerations capture the formats quite well. I
needed

the following for support on Davinci SOCs and liked to check with you if these are covered in some format in the list.
1. Parallel RGB 666 (18 data lines+ 5 sync lines) 2. YUYV16 (16 lines) (16 data lines + 4 or 5 sync lines)

According to the subdev-formats.xml

http://git.linuxtv.org/pinchartl/media.git?a=blob;f=Documentation/DocB
ook/v 4l/subdev-formats.xml;h=3688f27185f72ab109e3094c268e04f67cb8643e;hb=re fs/he
ads/media-0003-subdev-pad

Quoted 7 lines
Quoted 1 line

they should be called V4L2_MBUS_FMT_RGB666_1X18 (or BGR666...)

Agreed.

Quoted 1 line

and V4L2_MBUS_FMT_YUYV16_1X16.

Depending on what Manjunath meant, this should be either YUYV16_2X16 or > > YUYV8_1X16. 16 bits per sample seems quite high to me, I suppose it should > then be YUYV8_1X16.

Actually, the interface transfers 16 bits per sample (Y=8bits and C=8bits)
For the YC16 and 18 data lines (parallel) for RGB666. probably V4L2_MBUS_FMT_RGB666_1X18 and V4L2_MBUS_FMT_YUYV16_1X16 fit the bill.

Quoted 9 lines
Quoted 3 lines

Notice, that these codes do not define the complete bus topology, e.g., they say nothing about sync signals. This is a separate topic.

--
Regards,

Laurent Pinchart

#7 lore raw

RE: mediabus enums

Quoted 29 lines · Manjunath
Quoted 28 lines · Laurent Pinchart

Hi Guennadi,

Quoted 13 lines · On Thursday 11 November 2010 16:32:02 Guennadi Liakhovetski wrote:
Quoted 9 lines · Manjunath

Hello Guennadi,

Your media-bus enumerations capture the formats quite well. I
needed

the following for support on Davinci SOCs and liked to check with you if these are covered in some format in the list.
1. Parallel RGB 666 (18 data lines+ 5 sync lines) 2. YUYV16 (16 lines) (16 data lines + 4 or 5 sync lines)

According to the subdev-formats.xml

Quoted 7 lines

http://git.linuxtv.org/pinchartl/media.git?a=blob;f=Documentation/DocB
ook/v 4l/subdev-formats.xml;h=3688f27185f72ab109e3094c268e04f67cb8643e;hb=re fs/he
ads/media-0003-subdev-pad

they should be called V4L2_MBUS_FMT_RGB666_1X18 (or BGR666...)

Agreed.

Quoted 1 line

and V4L2_MBUS_FMT_YUYV16_1X16.

Quoted 7 lines
Quoted 3 lines

Depending on what Manjunath meant, this should be either YUYV16_2X16 or YUYV8_1X16. 16 bits per sample seems quite high to me, I suppose it should then be YUYV8_1X16.

Actually, the interface transfers 16 bits per sample (Y=8bits and C=8bits) For the YC16 and 18 data lines (parallel) for RGB666. probably V4L2_MBUS_FMT_RGB666_1X18 and V4L2_MBUS_FMT_YUYV16_1X16 fit the bill.

No, I think, Laurent was right. If that your 1 16-bit sample also corresponds to one pixel, then it's a normal 16-bit YUYV, i.e., V4L2_MBUS_FMT_YUYV8_1X16. In the aforementioned document the number after "YUYV" is "The number of bits per pixel component," where the "component" is either the luminance, or the chrominance, both of which are 8 bit wide.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

#8 lore raw

Re: mediabus enums

In reply to Hadli, Manjunath

Hi Manjunath,

Quoted 28 lines · Manjunath
Quoted 27 lines · Laurent Pinchart
Quoted 14 lines · On Thursday 11 November 2010 16:32:02 Guennadi Liakhovetski wrote:
Quoted 10 lines · Manjunath

Hello Guennadi,

Your media-bus enumerations capture the formats quite well. I

needed

the following for support on Davinci SOCs and liked to check with you if these are covered in some format in the list.
1. Parallel RGB 666 (18 data lines+ 5 sync lines) 2. YUYV16 (16 lines) (16 data lines + 4 or 5 sync lines)

According to the subdev-formats.xml

Quoted 7 lines

http://git.linuxtv.org/pinchartl/media.git?a=blob;f=Documentation/DocB
ook/v 4l/subdev-formats.xml;h=3688f27185f72ab109e3094c268e04f67cb8643e;hb=re fs/he
ads/media-0003-subdev-pad

they should be called V4L2_MBUS_FMT_RGB666_1X18 (or BGR666...)

Agreed.

Quoted 1 line

and V4L2_MBUS_FMT_YUYV16_1X16.

Quoted 7 lines
Quoted 3 lines

Depending on what Manjunath meant, this should be either YUYV16_2X16 or >

Quoted 1 line

YUYV8_1X16. 16 bits per sample seems quite high to me, I suppose it

should > then be YUYV8_1X16.

Actually, the interface transfers 16 bits per sample (Y=8bits and C=8bits) For the YC16 and 18 data lines (parallel) for RGB666. probably V4L2_MBUS_FMT_RGB666_1X18 and V4L2_MBUS_FMT_YUYV16_1X16 fit the bill.

V4L2_MBUS_FMT_RGB666_1X18 is correct, but for YUYV I think it should be V4L2_MBUS_FMT_YUYV8_1X16. You can find a detailed description of the format at
http://www.ideasonboard.org/media/media/subdev.html#V4L2-MBUS-FMT-YUYV8-1X16

Signature · 3 lines
Regards,

Laurent Pinchart
#9 lore raw
In reply to Muralidharan Karicheri

Hans,

Is it possible to extend the sub device ops to include SoC ip sub device specific ops? I remember I had posted this question some time back and you had proposed to add something like this. Just want to check if that is still valid. This would make this driver implementation little more cleaner.

struct vpbe_osd_ops;

struct v4l2_subdev_ops {
        const struct v4l2_subdev_core_ops       *core;
        const struct v4l2_subdev_tuner_ops      *tuner;
        const struct v4l2_subdev_audio_ops      *audio;
        const struct v4l2_subdev_video_ops      *video;
        const struct v4l2_subdev_vbi_ops        *vbi;
        const struct v4l2_subdev_ir_ops         *ir;
        const struct v4l2_subdev_sensor_ops     *sensor;
        /* SoC IP specific ops */
        const struct vpbe_osd_ops  *vpbe_osd;

};

The struct vpbe_osd_ops will be defined in the osd sub device header file. This will allow the host/bridge driver to call osd specific operations like standard sub dev ops.

Any comments?

Quoted 71 lines · Muralidharan Karicheri

Manjunath,

Thank you for putting up this patch together. I didn't see the 1/6 of this series in the mailing list. Also it appears as if the patch came from me. Please add my sign-off as second, you being the first.

Murali

Quoted 51 lines · Manjunath Hadli

This driver is written for Texas Instruments's DM644X VPBE IP. This SoC supports 2 video planes and 2 OSD planes as part of its OSD (On Screen Display) block. The OSD lanes predminantly support RGB space and the Video planes support YUV data. Out of these 4, the 2 video planes are supported as part of the V4L2 driver. These would be enumerated as video2 and video3 dev nodes.
The blending and video timing generator unit (VENC- for Video Encoder) is the unit which combines/blends the output of these 4 planes into a single stream and this output is given to Video input devices like TV and other digital LCDs. The software for VENC is designed as a subdevice with support for SD(NTSC and PAL) modes and 2 outputs. This SoC forms the iniial implementation of its later additions like DM355 and DM365.

Muralidharan Karicheri (6):
 davinci vpbe: V4L2 display driver for DM644X SoC davinci vpbe: VPBE display driver
 davinci vpbe: OSD(On Screen Display ) block davinci vpbe: VENC( Video Encoder) implementation davinci vpbe: platform specific additions davinci vpbe: Build infrastructure for VPBE driver

 arch/arm/mach-davinci/board-dm644x-evm.c     |   85 +- arch/arm/mach-davinci/dm644x.c               |  181 ++- arch/arm/mach-davinci/include/mach/dm644x.h  |    4 + drivers/media/video/davinci/Kconfig          |   22 + drivers/media/video/davinci/Makefile         |    2 + drivers/media/video/davinci/vpbe.c           |  861 ++++++++++ drivers/media/video/davinci/vpbe_display.c   | 2283 ++++++++++++++++++++++++++ drivers/media/video/davinci/vpbe_osd.c       | 1208 ++++++++++++++ drivers/media/video/davinci/vpbe_osd_regs.h  |  389 +++++ drivers/media/video/davinci/vpbe_venc.c      |  617 +++++++ drivers/media/video/davinci/vpbe_venc_regs.h |  189 +++ include/media/davinci/vpbe.h                 |  187 +++ include/media/davinci/vpbe_display.h         |  144 ++ include/media/davinci/vpbe_osd.h             |  397 +++++ include/media/davinci/vpbe_types.h           |  170 ++ include/media/davinci/vpbe_venc.h            |   70 +

 16 files changed, 6790 insertions(+), 19 deletions(-)

 create mode 100644 drivers/media/video/davinci/vpbe.c create mode 100644 drivers/media/video/davinci/vpbe_display.c create mode 100644 drivers/media/video/davinci/vpbe_osd.c create mode 100644 drivers/media/video/davinci/vpbe_osd_regs.h create mode 100644 drivers/media/video/davinci/vpbe_venc.c create mode 100644 drivers/media/video/davinci/vpbe_venc_regs.h create mode 100644 include/media/davinci/vpbe.h create mode 100644 include/media/davinci/vpbe_display.h create mode 100644 include/media/davinci/vpbe_osd.h create mode 100644 include/media/davinci/vpbe_types.h create mode 100644 include/media/davinci/vpbe_venc.h

Quoted 5 lines

--
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

--
Murali Karicheri
[email protected]

Signature · 2 lines
Murali Karicheri
[email protected]
#10 lore raw
Quoted 21 lines

Hans,

Is it possible to extend the sub device ops to include SoC ip sub device specific ops? I remember I had posted this question some time back and you had proposed to add something like this. Just want to check if that is still valid. This would make this driver implementation little more cleaner.

struct vpbe_osd_ops;

struct v4l2_subdev_ops {
        const struct v4l2_subdev_core_ops       *core;
        const struct v4l2_subdev_tuner_ops      *tuner;
        const struct v4l2_subdev_audio_ops      *audio;
        const struct v4l2_subdev_video_ops      *video;
        const struct v4l2_subdev_vbi_ops        *vbi;
        const struct v4l2_subdev_ir_ops         *ir;
        const struct v4l2_subdev_sensor_ops     *sensor;
        /* SoC IP specific ops */
        const struct vpbe_osd_ops  *vpbe_osd;
Quoted 7 lines

};

The struct vpbe_osd_ops will be defined in the osd sub device header file. This will allow the host/bridge driver to call osd specific operations like standard sub dev ops.

Any comments?

Almost right. You need to put the vpbe_osd into an anonymous union:

         /* SoC IP specific ops */

         const struct vpbe_osd_ops  *vpbe_osd;
Quoted 85 lines
Quoted 70 lines · Muralidharan Karicheri

Manjunath,

Thank you for putting up this patch together. I didn't see the 1/6 of this series in the mailing list. Also it appears as if the patch came from me. Please add my sign-off as second, you being the first.

Murali

Quoted 52 lines · Manjunath Hadli

This driver is written for Texas Instruments's DM644X VPBE IP. This SoC supports 2 video planes and 2 OSD planes as part of its OSD (On Screen Display) block. The OSD lanes predminantly support RGB space and the Video planes support YUV data. Out of these 4, the 2 video planes are supported as part of the V4L2 driver. These would be enumerated as video2 and video3 dev nodes.
The blending and video timing generator unit (VENC- for Video Encoder) is the unit which combines/blends the output of these 4 planes into a single stream and this output is given to Video input devices like TV and other digital LCDs. The software for VENC is designed as a subdevice with support for SD(NTSC and PAL) modes and 2 outputs. This SoC forms the iniial implementation of its later additions like DM355 and DM365.

Muralidharan Karicheri (6):
 davinci vpbe: V4L2 display driver for DM644X SoC davinci vpbe: VPBE display driver
 davinci vpbe: OSD(On Screen Display ) block davinci vpbe: VENC( Video Encoder) implementation davinci vpbe: platform specific additions davinci vpbe: Build infrastructure for VPBE driver

 arch/arm/mach-davinci/board-dm644x-evm.c     |   85 +- arch/arm/mach-davinci/dm644x.c               |  181 ++- arch/arm/mach-davinci/include/mach/dm644x.h  |    4 + drivers/media/video/davinci/Kconfig          |   22 + drivers/media/video/davinci/Makefile         |    2 + drivers/media/video/davinci/vpbe.c           |  861 ++++++++++ drivers/media/video/davinci/vpbe_display.c   | 2283
++++++++++++++++++++++++++
 drivers/media/video/davinci/vpbe_osd.c       | 1208 ++++++++++++++ drivers/media/video/davinci/vpbe_osd_regs.h  |  389 +++++ drivers/media/video/davinci/vpbe_venc.c      |  617 +++++++ drivers/media/video/davinci/vpbe_venc_regs.h |  189 +++ include/media/davinci/vpbe.h                 |  187 +++ include/media/davinci/vpbe_display.h         |  144 ++ include/media/davinci/vpbe_osd.h             |  397 +++++ include/media/davinci/vpbe_types.h           |  170 ++ include/media/davinci/vpbe_venc.h            |   70 +

 16 files changed, 6790 insertions(+), 19 deletions(-)

 create mode 100644 drivers/media/video/davinci/vpbe.c create mode 100644 drivers/media/video/davinci/vpbe_display.c create mode 100644 drivers/media/video/davinci/vpbe_osd.c create mode 100644 drivers/media/video/davinci/vpbe_osd_regs.h create mode 100644 drivers/media/video/davinci/vpbe_venc.c create mode 100644 drivers/media/video/davinci/vpbe_venc_regs.h create mode 100644 include/media/davinci/vpbe.h create mode 100644 include/media/davinci/vpbe_display.h create mode 100644 include/media/davinci/vpbe_osd.h create mode 100644 include/media/davinci/vpbe_types.h create mode 100644 include/media/davinci/vpbe_venc.h

Quoted 6 lines

--
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

Quoted 4 lines

--
Murali Karicheri
[email protected]

--
Murali Karicheri
[email protected]

Signature · 1 line
Hans Verkuil - video4linux developer - sponsored by Cisco
#11 lore raw
In reply to Muralidharan Karicheri
Quoted 21 lines

Hans,

Is it possible to extend the sub device ops to include SoC ip sub device specific ops? I remember I had posted this question some time back and you had proposed to add something like this. Just want to check if that is still valid. This would make this driver implementation little more cleaner.

struct vpbe_osd_ops;

struct v4l2_subdev_ops {
        const struct v4l2_subdev_core_ops       *core;
        const struct v4l2_subdev_tuner_ops      *tuner;
        const struct v4l2_subdev_audio_ops      *audio;
        const struct v4l2_subdev_video_ops      *video;
        const struct v4l2_subdev_vbi_ops        *vbi;
        const struct v4l2_subdev_ir_ops         *ir;
        const struct v4l2_subdev_sensor_ops     *sensor;
        /* SoC IP specific ops */
        const struct vpbe_osd_ops  *vpbe_osd;
Quoted 7 lines

};

The struct vpbe_osd_ops will be defined in the osd sub device header file. This will allow the host/bridge driver to call osd specific operations like standard sub dev ops.

Any comments?

Almost right. You need to put the vpbe_osd into an anonymous union:

         /* SoC IP specific ops */
         union {
                 const struct vpbe_osd_ops  *vpbe_osd;
         };

This way other private ops can be added without increasing the size of the struct.

This should work like a charm. I had this idea from the very beginning, but nobody needed it until now.

Regards,

Hans

Quoted 88 lines
Quoted 70 lines · Muralidharan Karicheri

Manjunath,

Thank you for putting up this patch together. I didn't see the 1/6 of this series in the mailing list. Also it appears as if the patch came from me. Please add my sign-off as second, you being the first.

Murali

Quoted 52 lines · Manjunath Hadli

This driver is written for Texas Instruments's DM644X VPBE IP. This SoC supports 2 video planes and 2 OSD planes as part of its OSD (On Screen Display) block. The OSD lanes predminantly support RGB space and the Video planes support YUV data. Out of these 4, the 2 video planes are supported as part of the V4L2 driver. These would be enumerated as video2 and video3 dev nodes.
The blending and video timing generator unit (VENC- for Video Encoder) is the unit which combines/blends the output of these 4 planes into a single stream and this output is given to Video input devices like TV and other digital LCDs. The software for VENC is designed as a subdevice with support for SD(NTSC and PAL) modes and 2 outputs. This SoC forms the iniial implementation of its later additions like DM355 and DM365.

Muralidharan Karicheri (6):
 davinci vpbe: V4L2 display driver for DM644X SoC davinci vpbe: VPBE display driver
 davinci vpbe: OSD(On Screen Display ) block davinci vpbe: VENC( Video Encoder) implementation davinci vpbe: platform specific additions davinci vpbe: Build infrastructure for VPBE driver

 arch/arm/mach-davinci/board-dm644x-evm.c     |   85 +- arch/arm/mach-davinci/dm644x.c               |  181 ++- arch/arm/mach-davinci/include/mach/dm644x.h  |    4 + drivers/media/video/davinci/Kconfig          |   22 + drivers/media/video/davinci/Makefile         |    2 + drivers/media/video/davinci/vpbe.c           |  861 ++++++++++ drivers/media/video/davinci/vpbe_display.c   | 2283
++++++++++++++++++++++++++
 drivers/media/video/davinci/vpbe_osd.c       | 1208 ++++++++++++++ drivers/media/video/davinci/vpbe_osd_regs.h  |  389 +++++ drivers/media/video/davinci/vpbe_venc.c      |  617 +++++++ drivers/media/video/davinci/vpbe_venc_regs.h |  189 +++ include/media/davinci/vpbe.h                 |  187 +++ include/media/davinci/vpbe_display.h         |  144 ++ include/media/davinci/vpbe_osd.h             |  397 +++++ include/media/davinci/vpbe_types.h           |  170 ++ include/media/davinci/vpbe_venc.h            |   70 +

 16 files changed, 6790 insertions(+), 19 deletions(-)

 create mode 100644 drivers/media/video/davinci/vpbe.c create mode 100644 drivers/media/video/davinci/vpbe_display.c create mode 100644 drivers/media/video/davinci/vpbe_osd.c create mode 100644 drivers/media/video/davinci/vpbe_osd_regs.h create mode 100644 drivers/media/video/davinci/vpbe_venc.c create mode 100644 drivers/media/video/davinci/vpbe_venc_regs.h create mode 100644 include/media/davinci/vpbe.h create mode 100644 include/media/davinci/vpbe_display.h create mode 100644 include/media/davinci/vpbe_osd.h create mode 100644 include/media/davinci/vpbe_types.h create mode 100644 include/media/davinci/vpbe_venc.h

Quoted 6 lines

--
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

Quoted 4 lines

--
Murali Karicheri
[email protected]

--
Murali Karicheri
[email protected]
--
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 · 1 line
Hans Verkuil - video4linux developer - sponsored by Cisco
#12 lore raw
In reply to Manjunath Hadli

Hi Manju,

I've reviewed the other patches as well. The only one for which I had comments was patch 2/6.

However, what I think would be useful here is to have an overview document, either as part of a source or header, or as a separate text document. It is not easy to get a good overview of how everything fits together, and a document that describes the various parts and how they fit together would be very benificial.

I am thinking in particular of vendors building a new board based on this
device: how and where do you define new i2c display devices, how are they initialized, etc.

Regards,

Hans

Quoted 57 lines · On Monday, November 08, 2010 15:54:05 Manjunath Hadli wrote:

This driver is written for Texas Instruments's DM644X VPBE IP. This SoC supports 2 video planes and 2 OSD planes as part of its OSD (On Screen Display) block. The OSD lanes predminantly support RGB space and the Video planes support YUV data. Out of these 4, the 2 video planes are supported as part of the V4L2 driver. These would be enumerated as video2 and video3 dev nodes.
The blending and video timing generator unit (VENC- for Video Encoder) is the unit which combines/blends the output of these 4 planes into a single stream and this output is given to Video input devices like TV and other digital LCDs. The software for VENC is designed as a subdevice with support for SD(NTSC and PAL) modes and 2 outputs. This SoC forms the iniial implementation of its later additions like DM355 and DM365.

Muralidharan Karicheri (6):
davinci vpbe: V4L2 display driver for DM644X SoC davinci vpbe: VPBE display driver
davinci vpbe: OSD(On Screen Display ) block davinci vpbe: VENC( Video Encoder) implementation davinci vpbe: platform specific additions davinci vpbe: Build infrastructure for VPBE driver

 arch/arm/mach-davinci/board-dm644x-evm.c     |   85 +-
 arch/arm/mach-davinci/dm644x.c               |  181 ++-
 arch/arm/mach-davinci/include/mach/dm644x.h  |    4 +
 drivers/media/video/davinci/Kconfig          |   22 +
 drivers/media/video/davinci/Makefile         |    2 +
 drivers/media/video/davinci/vpbe.c           |  861 ++++++++++
 drivers/media/video/davinci/vpbe_display.c   | 2283 ++++++++++++++++++++++++++
 drivers/media/video/davinci/vpbe_osd.c       | 1208 ++++++++++++++
 drivers/media/video/davinci/vpbe_osd_regs.h  |  389 +++++
 drivers/media/video/davinci/vpbe_venc.c      |  617 +++++++
 drivers/media/video/davinci/vpbe_venc_regs.h |  189 +++
 include/media/davinci/vpbe.h                 |  187 +++
 include/media/davinci/vpbe_display.h         |  144 ++
 include/media/davinci/vpbe_osd.h             |  397 +++++
 include/media/davinci/vpbe_types.h           |  170 ++
 include/media/davinci/vpbe_venc.h            |   70 +
 16 files changed, 6790 insertions(+), 19 deletions(-)
 create mode 100644 drivers/media/video/davinci/vpbe.c
 create mode 100644 drivers/media/video/davinci/vpbe_display.c
 create mode 100644 drivers/media/video/davinci/vpbe_osd.c
 create mode 100644 drivers/media/video/davinci/vpbe_osd_regs.h
 create mode 100644 drivers/media/video/davinci/vpbe_venc.c
 create mode 100644 drivers/media/video/davinci/vpbe_venc_regs.h
 create mode 100644 include/media/davinci/vpbe.h
 create mode 100644 include/media/davinci/vpbe_display.h
 create mode 100644 include/media/davinci/vpbe_osd.h
 create mode 100644 include/media/davinci/vpbe_types.h
 create mode 100644 include/media/davinci/vpbe_venc.h

--
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 · 1 line
Hans Verkuil - video4linux developer - sponsored by Cisco
#13 lore raw

Hans,
Thank you for the review comments. I will include a section
on customizing for additions and changes to different boards.

Thanks again,
-Manju

Quoted 75 lines · Hans Verkuil

Hi Manju,

I've reviewed the other patches as well. The only one for which I had comments was patch 2/6.

However, what I think would be useful here is to have an overview document, either as part of a source or header, or as a separate text document. It is not easy to get a good overview of how everything fits together, and a document that describes the various parts and how they fit together would be very benificial.

I am thinking in particular of vendors building a new board based on this
device: how and where do you define new i2c display devices, how are they initialized, etc.

Regards,

Hans

Quoted 51 lines · On Monday, November 08, 2010 15:54:05 Manjunath Hadli wrote:

This driver is written for Texas Instruments's DM644X VPBE IP. This SoC supports 2 video planes and 2 OSD planes as part of its OSD (On Screen Display) block. The OSD lanes predminantly support RGB space and the Video planes support YUV data. Out of these 4, the 2 video planes are supported as part of the V4L2 driver. These would be enumerated as video2 and video3 dev nodes.
The blending and video timing generator unit (VENC- for Video Encoder) is the unit which combines/blends the output of these 4 planes into a single stream and this output is given to Video input devices like TV and other digital LCDs. The software for VENC is designed as a subdevice with support for SD(NTSC and PAL) modes and 2 outputs. This SoC forms the iniial implementation of its later additions like DM355 and DM365.

Muralidharan Karicheri (6):
davinci vpbe: V4L2 display driver for DM644X SoC davinci vpbe: VPBE display driver
davinci vpbe: OSD(On Screen Display ) block davinci vpbe: VENC( Video Encoder) implementation davinci vpbe: platform specific additions davinci vpbe: Build infrastructure for VPBE driver

 arch/arm/mach-davinci/board-dm644x-evm.c     |   85 +-
 arch/arm/mach-davinci/dm644x.c               |  181 ++-
 arch/arm/mach-davinci/include/mach/dm644x.h  |    4 +
 drivers/media/video/davinci/Kconfig          |   22 +
 drivers/media/video/davinci/Makefile         |    2 +
 drivers/media/video/davinci/vpbe.c           |  861 ++++++++++
 drivers/media/video/davinci/vpbe_display.c   | 2283 ++++++++++++++++++++++++++
 drivers/media/video/davinci/vpbe_osd.c       | 1208 ++++++++++++++
 drivers/media/video/davinci/vpbe_osd_regs.h  |  389 +++++
 drivers/media/video/davinci/vpbe_venc.c      |  617 +++++++
 drivers/media/video/davinci/vpbe_venc_regs.h |  189 +++
 include/media/davinci/vpbe.h                 |  187 +++
 include/media/davinci/vpbe_display.h         |  144 ++
 include/media/davinci/vpbe_osd.h             |  397 +++++
 include/media/davinci/vpbe_types.h           |  170 ++
 include/media/davinci/vpbe_venc.h            |   70 +
 16 files changed, 6790 insertions(+), 19 deletions(-)  create mode 
100644 drivers/media/video/davinci/vpbe.c
 create mode 100644 drivers/media/video/davinci/vpbe_display.c
 create mode 100644 drivers/media/video/davinci/vpbe_osd.c
 create mode 100644 drivers/media/video/davinci/vpbe_osd_regs.h
 create mode 100644 drivers/media/video/davinci/vpbe_venc.c
 create mode 100644 drivers/media/video/davinci/vpbe_venc_regs.h
 create mode 100644 include/media/davinci/vpbe.h  create mode 100644 
include/media/davinci/vpbe_display.h
 create mode 100644 include/media/davinci/vpbe_osd.h  create mode 
100644 include/media/davinci/vpbe_types.h
 create mode 100644 include/media/davinci/vpbe_venc.h
Quoted 6 lines

--
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

--
Hans Verkuil - video4linux developer - sponsored by Cisco