From nobody Thu Oct 2 19:27:07 2025 Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 893B12848A9 for ; Fri, 12 Sep 2025 06:43:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757659403; cv=none; b=AXfsMaMWvIl7oG2FjxpNMpSeorOZYxgbNg1FLh52ZxeyWjMg1+0vgA+TEc75xBjW2KCP/cmgXAEbmLplPhoTGMl5Sje1kBqgidz8JtTc1Bbdbl1t1N39h8z5095kx4SOmjSzu0iP/on/+XWxURj1nt6H4kkkhqk2/ijex+CPqm4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757659403; c=relaxed/simple; bh=rOVb4unXmnLvpXZofwpgqw18ZSrh2uveJ67FAQaUljI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dvNPmf4i9twuKT45gQiINBbvJOMoOZajjvwS8vdZcvFb7pQMtFVlh0Z49kSarxnI/AuciQ23w4paMYqmOc9j3TEo3DaH1L/J7hy2l8v4bVym08Y1o9wiNs5t8L5d1N8OOCfG14S+qYhQth0jIQupLW/01+EspBjLmcBfR4OI2ME= 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=mlFJSZYJ; arc=none smtp.client-ip=209.85.167.54 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="mlFJSZYJ" Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-55f720ffe34so1887748e87.1 for ; Thu, 11 Sep 2025 23:43:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757659400; x=1758264200; 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=nN89bcFCx4v1Pxsb1bcoAge9Deec1dGBruVjoVQpQco=; b=mlFJSZYJVqzs4SuKB6uflOG+LVQSEdaszw4cbYh12REHc2BcdWk17J561mRs6ZNREA xc2e3V4th+RQAGkAYQTj8Lhu9UVt8JF08Tny/G0pgB/gUamXUIdFyyzcbexe5qxsjN20 dHxbXbmlo+dU4GD56bmMwbpr06IjxOFteB2uwDxypWYeRHuWMtK2STGpjwBTCT79BWvM 8Fd+9HoZ6hS2+sZMIUW/+EBVWMlve7B2iln0IlEGuSKdMCQ1E7Vk/i3WKE33XgaTQJ9F kuF5tdvB0ayW51qNafG9WXvjyYpo/cofqX+se/4xnFGN0I+Gf+qoKEtjlxKZ4ySbwHzB DxsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757659400; x=1758264200; 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=nN89bcFCx4v1Pxsb1bcoAge9Deec1dGBruVjoVQpQco=; b=ii5Mv3OcSmON5awnZnFd8XnOVeQeOtz6Huxbfxq9FDl7MyAjm8pAIzZcwWjcV8SgSD vi/ZO3ShKhlgnFQHwBoUxxvUOde2WzjU4LUAkAP2xrW7bsrt9nTF/Z/TZxRLg+Lull8Y GFLS3Bg3QX0aEHRjCo/qEs68p/9NyppPTGSEEMFNQSsR8FDx4Rbr1XYaDbT20/E+1tFJ 0kn+IsJRlcy6sIIxK3aSBdrmkbm1svlYOBDdUjAJowPbb/qqXSaAkfZpkDEhV3qljdqa s7tdzr7GgSEWKAkBw6iwsHmjuxPl4nCmca6ujy5hL/t8RvBH2Be4WYQDZHN2nVdsYR4z dsnA== X-Forwarded-Encrypted: i=1; AJvYcCU6aseavEgcXcvy3EHl8360ITcYpU0Va9zp3egOvpw++KNLz24wfBasmiMINVFobK52hoOjjjffjr7jBL4=@vger.kernel.org X-Gm-Message-State: AOJu0Ywd3ERBWUGWvibjZIY5NEGEbj/evwpXt1u63TvThiB1ygcTwITD tQjnqC+1P/MItVKZ4KC34nLDsfkVS+vS8nIso3bFu02oPdud/eS0C/Oh X-Gm-Gg: ASbGncsm7JW3OfUA/kTdwJ/JCxAVurVpN2kUlO3NOyWzprfjpeHlVUVgj/+RGbPrjZh sKBW4InWnQwu7o8dodX4RjeCVRO8pA8TO2AGn8BtDkzDgLycSCOjZOmyUipysTBhAo8wYOLxdQT 788czbsAKnuPD6rM3sIP9/vnyp0ui7gv7emqVruUwP89UykhzGI5kmGts04b+DwisT9TLBajkBI TkfY1RXr+XILcsCGEBBnrQwWFbEDKPuC6ezT4KCeKKV6m6cad5OaoWIGq7fxwvzgKAWF2yupiHu +209c+dSmv3u0WtTtUNK8XOqY/07vLj3U6zEpVzQEYoB1mDOs0uV+MvIX8kfPD36A/A7a+ia3x7 KndMJ7eMvDLCHT+r/xjN0PjkZ X-Google-Smtp-Source: AGHT+IGmhrlM+wuGin0oxlClzG6X+S6fBnECkDrMAoDVE+lAyQ7VTk7EelsJsJx33vrlPfBtJzvpWQ== X-Received: by 2002:a19:6a15:0:b0:570:a8d4:a79c with SMTP id 2adb3069b0e04-570a8d4a962mr411565e87.0.1757659399292; Thu, 11 Sep 2025 23:43:19 -0700 (PDT) Received: from xeon.. ([188.163.112.70]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-56e64bd15e6sm917403e87.116.2025.09.11.23.43.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Sep 2025 23:43:18 -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 v2 1/2] dt-bindings: display: panel: document Sharp LQ079L1SX01 panel Date: Fri, 12 Sep 2025 09:42:52 +0300 Message-ID: <20250912064253.26346-2-clamor95@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250912064253.26346-1-clamor95@gmail.com> References: <20250912064253.26346-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 19:27:07 2025 Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 A3313285C98 for ; Fri, 12 Sep 2025 06:43:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757659404; cv=none; b=ZA0qHS8giAyTsEIQA6jNYyIlQtMpE8B3JVtnhCg4Muk8oiRD5Ve51Vt0aFYMoIytRGYDPd+fXfYViU83ajlcKYBN5/Iz80Bu3Ss+bP8DMc/Axy3Cb0imuFGXHgrbxxwEQiEdMFvbplinfQhsa+IltZEVAczDNlK2TWZsuyv9D2k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757659404; c=relaxed/simple; bh=TGYboeqNo3SZSBH2Smduu+OOjFH3M1jhGll/No5dNcs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ciDSjHv/7cCLdecI6x0THJBfeqNb53iBIeh3YWft946NApKdzSIdOLz2kIlLqtDsZ5nZOlP2a9Cvq9WvZBlG2MwFEgDgwgxF9KKV2Tqi5TmA1CqS5i/4wHoyeee2UThTRf26Jg60ylUiosHjO2xD8j0NR1IvtPZhgSY2GpGy+Jo= 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=nkA8Cewh; arc=none smtp.client-ip=209.85.167.50 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="nkA8Cewh" Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-55f7b6e4145so1529558e87.1 for ; Thu, 11 Sep 2025 23:43:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757659401; x=1758264201; 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=3P046ExiqSt0dhR7HxTwDiLPsz73i1JrV/6JS498U/E=; b=nkA8CewhUIgx/usjoYrjKhKld8TCjaAE1F/PB96ARiQwiLXuS76zGdzqouCxykIpi/ L0H8hz28NvR4Xnu/nkbRW/QokBTmFS3qjImuab5OGdosEZ8nw3xpZg31AEDRWi8CUFCa 9QcEgPJKSp28/PPgYSrnsbmdTmyg/MBia2Kv2P60oV7e1MznrThEvvn0ge+09CtATId2 M8JEKeUiadYcdzzBt7zI7FjOXAaVKIcUMqfkRs5rIE5fAKiWcctCxHPlJqiA2lg+x2Al AcclvBPu+V3NnGjh6GlSrqtrA7NuN/9+AreoIwTaebwP97tw0FpCbSmn7CuzTmZ0jnfE +eGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757659401; x=1758264201; 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=3P046ExiqSt0dhR7HxTwDiLPsz73i1JrV/6JS498U/E=; b=f+W/p44YmP4c0mjyrNSipr0fQyi34TYqsr77ipi/tW0W2Av4znq8aAtGUAYY/8IYwD oFVXRf99Zl5/qfTauThCxw79d2TMyihVLHIkf/GW3c7zGOJBLsh2nxYkV9CK6RlZbZYD 414dX+oohk+GQH+sHKXxecSl1CafWrTVM9XnEm8tzY3ESA3NZymyafY30sLyN/gZwKpv VTQUaLHJT+CJSZ0E+ngF/5xkribvrKpacccAnSZbT+7yACYIxAVQCNt06Jx95mxXqofP AEO+iM8xQpH/15TWmuqlZIChD/mflTwToJG6d9RRy9+Li25u6ra+PvST4IPEvPPIOnm2 JviQ== X-Forwarded-Encrypted: i=1; AJvYcCVbgGryUNfM5TDBh+PpbvFb1W/1vPYbZlru+VD3RZoi7GZjmVw82vkXEvW86cOXseN80drDbYBXszHK8Vw=@vger.kernel.org X-Gm-Message-State: AOJu0Yzr6C5EYezrxdk7z9iTjvJU2cjgTI5pZVKJUexBnxXjsuITUeyN DrDyr+k6w2EvaCU1trjQKtynR7fz2qMZK/WW1JfKdgNS2rcjkEjVfKBN X-Gm-Gg: ASbGncs0dMGZ+dUzxo00ra7+0pPLXCLj9aVx6sVB6xe9AFoVok6J6luIW2DFIXrmAY5 yyj8s9AlHTAv8HM3ddbGb25Wfnl399R1V0Z5XjzTDiFrmLU0JIuz5LFkbsi1TyuPX9Bx2BB2ryj 5PpfoOZO+dBTNzxS79PJ8OTjx1kOG7fskDT145wlt+S8mllp3IXOTWtFVmWpKGiHK+iNL2AM8R4 MZZQHKIG53QrwXx76oyMIdYeKLrkH46l33611Nx1LpJV8lDDm0wr3QuVs0hhOzsmtZQhbSOhu9p 2UVY1W0+vGM/V1a/EbHuz7aYQ7eF/tFrFx+wboyviVKXZ8BfaXGKrTC0hPy8yGOPTWJuyR/g1JH 5DmIuEWdQk4lKVX29y9RkNAXF X-Google-Smtp-Source: AGHT+IGhqp4JsrCoDF2N+iHFyxeFf/WpwBUR4XG+lmFA7BGhK+mqUolgLmiQfsoc9YLRP5nyx11QPw== X-Received: by 2002:a05:6512:b89:b0:55c:d5f8:787c with SMTP id 2adb3069b0e04-5704f5a7c90mr656997e87.54.1757659400507; Thu, 11 Sep 2025 23:43:20 -0700 (PDT) Received: from xeon.. ([188.163.112.70]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-56e64bd15e6sm917403e87.116.2025.09.11.23.43.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Sep 2025 23:43:20 -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 v2 2/2] gpu/drm: panel: Add Sharp LQ079L1SX01 panel support Date: Fri, 12 Sep 2025 09:42:53 +0300 Message-ID: <20250912064253.26346-3-clamor95@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250912064253.26346-1-clamor95@gmail.com> References: <20250912064253.26346-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 | 233 ++++++++++++++++++ 3 files changed, 249 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..5b516ba6c132 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-sharp-lq079l1sx01.c @@ -0,0 +1,233 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (c) 2016 XiaoMi, Inc. + * Copyright (c) 2024 Svyatoslav Ryhel + */ + +#include +#include +#include +#include +#include +#include + +#include