}
connector->polled = DRM_CONNECTOR_POLL_HPD;
+ connector->port = dp->dev->of_node;
ret = drm_connector_init(dp->drm_dev, connector,
&analogix_dp_connector_funcs,
encoder->bridge = bridge;
hdmi->connector.polled = DRM_CONNECTOR_POLL_HPD;
+ hdmi->connector.port = hdmi->dev->of_node;
drm_connector_helper_add(&hdmi->connector,
&dw_hdmi_connector_helper_funcs);
&dw_mipi_dsi_atomic_connector_funcs,
DRM_MODE_CONNECTOR_DSI);
+ dsi->connector.port = dev->of_node;
drm_mode_connector_attach_encoder(connector, encoder);
return 0;
DRM_MODE_ENCODER_TMDS, NULL);
hdmi->connector.polled = DRM_CONNECTOR_POLL_HPD;
+ hdmi->connector.port = dev->of_node;
drm_connector_helper_add(&hdmi->connector,
&inno_hdmi_connector_helper_funcs);
/**
* struct drm_connector - central DRM connector control structure
* @dev: parent DRM device
+ * @port: OF node used by find connector by node.
* @kdev: kernel device for sysfs attributes
* @attr: sysfs attributes
* @head: list management
*/
struct drm_connector {
struct drm_device *dev;
+ struct device_node *port;
struct device *kdev;
struct device_attribute *attr;
struct list_head head;