From patchwork Thu Aug 26 11:03:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: cong yang X-Patchwork-Id: 12459515 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=unavailable 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 119DAC43214 for ; Thu, 26 Aug 2021 11:03:27 +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 D1FD760F44 for ; Thu, 26 Aug 2021 11:03:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D1FD760F44 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 9A1206E7D1; Thu, 26 Aug 2021 11:03:25 +0000 (UTC) Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by gabe.freedesktop.org (Postfix) with ESMTPS id E348C6E7D1 for ; Thu, 26 Aug 2021 11:03:24 +0000 (UTC) Received: by mail-pf1-x431.google.com with SMTP id y11so2411660pfl.13 for ; Thu, 26 Aug 2021 04:03:24 -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=ObzkOdhZ8eZJSALgR1i1iux2qX5wOsHpDHf6Be1AMcoTOIcIbK/ewHmseX/5luWy2f v2kf0reAuhBCPwyki+vZI6e7h9CQf7kirDTWeO4DH4W13mdTNsxGfduViz/LQd6xeB5f xDbxCTvyUcxe4TLSaeGz83DGRqLMU+a1eqfNaUQ1exOazQH9j5V4UyUB59+XHyvOoLYz 3rH6RmPxP/2aRRPOQ6fArdRPpQTwrvr9ArPbD5N79OeTIn5aTdUMD7VF0I9XTtFFj08s qpouNfBjhZWWMw2nu2j4to+uJdUGMhcdzFoqTyU4ssUq2j9eXps4G4l2n8E2RlhUXjPt EvRg== 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=oPQuHEPP393gebDd4qKvlwNdiChle4toRnW+T4Ez1nYDegCZLsILfe0o0zZ5izyTlJ EciSt1IRg+e/j9E0T1tZXbeIYtuuLzgl+dNLMCHqiGVaY4RlXHsc/l40E5P6bnSXlAP4 NOGNM/09Er6KoE4ZigtKWVS406rDEVsEfwl1PDCQmmwpVHusigll5k5JSyqxcTzOiD+O aSuWnwdNWKKKtGGEHE/c5DozCllJp7Gx55EM3uB5pk9ZnkwiwskJQDp0/6NKJsDbTeOv 8de8dDWhqwYX9qxfPVytOPAfMP/XO8UhyLupNQ3kNgSgOjPSHaU5js/ZoF1du8Rr1/I9 OTGQ== X-Gm-Message-State: AOAM531LXtyYDXM1tjFtBJFUp5lfhNwrVWxCepINYW2rNvxpraGEXaKQ ceT0iLI2K4EKHAYtIxUous2mdw== X-Google-Smtp-Source: ABdhPJzWwGFB7mB5OEY54r5CXTWl9VvooF4bC28ewakCnDQNo6zdanHFUdIl1Dd1zjmXx+uiv2eaRg== X-Received: by 2002:a05:6a00:23cf:b0:3e2:4622:da6d with SMTP id g15-20020a056a0023cf00b003e24622da6dmr3280286pfc.18.1629975804030; Thu, 26 Aug 2021 04:03:24 -0700 (PDT) Received: from yc.huaqin.com ([101.78.151.213]) by smtp.gmail.com with ESMTPSA id z12sm2655335pfe.79.2021.08.26.04.03.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Aug 2021 04:03:23 -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: [v3 1/2] drm/panel: support for BOE tv1110c9m-ll3 wuxga dsi video mode panel Date: Thu, 26 Aug 2021 19:03:10 +0800 Message-Id: <20210826110311.613396-2-yangcong5@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210826110311.613396-1-yangcong5@huaqin.corp-partner.google.com> References: <20210826110311.613396-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