From patchwork Tue Feb 19 13:21:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Josef_Lu=C5=A1tick=C3=BD?= X-Patchwork-Id: 10819901 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 8C1CF6CB for ; Tue, 19 Feb 2019 13:21:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79CFA2C1F9 for ; Tue, 19 Feb 2019 13:21:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 77B622C204; Tue, 19 Feb 2019 13:21:29 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7E5E22C1F9 for ; Tue, 19 Feb 2019 13:21:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 95781892BF; Tue, 19 Feb 2019 13:21:27 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5E809892B9 for ; Tue, 19 Feb 2019 13:21:25 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id x7so2799391wmj.0 for ; Tue, 19 Feb 2019 05:21:25 -0800 (PST) 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=46wUhqZf8CDDpeNjIfvExHUmiZNkbTJ7M+4pQfbcRR8=; b=ZNUKEz983ry1mSkdObjqV+wxlZxb2xqZ1O8bDPRMF3dM/JwA243+QH/xoAoqUiJZaV 4fy+bnTml+KT642ESvtnxGAlpKySqipLiAjlqKX9lY68Wf9aGGQqdtAn/NTPHNl6tdOC QlhusEKGvsmLxsTwLBt0lGVk3JA3L7zvyY69SEunAbpTIvCXDR78vR9MvkS90iUJ5L+a 3XLlhtgtRlJtVqh1D2toFKi9bg70sC5CY6LD38vX1XhLj94eow9VjlB6nWH/VLWOhFCW Ft6jp2ULWQyb80zy8MbF3aQPl+StSrLDLuz6Gp+tc8TOdd8mbyjJD+AKBrKtKjsyKtIs 6+SA== X-Gm-Message-State: AHQUAua5w7wXLXtre5LUfPFqKfTOEVncYvJUFFEEZBhL6NyMMJNEBR8F TGh9kzNemDbU2kgeNz2MzJ59BTfIwGg= X-Google-Smtp-Source: AHgI3IbzbMAUJehJxwCg90rP0Y32RyiMBrIjG9XCRhisVdJ89JlCwOvhegfOEL4oi2/F2NZb08bLnA== X-Received: by 2002:a1c:a8d7:: with SMTP id r206mr2960134wme.115.1550582482798; Tue, 19 Feb 2019 05:21:22 -0800 (PST) Received: from e430.riomail.cz (188-175-152-238.client.rionet.cz. [188.175.152.238]) by smtp.gmail.com with ESMTPSA id r15sm19870218wrt.37.2019.02.19.05.21.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 05:21:22 -0800 (PST) From: Josef Lusticky To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/2] drm/panel: Add Ilitek ILI9341 parallel RGB panel driver Date: Tue, 19 Feb 2019 14:21:00 +0100 Message-Id: <20190219132101.27196-2-josef@lusticky.cz> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190219132101.27196-1-josef@lusticky.cz> References: <20190219132101.27196-1-josef@lusticky.cz> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lusticky.cz; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=46wUhqZf8CDDpeNjIfvExHUmiZNkbTJ7M+4pQfbcRR8=; b=i8Vdi/ZvzsMC50DDiAge5ELm7Xke7XZIj+by9jj7775DbvrbVA0YwGDgWh0yo2f2oQ D4uxmuPb80ubk20lXWVa6Zo0Maz8XD68hxs1twKMAIcW9bgRM/yiv+apwOuY1whVB7lI 1MGJqPagEO85CkYiNE4JGiibrqZ+2+a6HpyI30GgQCvP0Xz0l36g/FrZQ6Cnn3GgGG0l 47tusn8eIgSDxMtSoHEHuBLAHsdN5CcZl6f6Pd1v4BNFtCprJDks1RUOmaQM6m1+OEG8 YWqX+GWKZTdS12ZOxL50WG8T/PqbHFSrds6G+WPJ4InTqWEJUMEEWIi8Ax7pmX2I3809 0AYw== 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: Josef Lusticky Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP --- MAINTAINERS | 6 + drivers/gpu/drm/panel/Kconfig | 7 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-ilitek-ili9341.c | 320 +++++++++++++++++++ 4 files changed, 334 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-ilitek-ili9341.c diff --git a/MAINTAINERS b/MAINTAINERS index df5668bc1c88..ec366473174b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4800,6 +4800,12 @@ S: Maintained F: drivers/gpu/drm/tinydrm/ili9225.c F: Documentation/devicetree/bindings/display/ilitek,ili9225.txt +DRM DRIVER FOR ILITEK ILI9341 PANELS +M: Josef Lusticky +S: Maintained +F: drivers/gpu/drm/panel/panel-ilitek-ili9341.c +F: Documentation/devicetree/bindings/display/panel/ilitek,ili9341.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 3e070153ef21..0e2ceea5009a 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -46,6 +46,13 @@ config DRM_PANEL_ILITEK_IL9322 Say Y here if you want to enable support for Ilitek IL9322 QVGA (320x240) RGB, YUV and ITU-T BT.656 panels. +config DRM_PANEL_ILITEK_IL9341 + tristate "Ilitek ILI9341 240x320 panels" + depends on OF && SPI + help + Say Y here if you want to enable support for Ilitek IL9341 + QVGA (240x320) RGB panel. + config DRM_PANEL_ILITEK_ILI9881C tristate "Ilitek ILI9881C-based panels" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index e7ab71968bbf..1df564018bc4 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_LVDS) += panel-lvds.o obj-$(CONFIG_DRM_PANEL_SIMPLE) += panel-simple.o obj-$(CONFIG_DRM_PANEL_ILITEK_IL9322) += panel-ilitek-ili9322.o +obj-$(CONFIG_DRM_PANEL_ILITEK_IL9341) += panel-ilitek-ili9341.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9881C) += panel-ilitek-ili9881c.o obj-$(CONFIG_DRM_PANEL_INNOLUX_P079ZCA) += panel-innolux-p079zca.o obj-$(CONFIG_DRM_PANEL_JDI_LT070ME05000) += panel-jdi-lt070me05000.o diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9341.c b/drivers/gpu/drm/panel/panel-ilitek-ili9341.c new file mode 100644 index 000000000000..51ed03140f8d --- /dev/null +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9341.c @@ -0,0 +1,320 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Ilitek ILI9341 drm_panel driver + * 240RGBx320 dots resolution TFT LCD display + * + * This driver support the following panel configurations: + * - 18-bit parallel RGB interface + * - 8-bit SPI with Data/Command GPIO + * + * Copyright (C) 2019 Josef Lusticky + * + */ + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +#include