Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3921670yba; Tue, 7 May 2019 09:07:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQZqfKJB8sg+XUJ9Kl6wBpLG3H9uDOgYaW6zyo3k4tOwWZlAdZNJPmJ2hQvTCdHFaspJIn X-Received: by 2002:a17:902:8b83:: with SMTP id ay3mr40488626plb.187.1557245265174; Tue, 07 May 2019 09:07:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557245265; cv=none; d=google.com; s=arc-20160816; b=DRvlxYf1vJnT+0jQEmn8Tp9eDFQ6sUZByVIiis+KPhC/olvMVi6j9AXItMZG4098tH 8x/bi6/l48cw/vb0yQJYcUhP0WdgZt5lycOPVQ7QD77dxbe/7hZbS+0E8dWHM91GALfP bkiaH5ZrQeqQOq7eIMgZWaDdW95dzfr4gZF40+D/P9qT+0LJFx/M17XOG5ONi+pyPglw FxrMVAey2KyyVAKDgG6nemWcKInWxGdzPPW3qjEuvMHZvGpFX5baUB+5F85nKNkUNupe +qgYRhoRZq7RthPlyC8hunaaG8LEClseX+tepfHALb2M6nzI+nGw91MgqXEJO5qSUyMS hR4w== 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; bh=EO87BAt9ReaXG5Wc+AmEh1yYzbLuJjMQnOpyT4Aepok=; b=LgTOVo2zUjj4EvMXY8RoIrQoZVK3P4m1UtcLUGByXFnHj2Y8zVs0kzP1fa1Gjtdudi vyMfm8zULHzKuwxketPJPJIVtJ2iz3LnH37OPXpJRg3RbIoPOcPLoSYsbb41iJ7XNs6U LQb3ojscSnUodIM9jMoBLv2K3Kwyb0M7OTrkKK4E8b8apqKbdVURbrUqiv4FlafCzOoQ R43BbuLShjhBMOxLawx2DHpTVk1ztFuTbo0cfKf+k3F3vozz+4PXQH8Ydk+0Z/hfSlNT cXrF0hAi2zRj2f6hVMGSua/KItxxtrnvccXkRcWb2mVolyyX0bCX5ZxSMnCACPhPwV06 b6bQ== 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 s31si9573301pga.207.2019.05.07.09.07.14; Tue, 07 May 2019 09:07: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 S1726725AbfEGQFz (ORCPT + 99 others); Tue, 7 May 2019 12:05:55 -0400 Received: from 5.mo1.mail-out.ovh.net ([178.33.45.107]:37844 "EHLO 5.mo1.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726545AbfEGQFy (ORCPT ); Tue, 7 May 2019 12:05:54 -0400 X-Greylist: delayed 1798 seconds by postgrey-1.27 at vger.kernel.org; Tue, 07 May 2019 12:05:52 EDT Received: from player697.ha.ovh.net (unknown [10.108.54.217]) by mo1.mail-out.ovh.net (Postfix) with ESMTP id 9EA0D16E290 for ; Tue, 7 May 2019 17:27:20 +0200 (CEST) Received: from armadeus.com (lfbn-1-7591-179.w90-126.abo.wanadoo.fr [90.126.248.179]) (Authenticated sender: sebastien.szymanski@armadeus.com) by player697.ha.ovh.net (Postfix) with ESMTPSA id 274FD5875A38; Tue, 7 May 2019 15:27:00 +0000 (UTC) From: =?UTF-8?q?S=C3=A9bastien=20Szymanski?= To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, NXP Linux Team Cc: Fabio Estevam , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Mark Rutland , Rob Herring , Daniel Vetter , David Airlie , Thierry Reding , =?UTF-8?q?S=C3=A9bastien=20Szymanski?= , stable@vger.kernel.org Subject: [PATCH RE-RESEND 1/2] drm/panel: Add support for Armadeus ST0700 Adapt Date: Tue, 7 May 2019 17:27:12 +0200 Message-Id: <20190507152713.27494-1-sebastien.szymanski@armadeus.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 11806186423600239639 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrkedtgdelgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd 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. Cc: stable@vger.kernel.org # v4.19 Reviewed-by: Rob Herring 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 9e8218f6a3f2..45ca8d10b66f 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -446,6 +446,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, @@ -2544,6 +2570,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "arm,rtsm-display", .data = &arm_rtsm, + }, { + .compatible = "armadeus,st0700-adapt", + .data = &armadeus_st0700_adapt, }, { .compatible = "auo,b101aw03", .data = &auo_b101aw03, -- 2.19.2