Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3442687imu; Wed, 7 Nov 2018 10:22:27 -0800 (PST) X-Google-Smtp-Source: AJdET5dKu/cs0VP38jWF9MZjbMtOslwJ++IM1Zq3TKa0JxPnTwn5THS0FsxRVGyQcMgNFYo/ycGw X-Received: by 2002:a63:990a:: with SMTP id d10mr1060464pge.279.1541614947069; Wed, 07 Nov 2018 10:22:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541614947; cv=none; d=google.com; s=arc-20160816; b=fIHfbgVocUU//KLRkc0YXS3zhDnWm6LdgxjH8iFGYVbKr0dQWdXjV5y1g8RaxDSVP/ SbN8z/RiEiLAcd0jZZupOCs/aQpo9BwVVdTcM+UZfcMFE1lgWtnci5iK5yqiiyJHXAMu qDPoHHxI8VTIDssx8OuiCY8iCMIf+ASVhU13FszqGzMbbjCK3RVB/DnBbm/Dln+1ZnX/ K7IoZk8uviDpz2pC0Dy2V2B828ER2Fi5Ntf5KIsdnHO6yj6ZZxBfK2cRkszB6BYsarIN T1YLateM241nOM6tKFNi+boGyC2Egs9ruivN+hFNWVx4qh7LVZJcAtfBkPEpVIlTdcGb felA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Ni3WCqFIIwpOLkAw/u0L2OIIbeYqzPW5B8CcANfJkvg=; b=z4cIhkxPRXd75KxFHzqHgcClBXCgpYfzEaZwSnLySxMNUO9G9Y8MH0MPZPR7Ekh24F k+YEL5dtJ/cwEPJUQJLDBvyUhcW1lZ05u9k+WtHfQo5R7WuT3dDMV1CrfsSj43bv52uG 5Tng0Nx3SRq+ccPrLAAT0qJBJgt3QRhuPgFe0je/y6M5UU/60CH4QS++l8sNd4ynd6XX mYqTQZAsB6aIeiMgG1K4Hs/vef1nKgOyYiaxkb/8F4Vh30IL+pfnB9aQnsyzGTJxnq9c LiOH6PJ5KeuSX8hzKbK/hEFuVyRy0epsqJrqUd0+IiiRGE7Kgp36dn+8RgnwVBhGnyHK KclA== 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 g9-v6si1204031pge.245.2018.11.07.10.22.11; Wed, 07 Nov 2018 10:22:26 -0800 (PST) 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 S1728314AbeKHDvn (ORCPT + 99 others); Wed, 7 Nov 2018 22:51:43 -0500 Received: from leonov.paulk.fr ([185.233.101.22]:48984 "EHLO leonov.paulk.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726726AbeKHDvm (ORCPT ); Wed, 7 Nov 2018 22:51:42 -0500 Received: from gagarine.paulk.fr (gagarine [192.168.1.127]) by leonov.paulk.fr (Postfix) with ESMTPS id CE8BFBFE24; Wed, 7 Nov 2018 19:20:07 +0100 (CET) Received: by gagarine.paulk.fr (Postfix, from userid 114) id 52DA8C108E; Wed, 7 Nov 2018 19:20:06 +0100 (CET) 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 55BF2C106E; Wed, 7 Nov 2018 19:17:58 +0100 (CET) From: Paul Kocialkowski To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Thierry Reding , David Airlie , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , linux-sunxi@googlegroups.com, Mark Van den Borre , Gerry Demaret , Luc Verhaegen , Paul Kocialkowski Subject: [PATCH v3 6/8] drm/panel: simple: Add support for the LeMaker BL035-RGB-002 3.5" LCD Date: Wed, 7 Nov 2018 19:18:41 +0100 Message-Id: <20181107181843.27628-7-contact@paulk.fr> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181107181843.27628-1-contact@paulk.fr> References: <20181107181843.27628-1-contact@paulk.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds support for the 3.5" LCD panel from LeMaker, sold for use with BananaPi boards. It comes with a 24-bit RGB888 parallel interface and requires an active-low DE signal Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 07d576d99475..a259874f6039 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1562,6 +1562,30 @@ static const struct panel_desc kyo_tcg121xglp = { .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, }; +static const struct drm_display_mode lemaker_bl035_rgb_002_mode = { + .clock = 7000, + .hdisplay = 320, + .hsync_start = 320 + 20, + .hsync_end = 320 + 20 + 30, + .htotal = 320 + 20 + 30 + 38, + .vdisplay = 240, + .vsync_start = 240 + 4, + .vsync_end = 240 + 4 + 3, + .vtotal = 240 + 4 + 3 + 15, + .vrefresh = 60, +}; + +static const struct panel_desc lemaker_bl035_rgb_002 = { + .modes = &lemaker_bl035_rgb_002_mode, + .num_modes = 1, + .size = { + .width = 70, + .height = 52, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .bus_flags = DRM_BUS_FLAG_DE_LOW, +}; + static const struct drm_display_mode lg_lb070wv8_mode = { .clock = 33246, .hdisplay = 800, @@ -2599,6 +2623,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "kyo,tcg121xglp", .data = &kyo_tcg121xglp, + }, { + .compatible = "lemaker,bl035-rgb-002", + .data = &lemaker_bl035_rgb_002, }, { .compatible = "lg,lb070wv8", .data = &lg_lb070wv8, -- 2.19.1