From patchwork Sat Nov 3 10:08:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10666617 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B7F9F14BD for ; Sat, 3 Nov 2018 10:48:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A74B62979A for ; Sat, 3 Nov 2018 10:48:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 976872ABF8; Sat, 3 Nov 2018 10:48:44 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 D60762979A for ; Sat, 3 Nov 2018 10:48:43 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=N2EyB6PxX7BW326DWEm0n2lqyXyRnEz/NukmumU8J0o=; b=S3QeJ73i1R0/VZ gZ3duyqdrgdTXSHtcgtVyFesv94xHZT5ghQGIpgevByc6MsJiVhjmIFYeuAYPEqxfHJKJc1JxnhF/ mS6HhEUVP7Sa6IIOpuUb7VBBy7CgsTGa61tYsnkuOb8seWkxHa77lRhXtvKvaoEiOiOYib9BEV6wX QHpWsTvRk6GI7M6w9rcCEUlIgowSXdOc+Mbr+ua8aQW9CgmAo6U9QudTr7pn1GCLCW4oSsxXfBtdh Xn+JEt/PaSZYYH1uJQOIhbWW+4OeNoXCTKV1yDhD9cPxBvGFslTA+FRa3j4DNZlKcmYaVOY2updLw NZ7R+rqEimbkF+SBE0vQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gItTo-0001i1-IG; Sat, 03 Nov 2018 10:48:36 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gItTh-0001ZW-Am for linux-arm-kernel@bombadil.infradead.org; Sat, 03 Nov 2018 10:48:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type: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=4ids294jU6qsAEweKZRB3L5rLwgsSdz3bXnoU3xy4P0=; b=u3DF7k1iw6tiyoN+vgkf4GI/Rk 50OZ4aYrNjtB4nNDHuuIEvWyGdqA2VOKxrmkHZruyNKp2sOc2IKJv4nzUlbFD/8P4lIDNbUpsdGU8 Z2gURarJub7pBLPQpxeIaWLcHEArMjzxLgf3IxCpqFzCQnzqhYxl+GpKyLQfjBbT0zVoB1KCy96Fk SwWtHb56Otj1+LPsz05vOC0fFDbE6B+KtE1jie+jb+0NyZVR/SmuTiWIcw9Mw2wgMqHZN/Jgy0kNT NJA9UG+s+olq99w6b8vQBLTFgSxDoi5q/6FqGybaQIz2ow1h83KC9F8RBggFbWJVMwFW79nd6oKGp 1aC/Z1wA==; Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gIssz-0008SF-56 for linux-arm-kernel@lists.infradead.org; Sat, 03 Nov 2018 10:10:34 +0000 Received: by mail-pg1-x543.google.com with SMTP id f8-v6so2058678pgq.5 for ; Sat, 03 Nov 2018 03:10:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4ids294jU6qsAEweKZRB3L5rLwgsSdz3bXnoU3xy4P0=; b=BcEXUJIcJsZeymbde0E/t1Y/eLV/cY8s5ACKk/HUiz278ioOxy7N8sIoB80BFhFAyG 5ilFJXTUHTcuuacvPGCc4e4QZvKv0iwTzRG9gaK4gmVFhv65fhcY/ConvifrVvW0C70+ G0KWb6bLVf9B/t0W5DWPk1hHNXsrn+SRmXGHk= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=4ids294jU6qsAEweKZRB3L5rLwgsSdz3bXnoU3xy4P0=; b=bY33IgoyHSvC28aHUDS8CyEuLrpCOrDyBaDBprlj393SelK04k0HGcM0iU0n29DyQW imVFgY1f4ZbrFcTXgpo1MSV0xd3vx7XcmMhpOKfnXh6C5vf77ucXNQXZNSmiEzvjjUN/ Ui6fClETza0zIgQ9dgMWP0QkHSaNSUdyKdVm+O5Ye0qbDkGKbKYfwxxrE3HNQRsEZCzX s/6FoAvJUc5dh9A95pQ4cDHeagkZio2XR5nm/EPOV9+6S/KHizENMwiIBgTrbAW/fBK/ FaltTl8wqFyqPKTVGu9xzrSQIIBYaF+gKQf6PtoVof6A2gZsqlDZ69cLrm4hCXK7wi7x gn1A== X-Gm-Message-State: AGRZ1gJtWIgE9Lt92o30+KF7N8xTJrJHo+CK/XZ6n2+3vQ+/hBbCsUAq zowRRBxoFywsi8nOvyPAb9KPlg== X-Google-Smtp-Source: AJdET5cT674/atl1lcF71ZtQzrNLCFGRNxOglAvYal+O+NTCCOsM9qoYXd9MgHoR8f+HP5gBkpjd8A== X-Received: by 2002:a63:da14:: with SMTP id c20mr13334033pgh.233.1541239828091; Sat, 03 Nov 2018 03:10:28 -0700 (PDT) Received: from localhost.localdomain ([2405:204:6094:3f7a:ed0a:fb74:1220:defe]) by smtp.gmail.com with ESMTPSA id z79-v6sm28466823pfl.33.2018.11.03.03.10.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Nov 2018 03:10:27 -0700 (PDT) From: Jagan Teki To: Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Rob Herring , Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Vasily Khoruzhick , Thierry Reding , Mark Rutland , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Michael Trimarchi , TL Lim , linux-sunxi@googlegroups.com Subject: [PATCH 09/10] drm/panel: Add Feiyang FY07024DI26A30-D MIPI-DSI LCD panel Date: Sat, 3 Nov 2018 15:38:59 +0530 Message-Id: <20181103100900.30313-10-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181103100900.30313-1-jagan@amarulasolutions.com> References: <20181103100900.30313-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181103_061033_233029_5C52019C X-CRM114-Status: GOOD ( 24.69 ) 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: Jagan Teki 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 Feiyang FY07024DI26A30-D is 1024x600, 4-lane MIPI-DSI LCD panel. Add panel driver for it. Signed-off-by: Jagan Teki --- Note: init sequence is referenced from https://github.com/longsleep/linux-pine64/blob/pine64-hacks-1.2/drivers/video/sunxi/disp2/disp/lcd/mb709_mipi.c drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + .../drm/panel/panel-feiyang-fy07024di26a30d.c | 305 ++++++++++++++++++ 3 files changed, 315 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index d0d4e60f5153..bc70896fe43c 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -47,6 +47,15 @@ config DRM_PANEL_SIMPLE that it can be automatically turned off when the panel goes into a low power state. +config DRM_PANEL_FEIYANG_FY07024DI26A30D + tristate "Feiyang FY07024DI26A30-D MIPI-DSI LCD panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y if you want to enable support for panels based on the + Feiyang FY07024DI26A30-D MIPI-DSI interface. + config DRM_PANEL_ILITEK_IL9322 tristate "Ilitek ILI9322 320x240 QVGA panels" depends on OF && SPI diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 88011f06edb8..e23c017639c7 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -3,6 +3,7 @@ obj-$(CONFIG_DRM_PANEL_ARM_VERSATILE) += panel-arm-versatile.o obj-$(CONFIG_DRM_PANEL_BANANAPI_S070WV20_ICN6211) += panel-bananapi-s070wv20-icn6211.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 obj-$(CONFIG_DRM_PANEL_ILITEK_IL9322) += panel-ilitek-ili9322.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9881C) += panel-ilitek-ili9881c.o obj-$(CONFIG_DRM_PANEL_INNOLUX_P079ZCA) += panel-innolux-p079zca.o diff --git a/drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c b/drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c new file mode 100644 index 000000000000..718631a72d8b --- /dev/null +++ b/drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c @@ -0,0 +1,305 @@ +// SPDX-License-Identifier: (GPL-2.0+ or MIT) +/* + * Copyright (C) 2018 Amarula Solutions + * Author: Jagan Teki + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include +#include +#include + +#include