From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: [PATCH v3 2/2] drm/panel: simple: Add support for ddc-only panel Date: Thu, 13 Jul 2017 13:13:39 +0200 Message-ID: <20170713111340.13862-3-linux-kernel-dev@beckhoff.com> References: <20170712090408.12212-1-linux-kernel-dev@beckhoff.com> <20170713111340.13862-1-linux-kernel-dev@beckhoff.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <20170713111340.13862-1-linux-kernel-dev@beckhoff.com> Sender: linux-kernel-owner@vger.kernel.org To: Thierry Reding , David Airlie , "open list:DRM PANEL DRIVERS" , open list Cc: Patrick Bruenn List-Id: dri-devel@lists.freedesktop.org From: Patrick Bruenn This is a fix for the CX9020 Embedded PC. On that device the 24-bit parallel-display signal of the imx53 is combined with an I2C channel and converted to DVI-D port. Devicetree magic always requires a panel connected to the parallel-display port. We add an empty panel_desc, to get recognized by the panel-simple driver, which can then use the ddc bus to read the panels configuration. Signed-off-by: Patrick Bruenn --- drivers/gpu/drm/panel/panel-simple.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index c4566ce8fda7..52b2a7fb59ed 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1856,6 +1856,9 @@ static const struct panel_desc winstar_wf35ltiacd = { .bus_format = MEDIA_BUS_FMT_RGB888_1X24, }; +static const struct panel_desc simple_ddc_only = { +}; + static const struct of_device_id platform_of_match[] = { { .compatible = "ampire,am-480272h3tmqw-t01h", @@ -2050,6 +2053,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "winstar,wf35ltiacd", .data = &winstar_wf35ltiacd, }, { + .compatible = "simple,ddc-only", + .data = &simple_ddc_only, + }, { /* sentinel */ } }; -- 2.11.0