From patchwork Thu Sep 19 06:17:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerry Han X-Patchwork-Id: 11151791 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 617B11747 for ; Thu, 19 Sep 2019 07:36:39 +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 1F21F222BE for ; Thu, 19 Sep 2019 07:36:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1F21F222BE 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 66A356FA94; Thu, 19 Sep 2019 07:36:19 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3FA226F4C1 for ; Thu, 19 Sep 2019 06:17:35 +0000 (UTC) Received: by mail-pl1-x644.google.com with SMTP id e5so1095459pls.9 for ; Wed, 18 Sep 2019 23:17:35 -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=gcYzOugfEbxtJgRn/vi2sAdQBGX8hNXzyTCF+mskS2w=; b=T8RIHnsxNni5rgRhNtfmenYfgMoJEzUTIHS1719VjXmXDIXbQFzPoXrloUm9JuXPiH WAncp+SzAd4KRgvP3bsIZNyyHiDQS57TdEaOLvjzfkDhFg7n5oKZYelaRVo1ojB+xXhl /SLMMUOmnBDa1Z5jzu5eL3ciymbpHbZ9G/RlbwHr9WCeRGoR+FRUTSdQgzxHl4szCggE 9KZ+ygRm3bqCNfGi1W1lDggHzPG5A2Wm2brUjbUQ4nP6K8/USXkRinOGMBEEgbunbwIh yrp7YfJ3gaRRKrQP5NzopPqxO1p/h0cY4kD+pbzKViQ0lJQm+8Fs9p+Tr4GtBIB25PAm fxaw== X-Gm-Message-State: APjAAAVtex2DC1WwEv8lmtxKebpNRCmsnLieo+ZY0CKW8cNe3JSkfBsK cJKYV1K0ghFjRajUYsbjw39J1bDa0vc= X-Google-Smtp-Source: APXvYqz1S5CA5kiAyTrG7aVMQSQS/CHe9AyKEKBQTQtik9iBkCNiUj6TNY1NOaz9lAKIhQoyHJpLRg== X-Received: by 2002:a17:902:a50a:: with SMTP id s10mr8111216plq.336.1568873854674; Wed, 18 Sep 2019 23:17:34 -0700 (PDT) Received: from super-sugar.huaqin.com ([101.78.151.194]) by smtp.gmail.com with ESMTPSA id w6sm13386750pfj.17.2019.09.18.23.17.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2019 23:17:34 -0700 (PDT) From: Jerry Han To: dri-devel@lists.freedesktop.org Subject: [PATCH 4/9] [v10, 4/9] drm/panel: Add Boe Himax8279d MIPI-DSI LCD panel Date: Thu, 19 Sep 2019 14:17:29 +0800 Message-Id: <20190919061729.2440-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=gcYzOugfEbxtJgRn/vi2sAdQBGX8hNXzyTCF+mskS2w=; b=ASL8+AQ/H8vjp9VS9ax/8I8KBbS4IUCe8y2IB07WM2kMfWPHc9YELiQcUHseXEONCv 7/a3UEzGQh9y6qncCzn3DfJ0F561T5LQH/uzFKMRbAltDj6NVgt2bSxIfB7V7KiSXYHj 1bGY4VXiWGsvSM/4YgnC/I6+WeJ5Oj6i1EeCP3x1fGnh2QQRpwhr0BgatPSbiatIrz+S /gLK3cewf9xTte2f8C4eRpz6dBFaj8m1slYEsLq4s53MGPHM9O98tpuOu010Wve1Ed3K qHSBmOgHmavg3CTmCkn5Mv6ngz7Vcw8LLF/ba/qAuSmck7jyQ2hTyRXVJ7Tbwp23NLSM ZKEw== 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: Derek Basehore , Jerry Han , Jitao Shi , 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. V4: - Frefix all function maes with boe_ (Sam) - Fsed "enable_gpio" replace "reset_gpio", Make it look clearer (Sam) - Sort include lines alphabetically (Sam) - Fixed entries in the makefile must be sorted alphabetically (Sam) - Add send_mipi_cmds function to avoid duplicating the code (Sam) - Add the necessary delay(reset_delay_t5) between reset and sending the initialization command (Rock wang) V3: - Remove unnecessary delays in sending initialization commands (Jitao Shi) 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: Derek Basehore Cc: Rock wang --- MAINTAINERS | 12 +- drivers/gpu/drm/panel/Kconfig | 22 +- drivers/gpu/drm/panel/panel-boe-himax8279d.c | 201 +++++++++---------- 3 files changed, 114 insertions(+), 121 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 7c6ac18b922e..bd0fadb9ea18 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5085,6 +5085,12 @@ T: git git://anongit.freedesktop.org/drm/drm-misc S: Maintained F: drivers/gpu/drm/bochs/ +DRM DRIVER FOR BOE HIMAX8279D PANELS +M: Jerry Han +S: Maintained +F: drivers/gpu/drm/panel/panel-boe-himax8279d.c +F: Documentation/devicetree/bindings/display/panel/boe,himax8279d.txt + DRM DRIVER FOR FARADAY TVE200 TV ENCODER M: Linus Walleij T: git git://anongit.freedesktop.org/drm/drm-misc @@ -5110,12 +5116,6 @@ S: Maintained F: drivers/gpu/drm/tiny/ili9225.c F: Documentation/devicetree/bindings/display/ilitek,ili9225.txt -DRM DRIVER FOR BOE HIMAX8279D PANELS -M: Jerry Han -S: Maintained -F: drivers/gpu/drm/panel/panel-boe-himax8279d.c -F: Documentation/devicetree/bindings/display/panel/boe,himax8279d.txt - DRM DRIVER FOR HX8357D PANELS M: Eric Anholt T: git git://anongit.freedesktop.org/drm/drm-misc diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index cfd8c886fff7..683ff77a3733 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -18,6 +18,17 @@ config DRM_PANEL_ARM_VERSATILE reference designs. The panel is detected using special registers in the Versatile family syscon registers. +config DRM_PANEL_BOE_HIMAX8279D + tristate "Boe Himax8279d panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for Boe Himax8279d + TFT-LCD modules. The panel has a 1200x1920 resolution and uses + 24 bit RGB per pixel. It provides a MIPI DSI interface to + the host and has a built-in LED backlight. + config DRM_PANEL_LVDS tristate "Generic LVDS panel driver" depends on OF @@ -339,17 +350,6 @@ config DRM_PANEL_TPO_TD043MTEA1 Say Y here if you want to enable support for TPO TD043MTEA1 800x480 4.3" panel (found on the OMAP3 Pandora board). -config DRM_PANEL_BOE_HIMAX8279D - tristate "Boe Himax8279d panel" - depends on OF - depends on DRM_MIPI_DSI - depends on BACKLIGHT_CLASS_DEVICE - help - Say Y here if you want to enable support for Same type - TFT-LCD modules. The panel has a 1200x1920 resolution and uses - 24 bit RGB per pixel. It provides a MIPI DSI interface to - the host and has a built-in LED backlight. - config DRM_PANEL_TPO_TPG110 tristate "TPO TPG 800x400 panel" depends on OF && SPI && GPIOLIB diff --git a/drivers/gpu/drm/panel/panel-boe-himax8279d.c b/drivers/gpu/drm/panel/panel-boe-himax8279d.c index 60f5f8bf2e14..aa7d91279819 100644 --- a/drivers/gpu/drm/panel/panel-boe-himax8279d.c +++ b/drivers/gpu/drm/panel/panel-boe-himax8279d.c @@ -17,10 +17,10 @@ #include #include -#include +#include #include +#include #include -#include #include #include