Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3227648imm; Tue, 17 Jul 2018 00:52:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdIMNeSZ46tbdlqjJyBFtedfgBSCUVsEmD3ajhYUVsisCr+cy4W4rJ6gOmz5GZsBhIJybyq X-Received: by 2002:a17:902:a613:: with SMTP id u19-v6mr577796plq.234.1531813946994; Tue, 17 Jul 2018 00:52:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531813946; cv=none; d=google.com; s=arc-20160816; b=nze+bHEQfZ/OqEZB1gLNxES3TBVAlKX8CApMpV0rA95iP8QIK+xcGoGkiNyvmygO2K Y2yBF3DhklHdovsN+9D/RHT45LvVvnt6FaboP/JusyvrwRqDXFB2dFsW8IN3marpVy6C no70xryDW1oHzOu6PV/JQc0dY/ZpRf/U97TLCMBvQX+zo0vFAbA44UKQbtWwqlt3hvi7 ZYu+apDpGZMyj9jCJNDWXTYBQyvAgOjV60EugdfDtJwb5pO6KbfEOCuWP0CJZ6H3yHMv S1QkR2zkNb1yMTLlGDQ1kI5auuCElv0MEUk9UgEcZsipSEOxu83Ujv9gL9FUaWk08K24 W+Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=GWGTm3IUrGYPAaBxyX14HiGsvN28JqwVWEaqN1CerIQ=; b=IpnK6SDk+R2auLw16u/ORwFps+yFNl0wO0ZmfaJYvgD+i5QaNRQCvXRqVpM9lO3HTZ 9h7GxWd4zL+ugEuNNKEphxgmzpxDI0zjXvEkqOK+0NWHhnKNunK0FFNFBKuMD8Ojg7K3 mtJzmWj011DTI1rXThidpghycSYIeFEe3mdsWJHFK5Of8lu8WVQN9oilvMBk4U2XO5wN Cx+OkE+yligdEKTnaoeF7V2kqnfPg+ukOSmp9mJ9momj4+NTtFGYzN5QKQcm5obS35xS AucQG3GMMvw8+omiLImne8Jp7UcbzcWMv/J0hn98cJyd+CQXqEbb90QltUdda7pJ3Rfq RGkQ== 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 n5-v6si297255plk.352.2018.07.17.00.52.12; Tue, 17 Jul 2018 00:52:26 -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 S1729035AbeGQIWn (ORCPT + 99 others); Tue, 17 Jul 2018 04:22:43 -0400 Received: from 9.mo179.mail-out.ovh.net ([46.105.76.148]:50238 "EHLO 9.mo179.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727961AbeGQIWn (ORCPT ); Tue, 17 Jul 2018 04:22:43 -0400 Received: from player691.ha.ovh.net (unknown [10.109.143.220]) by mo179.mail-out.ovh.net (Postfix) with ESMTP id B3E95D4E60 for ; Tue, 17 Jul 2018 09:11:57 +0200 (CEST) Received: from localhost.localdomain (22.220.201.77.rev.sfr.net [77.201.220.22]) (Authenticated sender: sebastien.szymanski@armadeus.com) by player691.ha.ovh.net (Postfix) with ESMTPSA id D896F26008E; Tue, 17 Jul 2018 09:11:39 +0200 (CEST) From: =?UTF-8?q?S=C3=A9bastien=20Szymanski?= To: Thierry Reding , David Airlie , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?S=C3=A9bastien=20Szymanski?= Subject: [PATCH 1/2] drm/panel: Add support for Armadeus ST0700 Adapt Date: Tue, 17 Jul 2018 09:23:17 +0200 Message-Id: <20180717072318.18730-1-sebastien.szymanski@armadeus.com> X-Mailer: git-send-email 2.16.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 10861837878486389893 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtiedrheekgdduudefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddm Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds support for the Armadeus ST0700 Adapt. It comes with a Santek ST0700I5Y-RBSLW 7.0" WVGA (800x480) TFT and an adapter board so that it can be connected on the TFT header of Armadeus Dev boards. Signed-off-by: Sébastien Szymanski --- .../display/panel/armadeus,st0700-adapt.txt | 9 +++++++ drivers/gpu/drm/panel/panel-simple.c | 29 ++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/armadeus,st0700-adapt.txt diff --git a/Documentation/devicetree/bindings/display/panel/armadeus,st0700-adapt.txt b/Documentation/devicetree/bindings/display/panel/armadeus,st0700-adapt.txt new file mode 100644 index 000000000000..a30d63db3c8f --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/armadeus,st0700-adapt.txt @@ -0,0 +1,9 @@ +Armadeus ST0700 Adapt. A Santek ST0700I5Y-RBSLW 7.0" WVGA (800x480) TFT with +an adapter board. + +Required properties: +- compatible: "armadeus,st0700-adapt" +- power-supply: see panel-common.txt + +Optional properties: +- backlight: see panel-common.txt diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index cbf1ab404ee7..80d3b0106fce 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -437,6 +437,32 @@ static const struct panel_desc ampire_am800480r3tmqwa1h = { .bus_format = MEDIA_BUS_FMT_RGB666_1X18, }; +static const struct display_timing santek_st0700i5y_rbslw_f_timing = { + .pixelclock = { 26400000, 33300000, 46800000 }, + .hactive = { 800, 800, 800 }, + .hfront_porch = { 16, 210, 354 }, + .hback_porch = { 45, 36, 6 }, + .hsync_len = { 1, 10, 40 }, + .vactive = { 480, 480, 480 }, + .vfront_porch = { 7, 22, 147 }, + .vback_porch = { 22, 13, 3 }, + .vsync_len = { 1, 10, 20 }, + .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW | + DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE +}; + +static const struct panel_desc armadeus_st0700_adapt = { + .timings = &santek_st0700i5y_rbslw_f_timing, + .num_timings = 1, + .bpc = 6, + .size = { + .width = 154, + .height = 86, + }, + .bus_format = MEDIA_BUS_FMT_RGB666_1X18, + .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE, +}; + static const struct drm_display_mode auo_b101aw03_mode = { .clock = 51450, .hdisplay = 1024, @@ -2076,6 +2102,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "ampire,am800480r3tmqwa1h", .data = &ire_am800480r3tmqwa1h, + }, { + .compatible = "armadeus,st0700-adapt", + .data = &armadeus_st0700_adapt, }, { .compatible = "auo,b101aw03", .data = &auo_b101aw03, -- 2.16.4