From patchwork Sat Oct 9 20:38: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: 515587 Delivered-To: patch@linaro.org Received: by 2002:ac0:b5cc:0:0:0:0:0 with SMTP id x12csp3167408ime; Sat, 9 Oct 2021 13:38:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgJVBlpkNbQSpIjiwetmYmFYm/tYx8d9brsV25/VSKems5lZZA26FUKSqI6bTXZqDWmPro X-Received: by 2002:a17:902:868d:b0:13d:dfa7:f3f2 with SMTP id g13-20020a170902868d00b0013ddfa7f3f2mr16326838plo.30.1633811893246; Sat, 09 Oct 2021 13:38:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633811893; cv=none; d=google.com; s=arc-20160816; b=iL8rh16xAFiUB5p8wQ0KigWSaePfHrEb8MMOS0/21mhlgsuK8/29WUDsuZZCLaEeRq rVucUIJLfueNIe/Sh6WVnxrAWFs3hffDqp1tlarvNdbLqEUkkLnGTMLsv0Zh0uNihBy0 +7bF7j9QWIPe0yUBuRv9xmcx3QcFQgoODd0ThNnZPFuXk/IXNyTq76l1z6Asg3uKTsMz njWCf3Z4AZRoURQCLpOPAZTbWQjG8TP69Yq2bJhnsZxJpftgBFkcXJdsBAUCZLWaEnz9 Llc+kE0c7UfAVPlWVoZ1OqdOrtQvvD8NQ/P1cdrWyBdKnK/h1ZcJ6La3qNvhT/LaX1oF Y1KQ== 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=MrgyHepCtv1mtAqC+qG58Sh7nwJ9/GG8kiCAeYA4Ck4wnq1vtMAdHsA9OP3OUzvgc5 OYQzb2IA6Px9dv6kK4yKMk8KKCCsMopMxbcSWjHkAYY0B5UejbkdzrLxJawppCD03vAk zciHC373P9pk4hkIoGnS7R6YhfA/00WXGwMgvtMcb1+3yOr4JgPt8n6npJBKw1NWnqE1 hCjeAkWBfGqASufVLHqMs0HMXS+EgF2mG2cjULHDqjGuBSUrsLLLSEXowAy8QYseGdLD GFD5tlMg3qw1JNGUylBMhpzha9FPK6iV1BkkqpRU77imJaHv0U/8kyMLkDT7yP0q+RCD KWIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XZNLFqDt; 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 e7si2474827pfi.140.2021.10.09.13.38.13; Sat, 09 Oct 2021 13:38:13 -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=XZNLFqDt; 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 S229959AbhJIUkI (ORCPT + 7 others); Sat, 9 Oct 2021 16:40:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230052AbhJIUkI (ORCPT ); Sat, 9 Oct 2021 16:40:08 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBE15C061570 for ; Sat, 9 Oct 2021 13:38:10 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id m3so54724990lfu.2 for ; Sat, 09 Oct 2021 13:38:10 -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=XZNLFqDtLHyAt0u7ubWFUXHSZxiW4SFeSMa51typpx5XhAF0iV6eOIJY/JAD7YPLzj PTXEEXhXY8SwXbE0HXi59GBE6Bop1i2ZZpVYP/6YynUA0nmPU8pZEdJzQ1+At1pOp/ga 9oVa1bE7E3RT9Gapt1f/GddcWDRQQNLzgE/4qgEjuaHbqxcK56kqXSw0g0M6VaQDeq6v C7efmxHNIirle4sKsmJetqOozE6KyFRchB9p4V/eLe/0kSGjbkMwIvRcaQFNkb+WLULO qXkqTIdzEEuqrk+G/HU8HuV7ruxK+AmA1Tm8c7LxENMmMeOORO/fymJWUGpxJXTRXfrA WdxA== 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=37MXEQ4nyzsm8yvzcl4OPLjwOw354QXcUYr2KpYCJnRhL88xLTwlAMem8x60uLDkGm m/vRfPgbCSDL0Synd9lGmIyaVYOvC9rwGM4UF3Lp9xam54RuZVZnIeNU42NPchikTbwJ GYleCvhNkzR04vjc5m7+9mhtPYkl03cgwY61xYqx4qwOwxQ4DbX6Qg7Z+F9WEMV8CASr zzLDXqkX7I6cGA52zDqsfIvc32ODhms94AkZ8riYe1m2WAAG9GYEy+8ydeVRHJr116CC GTKqcreJJyulIhtR7dVO2xYzgb0cvEOge/7ADFPQsRu/VLR84jDY6MBdQ1fghBGRG+Yj Quog== X-Gm-Message-State: AOAM5316lsHBX1HD33pCkJMxz46bwLs7UugdGFj0aSncsqDFX68PKPJj 2OpfIssQ6YMPxFz9WM3V900SLA== X-Received: by 2002:a2e:9097:: with SMTP id l23mr12710117ljg.416.1633811889174; Sat, 09 Oct 2021 13:38:09 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id q187sm303794ljb.6.2021.10.09.13.38.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Oct 2021 13:38:08 -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 v5 1/2] dt-bindings: add bindings for the Sharp LS060T1SX01 panel Date: Sat, 9 Oct 2021 23:38:05 +0300 Message-Id: <20211009203806.56821-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211009203806.56821-1-dmitry.baryshkov@linaro.org> References: <20211009203806.56821-1-dmitry.baryshkov@linaro.org> 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 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 20:38:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 515588 Delivered-To: patch@linaro.org Received: by 2002:ac0:b5cc:0:0:0:0:0 with SMTP id x12csp3167417ime; Sat, 9 Oct 2021 13:38:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZQlAjNp40t+CeWVkYS/WoW37WxokzHiTCymUWgGVJ0LppDKzQN4aDHFPO06c4ij+a8dnG X-Received: by 2002:a17:90a:71c5:: with SMTP id m5mr20449410pjs.105.1633811894443; Sat, 09 Oct 2021 13:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633811894; cv=none; d=google.com; s=arc-20160816; b=eID0Ty/pPlVsd5h454CTmvzob0Bvuz2SWv0dss2pWwGiebU4tmDVq/tL/DBNLio8xH AP9146asc3s0FSOftLUPSaOg5t0fPznEBMd6Sg2CWLbMD07e1Cg4WLP+xn1dwmien/hl WQNK5a1B5fdli0TaoWyj6yZyJbCtfL0rvLgoWP0gb9IcJEUpihaEvXmj6UV357+ehWkl UvcuJUVOZ2PrPkT48r5CQJ1Zlf3eDh6kRqM3Hvw7ZZWJBuWhSVJYv+8h8pl8oTUXb0IL gRf2SXxibwiNt7KfF34SUtqnhyyUgR2g1zXj4rhkkyZdGPj5G6S2KwDPLwhaQz50R6gv qVXg== 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=bpF9Xx7xR4+38VJoGN57YNwQ36S3/2L1gngIwIhNZF8=; b=iXyoM4m3u4HlCGCj1YG+XqInN7naG9knfTvrWaWYKxFkh8nCGb68EOEIx6YYTuSi4B DJsOsT21Mtn0XtblZW0Dy0nzAqwrWV4/47eR3McKZU0eOOSGh3qMxL3shTkTat+oroHF 7YoId2+mHeTddP4Ptl6vOX8p1wdLpAKpInF64AxIrGB8GHeOY5HsXc4c/ctNh7kZRr0P yU5t2JyL2ajjT8gVweb+majNNgMjG9EJWcj5KXcVloi71IjJZki6tBEN7fVg4Q5P3Ifq GdU2O/a8pQYyM7omMOyF8PTpfz22GzGcQk3lGkUvtgRqU2p5xoZIVYHeFCGelnXSVk8c X5Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mqZhzn7w; 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 e7si2474827pfi.140.2021.10.09.13.38.14; Sat, 09 Oct 2021 13:38:14 -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=mqZhzn7w; 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 S230135AbhJIUkJ (ORCPT + 7 others); Sat, 9 Oct 2021 16:40:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229806AbhJIUkJ (ORCPT ); Sat, 9 Oct 2021 16:40:09 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B99D0C061570 for ; Sat, 9 Oct 2021 13:38:11 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id n8so52022141lfk.6 for ; Sat, 09 Oct 2021 13:38:11 -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=bpF9Xx7xR4+38VJoGN57YNwQ36S3/2L1gngIwIhNZF8=; b=mqZhzn7wg/oKpy+bLPPcw3nhRiTJACpEBBROCKKyP1U1+I7tlioT+DIQoPdkscWQRv JpQnyU1yGQ7/m6BPBjs5zSh7rdgoZD/V6kczlNEiujXgGvdpdpz60BXsrvpdnFlApo5Q 7T75sBe+gyrsPYr4a0o3D11fdzbD5dI2MkoMaKN3Zu/UZWf2QEEj5Avzip6PZmz5Arjp Tydn6p4lro3oimCb8BwuTrsCpcFpWp1afbB9zSHf3UkffVBSLYiewucJdUF5HFyuelAC ZsNwdrxwEmWlvRwWtjW4+orynSIjPx3GMeHDTLuZlJmXaSWZSOgxyzLGRJuXj8h7kvnV gFmA== 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=bpF9Xx7xR4+38VJoGN57YNwQ36S3/2L1gngIwIhNZF8=; b=kimcrms4VuFwT0+wT5Wb4fSMWDS0cwkVm8Pa1t+bR+rLg3xBFc1+cwIl2F4FNIaPTM A85BcOk/0EN7iL+p8bd5kKmltfpfQNBszMqwe1N8v0F35QF76eY8rdlHtXJSrcD5v/gC 0lEqbu0Rgqnv0CjahYm5T7vv8MJgtJuWhlZVOnFqPKiQjT27PjuTzDEd9hSMs1AS3XZ9 1eRt1s4FkljWLgl/8pp1Gc1wLUnd1QMzfBAKFVnSzyoIEYOYBlfKX81v2EfA29ugN3He wM8tY8kgSZeCS9arkrKFDTU4Qj+0x/HLzU3EQfVPscp+EM0xVbcqq+AeXd1Vses14pmZ MC8A== X-Gm-Message-State: AOAM530sle2ZXZTBQtK4/T1HArBNpkvGvteaiPEkJ7xhjtz2Qod6kDLo AShtoKKfVAiYOO98waX8sJMmmg== X-Received: by 2002:a05:6512:1592:: with SMTP id bp18mr8234153lfb.122.1633811889946; Sat, 09 Oct 2021 13:38:09 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id q187sm303794ljb.6.2021.10.09.13.38.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Oct 2021 13:38:09 -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 v5 2/2] drm/panel: Add support for Sharp LS060T1SX01 panel Date: Sat, 9 Oct 2021 23:38:06 +0300 Message-Id: <20211009203806.56821-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211009203806.56821-1-dmitry.baryshkov@linaro.org> References: <20211009203806.56821-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 | 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 369cb76512fe..eb01549a6ccb 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -519,6 +519,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 6e30640b9099..bca4cc1f2715 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -53,6 +53,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..e12570561629 --- /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