Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp881657imj; Fri, 15 Feb 2019 08:19:14 -0800 (PST) X-Google-Smtp-Source: AHgI3IZvLRdPEj9v/TGhjchhm9Hk+bRtulxhszERbPcqZ7ygkJhX/cqOKYE0RrHQenyRTQQuYrHE X-Received: by 2002:a63:d347:: with SMTP id u7mr6099951pgi.383.1550247554726; Fri, 15 Feb 2019 08:19:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550247554; cv=none; d=google.com; s=arc-20160816; b=c/wr2oBmBV9rkUHfIDXy1T524h8BiD11feqhEVxxiLagtY/ptvJf3ATS7S/CvyWZR1 lItelA+N0GJEl7WKHxYrICBMU/JGqH6QDxq9bO71ScxHNwJWrZSf1pXgu1QhsxnaHdCw hdNWwV6JKrHdW2i4kIkxOAQ7hLDBXdlLmPervRlvO+SsfISOPzBFPqNa/CuFblB129jj qdUaw3lRre+Vv4LQTQxCpTdLiHLomXMpT/EXBjtyxDL8eeaOu2yjmRculjlNl2vJzpqK 15FJk7QrmCBys2iXoWWC+tPfdFhGCDZKQUqCZmKurT3T6PJ1pwc7CGV5ztuPTgthkn0W ifGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qeHRtsCTU1jK/kQwP3tgQL7f73B9MMh3dtKvULKrIV4=; b=gto+Ib/Cs6qEJl92ZqYPYLRoxPDnYItu/UB62fd5X5Dx9f+zIAiOFbBigspH+JgEgW B/MCrWXRnT1wXdGJvUmu96U3rYZB36jN25JKgvWv95CqRIlGUf5MYvgLbAyiZf3DM3ig ramaZVzexZm503ymlXZXiXoWmiFSHvjL2rHeK//P+/P6MizgQYh6Z/Lg6YUvENzufEJ7 qcPUcPrLevi0+9u4g7a+Soxm+YEZZZPoupqVBpWHu6XXkxC7mGA1muXgacjMNYsdfL4t 4VGq+syj3b5kmadNkBrfOwGhjo3fN+GEZ4n0FWC/XgKdfgcbVF5jug6B1r4naZbrCuUe px8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qKUq3K06; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w123si5920322pfb.172.2019.02.15.08.18.58; Fri, 15 Feb 2019 08:19:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qKUq3K06; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2395115AbfBOODE (ORCPT + 99 others); Fri, 15 Feb 2019 09:03:04 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:41594 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2395077AbfBOODD (ORCPT ); Fri, 15 Feb 2019 09:03:03 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x1FE30RN102110; Fri, 15 Feb 2019 08:03:00 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1550239380; bh=qeHRtsCTU1jK/kQwP3tgQL7f73B9MMh3dtKvULKrIV4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=qKUq3K06bJc+XM9Ls34b3G4ldzh7cXHsk0rFl3LaC+69lNmlbNNMMzw/yp3lsic7P g9ITWFC7YTvyaoub/Ohm/pusOhvXDzIXiYdgAUFExLK5X43WrL7B7SsDYsdLgGVFBx iOhAWMBFjygMAOgsTOCo95H9ZGo79fgc0LZ7q6g8= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x1FE300Q096285 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 15 Feb 2019 08:03:00 -0600 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Fri, 15 Feb 2019 08:02:59 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Fri, 15 Feb 2019 08:03:00 -0600 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x1FE2mNn001839; Fri, 15 Feb 2019 08:02:58 -0600 From: Peter Ujfalusi To: , , CC: , , , , Subject: [PATCH 4/4] drm/panel: Add OSD101T2587-53TS driver Date: Fri, 15 Feb 2019 16:03:15 +0200 Message-ID: <20190215140315.18046-5-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190215140315.18046-1-peter.ujfalusi@ti.com> References: <20190215140315.18046-1-peter.ujfalusi@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The panel is similar to OSD101T2045-53TS (which is handled by panel-simple) with one big difference: osd101t2587-53ts needs MIPI_DSI_TURN_ON_PERIPHERAL message to be sent from the host to be operational and thus can not be handled by panel-simple. Signed-off-by: Peter Ujfalusi --- drivers/gpu/drm/panel/Kconfig | 6 + drivers/gpu/drm/panel/Makefile | 1 + .../drm/panel/panel-osd-osd101t2587-53ts.c | 284 ++++++++++++++++++ 3 files changed, 291 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 3e070153ef21..351661920838 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -122,6 +122,12 @@ config DRM_PANEL_ORISETECH_OTM8009A Say Y here if you want to enable support for Orise Technology otm8009a 480x800 dsi 2dl panel. +config DRM_PANEL_OSD_OSD101T2587_53TS + tristate "OSD OSD101T2587-53TS DSI 1920x1200 video mode panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + config DRM_PANEL_PANASONIC_VVX10F034N00 tristate "Panasonic VVX10F034N00 1920x1200 video mode panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index e7ab71968bbf..d9d99956db0c 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -10,6 +10,7 @@ obj-$(CONFIG_DRM_PANEL_KINGDISPLAY_KD097D04) += panel-kingdisplay-kd097d04.o obj-$(CONFIG_DRM_PANEL_LG_LG4573) += panel-lg-lg4573.o obj-$(CONFIG_DRM_PANEL_OLIMEX_LCD_OLINUXINO) += panel-olimex-lcd-olinuxino.o obj-$(CONFIG_DRM_PANEL_ORISETECH_OTM8009A) += panel-orisetech-otm8009a.o +obj-$(CONFIG_DRM_PANEL_OSD_OSD101T2587_53TS) += panel-osd-osd101t2587-53ts.o obj-$(CONFIG_DRM_PANEL_PANASONIC_VVX10F034N00) += panel-panasonic-vvx10f034n00.o obj-$(CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN) += panel-raspberrypi-touchscreen.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM68200) += panel-raydium-rm68200.o diff --git a/drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c b/drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c new file mode 100644 index 000000000000..6dbdd5b27bfb --- /dev/null +++ b/drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c @@ -0,0 +1,284 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com + * Author: Peter Ujfalusi + */ + +#include +#include +#include +#include + +#include +#include +#include +#include + +#include