From patchwork Mon Aug 9 18:47:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 12427099 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 595F3C4320E for ; Mon, 9 Aug 2021 18:47:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3DA9A61058 for ; Mon, 9 Aug 2021 18:47:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235460AbhHISry (ORCPT ); Mon, 9 Aug 2021 14:47:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230175AbhHISrx (ORCPT ); Mon, 9 Aug 2021 14:47:53 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA2DDC0613D3 for ; Mon, 9 Aug 2021 11:47:32 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id h2so12855330lji.6 for ; Mon, 09 Aug 2021 11:47:32 -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=XZ7wnRewIwdMbAhi6z99aJQ8I92BR91L6EtQWC5lXLk=; b=QYmhbNeklYsTQNZNZ4xmRjXFSBl2e/AslyltQrPzSxXrISl5MG2cRFdalf7DZboO98 0fVxNfnWIuFQch+bJdtbYV7E2pqZhjK42hTZeXLrlhMjiRWfc9JOKRirUvbokHk0r+Jv I0FoakPlNVEiEkgA1Yd8mVdwoS5lE8iTSfyW7g13dek6iwZj8bmv6OWG9RFA43l/zGRi yBCMnefnAO50s39Bsb0pXGzblujuX69TCU3KGmfUUW/1LDRAv4ggDMasmE6CT/8CfW0Q CBrYE8Jm6eBTSBL4YSw+q1bkHOJb/NiqXBlmxe5jQpezIvgE4nxKtV0QwpQhiWoEiSna 070g== 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=XZ7wnRewIwdMbAhi6z99aJQ8I92BR91L6EtQWC5lXLk=; b=hCb1/WDvX5fMXBzCQpSLzUYwyWCNzVm+0OUHUCVA04Os3xk530O0Phjy2PpB+0Qfqq ++/r8bkT5SSiItM1PL6Y4CVgSrWlE2S8ZTRbfYKjkgEn8kWJbeo0KDtLEV6lUSvHP+fN HonP3KXuGOldzJj7zjOgmY624Obdk1QYpayEskXLpLQVmzzfPolp5ZDrzcueTkC89wit uaLW9gnNf7jpn3kXjA0cPUU/8SaQ8LJ8YYPZxhJozCq7Gn6D74ZWGiK3I4dPTs9Rh0VS tG5kb3+FDvbU9mknhxGbZS0JB7f1YQt03sazdNZKOtLnnTaCbVVtEnaZYjtLmMBqxFlu tvwQ== X-Gm-Message-State: AOAM532PVCmh65aq24BaC0kF6ZmX4zQR5Hr1FGLCLW567HVSc5AGer2N 39wKgS6EmkEOsH0MlbQG+/HsjQ== X-Google-Smtp-Source: ABdhPJz/V7rTl2AffWzwR22OpmuG8lB69f2RXqXmtlUIko33wPoasjUUXyrvmz3BI4xpGOEJSk1PQg== X-Received: by 2002:a2e:85cc:: with SMTP id h12mr10194756ljj.55.1628534851303; 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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Aug 2021 11:47:30 -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 1/2] dt-bindings: add bindings for the Sharp LS060T1SX01 panel Date: Mon, 9 Aug 2021 21:47:11 +0300 Message-Id: <20210809184712.203791-2-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 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 --- .../display/panel/sharp,ls060t1sx01.yaml | 51 +++++++++++++++++++ 1 file changed, 51 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..c4af5e7f6f39 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/sharp,ls060t1sx01.yaml @@ -0,0 +1,51 @@ +# 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 supply voltage + +required: + - compatible + - reg + - avdd-supply + +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 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