From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sascha Hauer Subject: connector - encoder relationship Date: Wed, 25 May 2011 10:36:59 +0200 Message-ID: <20110525083659.GG22096@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [92.198.50.35]) by gabe.freedesktop.org (Postfix) with ESMTP id 456399E8BE for ; Wed, 25 May 2011 01:52:04 -0700 (PDT) Received: from octopus.hi.pengutronix.de ([2001:6f8:1178:2:215:17ff:fe12:23b0]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1QP9aN-0002FP-B7 for dri-devel@lists.freedesktop.org; Wed, 25 May 2011 10:36:59 +0200 Received: from sha by octopus.hi.pengutronix.de with local (Exim 4.76) (envelope-from ) id 1QP9aN-0007O4-A8 for dri-devel@lists.freedesktop.org; Wed, 25 May 2011 10:36:59 +0200 Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org Hi All, I'm currently looking into implementing a SoC graphics core with KMS. What I wonder about is the relationship between connectors and encoders. On my board I have a sii9022 HDMI encoder connected via i2c. This chip supports reading edid data, tracks the connection status of the display and needs to be configured when the resolution changes. So my first guess is that I have to implement an encoder. looking at struct drm_encoder_funcs there are no callbacks suitable for this. struct drm_connector_funcs on the other hand has all the callbacks I need. Now I look at drivers/gpu/drm/i2c. The drivers there implement a drm_encoder_slave which also has all the callbacks I need. So from one point of view the functions should be implemented in the connector, while in the i2c case it's implemented in the (slave-) encoder. Generally I have the feeling that my sii9022 should be both an encoder and a connector, but this doesn't fit into the current scheme. I'm confused. Could someone clarify this a bit? Thanks Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |