From patchwork Sat Oct 9 19:11:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 12548061 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 DD7B9C433F5 for ; Sat, 9 Oct 2021 19:11:28 +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 AD34A60241 for ; Sat, 9 Oct 2021 19:11:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org AD34A60241 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 BA6716E1F5; Sat, 9 Oct 2021 19:11:22 +0000 (UTC) Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by gabe.freedesktop.org (Postfix) with ESMTPS id 10B2E6E1F5 for ; Sat, 9 Oct 2021 19:11:19 +0000 (UTC) Received: by mail-lf1-x133.google.com with SMTP id j21so36050555lfe.0 for ; Sat, 09 Oct 2021 12:11:18 -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=CQPUEa8OvCosmaFsM7/Dz8Pb+7os83Bmi+8K2CLkYuQ=; b=VGwxz6gzbWGSGZmtOYK1BmEe3iR+X8spc/jQIjgXQMYmao91eBnwxtx4a7mJLuncTx IXJ0d4EDel2ySkKCjDLbZZa0p0h2r59jN8rk4yEPJQXo11OU5O56uvzOnZ249E1a8ZI2 lwUUtuha7dSAWi7s+XHYR5pZIDN8okr9NLhed/+/ME4ZHbde76awBOryXmCu9P/yEA+5 AR1wlFNxbENI3jTQqu9KifBuWiFujP4F0Q9aGTydpvWYG6ykCnPbNIdFIPmbMLYHOriI uJ88gi30CbSUH8hjOWiC/WpttXImYlwd7h1ngmqRuD/kI8Zu82QS4DfklgrO8nky2RZ/ a18g== 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=CQPUEa8OvCosmaFsM7/Dz8Pb+7os83Bmi+8K2CLkYuQ=; b=fu1C5q1vw0l24EEUpfQiMSyri/Hc0h9qyXIAWAalZNQO3zRnxeDFwAjGj/tlRhu/nm ewkUJxbtrEqfhn+UInK6+GX3/3QSCiRgjka5p5vdS0uK5k/nr6sHYXRay+TB0HdtALcy PC3aEZmznRaCJswavZ5X/MRLqZyxrgq4hMjH0NrCq1r4K/BlvYdWcyuYdqfXgPA/rDXP C3FpI/puqfio7KojHbMoscXFc4Nzc5H/dtx1uYUPFWUYbydbwGlvoGRkFU3ekM7/Z9o8 IvvVc5sfWeCfnquigQHoH2lO79dcu7BrjMMrC4Y4WsDfLeeNIxZL7qctUgFhq0inGLFV 61gA== X-Gm-Message-State: AOAM533cO+H913piLB2Ylmq9spR2EGCL+AJbATmIM49th84ZoWq8TJd/ oQDvy50yVcmJE+zmWYBhf7OlYQ== X-Google-Smtp-Source: ABdhPJwGxLj5GT+fssvKxAdyKbPQHQZ3z4Edjs4zJv44xtSEvfUeyiQ534wCcbUd9pY3mo+BgigfSA== X-Received: by 2002:a19:7b05:: with SMTP id w5mr17507378lfc.212.1633806677302; Sat, 09 Oct 2021 12:11:17 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id r3sm272311lfc.114.2021.10.09.12.11.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Oct 2021 12:11:16 -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, Rob Herring Subject: [PATCH v4 1/2] dt-bindings: add bindings for the Sharp LS060T1SX01 panel Date: Sat, 9 Oct 2021 22:11:13 +0300 Message-Id: <20211009191114.45900-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211009191114.45900-1-dmitry.baryshkov@linaro.org> References: <20211009191114.45900-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 devicetree bindings for the Sharp LS060T1SX01 6.0" FullHD panel using NT35695 driver. This panel can be found i.e. in the Dragonboard Display Adapter bundle. Signed-off-by: Dmitry Baryshkov Reviewed-by: Rob Herring --- .../display/panel/sharp,ls060t1sx01.yaml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/sharp,ls060t1sx01.yaml diff --git a/Documentation/devicetree/bindings/display/panel/sharp,ls060t1sx01.yaml b/Documentation/devicetree/bindings/display/panel/sharp,ls060t1sx01.yaml new file mode 100644 index 000000000000..271c097cc9a4 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/sharp,ls060t1sx01.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/sharp,ls060t1sx01.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sharp Microelectronics 6.0" FullHD TFT LCD panel + +maintainers: + - Dmitry Baryskov + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: sharp,ls060t1sx01 + + reg: true + backlight: true + reset-gpios: true + port: true + + avdd-supply: + description: handle of the regulator that provides the positive supply voltage + avee-supply: + description: handle of the regulator that provides the negative supply voltage + vddi-supply: + description: handle of the regulator that provides the I/O supply voltage + vddh-supply: + description: handle of the regulator that provides the analog supply voltage + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "sharp,ls060t1sx01"; + reg = <0>; + avdd-supply = <&pm8941_l22>; + backlight = <&backlight>; + reset-gpios = <&pm8916_gpios 25 GPIO_ACTIVE_LOW>; + }; + }; + +... From patchwork Sat Oct 9 19:11:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 12548059 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 B5C68C433F5 for ; Sat, 9 Oct 2021 19:11:25 +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 8259760241 for ; Sat, 9 Oct 2021 19:11:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8259760241 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 2223E6E8C5; Sat, 9 Oct 2021 19:11:21 +0000 (UTC) Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by gabe.freedesktop.org (Postfix) with ESMTPS id D848A6E8C5 for ; Sat, 9 Oct 2021 19:11:19 +0000 (UTC) Received: by mail-lf1-x12f.google.com with SMTP id x27so54019716lfu.5 for ; Sat, 09 Oct 2021 12:11:19 -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=5PeJ8hLJL3w7pos922YDJqoRnH/uSmgwK1PhmeZE9F8=; b=kpTdXk7MRZUym4EBFTIYSelTkzKVfsUagYJmxbhq3zQMZ4vuDdplwu7xevQA0cqZWB ObQU8a/N4mknfvUi/XNKQBFHKDluQwAZqqcj2SI75/uqhnI0EDJgqj/CqflC+tBVoGLE KG1Vg7monm7fXsA3cV+LQbVT6fvHZpOoxid8igtw07yjgHZMpUREn4t6PG3NOsaUTT6f 6SVeYUSDgcJvj7Gl5laXWg5zyZKtzkSYUPqhHTkRvBfrvvNZDkrXDsLfv1hSghhMlo4V Z/aqkDxDQAoGJpiUcpsECC5at0ZN0cQ59m8OGzIPXJXrKGpHQn6p83hr6LHLI7pXuqOv p9tg== 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=5PeJ8hLJL3w7pos922YDJqoRnH/uSmgwK1PhmeZE9F8=; b=3ayz6CRmQc0AgXTQUp361HvNMdf/HcDG3Im6Oa6zuWVNdKOPnkvBe3keW/pDtowUtz YMbw3YeQZ25ystM7mLyikixKiihBKFm98/Hsl+9/QAfToWQ4vmFXfulIfWljWty3Xxg3 UASxIAp2mcJfzbfC781OjqVaSYgq9BJslXnN0suL9aD65K254+25Pr/xJFbY0IGIm5bq 4DIit4/q2x6t4FfLPDwfkkCWtebayguLODJSTTAUkWmCiFbIv+xA2zLs3TmdvXHzsDKR rsu2ahm95HT3SnaDu6IoMBtOv4u1Tf0An/Na7jyjnIiQmGhta1a8p++fTFJ/1FimkT6W S3TA== X-Gm-Message-State: AOAM532tL3VXtYfddCAeiYoDheirKG2c8z9FzL7U9BEnrlOVaCGy6BT3 7lHJXgNdJjk+nFPORew4jIKQyprvAUFEHw== X-Google-Smtp-Source: ABdhPJzpzzl1fzidVmQI0/k5O3VAVu0vTdYX7QnFjthMtCjyEqYLySGYpe0PwOJRep5Jz9nMwJkIGg== X-Received: by 2002:a2e:9a44:: with SMTP id k4mr3128474ljj.149.1633806678026; Sat, 09 Oct 2021 12:11:18 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id r3sm272311lfc.114.2021.10.09.12.11.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Oct 2021 12:11:17 -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 v4 2/2] drm/panel: Add support for Sharp LS060T1SX01 panel Date: Sat, 9 Oct 2021 22:11:14 +0300 Message-Id: <20211009191114.45900-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211009191114.45900-1-dmitry.baryshkov@linaro.org> References: <20211009191114.45900-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 | 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 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..5706faa7194f --- /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