From patchwork Thu May 9 06:49:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhaoxiong Lv X-Patchwork-Id: 13659489 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 3B6A5C25B74 for ; Thu, 9 May 2024 06:50:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 763E710E44F; Thu, 9 May 2024 06:50:54 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b="leL4Lm25"; dkim-atps=neutral Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by gabe.freedesktop.org (Postfix) with ESMTPS id 786EA10E44F for ; Thu, 9 May 2024 06:50:53 +0000 (UTC) Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6f44dc475f4so480487b3a.2 for ; Wed, 08 May 2024 23:50:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1715237453; x=1715842253; darn=lists.freedesktop.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=dOKfR8Zs+zXZtgGCWke+lQSxlZ4beIJqcgZ7v+DFp4o=; b=leL4Lm25GJTQ9J8OJwbXBZNLN1KdoagDqiVGI4qRKaeZY1B+GLHMFSdXi1fLX2YKYt BUwH123QNW5+Qs+7d2TvDgHEQ6eK/65nyTrVoCWDTqsk3L4AK6fRnmKKjANPYEXXcOqq 96yC+/JcE4SblMFmZuic8oRfP2YyBaDqm5QnBdQk+1mHjKpMFG9Q4qAT5qflR88SZztg FY7t7CrFZaYXPB9R/xHXSapiLMZzKURL+FjV6k2we27FVHHyLw40qGlgc4WFRhwLUzMC 159FqCzf4b6+bVyYjgEcsfwxM6rxacKQJbrKiAwQCCz6SyI4uZMNh54oZ5d73CFNccwm YPHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715237453; x=1715842253; h=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=dOKfR8Zs+zXZtgGCWke+lQSxlZ4beIJqcgZ7v+DFp4o=; b=mgCFgGeWvTlyz/qFjb/e5Sa+ZOZTBZhlSGSby+N6NHaofbSZ1ivL9rIqf+kJZHnBd0 xLx4+DdVm2kCClf5LUdyvxFoTv54E2e3coOs3RLp2kDsNJQOopwLSYQk0956Tzb4HH2A SBGt6MUqP9m2NlDmhBtK7RScmUxJ000aYB6KUiWc2afZGY83+2NgCAC7f/kxnpWAhOxT Db79oJHYM8UfHYPrHUM/Tflq5IWfTgK0uoFzSKwxOhM9rSA6sUXyNsAAojI9lnwXSkNj wyUGYyHJ5RYkEuWz37nrRbaIGRGxjX9ILeQt5xdHMH4tocsafyKBZSzp938jT+tQChm9 YmrQ== X-Gm-Message-State: AOJu0YwuywKvWKT2HYFvouvlQRaziwMxyyhWRh3l7UIKkowq6s7byqyR fSAcYtOv5N5IEQEakrPSfJVxY///2H/c/CUpbYaJBmmgjRNHGTfJwDAx4oZfeoM= X-Google-Smtp-Source: AGHT+IH7oUpRsfY2uAIkkDmR5RlkEVTDwlurUU+E5x1S2CIzGJyPC8OX7gAzhE668xJ1KCj66cJBvA== X-Received: by 2002:aa7:8a02:0:b0:6f4:3fe7:7aa9 with SMTP id d2e1a72fcca58-6f49c21341fmr5011948b3a.10.1715237452797; Wed, 08 May 2024 23:50:52 -0700 (PDT) Received: from lvzhaoxiong-KLVC-WXX9.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f4d2a84b6bsm633939b3a.74.2024.05.08.23.50.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 23:50:52 -0700 (PDT) From: Zhaoxiong Lv To: dmitry.torokhov@gmail.com, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jikos@kernel.org, benjamin.tissoires@redhat.co, dianders@google.com, hsinyi@google.com Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Zhaoxiong Lv Subject: [PATCH v1 2/2] drm/panel: starry: add new panel driver Date: Thu, 9 May 2024 14:49:59 +0800 Message-Id: <20240509064959.23550-3-lvzhaoxiong@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240509064959.23550-1-lvzhaoxiong@huaqin.corp-partner.google.com> References: <20240509064959.23550-1-lvzhaoxiong@huaqin.corp-partner.google.com> 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" The starry panel is based on ER88577 controller. Add a driver for it. Signed-off-by: Zhaoxiong Lv --- drivers/gpu/drm/panel/panel-starry-er88577.c | 444 +++++++++++++++++++ 1 file changed, 444 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-starry-er88577.c diff --git a/drivers/gpu/drm/panel/panel-starry-er88577.c b/drivers/gpu/drm/panel/panel-starry-er88577.c new file mode 100644 index 000000000000..dfeae549adc5 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-starry-er88577.c @@ -0,0 +1,444 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Panels based on the ER88577B display controller. + * Author: Zhaoxiong Lv + */ + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include