From patchwork Fri Aug 14 15:50:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 7022721 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 18224C05AC for ; Mon, 17 Aug 2015 00:51:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 11B1920643 for ; Mon, 17 Aug 2015 00:51:53 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id EE25F2063C for ; Mon, 17 Aug 2015 00:51:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 17CE86E7CA; Sun, 16 Aug 2015 17:51:46 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by gabe.freedesktop.org (Postfix) with ESMTPS id AFD326EFB7 for ; Fri, 14 Aug 2015 08:50:52 -0700 (PDT) Received: by wibhh20 with SMTP id hh20so25371712wib.0 for ; Fri, 14 Aug 2015 08:50:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=l2h16JG84zp4Bz5icNSpVITEZWu3LMALIBmgTSXLtio=; b=YePUtrcqFYVOxKQVRbLRNov8jfJamrx1VDlFNs4M+3kC1XiE14rctpqTb0Q++1huD3 wMEcl9P2XXv614PR0xwB3v+qHPGwigwgElEpkE+MMEgjjFBucfoAdDZyWj4Cj/u1oUdr LWTAArfKZNUDE2Oo2G5YZr9jqjDRcUkYqlZ9aG0gUsAB00MmcDYulS9CYFY1g9MIMWCN cJdbryHlVPt2jsQDICWyb6RaOZrfa1bbkWpGDdaM4PdBXakQaGkM3ysDmGI5lUuTgtxw Ph1Evrt2Qouvm8VqSWRAAPltEBz77gc71Hptqry+oQItVAitwEfU7IIFFCKLhRaiA7b4 yZQA== X-Gm-Message-State: ALoCoQkXUQ+u2PSxfOtEOqdRvLjjeMuvg5LhvDIM17PKervDCGM0+YAFpmaNXc93xcqYpTWXVe9i X-Received: by 10.181.11.168 with SMTP id ej8mr8216114wid.83.1439567451499; Fri, 14 Aug 2015 08:50:51 -0700 (PDT) Received: from localhost.localdomain (host-92-13-246-184.as43234.net. [92.13.246.184]) by smtp.gmail.com with ESMTPSA id k2sm3682141wif.4.2015.08.14.08.50.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Aug 2015 08:50:51 -0700 (PDT) From: Srinivas Kandagatla To: Thierry Reding , dri-devel@lists.freedesktop.org Subject: [PATCH RFC 3/5] drm/panel: simple-panel: Add panel picker support. Date: Fri, 14 Aug 2015 16:50:19 +0100 Message-Id: <1439567419-13721-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <439567280-13491-1-git-send-email-srinivas.kandagatla@linaro.org> References: <439567280-13491-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailman-Approved-At: Sun, 16 Aug 2015 17:51:43 -0700 Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds panel picker support to simple-panel. The idea of panel picker is to select the correct panel timings if it supports probing edid via DDC bus, edid contains manufacture ID and Manufacturer product code, so it can match against the panel_picker entries to get the correct panel timings. From DT point of view the panel picker uses generic compatible string "panel-simple", keeping the panel specific compatible strings still supported. Panels can be static entry in the DT, but practically development boards like IFC6410 where developers can connect any LVDS panel which makes it difficult to maintian the dt support for those panels in dts file. With this dynamic probing via panel picker makes it easy to support such use-cases. This patch also adds panel presence detection based, if there is no panel detected or panel picker could not find the panel then the driver would mark the panel DT node as disabled so that the drm driver would be able to take right decision based on that panel node status. Signed-off-by: Srinivas Kandagatla --- drivers/gpu/drm/panel/panel-simple.c | 83 +++++++++++++++++++++++++++++++++++- 1 file changed, 81 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index f94201b..6c503b2 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -32,6 +32,7 @@ #include #include #include +#include #include