Received: by 10.213.65.68 with SMTP id h4csp4410649imn; Tue, 10 Apr 2018 14:35:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx4846Rey5g7XpbT9cnBs4Vt5VEjXemxLdaYp5PDhwXBUYeLJsqdhSA8bkVFd/Htii4hFwdrE X-Received: by 10.98.80.145 with SMTP id g17mr1706194pfj.71.1523396145278; Tue, 10 Apr 2018 14:35:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523396145; cv=none; d=google.com; s=arc-20160816; b=B5pE/5IS06QBpXgKcNmoTl20fi6oWmg0blJxL0ZFR6iaqvCUzBFqWhRBZAq3a11jc8 gO9ihoyg7oFO70PlN/lIN/13LX7a2VPbBR4frEhnXsxodyNdfnKLeEX9dDVgJuhfYF33 ZLv+P0gwDj2ljgYpHQ2zAgDBniciF99djRFxpvbrt6/JEcHecNasNdtb+jPUZS/DRwFo YDQ98GW/zDsC5/MPBfNAgprWYLHOkXSm4xswZ3fgW5Xym4V3f6e8tnwZGdh+0rgsZIBP X6wy/Mz6CPOWWdA/6BxM8orV9iYdokwp+PsJfKcytY+DMYPHPVUUd89+aXQCMbzS6+uq s73Q== 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=sQcpDYjJ5x6lgBU0kjRGigXr2blufgjDCLZsNlbvTos=; b=HLdsZDxXwX4fbawA/kvC20iaryivyQVZh9JMlYUZOHspPP4dB2c3XVJhFOJ1dNG/I6 m8ixxdg65KlJcAAToGNoUdCvt/Kw4Sy905N/lKRBQ9aXoqwMh/GbzGTebGMmsKTzAiSW T8dOSOC1TbaVJdOZO66Mu+vf7MAtzrJ84sJAVTs7Ayc0PvbNIjfm+CyBYfEy/RKpf694 w5JEGw0jLYwhdbRSjoPhIKYwql3Yua0nVi5qs2PlPGkYvyoJwYxJcso+MxHGhzUxZRKu /GpPdy1S+HoLNsVZ4gVHDUpX3ff4MrVYRT4uH115TRr/V97Dlc2blikOR8EF8aBnADr2 BFIQ== 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 m63-v6si3498852pld.52.2018.04.10.14.35.08; Tue, 10 Apr 2018 14:35:45 -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 S1752574AbeDJVcM (ORCPT + 99 others); Tue, 10 Apr 2018 17:32:12 -0400 Received: from 220.107.128.77.rev.sfr.net ([77.128.107.220]:53836 "EHLO gagarine.paulk.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752284AbeDJVcK (ORCPT ); Tue, 10 Apr 2018 17:32:10 -0400 Received: by gagarine.paulk.fr (Postfix, from userid 114) id A8E24C0C0B; Tue, 10 Apr 2018 23:32:08 +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 52FE8C0BA4; Tue, 10 Apr 2018 23:31:37 +0200 (CEST) From: Paul Kocialkowski To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sunxi@googlegroups.com Cc: Rob Herring , Mark Rutland , Russell King , Maxime Ripard , Chen-Yu Tsai , Thierry Reding , David Airlie , Paul Kocialkowski Subject: [PATCH 1/3] drm/panel: Add RGB666 variant of Innolux AT070TN92 Date: Tue, 10 Apr 2018 23:31:27 +0200 Message-Id: <20180410213129.24049-1-contact@paulk.fr> X-Mailer: git-send-email 2.16.3 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 AT070TN92 panel, as found on the Ainol AW1 tablet. 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 5591984a392b..efeb2f2162bc 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1063,6 +1063,29 @@ static const struct panel_desc innolux_at070tn92 = { .bus_format = MEDIA_BUS_FMT_RGB888_1X24, }; +static const struct drm_display_mode innolux_at070tn92_rgb666_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_at070tn92_rgb666 = { + .modes = &innolux_at070tn92_rgb666_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 }, @@ -2105,6 +2128,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "innolux,at070tn92", .data = &innolux_at070tn92, + }, { + .compatible = "innolux,at070tn92-rgb666", + .data = &innolux_at070tn92_rgb666, }, { .compatible ="innolux,g101ice-l01", .data = &innolux_g101ice_l01 -- 2.16.3