Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1816129pxu; Tue, 24 Nov 2020 09:32:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwG5smBI2PEdFgNtF+Dm5vab0wGFCaz5dXKfXsj8ggmJhoz8fvpZ1pFf6x+WhnOPNrIllXd X-Received: by 2002:a17:906:c826:: with SMTP id dd6mr5104668ejb.191.1606239127426; Tue, 24 Nov 2020 09:32:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606239127; cv=none; d=google.com; s=arc-20160816; b=kNHzZ1MQuOJYs2J2kWbXFrl7dsZi1Nei7jDj1ykNIQm8nP+RioUlHzilrO/qLMkPV8 q1fB1USwMed5vF0l+bs+FZ0fc+tPNDgPbkj9Hyi0kw4csus/cVbnyDyjlEjESQI42nKR KeQEJciuSaCzmYtVklmLLENRWVPhxwP4gSvI40EzoXfRf62HGhws7OFVCCsApCimp/oK Nmnns3p2UVNP9eZ9uOEX/tFqvY86eQuNShURtHTVSqtRWcA767AKINWtHDYRHXc3J4vH j4Dj6ez0YiHeFVAomo4MDHY7UOV6iDyuYdvoP8UeHSt1Xymp6Li+qSjsOnqcdM5Tg562 Ox2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:dkim-signature:dkim-filter:from; bh=4ga0QmKCQsinovQ8SXU34vSpoMZpFs0h9zSfD5Dgeh0=; b=zLipuNBJTFpOKXvCUyOhD1meIZiXzey9Bn4ZlhkvYwhYfsrL/1C37icIfpM37CUifS H2fOjCzkOpnD/n+pTVWBTE2oe4K6TMfN3IgsGk6CmTgeb3Rq0KcW2pavwqqMhOB0/z7f kgQW3vSXENFtHf+3fN+QKbuh2PNHpl4wscUZal2pUsFbHktWckPhE8JO+f4i2+zJjVVw 8TosKV9dl6n5qJgb3nnZ6Z/+bGVGANsUDcfl6nerKwIOnMVqptq2R11uZKp23Ex+KaXF pnb5O5Hje8I/plG7GJ1fcJZUU4rvXDzVAVvgT16xnpbFZ2v2+Jq6E255/KMq5hrV0oXY ItPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mntre.com header.s=mntremail header.b=QAKTCw8n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mntre.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e17si9351536edq.469.2020.11.24.09.31.44; Tue, 24 Nov 2020 09:32:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mntre.com header.s=mntremail header.b=QAKTCw8n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mntre.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390837AbgKXR0n (ORCPT + 99 others); Tue, 24 Nov 2020 12:26:43 -0500 Received: from softboy.mntmn.com ([91.250.115.15]:34498 "EHLO softboy.mntmn.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390825AbgKXR0n (ORCPT ); Tue, 24 Nov 2020 12:26:43 -0500 From: "Lukas F. Hartmann" DKIM-Filter: OpenDKIM Filter v2.11.0 softboy.mntmn.com A45C4720EE6 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mntre.com; s=mntremail; t=1606238800; bh=sMffCRC8t+pVcO6WbR04nkC1P/SDITAOk+2n+2D+EGg=; h=From:To:Cc:Subject:Date:From; b=QAKTCw8n2obR9UHANnvm8VhoMSBiqe+vsHOY0yp785hxcjZ0nCvt9RM9gzYMySAvd ynyQp4rNLA1zC+QtibDBOICDCwrsIAqaj5HQCXYkrewU92P9O9E20HjfWbCiLpGkVE OUR2bws5hkLvYarRGkqC+voJSu3jOnJC2tq1posC5FssgvxofC9RhWWpA/I8iqJkbs 3pmPk3wInhwZ8QY6O8BlqB9Zc0yvXyAS8iY+xv4iNEZggMOyi+4OqRrRVsk4PhGeTe o8VqON5W9V++UQrdiR4dzzWatrTzhMlCJOlu6H3OonPMUrnQyBJDEXSTHp+QFmeaIJ Nh82Im9OTQXWw== To: lukas@mntre.com Cc: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] panel-simple: add Innolux N125HCE-GN1 Date: Tue, 24 Nov 2020 18:26:04 +0100 Message-Id: <20201124172604.981746-1-lukas@mntre.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Innolux N125HCE-GN1 display is used in the MNT Reform 2.0 laptop, attached via eDP to a SN65DSI86 MIPI-DSI to eDP bridge. Signed-off-by: Lukas F. Hartmann --- drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 2be358fb4..774acab52 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2263,6 +2263,31 @@ static const struct panel_desc innolux_n116bge = { }, }; +static const struct drm_display_mode innolux_n125hce_gn1_mode = { + .clock = 162000, + .hdisplay = 1920, + .hsync_start = 1920 + 40, + .hsync_end = 1920 + 40 + 40, + .htotal = 1920 + 40 + 40 + 80, + .vdisplay = 1080, + .vsync_start = 1080 + 4, + .vsync_end = 1080 + 4 + 4, + .vtotal = 1080 + 4 + 4 + 24, +}; + +static const struct panel_desc innolux_n125hce_gn1 = { + .modes = &innolux_n125hce_gn1_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 276, + .height = 155, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .bus_flags = DRM_BUS_FLAG_DATA_MSB_TO_LSB, + .connector_type = DRM_MODE_CONNECTOR_eDP, +}; + static const struct drm_display_mode innolux_n156bge_l21_mode = { .clock = 69300, .hdisplay = 1366, @@ -4092,6 +4117,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "innolux,n116bge", .data = &innolux_n116bge, + }, { + .compatible = "innolux,n125hce-gn1", + .data = &innolux_n125hce_gn1, }, { .compatible = "innolux,n156bge-l21", .data = &innolux_n156bge_l21, -- 2.28.0