From patchwork Sun Aug 8 03:50:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 493735 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=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 A7CAEC4338F for ; Sun, 8 Aug 2021 03:50:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 78AC760F0F for ; Sun, 8 Aug 2021 03:50:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229977AbhHHDvP (ORCPT ); Sat, 7 Aug 2021 23:51:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229882AbhHHDvP (ORCPT ); Sat, 7 Aug 2021 23:51:15 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA424C0613CF for ; Sat, 7 Aug 2021 20:50:55 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id m18so7101878ljo.1 for ; Sat, 07 Aug 2021 20:50:55 -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:mime-version :content-transfer-encoding; bh=mvlrtM+yBNUdex1HY9xYdk9KI9SkZNw8iEdfyc3oX4o=; b=nAK40s/rqTAOtL/6azfYvLR60IX4nNzmH4gEJWXDP2xA/0ZdiK2EfFvbfNCjyNkF4Q H/hMU2ukO9kUUFcY3NCW0YtU0vFDtABOAaS5WpuH/8ohwsWrpNB/nB0XVx9foeT90Y8r XMRxwBmyl6evABCnAtIQ4rvtkS8S4cOIr2izCfYKA8CWxAl0ZHInZ7/2VXmbPCnu2gyF Ss1rF93hOJ9AkCONHsGJVVYGFBLzUfySJSyM7xbZPu8x1pYovrbkeZ9v/GP0ZAgf8WnT HiIcCK2iYl4uFVruSEEIicDEA22pwvC8PeB+30rs9r8n8d9ciE7NlryKGUa9ZM33wYCL o7Ag== 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:mime-version :content-transfer-encoding; bh=mvlrtM+yBNUdex1HY9xYdk9KI9SkZNw8iEdfyc3oX4o=; b=ggZFdE9T8Oqw/Gji+M1jvduBq0ZMToBf/bypO2y0CEBpBSX4g70zdhDVRei3W/ma0j LzqDYZNfs0d5P7A8wXezFTM/cS6WkIaO99J+4BOZgFSkwKVZpYJd/IYtSpwfb83l9nLs ne5cB2JY6UDvonS9jxGl/eaRQLapmRDYpzFd0+QX5Xi6gSAGceVoW+4GOKZpU4Dvaszd MR5kubwwsdz8/dW2fRJK7HcjCr5+7dofOyJFrCOZMuXh3bI1zSDxKiZ6jun9TItqnGHt TiMmsAl+9baLrrI6+huxHXW56doGq8cseZ7hfsOEne04zFcWfsv2NCV+BPzdry7ufy8a zTiw== X-Gm-Message-State: AOAM530qmlwTqj7/0SzvsHEDOHe0u6mXp+tMNbdjNu4IO2edr1lT+kaP avWsBcbUNJAJtDS+dhHkOfooQQ== X-Google-Smtp-Source: ABdhPJzQfBSCmGTUgsreBNAD6M+Ta2IA1JJIjYcQAPVgnZTM/97yGYPEp0sADjA69RdFRhgNjCn14g== X-Received: by 2002:a2e:2f05:: with SMTP id v5mr11336246ljv.66.1628394654090; 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.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Aug 2021 20:50:53 -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 1/2] dt-bindings: add bindings for the Sharp LS060T1SX01 panel Date: Sun, 8 Aug 2021 06:50:52 +0300 Message-Id: <20210808035053.58074-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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..e749f20d34aa --- /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,ls043t1le01.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 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: 493708 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp1716085jap; Sat, 7 Aug 2021 20:51:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDwPnVUiqbpLuk7meFjbQjueW9IC3PacwzenwBxGdTE6iMW0voBJl8j8xUmQZQhx0adTm3 X-Received: by 2002:a17:906:3915:: with SMTP id f21mr16972642eje.178.1628394664418; Sat, 07 Aug 2021 20:51:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628394664; cv=none; d=google.com; s=arc-20160816; b=hHPzweMnPFU2m8Algfuh5mrbF7eebjOD2BfLUbxjEKg4tXjF8adx6irc4+NaSM0EWL LiEhH9+vqPQOSW1sje54oe0iWO+zDpoBqxgFqlmPafDpc2GjGTyh2Z/MEmDyhEoCGlz4 odGwyNG7JvQwfVtqoWWxZZKyooAuOTgLcIQfomClGwlN16BYSwsl9SbWS7P5SfuXN+6X J/SeCoHRybpmdU19TebDyX9HDGPe5VsUARP6kPgN8RepxnRb12wW1X9IFFCVjlyBPXfR AFnlcHzX1JStKMuuMdf/ZGDpShfs48nHJhYzTrL1X8Kj+lazH+L/9+GPplqov9pHWzsh xk+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2NuxqmTu26gL3l0KkBiFI+twGVwEKQUzOymEfYqPCgE=; b=imMy7zlq8E+AGeVrlJHa9XqlqNcOMT+b6i7IsuklZDynpK+cd2YsQne0NNrAKEHf3r PnKUTO+Sw6gO8aA64SOpp/XOQYJsz3UoKILeYNLiKb+yfAL8jy1ZiKlNxriEXbDRsW1s JNQ/tHtTnBBQoEqsL/oswDDTHrElw73UQGNHIDMH+8Vbux1SawA7uvOd0kuleTVc/hlY /6aaF2i+NXOpTSZwFa1SSpi1I0A+Vghkqwj/n1zm4/QfswLqp8yydh2JqPPfUgSNXqmY sDhsF+3J2coF7fZpOemMawcZfi/uH105M8ufZk05Pb0VnvfQ+jiPcd4LhzkoTUOV++g5 gt9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BKyfEqLc; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bl3si13230949ejb.204.2021.08.07.20.51.04; Sat, 07 Aug 2021 20:51:04 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BKyfEqLc; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229882AbhHHDvQ (ORCPT + 7 others); Sat, 7 Aug 2021 23:51:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230098AbhHHDvP (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 6F242C061798 for ; Sat, 7 Aug 2021 20:50:56 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id p38so26847018lfa.0 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=ZMMyQgWbph7AcvjC3ssQgW+fgljPMK1VMLSYtyZjDVhmXewvkJgTITUwmDu8Wv9RQ1 yKRHcn+XJaQgU7jQ9VuzNWnePmcIE8bh3F1FwSLXdin2KlWqm+P4HCjiv9bApM0Te/M4 Y833k49KkI7inVt4CJmmx0AOmgefZ79o/sX+wJ/dYaACsUK4GDrIzie23qwsKcZQ2WV2 0EGbk0pKMzIrEmqyNxzI9mvZ9Qi11Uhteg/IqZEGd+Y4bfH3dJPelbz2BbBeBoeOUPG2 nY3OTDKa4/Bl1+IvR3y6eZcb7AKkefbfzWIL5I7mAwm5Rn0O6/qna5Zo324sGucnlVtP +b+g== X-Gm-Message-State: AOAM531KcN80WD2jbF6l7RzGk1NVSWzC87nrfQutxTMEpidREOnQ2MSG Do5g4qlqcLjxATnzsurATSsl5A== 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: devicetree@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 -- 2.30.2 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