Received: by 10.192.165.148 with SMTP id m20csp2397339imm; Sun, 6 May 2018 13:58:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpdHC7SOn5mhVjSHJTcB1/ZUlFeLTl53R148Zigo5/BRF1h7iXaC0YWcMNDfpI/ri+/XPcE X-Received: by 2002:a63:8c0d:: with SMTP id m13-v6mr27699821pgd.90.1525640301415; Sun, 06 May 2018 13:58:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525640301; cv=none; d=google.com; s=arc-20160816; b=eiRaNobzLzT80DidjWe0xA9xTFpWYSC6rAVAwwjyFfo89YiLYCH63y581st7hS8aDC Iy5mGkxwFBUaPXCxKSptFPMYBlI5uK1ZrrCJWsHhqgjKE3E+W0pHhKltSTjoUPu17KnR lg/k/UWscw+mbAkVxmBD1/b6fVk0TjjKTwtg7nVOiWxdrbEvkLyaXX8RXR6x5DFpt+S9 D3kh/Apcu9IKBvHPXyk2/IsNo8+yeRPv5LCFNhpwuPWZapnPTFvG6hfaId8fPWzv8+Qi xoK7rhVYzWXMJ1onIPqgp3MXZdYq6Pgn+lBWKCNLj+U6LpALTyXN2u/JCjG8tfvQINZM fwWQ== 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=H6lz/vQIpuwkJxYhCv3Ta/r7xHjb2K+1M00csdb/y3CwfLzEs6Cwbg5hrOHe7yzLPJ D0FYPsWuzBZmfVSDDuZrfM9VpXK0fSL2SRGtEJXAIR+tI591wbunYZjPh0tU48HVorh5 C8zRnLXAcQjVTs7NZ85QtwnswVoOnWByYcqvhfBcDEN8KHTujvoOBTV7fVeUE78lntdm 7027TzYMgXDIe/aXZXWXqzRWKLuKc8/RKWAWmDAC2LLnmGhGZsltepifBXNH2tvYh3Na rRB/vr+OFcZfcUH7WJkSV+DKlVKOfa3l247lNwk80czwNb+wLel0mqRkCpvJx39RRlIy gJfw== 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 s88si21181057pfe.290.2018.05.06.13.58.07; Sun, 06 May 2018 13:58:21 -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 S1751866AbeEFU4m (ORCPT + 99 others); Sun, 6 May 2018 16:56:42 -0400 Received: from leonov.paulk.fr ([185.233.101.22]:53354 "EHLO leonov.paulk.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751820AbeEFU4k (ORCPT ); Sun, 6 May 2018 16:56:40 -0400 Received: from gagarine.paulk.fr (gagarine [192.168.1.127]) by leonov.paulk.fr (Postfix) with ESMTPS id 3F025C0808; Sun, 6 May 2018 22:56:39 +0200 (CEST) Received: by gagarine.paulk.fr (Postfix, from userid 114) id 2E908C0D54; Sun, 6 May 2018 22:56:38 +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 BF336C077B; Sun, 6 May 2018 22:56:21 +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 1/3] drm/panel: Add RGB666 variant of Innolux AT070TN90 Date: Sun, 6 May 2018 22:56:17 +0200 Message-Id: <20180506205619.5591-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