From patchwork Sun Sep 26 00:10:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 12517861 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 90B45C433FE for ; Sun, 26 Sep 2021 00:10:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5E4E160E08 for ; Sun, 26 Sep 2021 00:10:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230157AbhIZALv (ORCPT ); Sat, 25 Sep 2021 20:11:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230175AbhIZALv (ORCPT ); Sat, 25 Sep 2021 20:11:51 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72FD2C061604 for ; Sat, 25 Sep 2021 17:10:15 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id z24so58709107lfu.13 for ; Sat, 25 Sep 2021 17:10:15 -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=wQ7XLvRIpTNyBxBWQkQCoLNOFtGjOh9e3PBhRdedrAA=; b=FPl8yjptljlW/qPrAwlhW1vx52iGXlpEkAxmY/9+qA9sTJiee9kQ/uapemrhC2EThb iWRsNXY9TmNvye7cvFzSSdB8AKepVflKkZ8Lo5TUpjYEFMokMiqYgYG8RUPwjBDBWNZA 7xi44+ES5jlV0NiPvbEohu+bXfLq9w95hxMl1/qCxHu+E75/8h6ZlGFvPldrTA4Olyr1 Ai0B59E5duQGNWpNbftIV64htBUEBo0spWF+G7gXrguwwXt0mItknU0UOCvk9Qet22s1 +WM8OSw87T7a8OU/HZc7YVXH8zGaoWuYO7tOxDWroN3szTaPUMPUpKmq2N8xQ5Z2kh17 4Pxg== 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=wQ7XLvRIpTNyBxBWQkQCoLNOFtGjOh9e3PBhRdedrAA=; b=bsrlS7Kw8jHuMLPeVFMzx8VGIBy3vz6fFkWjpxsvlLYMjbV2dkbwpxgmEsO9rG2Ffu SftJ5NSNPcn/SpL6oAsPitooThNxVeSZnckgMKoh8ZxN6p0mtlyTCIDFhmij2aEL50u7 /k9S+eTXZ0OmCWKuXzxaVvGnP0KXS2kl582Mr0FUMFBUhuJqMdcpRpAYnmtvWPnBxYYA Zv+6OHCIVxfc4pLNkfSvra7CcJajGjwmochDGRldN0QXSdJBXGrZHFgNiKiQS9K5bAYT ua1Z3lvnzuDhyJRlSACNN8jhu3jc6M4puxpHBE1WuE6lKRRZZ+LcQJtLqy37yDAOsEJI O6Nw== X-Gm-Message-State: AOAM531U6YW3ldzOzZy3VaOr3kgOoGA2uMPR0hAyTCv9cqtdLQXkOLsN ifpyKqP6r9LSR1ttvdU9EvnwVw== X-Google-Smtp-Source: ABdhPJyK/qBjuYuB0MaOKAp7wB6gRYUwKmiERY0RB5lt/ohJM8e4UihePx3StGWHU6yanayxOkRkLw== X-Received: by 2002:a05:6512:2210:: with SMTP id h16mr16625606lfu.621.1632615013770; Sat, 25 Sep 2021 17:10:13 -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:13 -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 1/2] dt-bindings: add bindings for the Sharp LS060T1SX01 panel Date: Sun, 26 Sep 2021 03:10:04 +0300 Message-Id: <20210926001005.3442668-2-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 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 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: 12517863 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 A19A6C433F5 for ; Sun, 26 Sep 2021 00:10:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8D8CB60EC0 for ; Sun, 26 Sep 2021 00:10:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230181AbhIZALw (ORCPT ); Sat, 25 Sep 2021 20:11:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230207AbhIZALv (ORCPT ); Sat, 25 Sep 2021 20:11:51 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32BC1C061575 for ; Sat, 25 Sep 2021 17:10:16 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id u8so57069412lff.9 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=ezXq6aeMTuY2b/Fu29SxoYY2TCT7bqXscG8gJ4QzqN3XitBcS4nzdMUGmna128sNHg RY/fEzcblOYf3PHEfHoV5XFgcM2k74Rynf0FEGOB2MwDje+2zgYzanQzSe0+RajXpoQf Y6engVHaQ6m6IJhLuF+ZKGmqr1MDazClr4O8js0vjO43D/p5vbrNhCV5mMtQtdXaiGUU zGCapi1SPqDz+08JQ4W0M36pKW8lcm+eawEDez8jUTJvcB2P7ryPA0Cb7GAGpNxxZ2W1 S1qty9w5DsR231raHCH9/DYzh6u2OiQooer4FfB0douA8cPBARc4mNyNCJBYJdyZrEM9 /TuQ== X-Gm-Message-State: AOAM530n6TrzWm/t/tWYq6Kz8COo5/tKFNRZHB3uGp03l4pNppR/5BAH ocuKOvM2SLDex65/7xlW7mQxVw== 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 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 | 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