Received: by 10.192.165.148 with SMTP id m20csp3586691imm; Mon, 7 May 2018 15:05:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo0Olkx2zOkEBz2zWIQHuoHpNnIJ3OoYh6ID300AKPybQ5xUG89373HnGesICcIa6aLfJWi X-Received: by 2002:a17:902:c81:: with SMTP id 1-v6mr38342725plt.126.1525730733412; Mon, 07 May 2018 15:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525730733; cv=none; d=google.com; s=arc-20160816; b=KCxDd51E0EKgg9NOumbVaEJgHFp+zzgTJh5T8L9AGDa8tp0wOmQi3lBDzh4FYfBZ2F P9/6QPswwO4CvY/4kLKt4QnyFyLLbpxgovr4jAZYTiMGZ/RA7F03EflzGikQk2ChfnvR pE96gkqHaWUMHzjk+SFyTxCOgNBPNfMSzuUDAc51YVIgj+jjJVcgg/BL42J5+y6KKgxE uth+sJNumWjrB9ur5q9UFfVvt8bDimhgVjo/OiVIAGJA/o13J6gd43ChypARi0m5XNYO bC4h814Cw6fw9zXI0E5mEuKJQ34g/aN5NIYBfO/gLXbyebvQgkgGtg/zzjvjyXB/0qc4 3pTw== 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=H6BWQRV0A9xsM5hYMXKMOcdHENhXdJzrWM9qblghwCk=; b=Kwid3n15VQ8736kBSTfPqGTRKpUwhNvGGtvrc1GQbzklEvNeToP1GpBmoqFe/czKjd By3ckeFFmA68ehPs4AufNqcOzWYpiJv9XGZLsr5iE+XAH1NCdnbeh1u6L4vjyMEQRckj POJDVg2EuxOxBqu1aMtliXbGNZpg7tPSFTVfP6pkFYmFoItkBJr/CzYLLQ0jarJlEkd1 VCXt8I98E8w7uZr7xaFludL7YzN/MuPJ0k6l8zwGC8ypR5ZXLxlHWbjqWzWv6eFIjDvb QCHBuIPmAyVuw21gR8zWWflMzuXa2dhNo8Fs3wiG3gx8hmcFpJsx6c/WTnQl6SOGlV/v rOdw== 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 i4-v6si18515451pgr.362.2018.05.07.15.05.18; Mon, 07 May 2018 15:05:33 -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 S1752965AbeEGWFG (ORCPT + 99 others); Mon, 7 May 2018 18:05:06 -0400 Received: from leonov.paulk.fr ([185.233.101.22]:42888 "EHLO leonov.paulk.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752755AbeEGWFF (ORCPT ); Mon, 7 May 2018 18:05:05 -0400 Received: from gagarine.paulk.fr (gagarine [192.168.1.127]) by leonov.paulk.fr (Postfix) with ESMTPS id 93199C070A; Tue, 8 May 2018 00:05:03 +0200 (CEST) Received: by gagarine.paulk.fr (Postfix, from userid 114) id 49BFCC0D58; Tue, 8 May 2018 00:05:02 +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 ADBFBC0D51; Tue, 8 May 2018 00:04:29 +0200 (CEST) From: Paul Kocialkowski To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-sunxi@googlegroups.com Cc: Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Thierry Reding , David Airlie , Paul Kocialkowski Subject: [PATCH v4 1/3] drm/panel: Add RGB666 variant of Innolux AT070TN90 Date: Tue, 8 May 2018 00:04:11 +0200 Message-Id: <20180507220413.21990-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 to use instead of the default one for the panel. This will allow supporting different bus formats for the same panel modes. 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..32e30d5a8f08 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_at043tn24 = { .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE, }; +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 drm_display_mode innolux_at070tn92_mode = { .clock = 33333, .hdisplay = 800, @@ -2151,6 +2174,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "innolux,at043tn24", .data = &innolux_at043tn24, + }, { + .compatible = "innolux,at070tn90", + .data = &innolux_at070tn90, }, { .compatible = "innolux,at070tn92", .data = &innolux_at070tn92, -- 2.17.0