From patchwork Sun Sep 26 00:10:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 12517867 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F4C3C433EF for ; Sun, 26 Sep 2021 00:10:24 +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 167BE608FB for ; Sun, 26 Sep 2021 00:10:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 167BE608FB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org 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 3F0396E4B0; Sun, 26 Sep 2021 00:10:20 +0000 (UTC) Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 54E656E4B0 for ; Sun, 26 Sep 2021 00:10:16 +0000 (UTC) Received: by mail-lf1-x12b.google.com with SMTP id b20so58180633lfv.3 for ; Sat, 25 Sep 2021 17:10:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9Ydw7cFm82v3feh8M9SitYRC0CaJtT192C7bPabJQAc=; b=jGJNwp6Qq4pYAN6r8QEa7DzcmdGX0jLWojbgNTtz5JJ+uaFfInMEf+0IYAzutM+jym zL4dcCBC3wHHQ9bDb9/O2ZV8UblDJEZX0jEi5xDLBH8QKtvkK+GtW0Bc1keNHla83HGw M72020Lmj26FwcPgt0SWoP8hYkLYCEghhyTKffUvf1B9EUIPLINEb3czH+QSQ8Jkmaq8 YpacwJ7fR3xSibLVANMMRmntJnY8JibXMcus1GmTCKlMphO7MvpFoNfusc5442OWgVIv 5YLe0kGBRuQrJx3jr2lTafhnSFGmx68RfXq0gZVQ5ON5RWwI28QJMZumZz30F7cH2b9d gdvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9Ydw7cFm82v3feh8M9SitYRC0CaJtT192C7bPabJQAc=; b=YdqZ3S2L0x/ipQaESn2fGmGI+u5E0y1PQlHyHG5iBh3ReFu7LR1rBVJ458Uy9rqtwL JbdPJaRjITOXqjWQApQi/HoiWKS9M6B+Lhc3P+RYqqmt+dRbM3DIG+d26ojGLfKp9IUx 3YbqpFYGu8B5BOvjxdh5pJZiKO4crFA/VU5hKmwZMSLhZsqjOn4XIUzUXoen/ILUQPaA m6mP1UwIdCqqpm0wgXMRbgWlHB62d9Ja5nP8K50bUfFXR/gDXWHgzfzsCpdAuoRV9Ki+ 1djwMkUBC7QawRQTmJXxoSKv2BdK74Fn46d8geVxWx92M9AEZo7cMJkKGsHZfeAebboc YGIg== X-Gm-Message-State: AOAM530drbYXnFjvQ1snTF4QkHAT4Lz58iOx9d2YKnbE7Xv9lSagt8QE Q2tYNqLumEatbkgvtKy/RRAPTA== X-Google-Smtp-Source: ABdhPJwx+sq35eCuTY6gI8u9KehpWjNkm/ahOOC+cT1mIjbsv0jX5zBPgHn6wlMMde7Lu4KvJjnX7A== X-Received: by 2002:a2e:3c0e:: with SMTP id j14mr19437966lja.109.1632615014482; Sat, 25 Sep 2021 17:10:14 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id s7sm1261878lfi.130.2021.09.25.17.10.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Sep 2021 17:10:14 -0700 (PDT) From: Dmitry Baryshkov To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH v3 2/2] drm/panel: Add support for Sharp LS060T1SX01 panel Date: Sun, 26 Sep 2021 03:10:05 +0300 Message-Id: <20210926001005.3442668-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210926001005.3442668-1-dmitry.baryshkov@linaro.org> References: <20210926001005.3442668-1-dmitry.baryshkov@linaro.org> 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 to support Sharp LS06T1SX01 FullHD panel. The panel uses nt35695 driver IC. For example this LCD module can be found in the kwaek.ca Dragonboard Display Adapter Bundle. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-sharp-ls060t1sx01.c | 332 ++++++++++++++++++ 3 files changed, 343 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-sharp-ls060t1sx01.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index beb581b96ecd..f00886085e5c 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -496,6 +496,16 @@ config DRM_PANEL_SHARP_LS043T1LE01 Say Y here if you want to enable support for Sharp LS043T1LE01 qHD (540x960) DSI panel as found on the Qualcomm APQ8074 Dragonboard +config DRM_PANEL_SHARP_LS060T1SX01 + tristate "Sharp LS060T1SX01 FullHD video mode 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 Sharp LS060T1SX01 6.0" + FullHD (1080x1920) DSI panel as found in Dragonboard Display Adapter + Bundle. + config DRM_PANEL_SITRONIX_ST7701 tristate "Sitronix ST7701 panel driver" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index c8132050bcec..7dc6fa340cf5 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -51,6 +51,7 @@ 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_LS037V7DW01) += panel-sharp-ls037v7dw01.o obj-$(CONFIG_DRM_PANEL_SHARP_LS043T1LE01) += panel-sharp-ls043t1le01.o +obj-$(CONFIG_DRM_PANEL_SHARP_LS060T1SX01) += panel-sharp-ls060t1sx01.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7701) += panel-sitronix-st7701.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7703) += panel-sitronix-st7703.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) += panel-sitronix-st7789v.o diff --git a/drivers/gpu/drm/panel/panel-sharp-ls060t1sx01.c b/drivers/gpu/drm/panel/panel-sharp-ls060t1sx01.c new file mode 100644 index 000000000000..1049810d1f10 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-sharp-ls060t1sx01.c @@ -0,0 +1,332 @@ +// SPDX-License-Identifier: GPL-2.0-only +// Copyright (c) 2021 Linaro Ltd. +// Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree: +// Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. + +#include +#include +#include +#include +#include + +#include