From patchwork Thu Feb 15 09:05:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Heiko_St=C3=BCbner?= X-Patchwork-Id: 201292 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b825:b0:106:860b:bbdd with SMTP id da37csp265000dyb; Thu, 15 Feb 2024 01:08:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXKkoIqPVrZ/Lcf8n/olZtU5VwwXBzdSm94WURp+RcgoNy1p1SHihfLf0OcDgcuvNg5QA5rGslIoUh+CZ66MLSTFNGyJg== X-Google-Smtp-Source: AGHT+IETS/1khOG4BG4+7YgIQN6zxOCynKqfXgw+hC0kfCIqtLSx/b25mplEHc9Bd5l8xeKOa/iG X-Received: by 2002:a05:620a:14a5:b0:783:63bc:3eb9 with SMTP id x5-20020a05620a14a500b0078363bc3eb9mr1168658qkj.20.1707988092970; Thu, 15 Feb 2024 01:08:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707988092; cv=pass; d=google.com; s=arc-20160816; b=qqdFUUAWb69guvfOswimzcPXTiIwRF91z0z23lkR/18FRgjmxjjz5QTrxspv3Wy5Xw 2TZ7sjEv7qi4NunB67tpg8lNEtJaQEXSkRsdACheUzH1B9Yp62kKglUOB0MoXvqKn+t2 ttqBlncq0VkpSz4Xmo9vvjf2Vki1D32ANXuHQW6HiuEmjwjXfyBIJMcILhzcxgOWOMjX 41HPpZXK8mHs9slgvjoTOfQLRtpBH9Lnhxt++/45wqVFE40aIXy5cxTeCL4qI7WIwdTw Rt3hq3A08UMlytlcdTiDN/iWX9ZvQCHZpafhK/M++z+G56WiJVKPXeK59aigSJQmcqJ8 92kw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=4a0jC7m4fynQ1VGYRRZSp+U2JpaOS+nj96qCsEayzJo=; fh=Peh9B6ZCCG4tYbQO+ppk2qO8jOkqAmF1bgfmHB8xRvA=; b=zG3+/q18ALX6W4hG8dDCz/++zO2qnLU/DwMi/p1eCZBnON3qMkdtbM46ED9/OBLA4N IVH8Nm0b8VJPyT7K/sUvYKyU84A3bGxHipRBdsaChzg1YfvLYC+E/F/dEnZQSFHQxIzt Wsz9J6ESITT8mx2UaOS+P6pR4XPdVbzcARgjuLy3J5AhY0S0Fh98absARxU0Q1egWB6E siYeI0rMuXSe7OBjIIHnodqAAmGkqqRZOQzFCYPNIKKEq4sEluyD96taNC+dke+PQ7dP ZlAr6pLSPHJz5LDpPgcZp8kVGsg2L1bJMxoMOtH1kY9gN1guj5wOxK2e3qOv558QKZYW EL2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-66489-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66489-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p17-20020ae9f311000000b007853c7fd7a6si1044908qkg.602.2024.02.15.01.08.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 01:08:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66489-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-66489-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66489-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id BA0F41C20C8D for ; Thu, 15 Feb 2024 09:08:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 300171C693; Thu, 15 Feb 2024 09:05:29 +0000 (UTC) Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74C801BDCF; Thu, 15 Feb 2024 09:05:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707987927; cv=none; b=C/uEZneRaqZQAOsQHsI1KRnQCWwst4V86n/G9MHh2fO1wzap3EvNALOyQtkUzfpqHgioXrRUw9riUSpNnMLcAs6EtiJe7xSEBme961PphP8Y47bArd6/uOBLjlRfOivB3+MB2cTyn/mHc8OdsyT5Qo5IRd5q6qITwalytCtXc8U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707987927; c=relaxed/simple; bh=lAzSHTM1F9Quj28n3IhTiJ2ehA9WUC/bfmzjKyrRUjk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KzFiGFEZf1ROHrAd/optytLGGaB5e0wX5FvbPUco3AmChHFF5up9pPHadmO2Ca7ucJU8hlQFJGx7eZ7iDjwZ9s2nom4A6O75+JMNhJlyag7d0Q429b+fSKcdz8+tawFtRqHPGGaE4zve/5dsYugSKpPBUNeCmD4/LKJKDIqESXg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Received: from i53875b6c.versanet.de ([83.135.91.108] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1raXgD-0002M4-K8; Thu, 15 Feb 2024 10:05:17 +0100 From: Heiko Stuebner To: neil.armstrong@linaro.org Cc: quic_jesszhan@quicinc.com, sam@ravnborg.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, heiko@sntech.de, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quentin.schulz@theobroma-systems.com, Heiko Stuebner Subject: [PATCH 1/3] drm/panel: ltk500hd1829: make room for more similar panels Date: Thu, 15 Feb 2024 10:05:13 +0100 Message-Id: <20240215090515.3513817-2-heiko@sntech.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240215090515.3513817-1-heiko@sntech.de> References: <20240215090515.3513817-1-heiko@sntech.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790955322749534575 X-GMAIL-MSGID: 1790955322749534575 From: Heiko Stuebner There exist more dsi-panels from Leadtek sharing supplies and timings with only the panel-mode and init commands differing. So make room in the driver to also keep variants here instead of requiring additional drivers per panel. Signed-off-by: Heiko Stuebner Reviewed-by: Jessica Zhang --- .../drm/panel/panel-leadtek-ltk500hd1829.c | 73 ++++++++++++------- 1 file changed, 47 insertions(+), 26 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c b/drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c index 39e408c9f762f..42f4e2584af18 100644 --- a/drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c +++ b/drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include