From nobody Thu Oct 2 06:14:54 2025 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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 66D0431A817 for ; Fri, 19 Sep 2025 15:39:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758296353; cv=none; b=L5gzKWVBTuMFzDZ7HbThmZ3YcTzCkjkNDubxoXvQWunCRAZ7QTd1msu+HKy/WJW/AoKO0dnY+iq1DaFsTPc3SYMSObA/9idOQ9hJZ2u0hpYMLVkBHCaivDnmtYM8IKQlBqxtVuQDK3kTrwViVcwpvHaO3zPxQcNXqikN2zCDDCE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758296353; c=relaxed/simple; bh=n5TYoQjReppQnj7oa4KgUh80MYaRLfcqCr2v5bD0tYg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hQpyjvlPxFpZutNEJB1c6+ltNxOVtsFlB3P4RilEYSJPhi+vbBnROCReEaGBL8HANTEtmugKi3pJHWnT0DYKkzSst07995ixwcHwrDigIaZphK1ru1ZI4oL3epfDbckjokfLUhBnl+OW/0O3TIltZoxI0zQ0tjLd6CSmUprm8o4= 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=gjb4qWsr; arc=none smtp.client-ip=209.85.167.53 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="gjb4qWsr" Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-57b35e176dbso45102e87.1 for ; Fri, 19 Sep 2025 08:39:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758296349; x=1758901149; 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=awn/8X3LVfxIDjt817H/4r9cyEH+Oe+JPiZdfgLM5TU=; b=gjb4qWsrNkEMkbi1V/57QV04xKWhQrrIen0IeaU3UUem7PFafa1bQuXaeaAfsv4Prt xYJ62LtfXgQMcrsPif2lcwEZr2XJrlF62ZoISb1S4Hq67gFEojAaFDs8AsLzDQiSqFXE NXIRhPPAV7ZOlBIPY7wwe+lNZveCaqfqC2qjpUUvfrromH3LTPCDo3oJ+9KKZR3OJ34D LKHonVoA4MOO/sS6PV5W67jqxWNVdSaaon82TqhtWhVOWJaaDtCUW8Ql1iB3pba9o+0w MM4Fc+RZjsD97ltvhsc9Ml4aX6h57ByAgs5jApkTdj6DXc70nfZ0OJaHzT0Iqe/4zLZq b5Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758296349; x=1758901149; 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=awn/8X3LVfxIDjt817H/4r9cyEH+Oe+JPiZdfgLM5TU=; b=X/px6C836cOFPMszDsQ+Ba5Hs+K/eLBeZrAtTI7xXXg/VHe5mwliN8yKAjqfkPsIrq ikWSP466ggX12n/ah8DNTS7X48DiHeZW94JfhFzUQit6sGClCdpB04olD34JCo9IQtKz SCZh1QI/WEJf2fZA/1t607cq/wThG324ObtKAlaA9sQi8n6QOB2EotH1h8DmjGngLZ6U 4ChLNiQKpv8FhIzf8jI0mWTkin61fzuG6agF4RLVB0+1BKmGDVISJlE65bPYMD36SJSE TXPiYiGquNH3PxiQGgjRsPnTgITRSw/NVqXzqoJSUQ2bOV1U+XwxZd1eOPyPMCB4I476 yO6g== X-Forwarded-Encrypted: i=1; AJvYcCUDxkZykiBwHIigRSwbvzTFJJn7BN4NOr4B9+iKRTEA0we5degwN2RE6ZWxlfjk0t7lsh4jHrT2Mz5YKkM=@vger.kernel.org X-Gm-Message-State: AOJu0Yzn9hAVGV/cu8b1EW/lvqUvPt3oh7nVyYcLzmSZhL8rZe7/cn+d X8bHEBJdXDB4YZgmxCR2GeKZnkl6BX01CYARlBzBA5XP5NcIWTftTd9G X-Gm-Gg: ASbGncvcRCNCbdMa/LGH1ujyi8KHzzjKJ7Uo4Fqu86ztricLV+eSJ8GOQoWOwVqrxAI j14lR3tJL8A6Ku7c3ZRCDPt5+8FA5FknqQr7pQLdUO3AGkoh77lfl2JUZ8E6sAUW+ebEDl46oR4 vOTcxIChXWZZuAewY+zRNmxuaK9GTsq+c9UsjYqBR5EIvUKMJQHTQxHsoViIgfIYAJ7Dh0tZmnX KWZ5lTsik8fpiCLLz8slR48VhKYJCmZBpQ8XdZm4HBITOpfGoFFmMGxGy6AYvOe1JGJNBcEzesA N7QHnJzXXnFJOVm0/fOLZSH2jrYDvbVDYed04Ku9vNX4oS+JVdBvGjxxgGMrphNpwNix09uDYpU ZrX0yu0lZ8/60+g== X-Google-Smtp-Source: AGHT+IH8Sej1anu8ff21sWNo9vQs6p9Oxp87PrlzDoeciz0OvJm22lDYOfahd8YyFL6OT7sgWgEjTQ== X-Received: by 2002:a19:6b09:0:b0:55f:439a:dafc with SMTP id 2adb3069b0e04-579e1f4136emr878221e87.27.1758296349419; Fri, 19 Sep 2025 08:39:09 -0700 (PDT) Received: from xeon.. ([188.163.112.70]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-578a5f44771sm1485769e87.20.2025.09.19.08.39.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Sep 2025 08:39:08 -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 v3 1/2] dt-bindings: display: panel: document Sharp LQ079L1SX01 panel Date: Fri, 19 Sep 2025 18:38:38 +0300 Message-ID: <20250919153839.236241-2-clamor95@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250919153839.236241-1-clamor95@gmail.com> References: <20250919153839.236241-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 Reviewed-by: Rob Herring (Arm) --- .../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..08a35ebbbb3c --- /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 + + dsi { + #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 06:14:54 2025 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 D64B231B128 for ; Fri, 19 Sep 2025 15:39:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758296354; cv=none; b=L81EDMjjm4KJ6BOtUHzlFfrk5MN/eFxrgpuPRGK59JsM+9ZN8HJQXfi8tnRwA5pELlkjQPUt0cPMMB+9A2zketDgu1zOipCkz6lLJ3E649UAlvqJF/HV+sgck12Rp0oMToQHaZiWDjn5os3fsMCPaEdvI6yD9gK/pmW3XRXs2KY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758296354; c=relaxed/simple; bh=86WXS9lP0SG30gZYq5CnNwv2T0FnEVo/IgAB4nzDdlU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rR+GvgQOyVV5hkE++Eg3jopY7htOvLrzAGeRsm98XKsj3sv5zL5IBr2MPCEwW1IIgrWPxcQveKCjMm7kKopeiSm8Nz354Ja7mcFmUKJNlcO8nti041THEhj3me77EqRl3k3caQnQT79Xs2T7UzJM1XLrA1pjc0hK+26KG8nbtJQ= 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=Rd8eEh7e; arc=none smtp.client-ip=209.85.167.43 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="Rd8eEh7e" Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-57b35e176dbso45149e87.1 for ; Fri, 19 Sep 2025 08:39:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758296351; x=1758901151; 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=ozGRK/lcNTXqKTfVfxOg4AENasqLy/jB/aKQu5LHALg=; b=Rd8eEh7ey/WkJsoq3jiEv832dPgWPNdDBB853p/ma6rMixo44BI1V0ImgHulvMoRns 5W5LyMpvB5idOzY+QzkkLjkWLYlroCfviqLgOj541hgoTjn1ngJ8dcAZgJEMfE5/iZxo 1uDTXhBGXbPRGDJKoEfcj3/c1OksRkQqdarHXVftjFXZySsFr0FjyNPGTch/72N6D3UM 4EmDA2F0UFa1HjOEYe5fwTHsxziiA49RfTs+qIMlB2GcQ7NNNWZap2e5oS7SFgQ03Vmv w08EvEef/ivpf/OkwtujhcZu8Fl46hz1cq3uDDdXu36KbQpfoUrpJ214oeqaKO3vMZyw sCZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758296351; x=1758901151; 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=ozGRK/lcNTXqKTfVfxOg4AENasqLy/jB/aKQu5LHALg=; b=JawkKbbeeRSvb0T2mgZ10re9TSpziDHCcHj2CSMWgBxT4AzqnnrdRt6/Fc2qNyC1Mn 0OLWXRvAexXiRDaY3d8bjirrSrpuKzmF59zWIu4bUmod4jwA87E219RwlI0SA7RcFxhl tJfsdS7jGbRh4FUS2azGnMY4qjNZ5oLmAsI7yq4tltyDmIEJh+ZHb8V83a+uaFjlhCWk ZHbIWtVnepr+Bc7OBDtkcLPiHjF+EtATqahxFYC/ffB2v4qnnZPuZCGkWvELjnwsdz4E 3Lp7w5DAenIa8ufwXK0YGB7STYGP4/JR4ycyXx8BLVEi2SlP5kqyzL8B8pkKiQqEx82E qSRA== X-Forwarded-Encrypted: i=1; AJvYcCWGbzor/50iFMNaAh2K92lWl6RKyuaLqa0v0XajkurDUAh2tSXyEjR/Wh17q5S70BSmH3OgcP1zJgWD04M=@vger.kernel.org X-Gm-Message-State: AOJu0YzNarWtzzq/WhhHv+ITUeTA2NtySDJIYIDp3MBobSRev3GLhkyJ faHplErQQq699ciqpxo5ZiqBiaB0bog9bCXYInsSjkv2Hq+aj3QXDNJC X-Gm-Gg: ASbGncuIMqODUSM97No2kDCWeJJ5kgutOwJCyIrEayW4gYpbi9hpBAxAIZ2l87QTczN V2U/+sffJGmdjXzZlaLQvyY6crGrQ1b5KLVECeDFkWIIpuX1kBdfzmhKRAH2lqmZWHPOj8lydJA RBnSBE15Kr/j2eQuvaGa7LqebVAut12pyaqYtzq3lR46K4hvf1C+q3XyVtvA7uZTtHP2yhbWMVj apGOZ16bewaac6WUrpR+pQXniTeDYW6ur8rkw5i1e3jTBnyJ7oXXBqFsfbXZyhByBAd4+G6ayJd sMGf/BOKOFJ/pzpRnquQzZn0e0T4iZ/TWMJGPHEYYz9ORLw1L4WDIqRxVrtqeTLC2WgnT/8Mwr/ TYfSKNq2OT/HBQQ== X-Google-Smtp-Source: AGHT+IEk9Rm+m+Dotob+wF4upJ7TYkn5JaaQVEGQ0Fd5BVKaUqFFF/how5al8ALh6tCrm5Y6gZHJgQ== X-Received: by 2002:a05:6512:134e:b0:572:1f0b:5ee2 with SMTP id 2adb3069b0e04-579e25fe471mr1393145e87.43.1758296350590; Fri, 19 Sep 2025 08:39:10 -0700 (PDT) Received: from xeon.. ([188.163.112.70]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-578a5f44771sm1485769e87.20.2025.09.19.08.39.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Sep 2025 08:39:10 -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 v3 2/2] gpu/drm: panel: Add Sharp LQ079L1SX01 panel support Date: Fri, 19 Sep 2025 18:38:39 +0300 Message-ID: <20250919153839.236241-3-clamor95@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250919153839.236241-1-clamor95@gmail.com> References: <20250919153839.236241-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 | 225 ++++++++++++++++++ 3 files changed, 241 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 407c5f6a268b..045ffb2ccd0f 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -888,6 +888,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 3615a761b44f..0356775a443a 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -91,6 +91,7 @@ obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0) +=3D panel-samsun= g-s6e8aa0.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA5X01_AMS561RA01) +=3D panel-samsung-s= 6e8aa5x01-ams561ra01.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..8c00fde1c4a9 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-sharp-lq079l1sx01.c @@ -0,0 +1,225 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (c) 2016 XiaoMi, Inc. + * Copyright (c) 2024 Svyatoslav Ryhel + */ + +#include +#include +#include +#include +#include +#include + +#include