From patchwork Thu May 3 14:26:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Chiras X-Patchwork-Id: 10382349 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 A86C060467 for ; Sat, 5 May 2018 20:12:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9702328917 for ; Sat, 5 May 2018 20:12:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8BA4228A3B; Sat, 5 May 2018 20:12:23 +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.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED, T_DKIM_INVALID 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 3756B28917 for ; Sat, 5 May 2018 20:12:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3F8976E1CC; Sat, 5 May 2018 20:08:33 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0085.outbound.protection.outlook.com [104.47.2.85]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7E3006E56E for ; Thu, 3 May 2018 14:26:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=qq3z98xfQmNuc6WkpDWnZnIxJ8idCpv2/ODnoSSziwo=; b=xLWNoEx2dFq8Ph+nTK68DiKSXMLhM+ztEg7HuWeweTzGUO9/k8D6SjbS4X2UGWFUsWmO4Ll8OriHJTMrwyC+9/glShbxH0WeaiBMNF3OjZJePcdQLlDaycprUroos5Lcqm5lseWFg40bHMMNBlQYF8SI8TwxEofkaH+B9a/a2qc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=robert.chiras@nxp.com; Received: from fsr-ub1664-120.ea.freescale.net (95.76.156.53) by DB7PR04MB4009.eurprd04.prod.outlook.com (2603:10a6:5:17::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.23; Thu, 3 May 2018 14:26:11 +0000 From: Robert Chiras To: thierry.reding@gmail.com, airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [PATCH v2 1/2] drm/panel: Add Raydium RM67191 DSI Panel Date: Thu, 3 May 2018 17:26:01 +0300 Message-Id: <1525357562-20810-2-git-send-email-robert.chiras@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525357562-20810-1-git-send-email-robert.chiras@nxp.com> References: <1525357562-20810-1-git-send-email-robert.chiras@nxp.com> MIME-Version: 1.0 X-Originating-IP: [95.76.156.53] X-ClientProxiedBy: AM6PR07CA0023.eurprd07.prod.outlook.com (2603:10a6:209:2a::36) To DB7PR04MB4009.eurprd04.prod.outlook.com (2603:10a6:5:17::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(48565401081)(2017052603328)(7153060)(7193020); SRVR:DB7PR04MB4009; X-Microsoft-Exchange-Diagnostics: 1; DB7PR04MB4009; 3:9e/x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cdZHTYQhXTC6HTrTQg6E2U6Dva6aqxD5SAqsFabQenJiy6c5No4LmTpxX+w+ksxCtMFHfLy96SbOgqh7KLw9MIDYrOxXCFsZtopMqPoakLMecueDtXENCwOkMMHb0IhXaUjX4brhjoxh2Jr+F/6g2+ImpFBh3HrUbO0v6MI6lE34YexJZCTOs3qwGWHS9TaoQ98O3f8Fgca+lo1DGlVJrafMCixN/YfNW/4O/mHLCENZoPM0u4Zo04xs4skCvFq3VUQ92P8nIzBUenlByx5FDLV1EEa2+PGgHAV9HFXjTGamy5Po6AFwqAtIvfnVq7Uf6XNhlC3U1B3OVedhn9Ejk0GXwCoSaihG; 4:phm2MJVpYqP640v+KAxFQShEJ212cjSMTF2bnF/NJA+5NXfEtrLGsgGFCN37eEDhIeao8Ts2lRMcMQCMR84M2ozO85BE1Nlgiswm7lszsV1Wq6ca04DswKy47O8yuxsevdu3cjq/ApsFi8+0Ny8NJ5PwRJ6a4KiBCAIoVTcvSlDn3ZS5lIdWEzTXVhGEHVa+ECHG1wegPDWrKKKGarxThWDea4ZmMjZ0Rqpef6v/Yoi556XIslF91ic4/U1uIA1ld+odY0OUn0UXw2p7daMyZaVwqDBv7GwFkl/6TSn3CnCGT9WA4c29P64qt5TN7but X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231254)(944501410)(52105095)(6055026)(6041310)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011); SRVR:DB7PR04MB4009; BCL:0; PCL:0; RULEID:; SRVR:DB7PR04MB4009; X-Forefront-PRVS: 066153096A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(366004)(346002)(376002)(39380400002)(396003)(39860400002)(189003)(199004)(7736002)(305945005)(486006)(6486002)(5890100001)(6506007)(4326008)(16586007)(16526019)(51416003)(6666003)(59450400001)(8936002)(68736007)(6512007)(8676002)(386003)(81166006)(44832011)(39060400002)(76176011)(50226002)(186003)(36756003)(81156014)(25786009)(316002)(53936002)(52116002)(86362001)(48376002)(478600001)(575784001)(50466002)(11346002)(5660300001)(97736004)(2616005)(956004)(446003)(3846002)(47776003)(6116002)(66066001)(105586002)(26005)(2906002)(106356001)(476003)(2004002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR04MB4009; H:fsr-ub1664-120.ea.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB7PR04MB4009; 23:xamOBsGSew5Q5RYaRvXYITUFbtra3SFqEWuNZlpY0?= =?us-ascii?Q?Ql29NSPFKdhBDYYigmHYrXzcWVpOrlVxvbnT9XBNMNogvITRyqxlpYY+D/s5?= =?us-ascii?Q?Br9bd8BEOucVSXcP0w+MPXuuu8qKZLvpr7PKPixHjFzOTjeEYGWVPt6nCehe?= =?us-ascii?Q?bOvrihrL/FMu2PZ7y6XJyQBhN6hlwRNaSzXjt6jYAvDMqOEpngdRU2Xgqtol?= =?us-ascii?Q?W2UYDlh+kgz7rBCwVMum8K+HWZbFDxis7s1cmfGkNlL4P+YgO9WQezFOWMzt?= =?us-ascii?Q?7LDud3BXsB3kq4OEpk37aM0YCBfsEQoheu4dC5m4crAxvbZIrZYoPsvK16XJ?= =?us-ascii?Q?KGpa1V42j1y8hhDPyElbD75c1Y3Sy77O2FvgrIEmeOYrDPQcm5bVP0pdcitc?= =?us-ascii?Q?snVEMwqDzQpopQ4Is+IOpgj73rax8XIDB7h/hiNtsOrmz69QkEt+FiiNP10X?= =?us-ascii?Q?QZw+xz9Ua74ZGAJDdwPj8qe4zvyAgco7iCAmUvDAA4QvJ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gWAYjcwWQVcMJIalOLeDYI0GUEfMqscOBBNjV?= X-Microsoft-Antispam-Message-Info: 9rM9MP7j7P7Ktn7bUglIHS+H9TPVABtlVQHsJxrjfHt3GXiJWRbQ7/angWom4th9r38vtxhfhSLGS0N+Ezt6B5xAi0FshIYTWNrImoXF6Vd9pFJu2DFP2c02x4uXAEMavS2Wy2uKDW50/P2iOKCZPbV4vPu2o/1Y9Ka08QkbeDTiBQq54nVd63cK/L8loZMg X-Microsoft-Exchange-Diagnostics: 1; DB7PR04MB4009; 6:ceJGGjqR9qTqZ3yvmQff51Bck50Zp3sRygKj5iKyzey6wiyqEDLBlDvhRkZxrhB6qHDIta/li3MFmfxBmNG4hEtmwmRqZPN9gOTGJhzYnn1pZE6i04QqJgstFV24vOGBDN1UcphxerJ5RUMwj0ozlJq2zSvL0vUc43v4P7M/Tdlla2iNOfMpWQSAGLTUybDYT7E/Ql5L4kFV+ytawvxMxySdmOhknve/0z/zGr34isaJHaGAbXVKZGQDbZiK3pPCJmy3eyI7QQNe719c2Y+D6YLjfk8FjCWfNpKVM1mchNmiaEuRgv2vjWXmwS0czQhVed6DSMT/yO7UNTusoUdLOwyMnFEJXSrKa/sM7Mm7Su4HxhqrYTRYB+kNRw0JpQtWt1QvlDGuwrU6s7ZrvVqlTcD1ahnRWXAWcqCFxUPtkar59N0VA2YLlaDfZisT577q2d6LbhuJPxZgJBBre8/KgQ==; 5:O+TgV/x07fc7yaG9OJn8bj0UjteUwza6nCypAsBCxOb5Cyo0/v0d9/m7utmCeYBTAhgOmtV15aUr0jWqvrxPAMD60eYUzrhUbq+YIqzb9vplNZRBcDBIALS9UlIlpRp8N+2xYFzq/55lDrCbLf9B5ScYM111RUnzySuADzz9K+k=; 24:7Leo+nX9133PUJw71yxVBgl+vEpbDGoKGA+WWDgm1rs6V3iuLsnckx4yRq8cqAIJWOU9fJjXLPxQb5FNnkayK/lBg1FBJAFKHtAa0jMIngo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB7PR04MB4009; 7:IN/zif4aTozVzkxVkglvYRfF2guXaYCt+iU9oh15ABrd3zbjaJfUbRVpU5MtCtWlyi5rP4mO1xroBE0QX1qaEmGRfNbWUJasx8IZK/dDB9JL/gb0iu9XoZjYNB4h9a17UBQ2IKWVqO8AC7O1WPgIcBX/+num3aJm0uS2NtnWz9AmvjYIJ08a5Y/W7GpccXUVPd85enBsBPqTmjHQ/DMpO9uJZ8r72dguWB3eZaxNNh67yMfAi9cmPqlzjleR/0xN X-MS-Office365-Filtering-Correlation-Id: df1b7a02-81a6-4b1a-c139-08d5b101d1b9 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2018 14:26:11.0113 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: df1b7a02-81a6-4b1a-c139-08d5b101d1b9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4009 X-Mailman-Approved-At: Sat, 05 May 2018 20:07:53 +0000 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: devicetree@vger.kernel.org, linux-imx@nxp.com, mirela.rabulea@nxp.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add support for the OLED display based on MIPI-DSI protocol from Raydium: RM67191. Signed-off-by: Robert Chiras Signed-off-by: Mirela Rabulea --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-raydium-rm67191.c | 654 ++++++++++++++++++++++++++ 3 files changed, 664 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-raydium-rm67191.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 25682ff..b0d5678 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -108,6 +108,15 @@ config DRM_PANEL_RASPBERRYPI_TOUCHSCREEN Pi 7" Touchscreen. To compile this driver as a module, choose M here. +config DRM_PANEL_RAYDIUM_RM67191 + tristate "Raydium RM67191 FHD 1080x1920 DSI video mode 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 Raydium RM67191 FHD + (1080x1920) DSI panel. + config DRM_PANEL_RAYDIUM_RM68200 tristate "Raydium RM68200 720x1280 DSI video mode panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index f26efc1..4ebe7b5 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -9,6 +9,7 @@ obj-$(CONFIG_DRM_PANEL_LG_LG4573) += panel-lg-lg4573.o obj-$(CONFIG_DRM_PANEL_ORISETECH_OTM8009A) += panel-orisetech-otm8009a.o obj-$(CONFIG_DRM_PANEL_PANASONIC_VVX10F034N00) += panel-panasonic-vvx10f034n00.o obj-$(CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN) += panel-raspberrypi-touchscreen.o +obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM67191) += panel-raydium-rm67191.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM68200) += panel-raydium-rm68200.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_LD9040) += panel-samsung-ld9040.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3HA2) += panel-samsung-s6e3ha2.o diff --git a/drivers/gpu/drm/panel/panel-raydium-rm67191.c b/drivers/gpu/drm/panel/panel-raydium-rm67191.c new file mode 100644 index 0000000..ee5748d --- /dev/null +++ b/drivers/gpu/drm/panel/panel-raydium-rm67191.c @@ -0,0 +1,654 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * i.MX drm driver - Raydium MIPI-DSI panel driver + * + * Copyright (C) 2017 NXP + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * 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. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include