From patchwork Tue Nov 17 17:56:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 11913129 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6FAB1C5519F for ; Tue, 17 Nov 2020 17:56:38 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E65DD2220B for ; Tue, 17 Nov 2020 17:56:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="fTpcC6Qi" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E65DD2220B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4B05689226; Tue, 17 Nov 2020 17:56:35 +0000 (UTC) Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by gabe.freedesktop.org (Postfix) with ESMTPS id 18E9C89226 for ; Tue, 17 Nov 2020 17:56:35 +0000 (UTC) Received: by mail-lf1-x141.google.com with SMTP id l11so19268881lfg.0 for ; Tue, 17 Nov 2020 09:56:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vkMuTUEF8tVK8/o6kH/0uU22lZBZ4rsB3u4Geir8dd0=; b=fTpcC6QiedPTIxdRHBxj2xab1FLTdV1tJNc/fMIy/Olx3TC4K4K9QaAxTKT1pC0GSq ujwi6sWxPNQsBCulxxrrmR17BuubieRe2+KZf6LWJHDd8Yje7YomgNTr7nulAKZ/yFCq PQ8YIhwNh+n1ELUWIbAf2qLRO5FWHCFNoPCTO13uhqTz6fpKct+43d3sAaPM3uZPz/ln boYzj+hdjhEP5Wi/stq0gCCGz7vL88jFXOpayHfBoxUV4Ajme3cEAqIljAjbfv9yHfmg QvwLWzan7GE+KeJCfJ4MlBxGTmJ5xDYgD+PZArFAVcECgiknMXSc0Il6mtvE9O8mPRG6 WEvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vkMuTUEF8tVK8/o6kH/0uU22lZBZ4rsB3u4Geir8dd0=; b=bXLANx/ZzCRzq9ALTVcBhyvSf04T68GAtc3cbZdtuBRlYnjcSVHmU6YvtlGgcVfkDW gT/xLMFsfsuzB09OgsgYmmfAQgNLFwi0ZNMjnuCwWFn6yiPDt0Z5Ijb8fsNVFrpryUIe AhW6Zrx02d127F1vy8iv5c+SI8T5oV8Qqlz+7TVnrv1EGy8i1uXqZaxGspc3hO1GgxGQ V72soAHWaDtbCvBuwGI2EXXj9bTjxmCgvhZBgqknZbTV/lc2L6zQT0j0kbGWlKNUZX3j Bl4hmR5KGX5+Qamwct7Jxt9z7oEh3sfTrQ7nx8Rwuk/sNQLDfBjYqagnLlMHuc9fFkDp Lc/A== X-Gm-Message-State: AOAM532s3H42EGsvNbvzLYAPycDlb25BUVZ3UREh9kW80/Lik+ElEryR yCYxB6RkVGn97u/u+IkiCYdGDA== X-Google-Smtp-Source: ABdhPJxA5IJvWbS3vh9oFa5f0JrgmfSL3Xt5rDVA1gE3jAKjHSgcA2KoqtAsqX9r8I4kuwohlPzKJA== X-Received: by 2002:a19:b95:: with SMTP id 143mr2117915lfl.51.1605635793541; Tue, 17 Nov 2020 09:56:33 -0800 (PST) Received: from localhost.bredbandsbolaget (c-92d7225c.014-348-6c756e10.bbcust.telenor.se. [92.34.215.146]) by smtp.gmail.com with ESMTPSA id m21sm1558631ljh.82.2020.11.17.09.56.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 09:56:32 -0800 (PST) From: Linus Walleij To: Thierry Reding , Sam Ravnborg , dri-devel@lists.freedesktop.org Subject: [PATCH 1/3] drm/panel: s6e63m0: Fix and extend MCS table Date: Tue, 17 Nov 2020 18:56:19 +0100 Message-Id: <20201117175621.870085-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stephan Gerhold , =?utf-8?q?Pawe=C5=82_Chmiel?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fix up the format of the manufacturer command set table to be TAB-indented and lowercase. Add the MCS_TEMP_SWIRE command that we will make use of. Cc: Stephan Gerhold Cc: Paweł Chmiel Signed-off-by: Linus Walleij Reviewed-by: Guido Günther --- drivers/gpu/drm/panel/panel-samsung-s6e63m0.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c b/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c index 210e70da3a15..8fce399fb97d 100644 --- a/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c +++ b/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c @@ -23,20 +23,21 @@ #include "panel-samsung-s6e63m0.h" /* Manufacturer Command Set */ -#define MCS_ELVSS_ON 0xb1 -#define MCS_MIECTL1 0xc0 -#define MCS_BCMODE 0xc1 +#define MCS_ELVSS_ON 0xb1 +#define MCS_TEMP_SWIRE 0xb2 +#define MCS_MIECTL1 0xc0 +#define MCS_BCMODE 0xc1 #define MCS_ERROR_CHECK 0xd5 #define MCS_READ_ID1 0xda #define MCS_READ_ID2 0xdb #define MCS_READ_ID3 0xdc #define MCS_LEVEL_2_KEY 0xf0 #define MCS_MTP_KEY 0xf1 -#define MCS_DISCTL 0xf2 -#define MCS_SRCCTL 0xf6 -#define MCS_IFCTL 0xf7 -#define MCS_PANELCTL 0xF8 -#define MCS_PGAMMACTL 0xfa +#define MCS_DISCTL 0xf2 +#define MCS_SRCCTL 0xf6 +#define MCS_IFCTL 0xf7 +#define MCS_PANELCTL 0xf8 +#define MCS_PGAMMACTL 0xfa #define S6E63M0_LCD_ID_VALUE_M2 0xA4 #define S6E63M0_LCD_ID_VALUE_SM2 0xB4