From patchwork Sun Feb 13 06:31:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 12744504 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 A89F1C433EF for ; Sun, 13 Feb 2022 06:32:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6AEF110E240; Sun, 13 Feb 2022 06:32:06 +0000 (UTC) Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4B3AF10E1E8 for ; Sun, 13 Feb 2022 06:32:04 +0000 (UTC) Received: by mail-pj1-x1029.google.com with SMTP id q11-20020a17090a304b00b001b94d25eaecso8233177pjl.4 for ; Sat, 12 Feb 2022 22:32:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aE5G7A16Fr/C3cQAJz2y0v3OiNiT7Sz1f+H737BtdnM=; b=hAj1tqYTuEQIecgsqm12hSExdpPmhvqhsxiQ9FUTjYircQ5Pu8Ntv1YUf7/B+kqh2P eGfP+JEu7H8C8oC9RVJbzfVaAHOxVxz36BDVvKNUgnangzPzS3fT7AZZnk9AD53r6U3Z 2ggQRhFpJK9QPX2Gaa4xvbGQj2QcTnHTT5iwI= 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:mime-version :content-transfer-encoding; bh=aE5G7A16Fr/C3cQAJz2y0v3OiNiT7Sz1f+H737BtdnM=; b=dm7t/GHfB90AbjQYR9PTBUT3PgIvYG7vpAJptywmB6183i88mHtunlpMuBSbT/0aT3 LyEJFnLueqy8YGhEkrT6c0/AwgCl23jPd6pp6z2pC+JIq1UcphZ+LCcgzyjKO//CkXg4 JGSxzo0QOptU+fj6QEomw/d6V/Wm1okQHjwGFBNcN+M6S46qyEHtyhM4HOeDMi3eYKh6 redx+/q+Y5heBUl4u5SRBAp4zpWxFDslMJZ9+CKMx9xNy3BaGZeGaym4o9ALVlCMsjfl G+rC7qU8mdUqxnslTbU7yriRzC8mTOgL2XHS8Z6Fnb2FcCfl0Io6wNgATcl6Ux6XrMU1 o4Kg== X-Gm-Message-State: AOAM530duge3FMdBbrP4ebf1T5ucgYapa01IY4JNxLgBiHhJmH6U1OXS eB/tENrEIbo7onHn0G3NftSPcg== X-Google-Smtp-Source: ABdhPJzpy3KJEsZK5qAy5xcQza9c4YNKjYp6aOXaF7FKo8CUTZMQgPUF3xu8UIKfV0cH9vHF7RQ6gQ== X-Received: by 2002:a17:90b:3845:: with SMTP id nl5mr8209996pjb.143.1644733923654; Sat, 12 Feb 2022 22:32:03 -0800 (PST) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:3653:bf18:8571:5f26]) by smtp.gmail.com with ESMTPSA id q2sm34170025pfj.94.2022.02.12.22.32.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Feb 2022 22:32:02 -0800 (PST) From: Hsin-Yi Wang To: Sam Ravnborg , Thierry Reding Subject: [PATCH v3 1/2] drm/panel: Add inx Himax8279d MIPI-DSI LCD panel driver Date: Sun, 13 Feb 2022 14:31:50 +0800 Message-Id: <20220213063151.3321331-1-hsinyi@chromium.org> X-Mailer: git-send-email 2.35.1.265.g69c8d7142f-goog MIME-Version: 1.0 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 , devicetree@vger.kernel.org, David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, AngeloGioacchino Del Regno Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: xiazhengqiao Add STARRY 2081101QFH032011-53G 10.1" WUXGA TFT LCD panel Signed-off-by: xiazhengqiao Signed-off-by: Hsin-Yi Wang Reviewed-by: AngeloGioacchino Del Regno --- v2->v3: rebase to next-20220211 --- 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 434c2861bb40c0..286d6120048701 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -178,6 +178,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 d99fbbce49d176..ea7b441eab2881 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 00000000000000..6840449548e43e --- /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