Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4047906pxb; Tue, 17 Nov 2020 09:55:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJx330MTrpBv5k6naaBwQ/kd025Y5fIxEiTZvkKCP9SyUNvVfo6yAZEPJdog97UkwgafiPwP X-Received: by 2002:a05:6402:3098:: with SMTP id de24mr21577270edb.155.1605635706522; Tue, 17 Nov 2020 09:55:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605635706; cv=none; d=google.com; s=arc-20160816; b=BAaWAUcKKovlaQnQVAu+D+sg0U7rA5AiViGRsESzUpmhwWqN9iRn9RFQ3OEnMIvq3N m+A9XaSFENb849GirCMWJUNI/PGCpqPL8y/9Zzc5VvHA3GeqO2thWBkJGANKCQr0fa+6 BMgisLC8AqUm98xlnxgeiHofUtg6ngeSSoAjKwIi3aQMdgtgSFPL5358MRGk53XwCNZS 8868NyFq0khe8LZj+vFiA4cP0agclRcg7mtk7AZpejoTCbjYW0WrMg6wF7elAivnSFWE 06x4pmyKeZKgNUwoU0Weqc4V0KepqFRmgj3uFW2MfDcAiZ5ubdJaLexpoeV0sJY4K4zK WYtw== 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=5muBdyxmI6yXk5M3DZL8qfgISwnu50FMiD+eqp/xP5g=; b=M6U1E7YXuxPD6jtWkrBl3wW3T58PiHzV/QAkORJdV1i63CI0cVAstTktuD56t3qeKd rjjEYB/AA/hfP87nWBJWtV0bRbYxPJnPFkenJSRpDvHZwes8rOwfP7Y41gBEmpPCEfxO ZyLsfI9MqouGHyOakjEke66oxsx3yNG6LJpMuUHROx9di8nOR8js7gc9Na6ArGlXmH9I AgDLdeCNWLwlYGL8XpoyLxW1WqgzIxqLYQsCV2uod3/HttRh0rewCmfi5SwzZMiaDCR8 9JDBsba7ZLkCXN//q2dRmhVfktAaQhaRZLhKeR2jHMOz3R/cwDSa5SjjD82T/9Qw/Au3 MVNw== 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 cc8si15757287edb.163.2020.11.17.09.54.43; Tue, 17 Nov 2020 09:55:06 -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 S1730424AbgKQRt6 (ORCPT + 99 others); Tue, 17 Nov 2020 12:49:58 -0500 Received: from honk.sigxcpu.org ([24.134.29.49]:34918 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730301AbgKQRtp (ORCPT ); Tue, 17 Nov 2020 12:49:45 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 9AE73FB04; Tue, 17 Nov 2020 18:49:42 +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 LTzbWBHTT_Ih; Tue, 17 Nov 2020 18:49:39 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 145A843F6F; Tue, 17 Nov 2020 18:49:38 +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 v1 2/6] drm/panel: mantix: Tweak init sequence Date: Tue, 17 Nov 2020 18:49:33 +0100 Message-Id: <1321f3abdc3df6e9d1999bd32b436ae71e89c27e.1605635248.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 We've seen some (non permanent) burn in and bad white balance on some of the panels. Adding this bit from a vendor supplied sequence fixes it. Fixes: 72967d5616d3 ("drm/panel: Add panel driver for the Mantix MLAF057WE51-X DSI panel") Signed-off-by: Guido Günther --- drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c index 0c5f22e95c2d..624d17b96a69 100644 --- a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c +++ b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c @@ -22,6 +22,7 @@ /* Manufacturer specific Commands send via DSI */ #define MANTIX_CMD_OTP_STOP_RELOAD_MIPI 0x41 #define MANTIX_CMD_INT_CANCEL 0x4C +#define MANTIX_CMD_SPI_FINISH 0x90 struct mantix { struct device *dev; @@ -66,6 +67,10 @@ static int mantix_init_sequence(struct mantix *ctx) dsi_generic_write_seq(dsi, 0x80, 0x64, 0x00, 0x64, 0x00, 0x00); msleep(20); + dsi_generic_write_seq(dsi, MANTIX_CMD_SPI_FINISH, 0xA5); + dsi_generic_write_seq(dsi, MANTIX_CMD_OTP_STOP_RELOAD_MIPI, 0x00, 0x2F); + msleep(20); + dev_dbg(dev, "Panel init sequence done\n"); return 0; } -- 2.29.2