From nobody Wed Oct 1 22:33:17 2025 Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (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 C68BD309DCF for ; Mon, 29 Sep 2025 14:25:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759155923; cv=none; b=Bt3XMf8xfRzTLRoCpXtqE/e5WcMf7t1RSBn0aS3E2Cshtbrduw1ZvWTHZLgMm8G6LA+0/GnBW9ntkfkkc6AfVDLp0fSjRUXbGU+1A2gXfCnO16+PINHk2hb2oWmKo8P7YKUTE3WGBZ80gPwxCpLa1Wwml8b/89T6QIB+Sw9H12s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759155923; c=relaxed/simple; bh=DvadToblCQTcVIF5apzEvP8l/eXojW3y4KnHvhcpa58=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gqBjwMiqedhSxOYG0EGSanVdRTDgrRJPXkGnVhhBDwAYC8b2hN3T3xOp7+zdp7AWxTZm11s03fvX0hJTy4aYVVNbhDtMyYu2zaWhqNUg1q8Enos4rqrYj7q9y+hBt75VGSEX937AeRyrvj10Dn6ukG12bjdBaTPgbamuWQw3lhY= 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=OJnclQXG; arc=none smtp.client-ip=209.85.208.174 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="OJnclQXG" Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-3635bd94dadso42121441fa.1 for ; Mon, 29 Sep 2025 07:25:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759155920; x=1759760720; 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=eSQFvg/0Op4ijZhmcHNRkV3VuLRSkHnJiSZzYGsOKnU=; b=OJnclQXGYJKJOy4CUU1BZfCMIDJavOaNWwqUn3zRvvGWqpm5VNwuWfvn6z6RMi8cVQ RDt6DM7rOloEXH1RkteIqinwWHlIYw44yWm/TJ79tr5CNd5bnUtU2VCR5We7s73QrkCK 3GaCoUqKG4Thw0M951QeAs+kY9HMphisyjeG3b0oZHl1d/ALqy6O8AUPOKYQfnQqj6/D FR804bdUwYCpifu59PjEkv+ke9e6bU2hhT915A9ofPM/XPJolAFJ0UEdCedjHx3tgflZ DIDHqP4c7CDL4gC9AixLXl8Ze58fvgZkkDFtVtjsm5mkBefwx+G1sFUgrWcJKzRE2HE7 s7Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759155920; x=1759760720; 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=eSQFvg/0Op4ijZhmcHNRkV3VuLRSkHnJiSZzYGsOKnU=; b=pOm03toFxl8OgFKOObUO5cWmwd1wyxC2rdS1FL3HZ6FaPXf6CETYS5ZTbs6plyg9MA b4ffGGb7Y8HKsh2WSvPqrtawb5ChWCx+Wf30i+2ST8CckzkdGy1AlHf+SNFmpdCCJJIj 0+U2Vvy3YzrTVKauRf26xIP/LkCZ1cUcgukDy0PsXWUVNL7mCwzVCYVpFxu+WtPjGPnB ahNiWv+2Fs21D/JUloLzD5yE8To0Lgcb0L1oCI2KDPbEO/7Pb9Xpy/3Mj1p4dG+Te2o0 XyTF7RW2C2lKb4kAJIURGDPz+8x02p4L87Ne1bxRgoJtYJLUiLl014Wtf7VoxfY98jVH 1Nbg== X-Forwarded-Encrypted: i=1; AJvYcCWKfwsFZegNpW8CZFQ9n5N+Mmtvm0piS41EP4dVsk4nr/mGg+hj5cyIk6PjQbYRrsXVHEwe/LfRcJrF5XI=@vger.kernel.org X-Gm-Message-State: AOJu0YyHKQfFt8CLL/6nCXD+qhJw5EVFZOVhOSnd96FoIF01RUIXpLhj O0giDQQWfT3REsOKHNb11VeSykA8NDPprOvp8T2Zz0RguTUVxJH6Tz2Mwpv3Mg== X-Gm-Gg: ASbGncsD9E5GeegRfoIhViX2Gpu9XuqtvWymLiDtkVsp1taPkrWTReGaprwdwHBpt1u 8P6bSHd6IDFamygAlh1NrzCIEvoKrZ6AWL0ij2hhSI8naQ+tRlwa/PfFy/LRp2b9ja/ajZmoVC1 po8c24NShfRMUKq3IsDDaeb/eJx7ehgyP0IqIvbzEkfpGnb+1VDQqeiAzKlD38hzBA3KEs3g6UJ 8f4uJsBBXpBI6Xrp3Dt1/w8UV+5Pie8HSGD3+cGP0XItxANYEJQ/qqIJWB2lz381WA84IBJ2FUv u6QIB8JV3Rqnn+WJmI/jrXUp5pYpRgde6rRdTZHJbIDLYLRnzaJw44ocaA+l1R4DXr1RMWmxdGS UElvVwvGSTGQHeg== X-Google-Smtp-Source: AGHT+IEibrCwJezr+A8wOo2gVwCb6lK72bDzFcB4eV9MZWICPRGwz5lX+FlGpBMGd5346Nlox3jBSw== X-Received: by 2002:a2e:a10b:0:b0:372:8ca0:15af with SMTP id 38308e7fff4ca-3728ca01b01mr21960021fa.35.1759155919667; Mon, 29 Sep 2025 07:25:19 -0700 (PDT) Received: from xeon.. ([188.163.112.70]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-3728c23e6c1sm13201001fa.52.2025.09.29.07.25.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Sep 2025 07:25:19 -0700 (PDT) From: Svyatoslav Ryhel To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Jonathan Hunter , Douglas Anderson , Svyatoslav Ryhel , Sam Ravnborg Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v1 1/8] dt-bindings: display: panel: properly document LG LD070WX3 panel Date: Mon, 29 Sep 2025 17:24:47 +0300 Message-ID: <20250929142455.24883-2-clamor95@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250929142455.24883-1-clamor95@gmail.com> References: <20250929142455.24883-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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable LG LD070WX3-SL01 was mistakenly documented as a simple DSI panel, which it clearly is not. Address this by adding the proper schema for this panel. Signed-off-by: Svyatoslav Ryhel --- .../bindings/display/panel/lg,ld070wx3.yaml | 60 +++++++++++++++++++ .../display/panel/panel-simple-dsi.yaml | 2 - 2 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/panel/lg,ld07= 0wx3.yaml diff --git a/Documentation/devicetree/bindings/display/panel/lg,ld070wx3.ya= ml b/Documentation/devicetree/bindings/display/panel/lg,ld070wx3.yaml new file mode 100644 index 000000000000..0a82cf311452 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/lg,ld070wx3.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/lg,ld070wx3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LG Corporation 7" WXGA TFT LCD panel + +maintainers: + - Svyatoslav Ryhel + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + items: + - const: lg,ld070wx3-sl01 + + reg: + maxItems: 1 + + vdd-supply: true + vcc-supply: true + + backlight: true + port: true + +required: + - compatible + - vdd-supply + - vcc-supply + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells =3D <1>; + #size-cells =3D <0>; + + panel@0 { + compatible =3D "lg,ld070wx3-sl01"; + reg =3D <0>; + + vdd-supply =3D <&vdd_3v3_lcd>; + vcc-supply =3D <&vcc_1v8_lcd>; + + backlight =3D <&backlight>; + + port { + endpoint { + remote-endpoint =3D <&dsi0_out>; + }; + }; + }; + }; +... diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple-d= si.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.= yaml index 9b92a05791cc..f9f1e76a810c 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml @@ -42,8 +42,6 @@ properties: - kingdisplay,kd097d04 # LG ACX467AKM-7 4.95" 1080=C3=971920 LCD Panel - lg,acx467akm-7 - # LG Corporation 7" WXGA TFT LCD panel - - lg,ld070wx3-sl01 # LG Corporation 5" HD TFT LCD panel - lg,lh500wx1-sd03 # Lincoln LCD197 5" 1080x1920 LCD panel --=20 2.48.1 From nobody Wed Oct 1 22:33:17 2025 Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (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 48A1030AD05 for ; Mon, 29 Sep 2025 14:25:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759155925; cv=none; b=kdjLbVMDwuqeqUBIdpATDgZgCWDuekpnAJC8IVKy5DItBKZ6HQnzsOeTY88Q6wT/0b1u1L4vNU5ZXSYgiHuEqdzKezkNlqsGjQ9e/rX97i5Wx2cbH2TBfOFvACaEYPqUNsMHbHYRnfPRh8Oa1661qIlf5xcvF44L9YKRw/oFZS0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759155925; c=relaxed/simple; bh=vRZpP5IcRkbgXrhJExXocEfHLpUOvianGJSn4HMdwPk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=J5thZopj7apTThfns1OkIJDC1QRqEXoOWBezICMjr8jC32MXoffbt+6WoGQxUbyxkKjTjqQ7vmYtH+6VgAggItf8krhLk6JZ1Comnv1IKtDBkyp2C0RpxiyyTMw4WeCcmGqwHA8mP9AB+1//T4X8UFkDFsO0aQmqW+SCUBpjoiQ= 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=mDKXgWnR; arc=none smtp.client-ip=209.85.208.169 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="mDKXgWnR" Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-3682ac7f33fso58145711fa.0 for ; Mon, 29 Sep 2025 07:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759155921; x=1759760721; 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=ELe2vhfEw39oaGK6Kto/c+ZIf5LvyG/wUb5bXZqNKjM=; b=mDKXgWnRjaXe3BNZkCG8NzI0082n7YeI7YBgUlDueFwITozxFGn2+SyS5xh+709q6k mUzQQb19Viwq6A+MbLVhTQv9JVvQDED7QKx1yqPgVKWftppdjmfUvEqiNSZ26OxCCYQI Om9fGTLGO5k8/wBq1X3oJyzPADa03+qPZdJY5OTfC+y6PAqhhVrXGQCBFxlXOwizGIvH Z1tGyoaJl5Zgn2zADQ17F/ILIqBQjGXgllkRgQ9yXTXWkv//TXhQ1SrFx2fn6caNpEYi wH7w/S8fT4q506ptZFtq/GBLGXXAhA2mZmsAfFLdUnBJTjE2PeCXoUH4j8cQUL+DVS0l 8HsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759155921; x=1759760721; 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=ELe2vhfEw39oaGK6Kto/c+ZIf5LvyG/wUb5bXZqNKjM=; b=vrBHooe3qM+Bw7+JqnriWMIw1Jg8RAgdGewt4j9tTDNI/Mc32kTOA1nb3Zvav2Mc6L CdGhmE0VMsi/l3xtew6/p7y+/drzEP01zx7DdLL9S4LV6HV1Of+wxNtoDah2ulmmqIU+ mYvx9E1ZyyGub6wwrCaYpHNu0SCnfoZMNa34gWTdcpZYJ22gFW+0zoGASYP4eNmMROcf FxtA9sSdcKDnEWbFS4TGnZv0stXyEcVPodtCz4UvaVPm0Tyd3t9lF9i7DatCoaZXZEb3 z6WHAFezs73mjs23gCcZFdCWbc7eI5wB8pmZ/RiJ12ciNxMh958ITcLx+RmsdUJDm7ZN jXQg== X-Forwarded-Encrypted: i=1; AJvYcCUCP6mC2SzCPyOwmufE277H/R90vwLcDe0T54vw4BEbKqt4roW9VfvFiwfiOx/GoPTZQJBTjuGL6qWypKk=@vger.kernel.org X-Gm-Message-State: AOJu0YxJLkClbdta5jMsSGBd/dlVyTg6rnvT/N7rWK23x0izE3LB0O0A PAdXYrDZeTtjCzgMshILz1dx4nUzwOXPeB+w9SB2bPgFxosunyunjYQv X-Gm-Gg: ASbGnctHUiQBZlCBpEmk28EpkbnSBpbycl3KC/mBcn7476lV979irfIA+CXkK3koZx+ M6o5QoSCRRTFjgKnG5miPhfFn7XEE6LFO5vaXvHEjngaTmrUS9gJqE0g8u48fM/jb4zXr/cs3zu pe+pYoBTItvXzgeVXKfbesYBrAlFqeW/0+FVe+SpT9yz0ejFHkbvUUEPLO4y106wfPfreekljm8 LLfnNGqvhi3/TMjJqffHBxL9mchkWUJFiA1cOKgXdB4cc6ZYlAPO5iWgn/Lb7Upm3Fg5I+IOtmV E3dvXEA46RecPbXYoIg3vDGfdOMbrIzzXWpD9GljfC1I6PElZmzgl1ALb+Gr5YoQIZZ6EVK7rV5 48UuJj6Rp/ZkCpFsZpO/ad8QZ X-Google-Smtp-Source: AGHT+IGN10WWShi/9Wp0wIZcksW5AO9ghOe0ooW53NJcadk31t/3RmEZnGFoAU3Fq/6WZIo0oJrADQ== X-Received: by 2002:a05:651c:23d2:20b0:372:950f:2b1b with SMTP id 38308e7fff4ca-372fa222e8dmr2148641fa.9.1759155920935; Mon, 29 Sep 2025 07:25:20 -0700 (PDT) Received: from xeon.. ([188.163.112.70]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-3728c23e6c1sm13201001fa.52.2025.09.29.07.25.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Sep 2025 07:25:20 -0700 (PDT) From: Svyatoslav Ryhel To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Jonathan Hunter , Douglas Anderson , Svyatoslav Ryhel , Sam Ravnborg Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v1 2/8] gpu/drm: panel: add support for LG LD070WX3-SL01 MIPI DSI panel Date: Mon, 29 Sep 2025 17:24:48 +0300 Message-ID: <20250929142455.24883-3-clamor95@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250929142455.24883-1-clamor95@gmail.com> References: <20250929142455.24883-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" The LD070WX3 is a Color Active Matrix Liquid Crystal Display with an integral Light Emitting Diode (LED) backlight system. The matrix employs a-Si Thin Film Transistor as the active element. It is a transmissive type display operating in the normally Black mode. This TFT-LCD has 7.0 inches diagonally measured active display area with WXGA resolution (800 by 1280 pixel array). LG LD070WX3-SL01 MIPI DSI panel was treated as simple DSI panel when it is actually not and requires proper setup for correct work. Simple panel work relied on preliminary configuration done by bootloader. Signed-off-by: Svyatoslav Ryhel --- drivers/gpu/drm/panel/Kconfig | 13 ++ drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-lg-ld070wx3.c | 182 ++++++++++++++++++++++ drivers/gpu/drm/panel/panel-simple.c | 31 ---- 4 files changed, 196 insertions(+), 31 deletions(-) create mode 100644 drivers/gpu/drm/panel/panel-lg-ld070wx3.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index aad4e0da8f75..ca5c5e60cfa1 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -398,6 +398,19 @@ config DRM_PANEL_LG_LB035Q02 (found on the Gumstix Overo Palo35 board). To compile this driver as a module, choose M here. =20 +config DRM_PANEL_LG_LD070WX3 + tristate "LG LD070WX3 MIPI DSI 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 the LD070WX3 MIPI DSI + panel found in the NVIDIA Tegra Note 7 tablet. + + To compile this driver as a module, choose M here: the module will + be called panel-lg-ld070wx3. + config DRM_PANEL_LG_LG4573 tristate "LG4573 RGB/SPI panel" depends on OF && SPI diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index a6a100e4c4e6..a673a74cd371 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -40,6 +40,7 @@ obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK050H3146W) +=3D panel-l= eadtek-ltk050h3146w.o obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK500HD1829) +=3D panel-leadtek-ltk500hd18= 29.o obj-$(CONFIG_DRM_PANEL_LINCOLNTECH_LCD197) +=3D panel-lincolntech-lcd197.o obj-$(CONFIG_DRM_PANEL_LG_LB035Q02) +=3D panel-lg-lb035q02.o +obj-$(CONFIG_DRM_PANEL_LG_LD070WX3) +=3D panel-lg-ld070wx3.o obj-$(CONFIG_DRM_PANEL_LG_LG4573) +=3D panel-lg-lg4573.o obj-$(CONFIG_DRM_PANEL_LG_SW43408) +=3D panel-lg-sw43408.o obj-$(CONFIG_DRM_PANEL_MAGNACHIP_D53E6EA8966) +=3D panel-magnachip-d53e6ea= 8966.o diff --git a/drivers/gpu/drm/panel/panel-lg-ld070wx3.c b/drivers/gpu/drm/pa= nel/panel-lg-ld070wx3.c new file mode 100644 index 000000000000..da46a317a749 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-lg-ld070wx3.c @@ -0,0 +1,182 @@ +// SPDX-License-Identifier: GPL-2.0-only + +#include +#include +#include +#include +#include +#include +#include +#include + +#include