From patchwork Sun Aug 8 03:50:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 494023 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, 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 A7E98C4320E for ; Sun, 8 Aug 2021 03:50:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8D59360F0F for ; Sun, 8 Aug 2021 03:50:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229974AbhHHDvQ (ORCPT ); Sat, 7 Aug 2021 23:51:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230030AbhHHDvP (ORCPT ); Sat, 7 Aug 2021 23:51:15 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E54CC0613D3 for ; Sat, 7 Aug 2021 20:50:56 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id b6so10415475lff.10 for ; Sat, 07 Aug 2021 20:50:56 -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=BKyfEqLcB/sI67VjJUaDTQSPq/iUEa8K7bMf7Z59PRqJYnGq94GJ8M2kHNATJjfvDO uQH04fFHTjP1TcjL8JEzpLs14ys65ldsuWK0bwySye1+CkiZW+pfqA/KbwVd511W/GGK GMvwa3SC2OqrPuLKf7/nfPFdWT7G2ftFc282QdQcA82XINSNBt4KF5eQ8C86+3kJQxsn gRUls68Mm9HAQYCgcAa0uUtYR38Oy77EonO40OPHYQ+1v9uaO6PdofbdXnPcH2E9WMsI jItoxgmdi8FADEqrjjXakwk8vJWMPHTLl3eyIJpSyv7RLnC2lIJ7O6N+bd9fYiiYWqKd 03xQ== 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=h5YqVf2XVfkILmqiIcHVP0ot6xLVgPQCqhUL4Bngg4h+gTBkALcQi5d44/68SdPS6Z 0vJEKeRxPR/oCYSr0EkWGuhb5jmWh4YduW7dQQAYYZsLgKopEuSdKYHBkhdWRHd4gcVz 0UxBlHM7dt8BGDzfSY+Qed+MOfJmLlKFBgpCoWlrRHzDpHnGS5iTGKfLFavr2ITzAfKA s7Bwg9yTAtYAEiaVoHDPARWeBfuY2r4LWHjYlAzs9T8+DhZhbusukVLXR7X+yVM9H44F DE83L9lWoTPnSeS8Cl8ZKdTlU8Imum5RtT1heYXC2iModBgZaMxTJFtDT/srEnwbEfCD laxQ== X-Gm-Message-State: AOAM532rf4YtghpsoqNAFt7wJUUhE6OOSuGQdlRLp08Po9DRjjPeWFqb O8m0jUVr+XrjAVYSCq/gzg8FMQ== X-Google-Smtp-Source: ABdhPJy6xJ3nWwdkTuGzfd/dNXdHKu/jed5CqiBeoqNbru9TXCw/9xbB7rwuhpzMD4RW8hWQaeJHTg== X-Received: by 2002:ac2:5f05:: with SMTP id 5mr12595660lfq.90.1628394654687; Sat, 07 Aug 2021 20:50:54 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id o1sm1307998lfl.67.2021.08.07.20.50.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Aug 2021 20:50:54 -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 2/2] drm/panel: Add support for Sharp LS060T1SX01 panel Date: Sun, 8 Aug 2021 06:50:53 +0300 Message-Id: <20210808035053.58074-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210808035053.58074-1-dmitry.baryshkov@linaro.org> References: <20210808035053.58074-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