From patchwork Thu Jul 13 14:13:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 9838689 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E9884602D8 for ; Thu, 13 Jul 2017 14:24:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D8B511FE76 for ; Thu, 13 Jul 2017 14:24:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD29C285A6; Thu, 13 Jul 2017 14:24:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CDB5E1FE76 for ; Thu, 13 Jul 2017 14:24:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=BjtnyxL+uNePVuNE2YqKhvB4Bml8glbxPsJP/K32gRU=; b=NTAA3QXOnlKgDWJPP1taieQLpF LPn8EANaXT7TEv7giO2Bk5suAqSrnq/XLnUz1MDvSvN+QNpd6H+CADXfkRBGzmDdp3zZbNWRHy+Hi sWG6nW/c9jYEF/5M/oetpRK15ictN4lmgkx+cQxTCF06XI/tHt5+V9oQokdjhY2sTrubAFL1tziYY DyJ2taPzhaWiigRRzkQUej9pHlRnz7676oEBM0RVrYG4M19uMmeA4nFzMjdlx48gfp29ZuW7mzwAE cTkaIsIkoG6zkwKcPTjwfJnnA8OJ5N2s7L/oOvQp7zyzYJ8/z9pNoJdp5hMxHaO/0h+Q6jQrq1FWG CcCNd/UA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dVf2e-0004vH-Sz; Thu, 13 Jul 2017 14:24:32 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dVf2c-0004ur-67 for linux-arm-kernel@bombadil.infradead.org; Thu, 13 Jul 2017 14:24:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=0GoZ7kcEhFLPmZzBgtSZUxomlRpVj2MpPXAdJ/rsKsk=; b=sEqbpsw+rWEnLYAzVfItRJ/Gw Dbv0mQ4TkpbIqLll/4STO1Ba2mhBZuI3+XMtiGwCVma1AHIhdxP352yWR1Sw3XCyx76kJ/xAKaQQf FN/M1OU1IJb4MBJDCj0WJ2t3jCrAs6dgzA3NbgrGI5W4r0u1O5Lngoqh7vPp2a/3gsDq79/iKzrMB q+Z/MYlTNAQqPzCyydTeG0wGZ9oUc3Ako0N9AvWjlVsAC71cXrTwoRP2f/hGmIDciPwSi/nWGZ2Qq 0ibToO0ZVmMVywTD/7izV2UTJhrEZgMf35Y8yge/C1uRBs9UHGwPALyyQXNdwMq6l78evWhEQR+cV Ww6nv8lSw==; Received: from mail.free-electrons.com ([62.4.15.54]) by merlin.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dVf2Z-0006qj-5a for linux-arm-kernel@lists.infradead.org; Thu, 13 Jul 2017 14:24:28 +0000 Received: by mail.free-electrons.com (Postfix, from userid 110) id E309222026; Thu, 13 Jul 2017 16:13:19 +0200 (CEST) Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id B27A021E3C; Thu, 13 Jul 2017 16:13:19 +0200 (CEST) From: Maxime Ripard To: Mark Brown , Thierry Reding , Laurent Pinchart , Chen-Yu Tsai , Maxime Ripard Subject: [PATCH 15/18] drm/panel: Add Huarui LHR050H41 panel driver Date: Thu, 13 Jul 2017 16:13:10 +0200 Message-Id: <78212e5adad59f09db9ff87b4430b97494f4d874.1499955058.git-series.maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: References: In-Reply-To: References: X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Boris Brezillon , David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Rob Herring , Daniel Vetter , Thomas Petazzoni , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The LHR050H41 panel is the panel shipped with the BananaPi M2-Magic. Add a driver for it. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/panel/Kconfig | 9 +- drivers/gpu/drm/panel/Makefile | 1 +- drivers/gpu/drm/panel/panel-huarui-lhr050h41.c | 444 ++++++++++++++++++- 3 files changed, 454 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-huarui-lhr050h41.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index d84a031fae24..eaa6e102775a 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -28,6 +28,15 @@ config DRM_PANEL_SIMPLE that it can be automatically turned off when the panel goes into a low power state. +config DRM_PANEL_HUARUI_LHR050H41 + tristate "Huarui LHR050H41 panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y if you want to enable support for the Huarui Lighting + LHR05041 DSI panel. The panel has a 1280x720 resolution. + 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 9f6610d08b00..58de7a853898 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -1,5 +1,6 @@ obj-$(CONFIG_DRM_PANEL_LVDS) += panel-lvds.o obj-$(CONFIG_DRM_PANEL_SIMPLE) += panel-simple.o +obj-$(CONFIG_DRM_PANEL_HUARUI_LHR050H41) += panel-huarui-lhr050h41.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_LG_LG4573) += panel-lg-lg4573.o diff --git a/drivers/gpu/drm/panel/panel-huarui-lhr050h41.c b/drivers/gpu/drm/panel/panel-huarui-lhr050h41.c new file mode 100644 index 000000000000..eb675eb9ee7d --- /dev/null +++ b/drivers/gpu/drm/panel/panel-huarui-lhr050h41.c @@ -0,0 +1,444 @@ +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include +#include +#include + +#include