Received: by 10.192.165.148 with SMTP id m20csp2428757imm; Sun, 6 May 2018 14:49:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZreO/N2XKLrnVlUukI5WRhx4/ow3j8OeRWk1dcWIV2metZjLARwCCqJt2dNyMvsRWlPqzh/ X-Received: by 10.98.118.130 with SMTP id r124mr34244794pfc.80.1525643399203; Sun, 06 May 2018 14:49:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525643399; cv=none; d=google.com; s=arc-20160816; b=tLGWZOsgQVVrha3f91/uV56LiGUB+ZnZse420s1ngq1fFveNvkBqiQO+jvpOgCQOKa kl0YqMm1zooU9uVqYuJ5AYLk7FRK0/E5cebSZhZ43x8mRPGCKJADfEgH0ZKcsR5SFQu7 kVX0bUbdc34qUUHhXUSxZsdLifW7w6v88t52p9w2A6j5Lfvua5qmJ2d1yS2mR6xYYfpO HcaVje6iUUCHm2GbtSLrAGQDQ+qLpyXXPcLP6/XuvdQpjSOOpRWmQfsmKmPc4BeNd05t 6lF++IgKSV/Z6yB7z0vvgtFmVRcLiwn/VkFlVz6i4+On1qmuCtE/vW+yjSn3PoSRHAP4 6RBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=mtvFEY5X7AxYuW2u2GrhZGGeQj7SppALkNOiv/fuDO0=; b=SkMAqJuTBVkzxTm7PIX1/ET57L63L0rh6R5HlEofaPeQtZtyHUlLk4suzUxC0wm3wD 85PvGwgChNsZWcmQ+ZAwkKQWk6S+1gTk5vAnFw055RWozN2GTvVRr1PXU0LYbIxomOP7 PS0PbIiUWOWB7Pgfpz0yVej8fpZFvNTQSFlfwuzD5tYYJ+yOK7vqeOASkgUfE4liImyj jND7RF1TeSAaPQrvQYp7IZTN6YdxU26g5XtotxXtSWCqKMax3LE0vrwjyEbVrXvzjHFf K3eJyQoWKQVEAs5rezkiuK+/7N1k7tLSA5Be3JfnPulZt1LVbixO/8ieVqyXjsR19mGK d63g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r18-v6si8684969pgd.143.2018.05.06.14.49.43; Sun, 06 May 2018 14:49:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751892AbeEFVtd (ORCPT + 99 others); Sun, 6 May 2018 17:49:33 -0400 Received: from leonov.paulk.fr ([185.233.101.22]:54976 "EHLO leonov.paulk.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751834AbeEFVta (ORCPT ); Sun, 6 May 2018 17:49:30 -0400 Received: from gagarine.paulk.fr (gagarine [192.168.1.127]) by leonov.paulk.fr (Postfix) with ESMTPS id 28405C0805; Sun, 6 May 2018 23:49:29 +0200 (CEST) Received: by gagarine.paulk.fr (Postfix, from userid 114) id E44F7C0D53; Sun, 6 May 2018 23:49:27 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on gagarine.paulk.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.1 Received: from localhost.localdomain (collins [192.168.1.129]) by gagarine.paulk.fr (Postfix) with ESMTP id C9A05C0C70; Sun, 6 May 2018 23:49:04 +0200 (CEST) From: Paul Kocialkowski To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org Cc: Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Thierry Reding , devicetree@vger.kernel.org, Paul Kocialkowski Subject: [PATCH v3 1/3] drm/panel: Add RGB666 variant of Innolux AT070TN90 Date: Sun, 6 May 2018 23:48:59 +0200 Message-Id: <20180506214901.23429-1-contact@paulk.fr> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds timings for the RGB666 variant of the Innolux AT070TN90 panel, as found on the Ainol AW1 tablet. The panel also supports RGB888 output. When RGB666 mode is used instead, the two extra lanes per component are grounded. In the future, it might become necessary to introduce a dedicated device-tree property to specify the bus format and maybe specify it in the mode description instead of panel description so that the appropriate mode can be selected for each bus format. Signed-off-by: Paul Kocialkowski --- 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 cbf1ab404ee7..351742df8ee1 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1086,6 +1086,29 @@ static const struct panel_desc innolux_at070tn92 = { .bus_format = MEDIA_BUS_FMT_RGB888_1X24, }; +static const struct drm_display_mode innolux_at070tn90_mode = { + .clock = 40000, + .hdisplay = 800, + .hsync_start = 800 + 112, + .hsync_end = 800 + 112 + 1, + .htotal = 800 + 112 + 1 + 87, + .vdisplay = 480, + .vsync_start = 480 + 141, + .vsync_end = 480 + 141 + 1, + .vtotal = 480 + 141 + 1 + 38, + .vrefresh = 60, +}; + +static const struct panel_desc innolux_at070tn90 = { + .modes = &innolux_at070tn90_mode, + .num_modes = 1, + .size = { + .width = 154, + .height = 86, + }, + .bus_format = MEDIA_BUS_FMT_RGB666_1X18, +}; + static const struct display_timing innolux_g101ice_l01_timing = { .pixelclock = { 60400000, 71100000, 74700000 }, .hactive = { 1280, 1280, 1280 }, @@ -2154,6 +2177,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "innolux,at070tn92", .data = &innolux_at070tn92, + }, { + .compatible = "innolux,at070tn90", + .data = &innolux_at070tn90, }, { .compatible ="innolux,g101ice-l01", .data = &innolux_g101ice_l01 -- 2.17.0