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: 322908 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp657571ils; Tue, 10 Nov 2020 15:47:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxu6JFiSrBJWYHk47n94CLbo4bV6k8ZtsbL+lSYCyfFFgOhfqPJFG26rzu3dEUPew70rPm+ X-Received: by 2002:a17:90a:f298:: with SMTP id fs24mr678488pjb.109.1605052033916; Tue, 10 Nov 2020 15:47:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605052033; cv=none; d=google.com; s=arc-20160816; b=BLUHHdufrTsJo5y9ki1NWpuiw14d1uFVBUMAH5vL8tvcUww+wnaGyzyynyHaIcT+dn V6OWBQ3a4e4oKJbKuNz+4XCBu8XvSqSPDPh1/pwAQnYPWB2XQHv7pGS/7/vCoGFYuvFJ ir/9tzI0UidSZibgIG1fG1qf2gCqZpmZ+klk1PYYzFpGlfNZDeMGkfZq9n5ZnX7h4Q62 0hp2QJV3HMcmD1NGtaGZxZA/sCkvfphU/sYvbKga8cPgPgWWapgOPNuwklatNrWai9W2 NaIyCWdvZEvfJsfxr2Aj/vM49CowkxWZ9GojSf7ufz28qM1HwBGFvu2gVfkgmZ6tq/PO dAuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=+xreh3/KzdpT15/qpyEXrMaM8PB4ab7SGlkc9mVNM7A=; b=DEx4i0e8ERMFMbmtK0dQLbaHQmmjmHYBPhtmLYVklp0RCaN6AaZCJetr8IllqoNX/A AU5laL8Wh1MsUQqAmKsf3xBw4nWuBqs3GoUGrY5X7IAClSWGFyFtMKjeJRsAytgSKiIS DR8SrNdG/lslq0FDtH9NQvGqydlzsLoCnUh7+xVHXtF/bYKcihaNbRr+bwETdk4mAyvU 9zH07Z/J4Ltu1VxQaV9YcSAlKYvz+yby2HzCJHAhgxDyh4u5SdMmJVkNAEnya0xg9WT1 aWx9VwdiQoaLGbcXUD2wQI5j2FnSypdmSDxc9KuKSYQ/w9JB8dn8svFSRqFszEHFJxuL FcDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SVOdJook; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id e13si79831pgl.142.2020.11.10.15.47.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 15:47:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SVOdJook; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.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) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org 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-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