From patchwork Tue Dec 18 15:37:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lubomir Rintel X-Patchwork-Id: 10736863 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 B42016C2 for ; Wed, 19 Dec 2018 08:41:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A699C2AE81 for ; Wed, 19 Dec 2018 08:41:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A51062AE6F; Wed, 19 Dec 2018 08:41:11 +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 5BEEC2AEAF for ; Wed, 19 Dec 2018 08:41:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 84DE86EE2A; Wed, 19 Dec 2018 08:40:49 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from shell.v3.sk (shell.v3.sk [90.176.6.54]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7FFDA6EC49 for ; Tue, 18 Dec 2018 15:38:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 7A2CDCA2F0; Tue, 18 Dec 2018 16:38:14 +0100 (CET) Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id xSwKTm7vt2xh; Tue, 18 Dec 2018 16:38:02 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id E7DDBCA2E5; Tue, 18 Dec 2018 16:37:50 +0100 (CET) X-Virus-Scanned: amavisd-new at zimbra.v3.sk Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id IQmvfhoD0qte; Tue, 18 Dec 2018 16:37:48 +0100 (CET) Received: from belphegor.brq.redhat.com (nat-pool-brq-t.redhat.com [213.175.37.10]) by zimbra.v3.sk (Postfix) with ESMTPSA id 099ABCA2D8; Tue, 18 Dec 2018 16:37:47 +0100 (CET) From: Lubomir Rintel To: dri-devel@lists.freedesktop.org Subject: [RFC 09/16] drm/panel: simple: Add support for Innolux LS075AT011 Date: Tue, 18 Dec 2018 16:37:35 +0100 Message-Id: <20181218153742.1313125-10-lkundrak@v3.sk> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181218153742.1313125-1-lkundrak@v3.sk> References: <20181218153742.1313125-1-lkundrak@v3.sk> MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 19 Dec 2018 08:40:40 +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: Lubomir Rintel , Russell King , James Cameron Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This adds support for Innolux LS075AT011 7.5" 1200x900 panel. The panel is not a regular LCD with RGB pixels. Its pixels are just of one color, organized like this: g b r b r g . . . r g b . . . It's controlled by the Himax HX8837, which takes the RGB data, optionally dithers the colors by swizzling and drives the panel. I couldn't determine what the bus_format is. There's six data pins marked FD00, FD01, FD10, FD11, FD20 and FD21. There's no public data sheet. The clock is taken from the OLPC's OpenFirmware, I don't know why precisely that number. It seems to work. Signed-off-by: Lubomir Rintel --- drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index a04ffb3b2174..d084132c3010 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1326,6 +1326,29 @@ static const struct panel_desc innolux_g121x1_l03 = { }, }; +static const struct drm_display_mode innolux_ls075at011_mode = { + .clock = 56930, + .hdisplay = 1200, + .hsync_start = 1200 + 26, + .hsync_end = 1200 + 26 + 6, + .htotal = 1200 + 26 + 6 + 24, + .vdisplay = 900, + .vsync_start = 900 + 4, + .vsync_end = 900 + 4 + 3, + .vtotal = 900 + 4 + 3 + 5, + .vrefresh = 50, + .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, +}; + +static const struct panel_desc innolux_ls075at011 = { + .modes = &innolux_ls075at011_mode, + .num_modes = 1, + .size = { + .width = 152, + .height = 115, + }, +}; + static const struct drm_display_mode innolux_n116bge_mode = { .clock = 76420, .hdisplay = 1366, @@ -2449,6 +2472,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "innolux,g121x1-l03", .data = &innolux_g121x1_l03, + }, { + .compatible = "innolux,ls075at011", + .data = &innolux_ls075at011, }, { .compatible = "innolux,n116bge", .data = &innolux_n116bge,