Re: [ADV7393] DRM Encoder Slave or DRM Bridge

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 15/09/16 12:44, Vikas Patil wrote:
> On Wed, Sep 14, 2016 at 3:04 PM, Tomi Valkeinen <tomi.valkeinen@xxxxxx> wrote:
>>
>>
>> On 13/09/16 16:13, Vikas Patil wrote:
>>> Thanks Tomi for quick comment.
>>>
>>> I am thinking to base adv7393 driver on
>>> "drivers\gpu\drm\omapdrm\displays\encoder-tc358768.c" as I don't think
>>> any similar to adv7393 chip driver available. Could you please comment
>>> if this will help to get adv chip running?
>>
>> I presume you're not using mainline kernel, as that driver is not there.
>> I'm not familiar with adv7393, but yes, I think you can use that as an
>> example.
>>
> 
> Thanks a lot for your comments. I am using latest (i.e. 3.00.00.03 )
> Processor SDK Linux Automotive which is based on linux 4.4.14.
> 
> As my display panel is connected as follows. I am little confused over
> the values I need to set for following properties in probe function.
> 
> DPI1/VOUT1 -----16bit DRGB---> ADV7393 (Digital to Analog video
> encoder) ------> CVBS Out ------> Display Panel
> 
> 
>      dssdev->ops.dpi = &adv7393_dpi_ops; (atv?)
>     dssdev->type = OMAP_DISPLAY_TYPE_DPI;
>     dssdev->output_type = OMAP_DISPLAY_TYPE_DPI; (Do I need to use
> OMAP_DISPLAY_TYPE_VENC, but DRA74x do not have VENC Encoder I think)
>     dssdev->phy.dpi.data_lines = ddata->dpi_ndl;
>     dssdev->port_num = 1;
> 
> 
> As adv7393 takes 16-bit DRGB as input and gives composite as output,
> does above configuration looks correct? or Do I need to change to
> something else (e.g. dpi,sdi,dvi, hdmi, atv, dsi)?

The API is quite messy (full of legacy)...

But the "ops" there are for the "downstream" direction, i.e. towards the
connector. So here you should have atv ops. You should then have
connector-analog-tv as a device after adv7393, and that connector driver
will be calling those atv ops.

adv7393 itself will be calling dpi ops, offered by the DSS.

You should set dssdev->type to DPI (that's the input).
dssdev->output_type to OMAP_DISPLAY_TYPE_VENC (output, although "venc"
is not quite correct here, but closest match we have). DRA74x doesn't
have VENC, but this is what the adv7393 outputs.

 Tomi

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux