From patchwork Mon Aug 23 09:41:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: cong yang X-Patchwork-Id: 12452227 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 30950C4338F for ; Mon, 23 Aug 2021 09:41:16 +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 F0C8861186 for ; Mon, 23 Aug 2021 09:41:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F0C8861186 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 0413289C37; Mon, 23 Aug 2021 09:41:15 +0000 (UTC) Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7F7C889CD9 for ; Mon, 23 Aug 2021 09:41:13 +0000 (UTC) Received: by mail-pl1-x62a.google.com with SMTP id b9so5425098plx.2 for ; Mon, 23 Aug 2021 02:41:13 -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=wHjLmQOtWLrewNt3dpv54KojtQGzXNZUUSd4dpwPD3aMlSgClGBqOi7iGXzFZweAz+ b/ShVVPiva7mnNsOPTGcj5zLjHNHgsHx0We0gbs2KJsAUtqxbmdvjeKxlyxXr8o/MfyY 5Ol0WelDnANzv5xr/f9XiUD2BmLIdg48jGf3NJPGwYZ5f/IFZb3KhCcAUBJiBjiYA1ln GRNcxG/UvIW46Ey59fp6Z+3NGbKcj7zkYNaxb0vZz4jdKkPv+FctlyL5zwTfW1vUo0u3 0bjbZpvdUc/5zv2gxFHxzNEkzOJ7DEapalVpwTnl718NmudkP3yeSZckOuQ/IeRNDuPT YSQw== 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=e3UeYa0V2s6Y6iMN+VT0/eQyhia54N/P+6NwCDhQqjP4XlZRH28AvmOZJNxsDgH7ru pa0IMPozX3wklPPGXo8FFgu+PjxAmMOgIWZaFeTYl48EMtRZ5RzlYLxhWuK4hLqtLMaQ HFMmON8+dFsr2+0QiHvvdz9tB9WN70Jjp2FYwNblNs4fDvMEIziB+kHtvsNkqymmtDL2 X1E4uehEb0PCrPSjItsr//XryNTb+Gs5/tBF+jlW4DdIbRTHxBHwJrRM8HPKCzZ5xghc UBURth7KQ9h1LhwyBt0QUERFX2mojKCDIOGUJsNMp00DlMdRQH5/lreRRIsD9SrYmKMn 20zQ== X-Gm-Message-State: AOAM5335S/HrxPAsn+TzVIAhuZX8A+31EC7EYsGIkzfaru3JWo4/pErH bxi6uhhezbjOIXdu6ZShvkzNOw== X-Google-Smtp-Source: ABdhPJys3U9qJQ+T+303oma9NwWA7KC0bcdUGeXz9RdAUQklK+Yi1KcS3YfwBUZFYQlz/s6EB8gdmA== X-Received: by 2002:a17:902:9b95:b0:130:6a7b:4570 with SMTP id y21-20020a1709029b9500b001306a7b4570mr16004169plp.27.1629711672792; Mon, 23 Aug 2021 02:41:12 -0700 (PDT) Received: from yc.huaqin.com ([101.78.151.213]) by smtp.gmail.com with ESMTPSA id p10sm14453192pjv.39.2021.08.23.02.41.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Aug 2021 02:41:12 -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: [v1 1/2] drm/panel: support for BOE tv1110c9m-ll3 wuxga dsi video mode panel Date: Mon, 23 Aug 2021 17:41:01 +0800 Message-Id: <20210823094102.1064716-2-yangcong5@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210823094102.1064716-1-yangcong5@huaqin.corp-partner.google.com> References: <20210823094102.1064716-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