From patchwork Thu Sep 19 06:16:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerry Han X-Patchwork-Id: 11151783 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6E9291747 for ; Thu, 19 Sep 2019 07:36:28 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id E397021D71 for ; Thu, 19 Sep 2019 07:36:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E397021D71 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 63E136FA0C; Thu, 19 Sep 2019 07:36:15 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by gabe.freedesktop.org (Postfix) with ESMTPS id 90D366F468 for ; Thu, 19 Sep 2019 06:17:03 +0000 (UTC) Received: by mail-pg1-x541.google.com with SMTP id n190so1280806pgn.0 for ; Wed, 18 Sep 2019 23:17:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ugzlcvPp6s6vz6DPB2Qqe9+jbspVasD126u9ilEAjBY=; b=UmrNfP58xGwfYqzddPo8Kf5LIYPOwg7wNfrGByGvM/4v6ya77mRWUbd29EyHLlx7sD TUvomArm1KFFr5ZOV9ERSCHYDIBB1Zgo5oDD4PCZYYmYOY8n11gfhxMXikgZo1GNQyYH wBQQnTETCfbH0/tt1b+rywB9mpYdZZWpURKT3rEZj0Y+p03BfBzDKvKjfubUj3VUdLdL KHiMZl+WSPP/+wSJCqWihFJ+idJuDMtGTSnQyYPBsOTJNR/c6xc6zCksKnUniLruf2dv qkXjhywCt6fK9RlTJNoPLbPyv1XqhnT+GyyIvW5ZH8GxLHU7EC/qWakbSJDJd8BHliAv JEjg== X-Gm-Message-State: APjAAAXvZqCtnWl9/tqM38YdembFHD9UgIXe/rtxn2eiiKdzT25V/6rI +5aEkpVtlXgR7v4i1sS16OmQLWhBc8o= X-Google-Smtp-Source: APXvYqxK8tHCARlmnpNmKY+pd12AfqRE6nkfklcyqVwiegud1MQt3TG+DvgR6KyBNeDsEOou/HkrXQ== X-Received: by 2002:a62:2b46:: with SMTP id r67mr8761144pfr.140.1568873822667; Wed, 18 Sep 2019 23:17:02 -0700 (PDT) Received: from super-sugar.huaqin.com ([101.78.151.194]) by smtp.gmail.com with ESMTPSA id k8sm6722726pgm.14.2019.09.18.23.17.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2019 23:17:02 -0700 (PDT) From: Jerry Han To: dri-devel@lists.freedesktop.org Subject: [PATCH 2/9] [v10, 2/9] drm/panel: Add Boe Himax8279d MIPI-DSI LCD panel Date: Thu, 19 Sep 2019 14:16:56 +0800 Message-Id: <20190919061656.2228-1-jerry.han.hq@gmail.com> X-Mailer: git-send-email 2.17.1 X-Mailman-Approved-At: Thu, 19 Sep 2019 07:35:45 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ugzlcvPp6s6vz6DPB2Qqe9+jbspVasD126u9ilEAjBY=; b=YajcebZoSRR0Ho6GB2da14c8XJy20eBqTlfWNuHOwBfH7QqcWiYcgp2RV5ixdcZnfe ll+tYMTTj50lHt+7jZhdR8S7ouHOHxZYoTcQW8XdPvvF36bdjkAB3DoElIf6/0w7IINJ loz9zvK/wPzgqCBGffX2q3sfCR26dSuNYjohbrGBHkQqy6X/aXtzUsGm5TzS3Wgwl3XY MwSDbkbY05rkvh16n+ondxMGxVskYrvpOCsMLb0/Hg4f+tr9WSa3uMOluOoYpfp1ANLD SZc+e8OH6B8rFjZhd4n99vJrzg+Tl/9G6DrYNUVezx7WMAtJtHdLW9jCnrF40ngWQsyc xm1w== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jerry Han , Jitao Shi , YH Lin , Nick Sanders , Jerry Han , Rock wang MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Support Boe Himax8279d 8.0" 1200x1920 TFT LCD panel, it is a MIPI DSI panel. V2: - Use SPDX identifier (Sam) - Use necessary header files replace drmP.h (Sam) - Delete unnecessary header files #include (Sam) - Specifies a GPIOs array to control the reset timing, instead of reading "dsi-reset-sequence" data from DTS (Sam) - Delete backlight_disable() function when already disabled (Sam) - Use devm_of_find_backlight() replace of_find_backlight_by_node() (Sam) - Move the necessary data in the DTS to the current file, like porch, display_mode and Init code etc. (Sam) - Add compatible device "boe,himax8279d10p" (Sam) V1: - Support Boe Himax8279d 8.0" 1200x1920 TFT LCD panel, it is a MIPI DSI panel. Signed-off-by: Jerry Han Cc: Jitao Shi Cc: Nick Sanders Cc: YH Lin Cc: Rock wang --- drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-boe-himax8279d.c | 1201 ++++++++++++------ 2 files changed, 842 insertions(+), 360 deletions(-) diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index a771c92f880a..4beae2ab427f 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_DRM_PANEL_ARM_VERSATILE) += panel-arm-versatile.o +obj-$(CONFIG_DRM_PANEL_BOE_HIMAX8279D) += panel-boe-himax8279d.o obj-$(CONFIG_DRM_PANEL_LVDS) += panel-lvds.o obj-$(CONFIG_DRM_PANEL_SIMPLE) += panel-simple.o obj-$(CONFIG_DRM_PANEL_FEIYANG_FY07024DI26A30D) += panel-feiyang-fy07024di26a30d.o diff --git a/drivers/gpu/drm/panel/panel-boe-himax8279d.c b/drivers/gpu/drm/panel/panel-boe-himax8279d.c index 2788bdda69ec..836a9cbc5891 100644 --- a/drivers/gpu/drm/panel/panel-boe-himax8279d.c +++ b/drivers/gpu/drm/panel/panel-boe-himax8279d.c @@ -1,319 +1,76 @@ // SPDX-License-Identifier: GPL-2.0 /* - * Copyright (c) 2019, Huaqin Electronics Co., Ltd + * Copyright (c) 2019, Huaqin Telecom Technology Co., Ltd + * + * Author: Jerry Han * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. */ #include -#include +#include +#include +#include #include #include #include + +#include #include -#include -#include +#include #include #include +#include +#include #include