From patchwork Fri Oct 26 14:43:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10657545 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C775B14BD for ; Fri, 26 Oct 2018 14:53:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B242B2B3E9 for ; Fri, 26 Oct 2018 14:53:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A47302C8C8; Fri, 26 Oct 2018 14:53:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BD7082B3E9 for ; Fri, 26 Oct 2018 14:53:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wYlOHDKS3eocGNxA/AsHs/VI95TcBJ+CErQ+mhGPU6k=; b=ScrTLCqoP+zRV0 kHP5OMl+WdK1Rs1DFziq7AMdjhy+Yc/7AbfdshyP5SiCLsEYrM3fLYQX6Dr2YgLFiNaBwDVf1bz9c iUgw+tJ8/jVTugKIiAwp0kuF7N8GUUttKHPb1puKdQvmjcurnVU9wqUOR4PD6HXZ2djIDmsIdI9TJ ej7GdetVcfI6IXMR/o/LYfPEVAqa13kHDEXJMgP7uQBiBZxE+FmBScQVxVuG7PY91VtsauOfk+epS cxhNckzroSLEN3S1g8mopGfy2rBedeReECl1idqAia687Vz4NCuVu29ORQk6BgFoWnSZqxRU/qrU5 NnQdqyeZFgJ9mfdUUTJA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gG3UW-0007KQ-Kd; Fri, 26 Oct 2018 14:53:36 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gG3NQ-0002nX-IX for linux-arm-kernel@lists.infradead.org; Fri, 26 Oct 2018 14:48:16 +0000 Received: by mail-pf1-x441.google.com with SMTP id r64-v6so649629pfb.13 for ; Fri, 26 Oct 2018 07:46:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ar8hbN7ZQkIlKE9C8fPEa8iWuUAJB8WKQLXQLdwbsRc=; b=A3HiBkF5OJChBGNX2c9DBZJ+Q1r+tc4F/NGGB6idxl82h6zxuXfu9ispQs5iGSNgio XLwE29OY8WQQBge1Q2OSl0Q5TKiYY0X5EVUHP/aGWKvilxtmjkACzjaA6GtMtfjjEnee V0yIpt2TXoT6e7O6H5vbf4IyJZ4ZqOM7U+z4M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ar8hbN7ZQkIlKE9C8fPEa8iWuUAJB8WKQLXQLdwbsRc=; b=Xb22ax/zoQ4/Aqb30v6XLvzZG0hS03w8M7u6tLYQIZZNr9yoKNybk3oGvx8VbKqnHY 92SGCWBb68rdu5eGv2aKwL/wrXTbd/9ezyf+ZGq5sJrR9ckz/fWd1zvS51V//1TggINv L4o+VL+DWkzokTmS08/DJWuta3A0Qm8F7ypUJvfjAq69J93uQ7oWOty3B2n3Prmr1IDA ch9AQhwPbNkWCW90qR5vdsRDkFmmL2SvgOfwQWzpNxZ8L08Bo6WAOlyiovey5QXSaqDn SWKB1NCQdMEmQIFhqQbGO2HVkOGq5EfKisAwYT3CjLFQ/nQ1ynFgQECTjnQh/sUp1Ivj 0UEg== X-Gm-Message-State: AGRZ1gKagyyJAR3NiWpVi091xfyOFRtS+JdvQPQhr8RGBJudrzcllC+T pAUK9LeEqz1z3tDClk/LssHU4w== X-Google-Smtp-Source: AJdET5eVOanAVnGiaQu+V17M4MObex2+yPPsA9rC+43InVPAgYXkCO63dDRuZtPe4Y9eHnljOhvcJg== X-Received: by 2002:a63:3c19:: with SMTP id j25mr3739970pga.286.1540565165474; Fri, 26 Oct 2018 07:46:05 -0700 (PDT) Received: from localhost.localdomain ([27.7.51.1]) by smtp.gmail.com with ESMTPSA id z22-v6sm12044467pgv.24.2018.10.26.07.46.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Oct 2018 07:46:04 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Vasily Khoruzhick , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , David Airlie , dri-devel@lists.freedesktop.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Michael Trimarchi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH v3 20/25] drm/panel: Add Techstar TS8550B MIPI-DSI LCD panel Date: Fri, 26 Oct 2018 20:13:39 +0530 Message-Id: <20181026144344.27778-21-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181026144344.27778-1-jagan@amarulasolutions.com> References: <20181026144344.27778-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181026_074616_718433_665BD7D0 X-CRM114-Status: GOOD ( 19.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jagan Teki Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Techstar TS8550B MIPI DSI panel is 480x854, 2-lane MIPI DSI LCD panel. Add panel driver for it. Signed-off-by: Jagan Teki Tested-by: Jagan Teki --- Changes for v3: - new patch Changes for v2: - none drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-techstar-ts8550b.c | 346 ++++++++++++++++++ 3 files changed, 356 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-techstar-ts8550b.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 20b88c275421..d0d4e60f5153 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -195,4 +195,13 @@ config DRM_PANEL_SITRONIX_ST7789V Say Y here if you want to enable support for the Sitronix ST7789V controller for 240x320 LCD panels +config DRM_PANEL_TECHSTAR_TS8550B + tristate "Techstar TS8550B MIPI-DSI panel driver" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y if you want to enable support for panels based on the + Techstar TS8550B MIPI-DSI interface. + endmenu diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 04696bb85218..88011f06edb8 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -20,3 +20,4 @@ obj-$(CONFIG_DRM_PANEL_SEIKO_43WVF1G) += panel-seiko-43wvf1g.o obj-$(CONFIG_DRM_PANEL_SHARP_LQ101R1SX01) += panel-sharp-lq101r1sx01.o obj-$(CONFIG_DRM_PANEL_SHARP_LS043T1LE01) += panel-sharp-ls043t1le01.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) += panel-sitronix-st7789v.o +obj-$(CONFIG_DRM_PANEL_TECHSTAR_TS8550B) += panel-techstar-ts8550b.o diff --git a/drivers/gpu/drm/panel/panel-techstar-ts8550b.c b/drivers/gpu/drm/panel/panel-techstar-ts8550b.c new file mode 100644 index 000000000000..8baca71595a7 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-techstar-ts8550b.c @@ -0,0 +1,346 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019, Amarula Solutions. + * Author: Jagan Teki + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include +#include +#include + +#include