From patchwork Tue Nov 10 23:46:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 11895851 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=-12.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,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 2261BC388F7 for ; Tue, 10 Nov 2020 23:47:14 +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 A4C8C207E8 for ; Tue, 10 Nov 2020 23:47:13 +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="SVOdJook" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A4C8C207E8 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 E377089D66; Tue, 10 Nov 2020 23:47:12 +0000 (UTC) Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by gabe.freedesktop.org (Postfix) with ESMTPS id 67D0A89D60 for ; Tue, 10 Nov 2020 23:47:08 +0000 (UTC) Received: by mail-lf1-x144.google.com with SMTP id s30so660446lfc.4 for ; Tue, 10 Nov 2020 15:47:08 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=CFh/nhcwrF/c3LgZHhdLXiie2alaqfhVgce5eQpdRHk=; b=SVOdJook6lyRlymtqkNVft9OI32xfV6qDjHZroYCvEw6pjPKgNrxqKJ15DKV0Xf9Hw 223YRkoekys/xGVZEnW5jp7eNTI70Yobtnm2XbC3vbU22lCEcWhfi0WP6w/R05xjPIHe jV4Awr0fhMD2V+2ytKr8stPRzDaM5/i9hyA5+nwc5MnMa2Rv57UoHFoGbdVLDoFE6UCE IpaOCoXhTVL07fjtivvTpfojiFk9HBKI3s+VpD37/RVcDbaGQz2QgBI6gnVfxRW4Bm/5 kEYbcZtNE2UkPc8SLvvaBgl2MuAY/KoS6W9DLTn1Bd8zEu7vnReTC7O1HWQ/Qj7m66Wd sasg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=CFh/nhcwrF/c3LgZHhdLXiie2alaqfhVgce5eQpdRHk=; b=uby/IIhqBcWvPRTGF6kbkmCv/LFmN5F3CZcnYcxNhwCbJ9b3D2cm7x2nYAIOIOFlnS qTvU5nWuoqINCfctQzzG/2F0QsSmzXVS4LHu3ygVOhJYgK8sjFlphGDF9Bo/HoujO/Sx sTeqcYE9Pe/usJ3DxKw/x+ICvKuuq3IbW7e/ZRJdvQK96EdTnEjfLJKL8yMgFr6D8/uy DTsgSJWGGz9/z5gj1sHlRE8VjrLniZtN4VPazoAWhKqBFQvZYiBKdp2UGZnfPexsgHrc q1osTiLwbEvLu4Hw0pTODKoAJQeWU9NnMBci/IC3mDHuYrtTIrwjkKt6764XXilco2Yl 6Mtw== X-Gm-Message-State: AOAM532/ot84SI4+IS6xrZp2JleW9a8reuhnw0TY0qp8AIS5/WfZ/hfq ceq6kzBfs7AIK3k5ydfs6YZQEQ== X-Google-Smtp-Source: ABdhPJzfo5AkE8LkBZ3fFazuUZ1IBl9VUHKaBvUJJ5qjsl3/Rji2qIKp4UeMewI4Pryg5Ahlz/ve+Q== X-Received: by 2002:ac2:568b:: with SMTP id 11mr7560047lfr.397.1605052026854; Tue, 10 Nov 2020 15:47:06 -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 y65sm39883lff.73.2020.11.10.15.47.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 15:47:06 -0800 (PST) From: Linus Walleij To: Thierry Reding , Sam Ravnborg , Stephan Gerhold , =?utf-8?q?Pawe=C5=82_Chmiel?= Subject: [PATCH 5/5] drm/panel: s6e63m0: Set up some display info Date: Wed, 11 Nov 2020 00:46:53 +0100 Message-Id: <20201110234653.2248594-6-linus.walleij@linaro.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201110234653.2248594-1-linus.walleij@linaro.org> References: <20201110234653.2248594-1-linus.walleij@linaro.org> 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: dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Copy over the width/height in millimeters to the (somewhat redundant) display info, and set up the bus format and bus flags for the display. When used as DPI this display requires DE to be active low and pixel data to be output on the negative edge. It might be that it was previously used with a display controller that either does not support these settings or was hardcoded to use these as default. This information comes from the source code of the Samsung GT-I9070 mobile phone. Cc: Stephan Gerhold Cc: Paweł Chmiel Signed-off-by: Linus Walleij --- drivers/gpu/drm/panel/panel-samsung-s6e63m0.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c b/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c index 3eee67e2d86a..210e70da3a15 100644 --- a/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c +++ b/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c @@ -16,6 +16,7 @@ #include #include #include +#include #include