From nobody Fri Dec 19 07:03:49 2025 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 40CC116DC19 for ; Tue, 25 Jun 2024 14:26:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719325583; cv=none; b=FYs9zi2ECx+w0x9ZQCl+Mz3F0LdXTJvI0AvUus96UCtrEZBH0i9m3oUOy9PvzA3MwLABNXyRyS/bIu1mLGxwBtVAHk3VJFd+1w+DRzYx4QXMjcnCIcjk3/Jk1k7CNlY44uBmmuBd9zryf9LzdV1WuGqYzQwUwUcU9cz8m2AKPOw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719325583; c=relaxed/simple; bh=BCynszyAqM5z6ODoWd0A/6BG/6mB7F0a7CXeHGB8vpg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EgHsjdOgfjFflaCQhGShKQB7CTNQEfPNd5u/Sj2L1JizLSzunJIjv8IkklclEi4DKC9gnp+F0RiKwXfpQcEayMpEqUu4h037RNAb6Ws2oq9hVay17xHcbPodRTeXrsS2esWd2ncDZ/FVG7Q6hpp4FO9Zz/cTooq+oGiU85yUSBk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=WNJcE+Hf; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="WNJcE+Hf" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4217990f997so41705075e9.2 for ; Tue, 25 Jun 2024 07:26:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1719325579; x=1719930379; 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=hUnlDK2msKQOjLK3wL+RmE8TdQfuWckSjRfYqDGL9KQ=; b=WNJcE+HfNpOskAFexZQoTo8UB6Yjaaml+iOIletCQeXZ9FAJnMEvHyAr81c4z4Gj/H +WPjjWGNcxDLiuKykcZ5uXex+xtlCB3ap79O+PUrRN2Oi/7lyjC/Ymu7tuG48LnD0Q3n i5iceBuQvb/Ufn+mStRNYgZhzsf0wP5ymfC1MCNm/Mojbgp3wRXoaaQZm56vD1pnknAk HjFVzUSTicCjULf0Lt0g/vf21JVGjrfm9i/JyGKWMkf5R9j4HJSomCTnEak6L5KWdqZR 7QrX586iKB5vbKDfay5zpAumlrh7qltcUrhPyvsXPAhqfLTcSXx4+vm6puW5kfZPTDy/ XpCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719325579; x=1719930379; 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=hUnlDK2msKQOjLK3wL+RmE8TdQfuWckSjRfYqDGL9KQ=; b=gdZom5K12ptRzvkDLC2sTz3sS3tSc9SVnZK0tD+2Nhhnz7PPRz5j49xeiFkf62dR0j Nuch21LnfKcuLCMZoni/Eb2s7Y3rXi7AQOt6ux/6UH1jMZC7Z0DmNRdPTXhZowyv/fj1 0NCqQSQ9Ge4EKSqxPeJgs124nm7ozoCcCFcJWV1PIb3TamDrWT/4Yc9wgHF9Gql/kQ5l yaTeYQak+CoOKVsOM2tUyWdSiBRmIwHFkP2ImRnHKvulNEFtC+unNcfAOeU5EAd+LzUw GZ+I+5f0bq497h+2IERFqdCLVDjmk8Z7ZP5YQWAoNELHm8QXdyBZecqqkVCRiXsKy+95 HwMQ== X-Forwarded-Encrypted: i=1; AJvYcCV3xxNgQno0DLghfbbDZVbWAhs/37YLjOhvVYmnmyFbGhnpKYw0u2jthAC1RdhOPjKW9DGBeZ1mj5sUq19cLM64ZsS545H9GUBHcnjh X-Gm-Message-State: AOJu0Yze+0RuTaGq/rTh+8aGMr6PJGKUisXfkAWW/1pbmqq67OHp+eOB sQChFcPvMRXrAWHxssoKULGqDIjeRqYzuETHxSQW+1Tvk1g6vupOMMVAgNXWqJs= X-Google-Smtp-Source: AGHT+IGmMdR0rJvIyxVksyUH6PxxYdEPX/b3rlGUBjOv9iXFZymmefXVwDYeoY2rJN5UdeoRRGa2Og== X-Received: by 2002:a05:600c:434b:b0:424:abd7:2321 with SMTP id 5b1f17b1804b1-424abd72412mr1124715e9.12.1719325579403; Tue, 25 Jun 2024 07:26:19 -0700 (PDT) Received: from toaster.lan ([2a01:e0a:3c5:5fb1:b30c:4c5e:f49e:ab33]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4247d211881sm213770685e9.46.2024.06.25.07.26.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jun 2024 07:26:19 -0700 (PDT) From: Jerome Brunet To: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: Jerome Brunet , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , dri-devel@lists.freedesktop.org Subject: [PATCH 3/3] drm/panel: add lincoln lcd197 support Date: Tue, 25 Jun 2024 16:25:50 +0200 Message-ID: <20240625142552.1000988-4-jbrunet@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240625142552.1000988-1-jbrunet@baylibre.com> References: <20240625142552.1000988-1-jbrunet@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add support for the Lincoln LCD197 1080x1920 DSI panel. Signed-off-by: Jerome Brunet --- drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-lincoln-lcd197.c | 333 +++++++++++++++++++ 3 files changed, 345 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-lincoln-lcd197.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 2ae0eb0638f3..a4e68981e740 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -319,6 +319,17 @@ config DRM_PANEL_LEADTEK_LTK500HD1829 24 bit RGB per pixel. It provides a MIPI DSI interface to the host and has a built-in LED backlight. =20 +config DRM_PANEL_LINCOLN_LCD197 + tristate "Lincoln lcd197 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 lincoln lcd197 + TFT-LCD modules. The panel has a 1080x1920 resolution and uses + 24 bit RGB per pixel. It provides a MIPI DSI interface to + the host. + config DRM_PANEL_LG_LB035Q02 tristate "LG LB035Q024573 RGB panel" depends on GPIOLIB && OF && SPI diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index f0203f6e02f4..06141ec2e065 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -32,6 +32,7 @@ obj-$(CONFIG_DRM_PANEL_KHADAS_TS050) +=3D panel-khadas-ts= 050.o obj-$(CONFIG_DRM_PANEL_KINGDISPLAY_KD097D04) +=3D panel-kingdisplay-kd097d= 04.o obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK050H3146W) +=3D panel-leadtek-ltk050h314= 6w.o obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK500HD1829) +=3D panel-leadtek-ltk500hd18= 29.o +obj-$(CONFIG_DRM_PANEL_LINCOLN_LCD197) +=3D panel-lincoln-lcd197.o obj-$(CONFIG_DRM_PANEL_LG_LB035Q02) +=3D panel-lg-lb035q02.o obj-$(CONFIG_DRM_PANEL_LG_LG4573) +=3D panel-lg-lg4573.o obj-$(CONFIG_DRM_PANEL_LG_SW43408) +=3D panel-lg-sw43408.o diff --git a/drivers/gpu/drm/panel/panel-lincoln-lcd197.c b/drivers/gpu/drm= /panel/panel-lincoln-lcd197.c new file mode 100644 index 000000000000..977790797d70 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-lincoln-lcd197.c @@ -0,0 +1,333 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2023 BayLibre, SAS + * Author: Jerome Brunet + */ + +#include +#include +#include +#include +#include + +#include