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: 503017 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 117B3C4320E for ; Thu, 26 Aug 2021 11:03:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E91BF6109F for ; Thu, 26 Aug 2021 11:03:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241960AbhHZLEM (ORCPT ); Thu, 26 Aug 2021 07:04:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241944AbhHZLEM (ORCPT ); Thu, 26 Aug 2021 07:04:12 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBE6BC061757 for ; Thu, 26 Aug 2021 04:03:24 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id j187so2453542pfg.4 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=hJ9hmwutYLEcj1GNzamsFsXqrfT9rMNlKAQn8m/Q1b+2gQUoSEh7sApxI9PzmogV/u XRh9jFcv4QhtDFuyWdD39FSSOkt97s64e2xdwVvqG/Nw4cRUlicE2x/5AN0cVIp77k+H KsPxqLw44gjpeDp7w5ZgG5sUVyYclVNCCW10Lp4RRKNGVY7pzxkjU8TCuJiFc5sQOGjK Izgp3Fn73EvIIm5U8w8Z9ljmqOyoqlS4UPrZEn6RJZ8TzDiYzkK0wCCqstIEwxC6hK9p OeFXf94I6U/AB5vo3Hawdg6jNVrY1zxTYJ3q3mMe9aCAzdAUp3wl3+CdPfWEvaAH9oWB D3qw== X-Gm-Message-State: AOAM532OKCbMSwC3zNf+dHgs8KUkPD9eUk5KvyAW3bK+22/r9iHR6phV ImHapeHc2BzhbTbNtuYCut6Xlw== 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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