From patchwork Sat Oct 9 20:38:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 12548071 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 68210C4321E for ; Sat, 9 Oct 2021 20:38:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 49EFE60F44 for ; Sat, 9 Oct 2021 20:38:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230139AbhJIUkJ (ORCPT ); Sat, 9 Oct 2021 16:40:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230052AbhJIUkJ (ORCPT ); Sat, 9 Oct 2021 16:40:09 -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 C9E5BC061762 for ; Sat, 9 Oct 2021 13:38:11 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id z11so45910426lfj.4 for ; Sat, 09 Oct 2021 13:38:11 -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=bpF9Xx7xR4+38VJoGN57YNwQ36S3/2L1gngIwIhNZF8=; b=mqZhzn7wg/oKpy+bLPPcw3nhRiTJACpEBBROCKKyP1U1+I7tlioT+DIQoPdkscWQRv JpQnyU1yGQ7/m6BPBjs5zSh7rdgoZD/V6kczlNEiujXgGvdpdpz60BXsrvpdnFlApo5Q 7T75sBe+gyrsPYr4a0o3D11fdzbD5dI2MkoMaKN3Zu/UZWf2QEEj5Avzip6PZmz5Arjp Tydn6p4lro3oimCb8BwuTrsCpcFpWp1afbB9zSHf3UkffVBSLYiewucJdUF5HFyuelAC ZsNwdrxwEmWlvRwWtjW4+orynSIjPx3GMeHDTLuZlJmXaSWZSOgxyzLGRJuXj8h7kvnV gFmA== 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=bpF9Xx7xR4+38VJoGN57YNwQ36S3/2L1gngIwIhNZF8=; b=34DDZX+RHP8WwFOqrMBZOIO/iP5pnoj6GVZGsY8o0uaLFrXH6lzuvGTXW7NZ+9JC8u mAuA68p4dKJ04N3HpwZARRs0Qoml8s8mmqBHL4VEbCNnYimtzDbXF2P0oYzeI6BE7qMY 0fxm3rZm6PpbxWAAlLd1hdy8EV7F8Y5SBYbAZLjJ4/We1PY/pV9XPDXR37EplB+7xF74 OfutlHKCbop0cnAsZxfLn1fIb+nIbhE8jg6ccS5vVkQIh4SuDruDKOoYJl0jwZb0wL79 k6bFraBqr59c7fvu0xq0chEzhJlijd1QYNW1Y2E4CT2HA6LVawzialePsCJq2wG3sV7C Kqiw== X-Gm-Message-State: AOAM531IF3gIFGBzm9iU68N9ESHLlFKaLmrfF8Pps+3jFrMWFIHLjF1c llXE2Bxw9cD67WAXO39Xwkok5Q== X-Google-Smtp-Source: ABdhPJwnnuPpIOaHTpI7yDZXJA7PPvwrUWdFbJ9FVJpFCRAgjhpJ8JRfimo0Ya2hF/nTGyHIuxkJEQ== X-Received: by 2002:a05:6512:1592:: with SMTP id bp18mr8234153lfb.122.1633811889946; Sat, 09 Oct 2021 13:38:09 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id q187sm303794ljb.6.2021.10.09.13.38.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Oct 2021 13:38:09 -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 v5 2/2] drm/panel: Add support for Sharp LS060T1SX01 panel Date: Sat, 9 Oct 2021 23:38:06 +0300 Message-Id: <20211009203806.56821-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211009203806.56821-1-dmitry.baryshkov@linaro.org> References: <20211009203806.56821-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 | 333 ++++++++++++++++++ 3 files changed, 344 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 369cb76512fe..eb01549a6ccb 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -519,6 +519,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 6e30640b9099..bca4cc1f2715 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -53,6 +53,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..e12570561629 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-sharp-ls060t1sx01.c @@ -0,0 +1,333 @@ +// 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