From patchwork Mon Aug 9 18:47:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 12427101 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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 71607C19F35 for ; Mon, 9 Aug 2021 18:47:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 52070610A7 for ; Mon, 9 Aug 2021 18:47:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235487AbhHISrz (ORCPT ); Mon, 9 Aug 2021 14:47:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235003AbhHISry (ORCPT ); Mon, 9 Aug 2021 14:47:54 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B191AC061796 for ; Mon, 9 Aug 2021 11:47:33 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id n6so11795274ljp.9 for ; Mon, 09 Aug 2021 11:47:33 -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=2NuxqmTu26gL3l0KkBiFI+twGVwEKQUzOymEfYqPCgE=; b=chGUOJuhRFDNXzj5UO+Am5G7jevsTd4p5lJaKcuiu84LcpkXFjLYvQl40q/2gFqkzv 6kFaUN+lrh1B1E7rGamU0ODBMyVbw38WCMgHAv0vHac1z/KI+5Q9kS33SZw5Vyx10/Ep UV7Ib6D63UM3WRIM5+/5E08s5szxuE/4fIe8/3z9iRn24JUg4VEqUNxzt5XkoVQU0D0L mghkTR7bTCbaTsiMMLSPa/Ixnnd2trvyv2GuAfGMSdOq6dRR2KMTuSqUKAwPvVQqJETz aoLU/nBl220qp6TU6JN1BMeql3CfUFPOFF9RX6GzHz0JDtUSMewH/iMSVyboggoNhURF eJVQ== 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=2NuxqmTu26gL3l0KkBiFI+twGVwEKQUzOymEfYqPCgE=; b=M1XvOwb9RLt6ekllyVWmdBudCFSE5bYj12/CGxP+RFK/Sxs/qFKHLh68ZnMqFSZOc1 zuI23YBQQfpm3pHU0xoYSNnahda962oT1j+iAxEg7sZ3ZLNQQBGnWQrI2FMnYgLl50d9 xQnONVoaFOpDn9as/+6YZKG/FXmuODSBxZDr5h/eZNr1/eiK5S5N6XBt+xN0lQz0k+cP M54biAnZJnYBY+ZA9DwGiY8YeuN1cFcVFa4ILn2jW1JZLec8huuJjkL2oRtLRjkMJOMH BEx+3Zf2AuieeUwqdVQWeZcKEzopzxnfFFxpGcsagcivC4DjyBp6orjnL3oa3OsaOus7 cqUA== X-Gm-Message-State: AOAM530Ghek9fIhJo7PNw/XIzZgphtd/wXz2/pbvHqaHTTCGLTEJezVn Lgri3cN4evHJmQVatawNiX6kAg== X-Google-Smtp-Source: ABdhPJzJnB5U4u591lVj1+c6c6KwFiZ9TZO9UgDBRg5Qs3oG4DlxPwKndxaiWr2bC9w1fwjE1D8xyQ== X-Received: by 2002:a2e:7d08:: with SMTP id y8mr17007417ljc.314.1628534851967; Mon, 09 Aug 2021 11:47:31 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id u22sm1216128lff.270.2021.08.09.11.47.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Aug 2021 11:47:31 -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 v2 2/2] drm/panel: Add support for Sharp LS060T1SX01 panel Date: Mon, 9 Aug 2021 21:47:12 +0300 Message-Id: <20210809184712.203791-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210809184712.203791-1-dmitry.baryshkov@linaro.org> References: <20210809184712.203791-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 | 274 ++++++++++++++++++ 3 files changed, 285 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 4894913936e9..08f85a5ff738 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -451,6 +451,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 cae4d976c069..7dd6bd755e13 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -47,6 +47,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..4fece00e6156 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-sharp-ls060t1sx01.c @@ -0,0 +1,274 @@ +// 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