From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 431D416DEA4 for ; Tue, 25 Jun 2024 14:26:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719325584; cv=none; b=AgvOi865Tw1D2BuI1pdT2U08TomQsrhzZLAJ4Q/X9Jic1+RD0utUUeHXR4rnCE4AsNktDKtLuE/0b9NvDFz6p6eDhX4V6ltlGiLS/qdQJSmhPu7edR+fuGefwE4b61uy1ymtxIsDJsiswMwhJwsM85wU+6qV7u6eFtBlvf3GPv0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719325584; c=relaxed/simple; bh=BCynszyAqM5z6ODoWd0A/6BG/6mB7F0a7CXeHGB8vpg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZAZCAZ+0pJqsPLeLICZvg1e+esBpl25abxXMGODGdmTIFmCuKZeajYvY4r2FbPbHdHMMyY77AB9T9AisCPI6SbYJRKMNrD0yEfA+yuEVHo6KANkQ5BNfSMiJ6AbZGAK1B8HAUXzPdvmVn55xggTGGyLUWVoaibmsGewujoGnVzU= 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.52 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-f52.google.com with SMTP id 5b1f17b1804b1-421eab59723so41695505e9.3 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=h7dLsEpOTLXIWp3xW0dUgePh4PMTpAYOg9fpYVY1CBaPboxhEd4AbTdsSmQUbo90Ow Ddl9aoO6qxMzqxBjpgi1itSy6swdgBEvO+JU261KtQ9kselLKa42UdeECAOXHsDb2tEQ YUedcCKeL58zr3ROjMRay+vaOr6nx9L9zf5wyX8PEJdJUUyCstj4bmDCTzWSygzbzl9N nmWWTK0Je05iPOG9Gg3lXoDzcQV6V8OfuS/uexhXvca9M7tHACeDKmUsK6Sj8/tEK/je fJSVqsTDSJMBvn24iU7f4RuxHkf/51s4TF50jQDm8ZDb4ZlFMqRoqu7OyzJI/VgU7ikR zUXw== X-Forwarded-Encrypted: i=1; AJvYcCWn/aWrkHs1B9TLAEhovu9iG+YcErCAxlaj/PHdhriqhohn94n28lUHGLYpoiY20fLw96EftRe4aBIBa7e5Vmtxc0w2vrf4lQP7Bw== X-Gm-Message-State: AOJu0Yyog5WuccCz+oS4k3+6cwNfxzxuJa9Cu4gWpkBy/VO4XY271m/0 4mLaPyJl4H4Dni2oMFhrP2mP8681vMdwxTutosBXwcV53cQPpeiyMB48TSpGgQc= 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: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit 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. +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) += panel-khadas-ts050.o obj-$(CONFIG_DRM_PANEL_KINGDISPLAY_KD097D04) += panel-kingdisplay-kd097d04.o obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK050H3146W) += panel-leadtek-ltk050h3146w.o obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK500HD1829) += panel-leadtek-ltk500hd1829.o +obj-$(CONFIG_DRM_PANEL_LINCOLN_LCD197) += panel-lincoln-lcd197.o obj-$(CONFIG_DRM_PANEL_LG_LB035Q02) += panel-lg-lb035q02.o obj-$(CONFIG_DRM_PANEL_LG_LG4573) += panel-lg-lg4573.o obj-$(CONFIG_DRM_PANEL_LG_SW43408) += 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