Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752560AbdCEAnT (ORCPT ); Sat, 4 Mar 2017 19:43:19 -0500 Received: from mail.kernel.org ([198.145.29.136]:36270 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752296AbdCEAnR (ORCPT ); Sat, 4 Mar 2017 19:43:17 -0500 From: Sebastian Reichel To: Sebastian Reichel , Tony Lindgren , Aaro Koskinen , Tomi Valkeinen , Laurent Pinchart Cc: David Airlie , linux-omap@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCHv2 01/10] drm: omapdrm: panel-dsi-cm: Fix probe for device tree Date: Sun, 5 Mar 2017 01:43:00 +0100 Message-Id: <20170305004309.28259-1-sre@kernel.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170304235021.27055-1-sre@kernel.org> References: <20170304235021.27055-1-sre@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4249 Lines: 148 From: Tony Lindgren Things are a bit whacked right now for panel-dsi-cm: 1. We're missing call to of_get_display_timing() and videomode_from_timing() 2. We need to call dsicm_probe_of() after we initialize the default values to not overwrite device tree configured values 3. We need to implement minimal get_timings() and check_timings() for the panel to work With these changes we get panel-dsi-cm to probe with device tree configuraion. Note that the dsicm_check_timings adapted from an earlier patch by Sebastian Reichel . Signed-off-by: Tony Lindgren Tested-By: Sebastian Reichel --- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 65 ++++++++++++++++++++----- 1 file changed, 52 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c b/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c index ac5800c72cb4..ad1058fafe92 100644 --- a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c +++ b/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c @@ -25,6 +25,7 @@ #include #include