Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp155904pxb; Wed, 18 Nov 2020 00:34:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJyy7vhAZt8qSkH5Y0NOb9XPbvlESAa/fO+0YZuricSHbuIznZMqh21OP9CO0ZYx7jcqh69m X-Received: by 2002:a17:906:868b:: with SMTP id g11mr23339286ejx.263.1605688479268; Wed, 18 Nov 2020 00:34:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605688479; cv=none; d=google.com; s=arc-20160816; b=xQua+zQsTVokPjE1o7zGyk7xZ1x/sxAJh4ihNQ9sVgibZWxUnQiz4BiQkW2IO5cL+X uzvTTu1f5vThWmHhdBLgeaJg5VGenul73ybOsncdvc533PVf6aFXH1VjIaFktE+YGNIo WuU0bXobnIZHfAzpmoPsatmZ2FLhYQirKM/Vz2rTZT4s7Z6CZDVs50ewa10zb3NsNaNw mn6wjp0RUXZgZo5qu6/BA6Xu9GJnztCJMvGJD90yHNc1fEcmQ4qexKFBcV0fm48BOFl2 4To3y7VXfj/j7E/f9r8kgQ8I7UiB3VC86+KZRvhOYL8iZMjgq7XtFXPCBxMfrt8DIlz3 anfg== 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 :references:in-reply-to:message-id:date:subject:to:from; bh=SK1ko9a8yc88BunfWE9BRwUpOg8h4UjFH3vz9hHzcY0=; b=Rpv291ZKwmV/MYoNnbb+8m2eE5kl0l+vuc7t4DAQjid4eQoauMo4jIh4x+pxVzRAAP xHijQRD2bhtvV8BXHLoWHyQzSIl6e4osddiSSaFqty3vlhTiJcmfST2nUIydaJ1Q279l bn35fmB6cEca+IArkEu4DV3HP/zHDKVPhbITJo/r5/kx9e/1pgKOuz/TUy19w6iYhAzt cz2cO2sDk4PTx0McEuvtza6InHb44CwZdYyUxXHPzihXk79RS+K5PL5xjrLLZAKLFlPx TatsR79vCRKEZVvFKhX/CtkH+huDEVkGirJBSkv1F15zKDUrYnXaTnIoYHob8PlpUMsu 0LVg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si13842827eje.479.2020.11.18.00.34.17; Wed, 18 Nov 2020 00:34:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727684AbgKRIaE (ORCPT + 99 others); Wed, 18 Nov 2020 03:30:04 -0500 Received: from honk.sigxcpu.org ([24.134.29.49]:53572 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727648AbgKRIaC (ORCPT ); Wed, 18 Nov 2020 03:30:02 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 837E1FB03; Wed, 18 Nov 2020 09:29:59 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YKdmff-a6BE0; Wed, 18 Nov 2020 09:29:58 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id B252E43F70; Wed, 18 Nov 2020 09:29:53 +0100 (CET) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Ondrej Jirman , Linus Walleij , Arnd Bergmann , Krzysztof Kozlowski , Lubomir Rintel , Mark Brown , Geert Uytterhoeven , allen , Kuninori Morimoto , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/6] drm/panel: mantix: Support panel from Shenzhen Yashi Changhua Intelligent Technology Co Date: Wed, 18 Nov 2020 09:29:51 +0100 Message-Id: <8855b4fc681c675182ce33e0a6cba46bab2bac43.1605688147.git.agx@sigxcpu.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The panel uses the same driver IC and has the same resolution but a slightly different default mode. It seems it can work with the same init sequence. Signed-off-by: Guido Günther Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c index b057857165b0..30f28ad4df6b 100644 --- a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c +++ b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c @@ -205,6 +205,21 @@ static const struct drm_display_mode default_mode_mantix = { .height_mm = 130, }; +static const struct drm_display_mode default_mode_ys = { + .hdisplay = 720, + .hsync_start = 720 + 45, + .hsync_end = 720 + 45 + 14, + .htotal = 720 + 45 + 14 + 25, + .vdisplay = 1440, + .vsync_start = 1440 + 175, + .vsync_end = 1440 + 175 + 8, + .vtotal = 1440 + 175 + 8 + 50, + .clock = 85298, + .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, + .width_mm = 65, + .height_mm = 130, +}; + static int mantix_get_modes(struct drm_panel *panel, struct drm_connector *connector) { @@ -326,6 +341,7 @@ static int mantix_remove(struct mipi_dsi_device *dsi) static const struct of_device_id mantix_of_match[] = { { .compatible = "mantix,mlaf057we51-x", .data = &default_mode_mantix }, + { .compatible = "ys,ys57pss36bh5gq", .data = &default_mode_ys }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, mantix_of_match); -- 2.29.2