Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2414791ybc; Wed, 20 Nov 2019 13:56:23 -0800 (PST) X-Google-Smtp-Source: APXvYqwM6FqiaF/t1AB4OoVSOHx6UZzXUyK0uD6jkFX9MdakXS/xxk5IID+x4CMk+H8Ew80x35ou X-Received: by 2002:a17:906:2f09:: with SMTP id v9mr8176299eji.91.1574286983813; Wed, 20 Nov 2019 13:56:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574286983; cv=none; d=google.com; s=arc-20160816; b=eybh49N6f/E8l+CoadOjaX1O3mqTQVUeF6UKCen6VnVJIT8GaZ5C+Gs7OmDiSUx7tL z+TeLu5XYWD6/TpYggX6fAODJdE+oX14CiIrIPtl9Pr7bHZ+/TRV38vcP+vzviqKPRE0 VrQPcPDLv9ywNQlrVJfJCHp7FFxWglihXxK3dJNRsFt/qdzLH5fGDZGVyhfrnq4eUYeB 6sFTWZEz5UdEOLi5nkUgiaNAZpQ+VdcTCqDzQSUYH5pn2rZR+tyl8ce8HrdNyJAP5SyW MpDWsxoQHtlM2Oa8jOyl+yxTHq9b+1qUGNElijVwIvOIRT3IfoMKENCHUkrRC1R+sr/D cFMg== 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=2NC3YSmjlgyIifVakW2lHFCAG1jaqNBvFn7uXoj7Wj0=; b=zyZRrwvsNucds5PQIOXofFWxjBUOSC/vJixqIpLO8nNhSVteq0c3ANfm0CuJpcbk0+ 2SwAuWHJxz2+bul9XTTYlfD6dN9nISrQaqbbWEmh6KZuoctcadrC68fQD+67DG27LCe2 sj/2DjfRw7FPwAR7G2kNrfDNVf7l+0V0AqZ4tCl8nx5L9GslWvcVuYEAgIQm5cS0D3i6 fxCpUpASfsET2LaKgeHjVzrn1E0iFkbub/CJoiM2Nxhz9EiLH/5W/OgS0GVFDWzJ7UWj BlNzjDHbcUyRbggMvBYtgKlts67E0RdU16HWyMTmuIA+xjhg/uGsob1+mjgmb63dYtOI nhow== 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 fx21si311880ejb.254.2019.11.20.13.55.59; Wed, 20 Nov 2019 13:56:23 -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 S1726952AbfKTVzE (ORCPT + 99 others); Wed, 20 Nov 2019 16:55:04 -0500 Received: from mail.manjaro.org ([176.9.38.148]:47862 "EHLO manjaro.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbfKTVzE (ORCPT ); Wed, 20 Nov 2019 16:55:04 -0500 Received: from localhost (localhost [127.0.0.1]) by manjaro.org (Postfix) with ESMTP id 9393836CEEA8; Wed, 20 Nov 2019 22:35:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at manjaro.org Received: from manjaro.org ([127.0.0.1]) by localhost (manjaro.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ph4jUNY91zd4; Wed, 20 Nov 2019 22:35:44 +0100 (CET) From: Tobias Schramm To: dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org, Tobias Schramm Subject: [PATCH 1/1] drm/panel: simple: Add support for BOE NV140FHM-N49 panel to panel-simple Date: Wed, 20 Nov 2019 22:34:40 +0100 Message-Id: <20191120213440.924563-2-t.schramm@manjaro.org> In-Reply-To: <20191120213440.924563-1-t.schramm@manjaro.org> References: <20191120213440.924563-1-t.schramm@manjaro.org> 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 patch adds support for the BOE NV140FHM-N49 panel to the panel-simple driver. The panel is used by the pine64 Pinebook Pro. Signed-off-by: Tobias Schramm --- drivers/gpu/drm/panel/panel-simple.c | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 5d487686d25c..6320df9765f3 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1036,6 +1036,38 @@ static const struct panel_desc boe_nv101wxmn51 = { }, }; +static const struct drm_display_mode boe_nv140fhmn49_modes[] = { + { + .clock = 148500, + .hdisplay = 1920, + .hsync_start = 1920 + 48, + .hsync_end = 1920 + 48 + 32, + .htotal = 2200, + .vdisplay = 1080, + .vsync_start = 1080 + 3, + .vsync_end = 1080 + 3 + 5, + .vtotal = 1125, + .vrefresh = 60, + }, +}; + +static const struct panel_desc boe_nv140fhmn49 = { + .modes = boe_nv140fhmn49_modes, + .num_modes = ARRAY_SIZE(boe_nv140fhmn49_modes), + .bpc = 6, + .size = { + .width = 309, + .height = 174, + }, + .delay = { + .prepare = 210, + .enable = 50, + .unprepare = 160, + }, + .bus_format = MEDIA_BUS_FMT_RGB666_1X18, + .connector_type = DRM_MODE_CONNECTOR_eDP, +}; + static const struct drm_display_mode cdtech_s043wq26h_ct7_mode = { .clock = 9000, .hdisplay = 480, @@ -3161,6 +3193,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "boe,nv101wxmn51", .data = &boe_nv101wxmn51, + }, { + .compatible = "boe,nv140fhmn49", + .data = &boe_nv140fhmn49, }, { .compatible = "cdtech,s043wq26h-ct7", .data = &cdtech_s043wq26h_ct7, -- 2.24.0