From patchwork Thu Apr 14 08:19:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengqiao Xia X-Patchwork-Id: 12813117 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 394A2C433F5 for ; Thu, 14 Apr 2022 08:19:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7E40310F230; Thu, 14 Apr 2022 08:19:25 +0000 (UTC) Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by gabe.freedesktop.org (Postfix) with ESMTPS id 327D110F21B for ; Thu, 14 Apr 2022 08:19:24 +0000 (UTC) Received: by mail-pl1-x636.google.com with SMTP id 12so4033493pll.12 for ; Thu, 14 Apr 2022 01:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=l2HtqDOHyMA7c7JTusOknpjvo1wbyGLOWNaw23q4LBM=; b=H3FGU0WYrmzlJwgI0DTziTrj4GNE9nEWBDN8duhGTGdTa/ioZYqfcm0yr3NZlP64yh vkaLWScqQm53pOV6+tO5uZLZhbnkOwvr/qUtpoZK6DYGXijR0bbCtutb45i0EfSBjAHT Z6WLhm6llzyRHxjHuPeoqQZxMg4UgXDfyfELQX5fwI8J3HForxi5EPyrmY9LgPAI1ftw R7Q6m7pe5XC3XfSqBNAg3G2FAEvPbssmkLpZ+dZDVlyA8NfFPh1/xYiIEORJLDKzQT15 YcL0URz/fZFH8L0phuWPTxEGqEOBzrf+yA0JUGSA397nd6nfTFg7oWHzqOl13FoQydCD ok7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=l2HtqDOHyMA7c7JTusOknpjvo1wbyGLOWNaw23q4LBM=; b=lhnq7HUQMazpW6Xr7I99G0TLoRtP4dKTZPNYKgM+O62o0c4dD+CCMcKN3IvjycOFxh 88sqkyey0Svs2e7Tn0pQwVUJXLwO/QdyZND3+U2goMFfDL8V8VhFiBP3hdjmOH8rSWXJ efz3MMtN4joIcBJUROfNQRd713zcmkiBWbY2QY9Kh0o3CcMz0UiJi8NhZAxA9XzMYLCu 85pFCRBpKpLpOIHQ5O8nK7i+VRNGEqYuFk305H25fR8Te83oOOebSZJ3def7xTkYIgzo EMc0uhhg8NtbWNmXZa2cS5v3uvdc9aY7qG953Tua6fML1cJG57GeK/NIQWeoyFg2DBUk 8tlg== X-Gm-Message-State: AOAM532pzhtrqvsTyZTbO0R+zAlNV1noPYV2ja8ffwdWUbRuxmpjiEzS 42kKmrDTx2Khs9isPfwd3djvkzyiwj8iMA== X-Google-Smtp-Source: ABdhPJzQswLmBxQCwU6lJkoB0lFwQtnFgdtzQ6V6BgFA8IOHL6WHjhQLKW7o8AIx45Dic2KPzBuk5g== X-Received: by 2002:a17:90a:af86:b0:1c7:db8e:8589 with SMTP id w6-20020a17090aaf8600b001c7db8e8589mr2495799pjq.94.1649924363513; Thu, 14 Apr 2022 01:19:23 -0700 (PDT) Received: from ubuntu.huaqin.com ([101.78.151.214]) by smtp.gmail.com with ESMTPSA id j9-20020aa78009000000b004fde2dd78b0sm1304394pfi.109.2022.04.14.01.19.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Apr 2022 01:19:23 -0700 (PDT) From: xiazhengqiao To: thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND v2 1/2] drm/panel: Add inx Himax8279d MIPI-DSI LCD panel driver Date: Thu, 14 Apr 2022 16:19:15 +0800 Message-Id: <20220414081916.11766-1-xiazhengqiao@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.17.1 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: , Cc: xiazhengqiao Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add STARRY 2081101QFH032011-53G 10.1" WUXGA TFT LCD panel Signed-off-by: xiazhengqiao Tested-by: Hsin-Yi Wang Reviewed-by: Hsin-Yi Wang --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-innolux-himax8279d.c | 515 ++++++++++++++++++ 3 files changed, 525 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-innolux-himax8279d.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index ddf5f38e8731..375a67f69230 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -180,6 +180,15 @@ config DRM_PANEL_INNOLUX_EJ030NA 320x480 3.0" panel as found in the RS97 V2.1, RG300(non-ips) and LDK handheld gaming consoles. +config DRM_PANEL_INNOLUX_HIMAX8279D + tristate "INX 2081101qfh032011-53g 1200x1920 video panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to support for inx 2081101qfh032011-53g + 1200x1920 video panel. + config DRM_PANEL_INNOLUX_P079ZCA tristate "Innolux P079ZCA panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 5740911f637c..a57e72dcbb12 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -16,6 +16,7 @@ obj-$(CONFIG_DRM_PANEL_ILITEK_IL9322) += panel-ilitek-ili9322.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9341) += panel-ilitek-ili9341.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9881C) += panel-ilitek-ili9881c.o obj-$(CONFIG_DRM_PANEL_INNOLUX_EJ030NA) += panel-innolux-ej030na.o +obj-$(CONFIG_DRM_PANEL_INNOLUX_HIMAX8279D) += panel-innolux-himax8279d.o obj-$(CONFIG_DRM_PANEL_INNOLUX_P079ZCA) += panel-innolux-p079zca.o obj-$(CONFIG_DRM_PANEL_JDI_LT070ME05000) += panel-jdi-lt070me05000.o obj-$(CONFIG_DRM_PANEL_JDI_R63452) += panel-jdi-fhd-r63452.o diff --git a/drivers/gpu/drm/panel/panel-innolux-himax8279d.c b/drivers/gpu/drm/panel/panel-innolux-himax8279d.c new file mode 100644 index 000000000000..6840449548e4 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-innolux-himax8279d.c @@ -0,0 +1,515 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2021, Huaqin Telecom Technology Co., Ltd + * Author: Zhengqiao Xia + */ + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include