From patchwork Fri Jun 24 03:08:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 70793 Delivered-To: patches@linaro.org Received: by 10.140.28.4 with SMTP id 4csp730100qgy; Thu, 23 Jun 2016 20:08:33 -0700 (PDT) X-Received: by 10.66.43.203 with SMTP id y11mr3421174pal.96.1466737708061; Thu, 23 Jun 2016 20:08:28 -0700 (PDT) Return-Path: Received: from mail-pf0-x22e.google.com (mail-pf0-x22e.google.com. [2607:f8b0:400e:c00::22e]) by mx.google.com with ESMTPS id wb5si3762760pab.201.2016.06.23.20.08.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jun 2016 20:08:28 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::22e as permitted sender) client-ip=2607:f8b0:400e:c00::22e; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::22e as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-pf0-x22e.google.com with SMTP id h14so34637538pfe.1 for ; Thu, 23 Jun 2016 20:08:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OfeqfnZnVO2txq/t7K/nDc+BQ9gaQEe0VOdZczfwCUQ=; b=Co9N3avWP5CbGmibv6IlgkVMPcVT+hyNoJIkkcLFyTtY4U0wwpvnSh426AAGSG8jIz IlgGhGi1I4SbeWWmc5JpQSpQv40k5uWgXW/WLAqb8D3blI2qehCoRX+GUQiyihwymhjY nzuRvJMFS62e9jvPoTfW2QRqXYsWIc5yM8iK8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OfeqfnZnVO2txq/t7K/nDc+BQ9gaQEe0VOdZczfwCUQ=; b=HtQc1tUqea5zp28tT3kyzTNJkftyLBthlKqm3gDE0/iNB1DRql3UuWJMxFB3sASETR eCYZBMqcdEEswlABhfMTXk0vuYAkNW4XM2I8YgyO7+U/qnMhdlDLsaUnNTEe+z3YNDV1 ylEwH6t8Jezn9Bt3lxmqYnHbRPXD7jzeBrokhUObzm4dN/Lun+mOHvy60WsMqv7SVhY3 0t2p0SUnZlcUfWaGOg8KbL+yGaAx8Zv7OzPYXCP1wmrXhMVSbXnCdqkP+hz6mNARWP5Z s1e5KZjTuDTC7T8NH4h66Q801FrU1eTQLIQK9qiFUYye770ptw2y4g+Kaps4ESrHXhE9 wkGQ== X-Gm-Message-State: ALyK8tKflI30YxdlgdbXQslL5tes9vBad8cYvS7ogd68pcAeuVH24hLtah/aigEPM6qrWCCXTjU= X-Received: by 10.98.9.68 with SMTP id e65mr3044934pfd.121.1466737707496; Thu, 23 Jun 2016 20:08:27 -0700 (PDT) Return-Path: Received: from localhost.localdomain (c-73-67-244-238.hsd1.or.comcast.net. [73.67.244.238]) by smtp.gmail.com with ESMTPSA id q127sm3200756pfb.34.2016.06.23.20.08.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Jun 2016 20:08:27 -0700 (PDT) From: John Stultz To: Guodong Xu , Xinliang Liu Cc: John Stultz Subject: [PATCH 5/6] drm/panel: Add HiKey panel driver Date: Thu, 23 Jun 2016 20:08:08 -0700 Message-Id: <1466737689-2303-6-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1466737689-2303-1-git-send-email-john.stultz@linaro.org> References: <1466737689-2303-1-git-send-email-john.stultz@linaro.org> From: Xinliang Liu Add HC070IY35023 panel support. Signed-off-by: Xinliang Liu Signed-off-by: John Stultz --- drivers/gpu/drm/panel/Kconfig | 8 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-hikey.c | 512 ++++++++++++++++++++++++++++++++++++ 3 files changed, 521 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-hikey.c -- 1.9.1 diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 7d4704b..3f129fd 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -51,4 +51,12 @@ config DRM_PANEL_SHARP_LQ101R1SX01 To compile this driver as a module, choose M here: the module will be called panel-sharp-lq101r1sx01. +config DRM_PANEL_HIKEY + tristate "HiKey LCD panel driver" + depends on OF + depends on DRM_MIPI_DSI + help + Say Y here if you want to enable LCD panel driver for HiKey board. + Current support panel: INNOLUX N070ICN-PB1(800x1280). + endmenu diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index d0f016d..5660166 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -3,3 +3,4 @@ obj-$(CONFIG_DRM_PANEL_LG_LG4573) += panel-lg-lg4573.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_LD9040) += panel-samsung-ld9040.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0) += panel-samsung-s6e8aa0.o obj-$(CONFIG_DRM_PANEL_SHARP_LQ101R1SX01) += panel-sharp-lq101r1sx01.o +obj-$(CONFIG_DRM_PANEL_HIKEY) += panel-hikey.o diff --git a/drivers/gpu/drm/panel/panel-hikey.c b/drivers/gpu/drm/panel/panel-hikey.c new file mode 100644 index 0000000..a481e4c --- /dev/null +++ b/drivers/gpu/drm/panel/panel-hikey.c @@ -0,0 +1,512 @@ +/* + * HiKey LCD panel driver + * TODO: Add backlight adjustment support. + * + * Copyright (c) 2016 Linaro Limited. + * Copyright (c) 2016 Hisilicon Limited. + * Copyright (C) 2016 LeMaker + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published by + * the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +#include +#include +#include +#include