From patchwork Wed Jun 26 14:22:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 13713016 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 72CD7C27C4F for ; Wed, 26 Jun 2024 14:22:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B179210E8D4; Wed, 26 Jun 2024 14:22:33 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="VufVNKtU"; dkim-atps=neutral Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5A53610E8D7 for ; Wed, 26 Jun 2024 14:22:33 +0000 (UTC) Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2ec002caeb3so86666701fa.2 for ; Wed, 26 Jun 2024 07:22:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1719411751; x=1720016551; darn=lists.freedesktop.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=Q5oTyiTDE2zoIXFxITRpatG4bTgLxE9dmxO/uASRAFU=; b=VufVNKtUzZh8NZMDpqu8FScC0KvXb25NNuE0vTijlQN6Xf07x6ITqIqGxKbZkevwKu sGcGNyNa697cDL0F36Q8ay5tWyRCA7AwXEeE91CCQ7dbzT6UPlytmng9g/PjtlWaMyTF UVf02Lg+lMdgr/libDYw3FrkIEcBa+vJmQngZMZ2wUE/WLtFZ4S5jSTzLG2lmclY+VAa i4wdT0qyQxOKUKhND3A4X6woLXg9+CIzaBOA2uLvCy5JcgLFZDhTaSAegFOvXYoehyxr rNDsTwEwLju8NqW9acuZItRN969vTi5L2BA2D1tbS8W1NWYvIAQ1jVH9rpfwhbsUZfBz TJnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719411751; x=1720016551; 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=Q5oTyiTDE2zoIXFxITRpatG4bTgLxE9dmxO/uASRAFU=; b=S4KPdLPuhqaSGFs+cupgYW6VW/WVSBZlItIBFiRepumZwt2a+32emnAYRh4A2q+JKA 8xDpl/ZD2cYFQlWvALMPW9T8/jryPIYHmetPSPQYQxC5P2xigD9gKfO7HvcKigdBC5cn P+VhCrOFZB/qDwIMQzL4QsEJwV5aaP7S4mmIv4F2Y3wfzxPD7/A2mWke0CxLyc083N2B v88lLUwKLgfq2yktbefI+pQGNnFv0pWqKhEIgOGZYMJukspyNeOb/guW+KiGCzk026OJ XpM+lt410p0wq3b++j0d1DUli72RGW+BO6bOJZUp54hviXLhN+02H4oIEyczf40xMkmp UF5w== X-Forwarded-Encrypted: i=1; AJvYcCVkjwhqIDzkhpN+xXLw+xtzDlKxTuC7Zp9rNN4rVy/tF28rYI/aZp/3AD+dcIQhVnanAajUQSLTs52nS8mdcgaJtNW8yQCSQX+VRP3+IyS7 X-Gm-Message-State: AOJu0Yw0Y5lhigRsvDI5QazD+HNnmNrOdCWPpBXB6emU28p3QxnhXyZg CyDOpoBPCdqWyH7ZvNt7ZZJnTqUuw7hB9Ti8J/zY5/j6J5RgutE4hZukBG3pDqE= X-Google-Smtp-Source: AGHT+IGYquuMgMSS+n+tk71AQ/4ysAbKByUybNfZEzAp4mLOcPd1ahbXpUz6gx3baLFJyiijvhFKpg== X-Received: by 2002:a05:6512:402a:b0:52c:e184:3dd6 with SMTP id 2adb3069b0e04-52ce1843fe7mr9156435e87.0.1719411751338; Wed, 26 Jun 2024 07:22:31 -0700 (PDT) Received: from toaster.lan ([2a01:e0a:3c5:5fb1:7be7:aef1:af9e:fff6]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-424c823c28asm27141105e9.5.2024.06.26.07.22.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jun 2024 07:22:31 -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, Dmitry Baryshkov Subject: [PATCH v2 1/3] dt-bindings: panel-simple-dsi: add lincoln LCD197 panel bindings Date: Wed, 26 Jun 2024 16:22:07 +0200 Message-ID: <20240626142212.1341556-2-jbrunet@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240626142212.1341556-1-jbrunet@baylibre.com> References: <20240626142212.1341556-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-Patchwork-Bot: notify X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This adds the bindings for the 1080x1920 Lincoln LCD197 DSI panel to panel-simple-dsi. Signed-off-by: Jerome Brunet Acked-by: Conor Dooley --- .../devicetree/bindings/display/panel/panel-simple-dsi.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml index db5acd2807ed..9b92a05791cc 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml @@ -46,6 +46,8 @@ properties: - lg,ld070wx3-sl01 # LG Corporation 5" HD TFT LCD panel - lg,lh500wx1-sd03 + # Lincoln LCD197 5" 1080x1920 LCD panel + - lincolntech,lcd197 # One Stop Displays OSD101T2587-53TS 10.1" 1920x1200 panel - osddisplays,osd101t2587-53ts # Panasonic 10" WUXGA TFT LCD panel From patchwork Wed Jun 26 14:22:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 13713017 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CA8FDC27C4F for ; Wed, 26 Jun 2024 14:22:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F2D6A10E8D7; Wed, 26 Jun 2024 14:22:38 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="vOCcSQJg"; dkim-atps=neutral Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1B46710E8D7 for ; Wed, 26 Jun 2024 14:22:34 +0000 (UTC) Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2eaa89464a3so77209141fa.3 for ; Wed, 26 Jun 2024 07:22:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1719411752; x=1720016552; darn=lists.freedesktop.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=pSOqd6xFtwNmB6/la0EhwilFZVmFb3e1mPm8GFnYuuc=; b=vOCcSQJgqs6EzrKmpdJDI1yuFQPgoDxRSM+SyAMHyJaDswIcNQkjH5BURIUeyGs24R YhpadhIqkBUL6+Sulmwe/9yxhqhoU4SpljtqSkiXNZ/BRuScqrpxHiRnNTSEspz+HTKP 8riQULtxBWrjS/y+0kjC/VBF9pnZFHbVCbcmMxJRKixHq5l7XxSzq3tC7uGx7XApBiYH FhD+W58R9uMbqm/FXqtkyTu+uZhdgrWLiFZLHUvDyu8SUztU5S8EPbUOa2tQZCB/GbGy XccdTEbheg4axI05adOjt+2ovz/4/ipOG04waov9r1gULREMSxByjM+Dj7nsHoaotRJB py/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719411752; x=1720016552; 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=pSOqd6xFtwNmB6/la0EhwilFZVmFb3e1mPm8GFnYuuc=; b=oFq43V7WGP7cfU/5BE0+05FEhcm+71jsEKZUQWikwja6+MrkOh6oe8o1EWupv1PfST JjmQTINTR4w6fXzxBuLrtbGiRpVQJrJ1YGHEVIjCTZ7BKkWV5C4J19fYd5qf2gyXs290 hSOIPD3VIYYa4TPtvccjSLGc068RVRubUbPRDkDhJwavBdF5kSOsj1d9VQQa5rhVeMrG 6bMb6qB8TSmOPUYxwjrpg7mvmj1tMlwDYzwQgxnmoiwZ2ZhHGYYAtZXewKQQRMqxp9uF i/vnzGBFhFuOzMmBFb+SjkVmeLV9zmBPHhAeU45DpFYsO2KnWrnoh2qkkZ20F97+VyAB PsHg== X-Forwarded-Encrypted: i=1; AJvYcCUUbZuHuPJYDgNcZHurLHz2Uu9ldVeRj2/xLqzUy3Yj3bYSzt1FU32xlXmSmwBnMOUCfFdNgfZflut4D0sBnFsoFV0/h/s8L8T5K9cQwTnA X-Gm-Message-State: AOJu0YwtukUzDV/lnWIdNx0v4Sph4GRl9qxSmMGs6keWMSbXOr9Ko78M NVUoubKg0+ZkG53RteI9x+k3CTUSsKNoIQ6hP8mnp/unxqoSX1LCPQ1bEZu92D4= X-Google-Smtp-Source: AGHT+IG5doh7ICzMm/NrOTR59CEuv2r+Q5IA9UA8wl9i2JaEBBV0vUoMwj/zrNmZXpgh5C2T/Pl7CA== X-Received: by 2002:a2e:9b12:0:b0:2ec:559d:991 with SMTP id 38308e7fff4ca-2ec579ffb28mr70805581fa.50.1719411752241; Wed, 26 Jun 2024 07:22:32 -0700 (PDT) Received: from toaster.lan ([2a01:e0a:3c5:5fb1:7be7:aef1:af9e:fff6]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-424c823c28asm27141105e9.5.2024.06.26.07.22.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jun 2024 07:22:31 -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, Dmitry Baryshkov Subject: [PATCH v2 2/3] drm/mipi-dsi: add mipi_dsi_usleep_range helper Date: Wed, 26 Jun 2024 16:22:08 +0200 Message-ID: <20240626142212.1341556-3-jbrunet@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240626142212.1341556-1-jbrunet@baylibre.com> References: <20240626142212.1341556-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-Patchwork-Bot: notify X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Like for mipi_dsi_msleep(), usleep_range() may often be called in between mipi_dsi_dcs_*() functions and needs a multi compatible counter part. Suggested-by: Dmitry Baryshkov Signed-off-by: Jerome Brunet Reviewed-by: Neil Armstrong --- include/drm/drm_mipi_dsi.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h index 71d121aeef24..0f520eeeaa8e 100644 --- a/include/drm/drm_mipi_dsi.h +++ b/include/drm/drm_mipi_dsi.h @@ -10,6 +10,7 @@ #define __DRM_MIPI_DSI_H__ #include +#include struct mipi_dsi_host; struct mipi_dsi_device; @@ -297,6 +298,12 @@ ssize_t mipi_dsi_generic_read(struct mipi_dsi_device *dsi, const void *params, msleep(delay); \ } while (0) +#define mipi_dsi_usleep_range(ctx, min, max) \ + do { \ + if (!(ctx)->accum_err) \ + usleep_range(min, max); \ + } while (0) + /** * enum mipi_dsi_dcs_tear_mode - Tearing Effect Output Line mode * @MIPI_DSI_DCS_TEAR_MODE_VBLANK: the TE output line consists of V-Blanking From patchwork Wed Jun 26 14:22:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 13713019 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EF782C27C4F for ; Wed, 26 Jun 2024 14:22:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6510E10E8DA; Wed, 26 Jun 2024 14:22:39 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="EIhfiAYp"; dkim-atps=neutral Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3C37710E8D7 for ; Wed, 26 Jun 2024 14:22:35 +0000 (UTC) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4217926991fso57563475e9.3 for ; Wed, 26 Jun 2024 07:22:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1719411753; x=1720016553; darn=lists.freedesktop.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=rwpzrw+8a9jskXuzzJFLsA7zHzZayXfGDHG3CFsewrw=; b=EIhfiAYpRpeQrLyCQSWC3MvO9hfA5lsS0lVGsQv/9aD6fwV9E16dMfd7J/FMZe5llb xzOYEIAh2lghX7D34o4eJi2+z7oAtx/Ei7THoVGQyy/oeg78K2xoTy2QULsB/75QIvjo pZhJ1ePF2uCIGzvjZk8CDLVX7ivXA8xu7irC7+k9zOlDdmN57LqNU+jOVz3aSHR8ZRwu Bh8YN/tNo5e6PZ304h9REGx5xpYndQUuS3LwqQpS7XEzfHdZXaQKrDM47ZdtC8t+dgI3 R5/Bs5CJGuZqrGGtlY5fnpCjFeDxZYMhGX6ovm4SzXvkfz4n0YBRI10lzUoikX8d8o0h W5ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719411753; x=1720016553; 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=rwpzrw+8a9jskXuzzJFLsA7zHzZayXfGDHG3CFsewrw=; b=rDe0jM3i1/GMmSLmz6fFBwANoMXWYMzKvkEKEl7y7VrB+ai2eMEQAuXiykWMmC5zVk ZFA+ZYNCgjlHfbZAs83px6Jpvx8z1jsteEBhX1G5zlikcwTa6gbHHVLlqhTRAl15/Vh3 FVSfqPtByEQoWPTOWjv+tJ9YrnZo3RnxpIN80KItYpACY0cQIul9/i9WjdXYmCLj0SZD tbj3T6dPt01eFZDbA7dQkgSs1fJ3jIE6PKxjTfkcBVuox4eB+3VmlwXQ/Ac3Wx9EtZJX WxfzYxkLiNg3EgTGjMufukbzlnMjvRTvf4MsMJ4xLDX8qJ6ywtaCb6kofhOLeOyw7FjS HXyg== X-Forwarded-Encrypted: i=1; AJvYcCUOC5+FjUiCItd5kWKnYSPjYX0Ecsav//pRlmxtcq4G4NYOx9i+eaIvAPRJFwewvUHpfkt28rS3v0L8jLsid2QvxSlu89T/izFQNFitIKLI X-Gm-Message-State: AOJu0YwXUzmQORyhYL81tewXtydRKTqOYnTk59EI0vuL4zip7jPMhhxw wu+6UFFQXuCL1bwguwGfhwP05D3QhZb+kdR2xujp/IXd0/7P2fQPR/+UvcTe+Pc= X-Google-Smtp-Source: AGHT+IG/zVNbdytUxpsnA6murZW7/z/3aHbXG+Dmjm/+e+zRYJz7j+BhZMDSlRfAtJ1/OJNNs+ud1Q== X-Received: by 2002:a05:600c:3510:b0:424:76d7:2cca with SMTP id 5b1f17b1804b1-4248b9363d3mr70141385e9.4.1719411753185; Wed, 26 Jun 2024 07:22:33 -0700 (PDT) Received: from toaster.lan ([2a01:e0a:3c5:5fb1:7be7:aef1:af9e:fff6]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-424c823c28asm27141105e9.5.2024.06.26.07.22.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jun 2024 07:22:32 -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, Dmitry Baryshkov Subject: [PATCH v2 3/3] drm/panel: add lincolntech lcd197 support Date: Wed, 26 Jun 2024 16:22:09 +0200 Message-ID: <20240626142212.1341556-4-jbrunet@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240626142212.1341556-1-jbrunet@baylibre.com> References: <20240626142212.1341556-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-Patchwork-Bot: notify X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add support for the Lincoln Technologies LCD197 1080x1920 DSI panel. Signed-off-by: Jerome Brunet Reviewed-by: Neil Armstrong --- drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-lincolntech-lcd197.c | 262 ++++++++++++++++++ 3 files changed, 274 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-lincolntech-lcd197.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index bf4eadfe21cb..30206be56f68 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -328,6 +328,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_LINCOLNTECH_LCD197 + tristate "Lincoln Technologies 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 lincolntech 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 051b75b3df7b..7706ff9087d8 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -33,6 +33,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_LINCOLNTECH_LCD197) += panel-lincolntech-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-lincolntech-lcd197.c b/drivers/gpu/drm/panel/panel-lincolntech-lcd197.c new file mode 100644 index 000000000000..032c542aab0f --- /dev/null +++ b/drivers/gpu/drm/panel/panel-lincolntech-lcd197.c @@ -0,0 +1,262 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2024 BayLibre, SAS + * Author: Jerome Brunet + */ + +#include +#include +#include +#include + +#include