From nobody Thu Oct 2 23:57:53 2025 Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C62753090CD; Tue, 9 Sep 2025 07:38:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757403527; cv=none; b=DUkGtlF1iMEqZXUsIIzXNpA0vru4Hq6I236zo5+lqIrjUgx9K4XfD5o69RFUTMPxaWhmvwXdiCTqwPqTDsWUaPjz5MeKqZb1DRDXKVZ2XlvRL+mXszui9s0MwCTO96xTDYNxG4A+v9OR8jJgLGjHvJEfE4hIdteWzh81heIUhiM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757403527; c=relaxed/simple; bh=iTt7xqD3l84dwxyJM7RcMs1SC6szftVZRQU/JLL31+o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TW04tYnLp0RC8bM4eEDH4Xx+RbJ8XWePFbkIgnVE+6H0jW4Iuibo7pGntn94RdrXpr1lfSC5U0fz4wOQjdIx9/9dH7vHu7NgViRg6WqBt9fF4m0W4GKCa6715YgDHsp44J/cs4vsotCV3MMTz0skEND0W1B9gR32qWpRzZubr9o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Oa6wtvaH; arc=none smtp.client-ip=209.85.167.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Oa6wtvaH" Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-55f7b6e4145so2683887e87.1; Tue, 09 Sep 2025 00:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757403524; x=1758008324; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3lfcXfQwIS1q2h0Snb3/3x5fJy2fTu1tfuelexkpbAQ=; b=Oa6wtvaHgXrpCesxnhfjNA++29yLsLrm+BRHPBsFgkcFTmxx5ifJfzfgvzjT+S+5JP 650Wyind3EppN98F0bpfkgRx2XJHdErvOns4P/ylMaAidb4yAHHP5yiaAgWN8IJVcfJ7 aMbW506VouF23SEvxvLs/eJeCj/MlLef44ZCJm1fBABKuJhXoroMZQTTi6Gj5XmrsOOC h90sary5+gZbHkqLoli4bVwNafRwbpuNQdHFllV2vHBEpG6Y0GU6DYi9yrCIjibPHRxu J1HjEF+9KfqSAIDR00cdU5ZpdFa60chs2useRbmNU027AFJMNcYQN8hrmRGFkC66phkS JCTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757403524; x=1758008324; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3lfcXfQwIS1q2h0Snb3/3x5fJy2fTu1tfuelexkpbAQ=; b=CVok/wbBtgrZA0waquswuN5Rm2t9BVkfu1j6T8Szcfjqh1/TMdOM4vn58hktpuC/4h XID2GOC2MoGvHNhfqJRt4NMxLFT1OjYBUjEJh3uO4zLWVb5bzSul2WYe5GimFhj/oP1v puvt3rmhhmqBYxyuX+MWi48Lk1nAqk23IHlp6ZwzRLezDCYBIKki4wh2LfoX4bq9aulE KAvEpR4oWByrxDpCsaRPVE53RdnxlWEej6p3f84Qbg0hCFVlxJW91Gp6FKHG+xe/y548 mOPVf/Y/2ijysaanEMKD/t2EGtuBqjYXBdxJjs0agZPkzNytcDdwlJqx5DJzTM7uRrTD dEwg== X-Forwarded-Encrypted: i=1; AJvYcCWgXDU0Z0JEj54923SqzPYJipXrfnr/DTGdBgzK4xMNvsgyADftVAZuJOtT4r92SgLxS4pm3+MH8IRcoEiB@vger.kernel.org, AJvYcCX7ZOtdLuXlRR7YgaJ3Vz62qCF8lMhvPuGXf89xAb6kD8YmUiPSvGnPM/smrjU5KYGH/4OUZ0boW2dT@vger.kernel.org X-Gm-Message-State: AOJu0Yy7xEyUJn1I873m32/fXv1vCIr9dgkdtJtYdOtDb5onsvr5umUj ABpzW0E9dW8VTLbqvUsA9hWBoSZWYfsz5jkHTyQGHB5Cy+UK+c3hqxPP X-Gm-Gg: ASbGncsTdAe09Dt31RliTwTk8/apjT6MZ8qQ76EZyMnxFuMvWiiG3pxTmdcg+BW+hN6 7EALEBI28/NEj49y3usAJPGzCMYkH7f5AR9jcjM6KnY+0qpx0XGkVokC9NPeIiVEAKVivn/8g1o deZS6QrEoi5/2a8mxB1f1cPBNqmWgc3acy7ZP55XzkN+S387LHIapL2QLL3UXtVtlq9Njo2ZpKM pg378BipKYVoZy0mvNf4X0WBFu/A1vLCYmvfeqFW6CpsyBZGq++YlSv3zXGHvgp6J8e+n8VF/J2 z5e1rctmIwORxZl8+9NbxCDskhqP9sBcCn9N5pGDJcnbOfJU8uPjQQ47gNR4gKODEFOEM20bWQa gYDiYbQr+KZ7+vw== X-Google-Smtp-Source: AGHT+IEaVfapd5iBYsDenlEZ5XVTtYiiiy3FO4SXIJNtmFVMalV0u1BpsRCN0qcks6PSEkDajV97zA== X-Received: by 2002:a05:6512:3d27:b0:55f:4efe:42d0 with SMTP id 2adb3069b0e04-56264167ac9mr2795515e87.41.1757403522236; Tue, 09 Sep 2025 00:38:42 -0700 (PDT) Received: from xeon.. ([188.163.112.70]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5680cfe2496sm342580e87.61.2025.09.09.00.38.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Sep 2025 00:38:41 -0700 (PDT) From: Svyatoslav Ryhel To: Neil Armstrong , Jessica Zhang , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Svyatoslav Ryhel Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/2] dt-bindings: display: panel: document Sharp LQ079L1SX01 panel Date: Tue, 9 Sep 2025 10:38:30 +0300 Message-ID: <20250909073831.91881-2-clamor95@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250909073831.91881-1-clamor95@gmail.com> References: <20250909073831.91881-1-clamor95@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Document Sharp LQ079L1SX01 panel found in Xiaomi Mi Pad. Signed-off-by: Svyatoslav Ryhel --- .../display/panel/sharp,lq079l1sx01.yaml | 99 +++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/sharp,l= q079l1sx01.yaml diff --git a/Documentation/devicetree/bindings/display/panel/sharp,lq079l1s= x01.yaml b/Documentation/devicetree/bindings/display/panel/sharp,lq079l1sx0= 1.yaml new file mode 100644 index 000000000000..1dbb4a4bb772 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/sharp,lq079l1sx01.yaml @@ -0,0 +1,99 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/sharp,lq079l1sx01.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sharp Microelectronics 7.9" WQXGA TFT LCD panel + +maintainers: + - Svyatoslav Ryhel + +description: + This panel requires a dual-channel DSI host to operate and it supports + only left-right split mode, where each channel drives the left or right + half of the screen and only video mode. + + Each of the DSI channels controls a separate DSI peripheral. + The peripheral driven by the first link (DSI-LINK1), left one, is + considered the primary peripheral and controls the device. + +allOf: + - $ref: panel-common-dual.yaml# + +properties: + compatible: + const: sharp,lq079l1sx01 + + reg: + maxItems: 1 + + avdd-supply: + description: regulator that supplies the analog voltage + + vddio-supply: + description: regulator that supplies the I/O voltage + + vsp-supply: + description: positive boost supply regulator + + vsn-supply: + description: negative boost supply regulator + + reset-gpios: + maxItems: 1 + + backlight: true + ports: true + +required: + - compatible + - reg + - avdd-supply + - vddio-supply + - ports + +additionalProperties: false + +examples: + - | + #include + + dsi0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + + panel@0 { + compatible =3D "sharp,lq079l1sx01"; + reg =3D <0>; + + reset-gpios =3D <&gpio 59 GPIO_ACTIVE_LOW>; + + avdd-supply =3D <&avdd_lcd>; + vddio-supply =3D <&vdd_lcd_io>; + vsp-supply =3D <&vsp_5v5_lcd>; + vsn-supply =3D <&vsn_5v5_lcd>; + + backlight =3D <&backlight>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + panel_in0: endpoint { + remote-endpoint =3D <&dsi0_out>; + }; + }; + + port@1 { + reg =3D <1>; + panel_in1: endpoint { + remote-endpoint =3D <&dsi1_out>; + }; + }; + }; + }; + }; +... --=20 2.48.1 From nobody Thu Oct 2 23:57:53 2025 Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 151363093B2; Tue, 9 Sep 2025 07:38:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757403528; cv=none; b=bjXFledZTTXQQdcnOAoXZqzSRa4TxBxtJlaz4GxrbZiuC/cMn5HAEGI7CMcJHd0I8G00mc215gxAF++g7PSvZxDGmDLabtjG01wKVVzxaNtDewUpzk1oPagVFYAQbMfrWT+6dRwnHuogNnlSR2ogFS6RsjoFB5s3UoBmCHpbVXQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757403528; c=relaxed/simple; bh=emVvBHfqWbjh/TPffNovN39uCyWMiF9ttD3XidlG51Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OXeq5iP/h15+dWUOFXgAY520qa1C3q7LhHZ4JU3RwIwFN5Z8E1FjYmrErYibS84+3KwkRUanH4SO/Ynh/7k/wTlm8H9ROw/Fk3ZoWTogogniBqgbw4KHau2IrHOVJ5UOo03Dt/q03zoRlZ8XoxubtfNXkH1e1PZTO9dUh9BK3nI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CLFeEq76; arc=none smtp.client-ip=209.85.167.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CLFeEq76" Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-560880bb751so5296677e87.3; Tue, 09 Sep 2025 00:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757403524; x=1758008324; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rOZVpbVl5rqwnG97iPPBtlhSFXm5i0T7JrmpKEWQy4Q=; b=CLFeEq76VRmpi3EfVYLRLXmhtOJbQ+2mE8lI559jrz9V7+f/LFLyoS/9oIqgmXeryu UKhndzHZXeF9Xh+XAU2yWninAatlzEi49D9lqsGygCW3OZB13uHRAP6rM/055lUOJVBI ybD0iXi8tv6LHPHeeic56djCkehGTq2a1oH/MoYf0UwlxKkU6iE5c/u7Ew0zHbLv3vaU JTQDv3lSD1ILRjxuQAiVdFvOAipVKGV9ivyYXCF/EpWO/N4BOUOLRZck5ELQM2UqA+FW 1XPurdz65VIUcgNgndUIJcFovNWgv9Zr5D+eYTu90zFRLhDJsZki01Ls8QoLeAb52ZYH pUDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757403524; x=1758008324; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rOZVpbVl5rqwnG97iPPBtlhSFXm5i0T7JrmpKEWQy4Q=; b=BFJ+vNSl1i3RElD9VYDpPGka5Hxoi2kyVVAZ9fPz2oVDw2km/BSh8R+jJbuwTjWOOY GPN/6kdI7hQtSCvImd+F/7wFkD+yDtY0IVmVI22LiHBCq1bysJ4cSDNomBHTCltZXtxj uO6OCpb5z7A+0Yd/pNzHOCj5u2YW9+XDjN4AlL3L+tthcJ94Flbb/FoR8z0c9ZLXgK7s +oSGKAUl1/h7SaF4mvS0qmpkVSKm4ri8Gw3bsM7a5e5V/6Ype/x2LPMFnVni8L7aS3YD svT2henpyzkl8SOjsg2cd+swS33Tz14admfzlriHGj033xSXCSAqUvPBLuRWLCXUpiPc Mszw== X-Forwarded-Encrypted: i=1; AJvYcCVkSM95Ns4uxtAU8V+NjATdjCRfh9f/mcVV86vqqgIYwFua4HYtIPbJiWeLtDXPQ8G+7ziJytvhDyZW@vger.kernel.org, AJvYcCXuNSemTCzGCn3jD5dlIJ10JPDJ+W0RTkLxt4QhTPX1pu6TxoOPeGozawntYaUvKZ1B+3DG0u6BfPSkScAx@vger.kernel.org X-Gm-Message-State: AOJu0YxYO1glXMjvM9Cubt9d65H2qWVbFRcjUXvHt+QxiqRRKZ8QNQBU ilvNaxZpWOWB2zRVGtt1ecWK7XNlNU9p5fNWWk13eUE0aCd8DTTQlir8 X-Gm-Gg: ASbGncskSijF3FpXMOLbm5BovA8sv+qbp6JXh0xoMA/tiPGBTEtw3xMx7ECUy+A0hdz kXdc3wun7PFKZUv5utBwNVUQ1O9VwrMsZLG4mF8bqWIhk0J26Ou6MiKE0wv5gIh5p7Q3ihn8zeK kk8KInaHLZ7jdBvHqQj2/F4qL1ZEj8Urjqko1z/sTut4TbRFoJCV6pkPeRvWtYkmGMo7cDa7TBw DOhSEWmzbeyjUG6dEgqNlF4di77Hq3uRYvc2XausIFn/AvGHYrTbI/ohkeRIWhJuB1ltoioi9g0 zj0m6SIeLl3EiM3ZeB76lalAd/Ef9yIxtlLBcoNmtXZ7tChzrC+Tvb6JKL7WsA1fPb1Kr6DWAI+ 8DHzXpYb3k5UcOadIjvFVSt8t X-Google-Smtp-Source: AGHT+IEiAhhZEeKktjYUvBBQt25bqdnRcAYNxs6E2cTMeAWljxATylD0OU0lGDfQHCIlvitEuWNl0w== X-Received: by 2002:a05:6512:33cd:b0:55f:489d:7bd with SMTP id 2adb3069b0e04-5625d28e732mr3169417e87.0.1757403523312; Tue, 09 Sep 2025 00:38:43 -0700 (PDT) Received: from xeon.. ([188.163.112.70]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5680cfe2496sm342580e87.61.2025.09.09.00.38.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Sep 2025 00:38:42 -0700 (PDT) From: Svyatoslav Ryhel To: Neil Armstrong , Jessica Zhang , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Svyatoslav Ryhel Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/2] drm/panel: Add Sharp LQ079L1SX01 support Date: Tue, 9 Sep 2025 10:38:31 +0300 Message-ID: <20250909073831.91881-3-clamor95@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250909073831.91881-1-clamor95@gmail.com> References: <20250909073831.91881-1-clamor95@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This panel requires dual-channel mode. The device accepts video-mode data on 8 lanes and will therefore need a dual-channel DSI controller. The two interfaces that make up this device need to be instantiated in the controllers that gang up to provide the dual-channel DSI host. Signed-off-by: Svyatoslav Ryhel Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/panel/Kconfig | 15 ++ drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-sharp-lq079l1sx01.c | 232 ++++++++++++++++++ 3 files changed, 248 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-sharp-lq079l1sx01.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index aad4e0da8f75..51f3bd2d3048 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -841,6 +841,21 @@ config DRM_PANEL_SEIKO_43WVF1G Say Y here if you want to enable support for the Seiko 43WVF1G controller for 800x480 LCD panels =20 +config DRM_PANEL_SHARP_LQ079L1SX01 + tristate "Sharp LQ079L1SX01 panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + select VIDEOMODE_HELPERS + help + Say Y here if you want to enable support for Sharp LQ079L1SX01 + TFT-LCD modules. The panel has a 2560x1600 resolution and uses + 24 bit RGB per pixel. It provides a dual MIPI DSI interface to + the host. + + To compile this driver as a module, choose M here: the module + will be called panel-sharp-lq079l1sx01. + config DRM_PANEL_SHARP_LQ101R1SX01 tristate "Sharp LQ101R1SX01 panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index a6a100e4c4e6..166d1969d024 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -87,6 +87,7 @@ obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E88A0_AMS452EF01) +=3D p= anel-samsung-s6e88a0-ams4 obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0) +=3D panel-samsung-s6e8aa0.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_SOFEF00) +=3D panel-samsung-sofef00.o obj-$(CONFIG_DRM_PANEL_SEIKO_43WVF1G) +=3D panel-seiko-43wvf1g.o +obj-$(CONFIG_DRM_PANEL_SHARP_LQ079L1SX01) +=3D panel-sharp-lq079l1sx01.o obj-$(CONFIG_DRM_PANEL_SHARP_LQ101R1SX01) +=3D panel-sharp-lq101r1sx01.o obj-$(CONFIG_DRM_PANEL_SHARP_LS037V7DW01) +=3D panel-sharp-ls037v7dw01.o obj-$(CONFIG_DRM_PANEL_SHARP_LS043T1LE01) +=3D panel-sharp-ls043t1le01.o diff --git a/drivers/gpu/drm/panel/panel-sharp-lq079l1sx01.c b/drivers/gpu/= drm/panel/panel-sharp-lq079l1sx01.c new file mode 100644 index 000000000000..7696dfe18e31 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-sharp-lq079l1sx01.c @@ -0,0 +1,232 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (C) 2014 NVIDIA Corporation + * Copyright (c) 2024 Svyatoslav Ryhel + */ + +#include +#include +#include +#include +#include +#include + +#include