linux_dsm_epyc7002/drivers/video/fbdev/omap2/displays-new
Archit Taneja ef691ff48b OMAPDSS: DT: Get source endpoint by matching reg-id
In omapdss_of_find_source_for_first_ep, we retrieve a source endpoint's DT node,
and then see what omapdss output has the matching device_node pointer in
omap_dss_find_output_by_node.

For all DPI and SDI outputs, the device_node pointer is set as the parent's DSS
device_node pointer. If the source is one of these outputs, the above method
won't work.

To get the correct output for ports within DSS(and in other cases in the future,
where multiple ports might be under one device), we require additional
information which is exclusive to the output port.

We create a new field in omap_dss_device called 'port_num', this provides port
number of the output port corresponding to this device. When searching for the
source endpoint in DT, we extract the 'reg' property from the port corresponding
to the endpoint source. From the list of registered outputs, we pick out that
output which has both dev->of_node and port_num matching with the device_node
pointer and 'reg' of the source endpoint node from DT.

For encoder blocks(the ones which have both an input and output port), we need
to set the port_num as the 'reg' property for the output port as defined in the
DT bindings. We set port_num to 1 in the tfp410 and tpd12s015 encoder drivers.

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2014-11-12 13:40:06 +02:00
..
connector-analog-tv.c omap: dss: connector-analog-tv: Add missing module device table 2014-10-30 14:51:59 +02:00
connector-dvi.c OMAPDSS: set suppress_bind_attrs 2014-10-22 11:07:07 +03:00
connector-hdmi.c OMAPDSS: set suppress_bind_attrs 2014-10-22 11:07:07 +03:00
encoder-tfp410.c OMAPDSS: DT: Get source endpoint by matching reg-id 2014-11-12 13:40:06 +02:00
encoder-tpd12s015.c OMAPDSS: DT: Get source endpoint by matching reg-id 2014-11-12 13:40:06 +02:00
Kconfig
Makefile
panel-dpi.c OMAPDSS: set suppress_bind_attrs 2014-10-22 11:07:07 +03:00
panel-dsi-cm.c OMAPDSS: set suppress_bind_attrs 2014-10-22 11:07:07 +03:00
panel-lgphilips-lb035q02.c OMAPDSS: set suppress_bind_attrs 2014-10-22 11:07:07 +03:00
panel-nec-nl8048hl11.c OMAPDSS: set suppress_bind_attrs 2014-10-22 11:07:07 +03:00
panel-sharp-ls037v7dw01.c OMAPDSS: set suppress_bind_attrs 2014-10-22 11:07:07 +03:00
panel-sony-acx565akm.c OMAPDSS: set suppress_bind_attrs 2014-10-22 11:07:07 +03:00
panel-tpo-td028ttec1.c OMAPDSS: set suppress_bind_attrs 2014-10-22 11:07:07 +03:00
panel-tpo-td043mtea1.c OMAPDSS: set suppress_bind_attrs 2014-10-22 11:07:07 +03:00