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: 515584 Delivered-To: patch@linaro.org Received: by 2002:adf:fbc8:0:0:0:0:0 with SMTP id d8csp4192030wrs; Sat, 9 Oct 2021 12:11:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWrr0k4Z0NhI0URr99Lax/u9AbJM+LL2RepQep8CaWxB2kaKRJTtHHqHAWFj392jzTkGln X-Received: by 2002:aa7:870b:0:b0:44b:bcef:32b4 with SMTP id b11-20020aa7870b000000b0044bbcef32b4mr16617054pfo.41.1633806681401; Sat, 09 Oct 2021 12:11:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633806681; cv=none; d=google.com; s=arc-20160816; b=BwuWvqnbBNMa3T/wUfer+BcopApU6a6+3coU6omvCfiDFMmu+1Tpk41IdykUWiL8lF D53pJgslrL/HJA4fgD6NDR+JD8Bms465fY3PvvGsXmdfsFjV4L0JfDElf0wCiQFbRKGt R/dYnCj4AD6SDuYBby18zFsnaCbfZzUMViDXIik2RSmiqM4zKXYmIgzqq2Z8be5+a1Mn MnXWhdANiXjGxbI+pCN5h4btaD8YzZjThENvmxG3ROseOTfuw1HJOiBjEulA39jGNAiG nZ6+P2mv+iLulr7k37UvW74bj3gD469w/G5fNOF5b/1+sqvAOR0xqc2RwGI0Vz5Gt7qU Sfjw== 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=CQPUEa8OvCosmaFsM7/Dz8Pb+7os83Bmi+8K2CLkYuQ=; b=xYgdAnX6X50Jh1JwFpmrxm+5vV46X4QDQuQ74y2U/liHGKYqRxMUBtENB+/yHhzSms 3TW4iDNxca6uWAnI+FuxSoy1H+0Vbsks0Ywohr5Alr5KRQH5LOTP6JhKy6bQihKbxJVt gTevOGzCJR8DhKIaJW8D6hwFzI2wqUrwK2vyazYt6KGH4QUhOQl/tptTEdxwYi1PrNsf JyLyBalr4Vciu+qg0lkXWrENb1ZS4poVLFjPWuo2W/NfLPMTCQtytcDfZ82znML27Xfq EUCButky+XATLhMLJxvhVgzi6QUPf+rdXUikisfdulGZJMrOb3vVPI93iq2e+b5b7rKh /5Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VGwxz6gz; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 b8si4040560pgq.64.2021.10.09.12.11.21; Sat, 09 Oct 2021 12:11:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-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=VGwxz6gz; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S229722AbhJITNQ (ORCPT + 17 others); Sat, 9 Oct 2021 15:13:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229676AbhJITNQ (ORCPT ); Sat, 9 Oct 2021 15:13:16 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08523C061570 for ; Sat, 9 Oct 2021 12:11:19 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id r19so51754801lfe.10 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=kT7kDwoEwTMUyF2WZEinWYmQuQ30ww1vwZ6gkXk/9+/znJzn5M1GY+Wi3SpdoWWFwb nQfq/Y0MVnndMI6i/Zu4dY6izL7NjoJGP53OKQ0Hxxrp+L/2qkQrUwXK3g4EBHdMYBlB j1ZfJKFLfGW8/MTLt7rw1XY0tHTxjxUR280gq2+HVCu4QizarpSqQu1DMrFbYBMUENMv pNOBl9T2mG8927Qsm0OW9skFKIdrYxLLY1mhBjOHvYO8LOka764NlATRLHTYxBllGu1Z 00v5hVBkdfb1zo+68pT2eQClom9vPR0vHi6dyqdhYJvFfAuuXuXu5oDsvXkrnieQ0gJA 3CpA== X-Gm-Message-State: AOAM530jMV7ckBGdxLRusYUiRWGods2qU84320ZZys2W/1ctROcwqAK4 7x6tVR7BnJNT+W4ZOZVzT/gy+w== 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 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 -- 2.33.0 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: 515585 Delivered-To: patch@linaro.org Received: by 2002:adf:fbc8:0:0:0:0:0 with SMTP id d8csp4192041wrs; Sat, 9 Oct 2021 12:11:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8qnOK2dlxTwc+AX/fmpcLhorP2pBy0ih6LablPjWemhpXtb3uaJfbb6lXJiyR2jJeCmUY X-Received: by 2002:a17:902:d2c6:b0:13f:1ecb:aefd with SMTP id n6-20020a170902d2c600b0013f1ecbaefdmr6070993plc.50.1633806681885; Sat, 09 Oct 2021 12:11:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633806681; cv=none; d=google.com; s=arc-20160816; b=TmGz74SoJOjzHkPxuG7SY9AYb4NV1aOTlYsCO4odB3G3QhrLtZMXw1AU/kKDEntrze aOTl+ic+Vop7OnzNrxSHDTewz8Xzt5X5vrIWPJhrSWel0VSQys5uoFW9FNkJjb4wnnBj kqHzFbTVZOlE6LUKFCH6Jha4K7m7APYMngcda1eV3pmV+prMrrMyMozKkpT2b3F5HPL5 qruG61LMWUTyRTbk3iEVhsUwQDRGeEUkBuwixzCVWv3PWOl1w/RxUOwIjLuXTandEGrZ loZDXjmHvDj0qapt41zfTH4nPqwcasX2kJEMv+8EwlerKqok1s2XUB4mj/GIWdox3Dn+ gxAg== 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=5PeJ8hLJL3w7pos922YDJqoRnH/uSmgwK1PhmeZE9F8=; b=dDMjHeL1f0XQDZrHwL2oka6+ljFW6ICxPovPTRY6sqrpjlSKgQTzti2IJ2sKaRzjrk J9uBbm/0jvgadoyeEKBmKgX0znw3Htpy1zqwcIksdpD51+XocC6V/5e5Ee1O4SUllo7C buFxsAZMu3UKWEKKIWa6oZGIa/0Yvg7Xh/eaDjl2ESyr+3ziGyf+o/Plba1NBXPz08Vd oSJdPBx/7X9gXOY3n+F8kzJFrfqJYSJBXeoxNmVqcMZErj4jOx2X67Kg+Hc6xxHrzRR8 zxkSZdNnR0XMdIEUhArdhME4+qRxAww8ATxpcbQ/VRqjFNKH5bomdt8q+2foPxKWbYAJ KHbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kpTdXk7M; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 b8si4040560pgq.64.2021.10.09.12.11.21; Sat, 09 Oct 2021 12:11:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-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=kpTdXk7M; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S229783AbhJITNR (ORCPT + 17 others); Sat, 9 Oct 2021 15:13:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229763AbhJITNR (ORCPT ); Sat, 9 Oct 2021 15:13:17 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9EFEC061762 for ; Sat, 9 Oct 2021 12:11:19 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id j21so36050658lfe.0 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=CrlflUoICSpQU4OJIOfjzeuCZWy29jr5hwuhOroIIPEzjyw6neAyqy3Gg0+JQPQf+O +Po9gcwltlcpZVNvXyWOquTuCkXNVI9CoLnV16tkbRZeLcXX7GxU60NEWZFsKBx9/YGY 4i5nPSsic4MFGOpoEe9wCKAAo9V+bmM2RWVo6erztf6JneCBb5D4c+2KNcIpaZ8sttqF bQBVtZkE+G0f+HZrnZTkbEu5srQObc8ku8y80x5qEFArBTof59feeQ2gt1/7PTkOVBmI dFiP+QbXgg5GfzMHqkuXjvDjfiW6HIfsB1l61FIDgNMUrZQdqydYvnj4M03zPCVU2SiY 7KpQ== X-Gm-Message-State: AOAM533cS+eUOH6DuERW1zDAJNlb9aZ4Vney0VgkGa6iut6aEL67znff 9MIFSTU58jupPebc7ns/GELQ5A== 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 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 -- 2.33.0 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