From patchwork Mon Aug 23 11:51:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: cong yang X-Patchwork-Id: 12452553 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19BABC4338F for ; Mon, 23 Aug 2021 11:51:39 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DBE256103B for ; Mon, 23 Aug 2021 11:51:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DBE256103B Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=huaqin.corp-partner.google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EF86689C99; Mon, 23 Aug 2021 11:51:37 +0000 (UTC) Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by gabe.freedesktop.org (Postfix) with ESMTPS id E0AA889C99 for ; Mon, 23 Aug 2021 11:51:36 +0000 (UTC) Received: by mail-pf1-x434.google.com with SMTP id 18so15135187pfh.9 for ; Mon, 23 Aug 2021 04:51:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fCA7h/KbJYqB97JcgMsyoWM53aAuOivS3moPI/RDQDU=; b=PJ0P8gRCyRTEqOe/tsrBDfl0sjV0MItAP4XSsGDX5qh8t+HutbL/JOBO1wxNe7B4g7 f8A7ySbayszYxSlpgrAtaqtyRGMBwKupSPel1l/aeCvFz0+sRN95yzKpxjYG0zUpRtO4 okrOHXs5/zPPPgPjbHhwinnWv3pkRBZyRpTDKGltvZunIjMA3k6OPT8y0iX5oeUnCbTV ITpOO6/SZ3THy8qwfZJ1iJAH3jQS6Q00P4TmJCDecqBJDH7LoIB5CkfkMokELQSH3xLy l/4TI7N894hwCOiW0nQWXt4D2gtNPdD79XX46OZuYgaw/oSZiFn0tUjsUcQI7Vc4EOYg mrWw== 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=fCA7h/KbJYqB97JcgMsyoWM53aAuOivS3moPI/RDQDU=; b=OHGptowClvTcH65VVfNphua4sqriKcAUGXWD2lnCsUsl6WCEZBmcuJpMCIj/9lOGqY hb3HuVG82o/Y0oL5JUiLyIpgbTKVxW2UTGl96RkFD6gmEVeT/BkLigoHjr7/eNu4QCNx h1+EOty53J5Omq8vAHpyHOBntoM8qSwYXWlCcCN3/q29YIGuhJ4wiol0YDUgaJABBsFP 8t14uFMdx3DFKSrMgXykF1kC7pNoGFTl6er/7eoFpZgg3Mj1s8s29uzQpx3fyvbxT7Hf 1FqKn4hT3VMJoGlkRJsm3Ueoo1u4StVkNV/vZoPoawgSkddO6mZB8RE0NOqZZFGnGJG9 hi+A== X-Gm-Message-State: AOAM53319MpMzMjLEzZo2AYsCuNHbf3bqLZiooXiHKluh6cRYoVHlU1O rrGV2Y4qExMmycSesdLNQhzXBw== X-Google-Smtp-Source: ABdhPJw2mJkQ8t9/VkW5Z9o7zwQojJFC0+EcreGdXtzEQy7F60VoJiE1vZxsFnxwyCRHMOxJzswnCw== X-Received: by 2002:a05:6a00:b86:b0:3e2:33d2:d15c with SMTP id g6-20020a056a000b8600b003e233d2d15cmr34286882pfj.10.1629719496307; Mon, 23 Aug 2021 04:51:36 -0700 (PDT) Received: from yc.huaqin.com ([101.78.151.213]) by smtp.gmail.com with ESMTPSA id z19sm15985426pfn.94.2021.08.23.04.51.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Aug 2021 04:51:36 -0700 (PDT) From: yangcong To: thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, dianders@google.com Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, yangcong Subject: [v2 1/2] drm/panel: support for BOE tv1110c9m-ll3 wuxga dsi video mode panel Date: Mon, 23 Aug 2021 19:51:24 +0800 Message-Id: <20210823115125.1070257-2-yangcong5@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210823115125.1070257-1-yangcong5@huaqin.corp-partner.google.com> References: <20210823115125.1070257-1-yangcong5@huaqin.corp-partner.google.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add driver for BOE tv110c9m-ll3 panel is a 10.95" 1200x2000 panel. Signed-off-by: yangcong --- drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-boe-tv110c9m.c | 1303 ++++++++++++++++++++ 3 files changed, 1314 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-boe-tv110c9m.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index ef87d92cdf49..ee75765ba483 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -57,6 +57,16 @@ config DRM_PANEL_BOE_TV101WUM_NL6 Say Y here if you want to support for BOE TV101WUM and AUO KD101N80 45NA WUXGA PANEL DSI Video Mode panel +config DRM_PANEL_BOE_TV110C9M + tristate "BOE TTV110C9M panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for Boe TTV110C9M + TFT-LCD modules. The panel has a 1200x2000 resolution and uses + 24 bit RGB per pixel. + config DRM_PANEL_DSI_CM tristate "Generic DSI command mode panels" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index cae4d976c069..5c6a3c0730f9 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -4,6 +4,7 @@ obj-$(CONFIG_DRM_PANEL_ARM_VERSATILE) += panel-arm-versatile.o obj-$(CONFIG_DRM_PANEL_ASUS_Z00T_TM5P5_NT35596) += panel-asus-z00t-tm5p5-n35596.o obj-$(CONFIG_DRM_PANEL_BOE_HIMAX8279D) += panel-boe-himax8279d.o obj-$(CONFIG_DRM_PANEL_BOE_TV101WUM_NL6) += panel-boe-tv101wum-nl6.o +obj-$(CONFIG_DRM_PANEL_BOE_TV110C9M) += panel-boe-tv110c9m.o obj-$(CONFIG_DRM_PANEL_DSI_CM) += panel-dsi-cm.o obj-$(CONFIG_DRM_PANEL_LVDS) += panel-lvds.o obj-$(CONFIG_DRM_PANEL_SIMPLE) += panel-simple.o diff --git a/drivers/gpu/drm/panel/panel-boe-tv110c9m.c b/drivers/gpu/drm/panel/panel-boe-tv110c9m.c new file mode 100644 index 000000000000..8a5a43a4815f --- /dev/null +++ b/drivers/gpu/drm/panel/panel-boe-tv110c9m.c @@ -0,0 +1,1303 @@ +// SPDX-License-Identifier: GPL-2.0 +/* +* Copyright 2021 Google Inc. +* +* Panel driver for the Boe tv110c9m panel. +*/ + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include