From patchwork Thu Feb 8 09:53:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 127278 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1319993ljc; Thu, 8 Feb 2018 01:54:06 -0800 (PST) X-Google-Smtp-Source: AH8x227HN3Sg1sLmUJon6XAizFy6Yst7W/VpX5GJ/a8TC4a4rQxG3Ptskxydi72LIoaQylV18a/7 X-Received: by 10.99.1.70 with SMTP id 67mr76523pgb.23.1518083645947; Thu, 08 Feb 2018 01:54:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518083645; cv=none; d=google.com; s=arc-20160816; b=te3vCKXa8Rhz9KiwNsR1ue7U3G57palHMj+qVY25dMhPG8Uo0iAsVpoQspUc64tBYh qZOtmyQvWNbxyEDQh4BGXfxZkIa9CAmxGShXbduPwRRBh/mN5nglNfMoOdI7J7XK9LMe iiPdBAPxWgpUrYstT2wd3dWM8+qP/wfrYVynPOZ8Rzi2tk6030VgYVxuSY+/wHeAT0Pf txYGHRn/BN8QGvgcVXkrPuu1hueHPQ96Pf5gaq0DUkivjv84NLhqFuyNwun+zYIvaafM gGN7zIGzzhXbkP946BS3DsFoGN1Xm0z6KYmzP3LuiUNEBDoSNiGkBmyGonV5mj/xxvHW f+0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=nTMboKcDb1zuzvVpKcX8bnvKb3UWCa5t7+OV1Uafp28=; b=W7f0GaPFFKwdNQ9h2AFpmqBCxu4XJEUHcD0tFYkitdsKZKACfTlPbMF3DAhaRY2cOE 1avaFlgTe7g//xap7fdEgLeLKBZoRAMrEOt0A69k3zc/8UqdZfXZZNGKc9r44ukEALk4 87usyzYvzsnm8WXkFuIwVMUj29lK5qCK7LfgqKOUEdgelpkFKLMGIjDXyCdBapxWu+l6 sFMIm7oK6q6weCf2gXHbKNEgY72NiLKlA3Si4xJ7VY6i4kP1HoLGG6IYmaZh9Nn1Cvtl zO10ou9X4bKCYTFjvb6Sa/vLnDn0lJc1SrOqattU/RRaZl+s9+XVVIO2yodNdcxTL3zG MYzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=QtU9ZYsb; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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. [131.252.210.177]) by mx.google.com with ESMTPS id 188si2219500pgi.67.2018.02.08.01.54.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Feb 2018 01:54:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=QtU9ZYsb; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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 B2C3C6E5AF; Thu, 8 Feb 2018 09:53:34 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf0-x242.google.com (mail-lf0-x242.google.com [IPv6:2a00:1450:4010:c07::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id AED806E5AF for ; Thu, 8 Feb 2018 09:53:32 +0000 (UTC) Received: by mail-lf0-x242.google.com with SMTP id x196so5508301lfd.12 for ; Thu, 08 Feb 2018 01:53:32 -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; bh=h50vQbWLyTUFtEvDl1472NIOWChpge5btrv7/5Uz1wo=; b=QtU9ZYsbbDoxWCvZ9TZKUI98n8kuC1Zu8qRK7us6NMWn3vMfuPg6DiCMYmjBiFC0ak j/RPGobF+CtJMhdQWOKL0SJnX3g+wS/mDLWq3wFM18N0YG+dxTS5skUeZiabzA6+o4Cw 68VUVUAtsahOH+Y/J2RriWFon2ees0Kf4/7VI= 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; bh=h50vQbWLyTUFtEvDl1472NIOWChpge5btrv7/5Uz1wo=; b=MTbmQkcphvlvH+nsRtkC1jMjXqfNeIjn/4yTkha5/dau7EY5nAuFklX7F+Eh8XMZJr 9C49WDGyH+rM7F0B+pg2Ogqu0zCUl8R3+XDKZIYFx4LEQPlN7OelZoX703NaU3KQNfEc 2YKHZv1XYJQXo/dypkHAacFEO9pKjR51TjnI9CRhn9VXwjjSG+6Z08/VXuJNA50DSjXk dyrDmKCsa0dcXO0UQJ0Ul77G3SvxRcBJw8rq3BtpPtEcI9UiQOGpuW9M/r1ZrCK6RpDG Zhg/9cI8PtI03fwREN3Qo00GMJEaEKZdxrew9cuGS1MUqj50puglSBmGMzj2nMgnLcpy 1gGA== X-Gm-Message-State: APf1xPCq5kDwfaK2Jm9TLvcuk6lR70O+qEcL/wOTCiWGG09v3VflP1dg 6SlQSxK7Sj47yvy21MCMIZW2lA== X-Received: by 10.25.193.7 with SMTP id r7mr76425lff.29.1518083609834; Thu, 08 Feb 2018 01:53:29 -0800 (PST) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id o88sm771946lfg.84.2018.02.08.01.53.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Feb 2018 01:53:29 -0800 (PST) From: Linus Walleij To: Thierry Reding , dri-devel@lists.freedesktop.org Subject: [PATCH] drm/panel: Fix ARM Versatile panel clocks Date: Thu, 8 Feb 2018 10:53:26 +0100 Message-Id: <20180208095326.15849-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" These clocks are in kHz not in Hz, oops. Fix it so my new bandwidth calculations patch starts working with these panels. Cc: Eric Anholt Signed-off-by: Linus Walleij --- drivers/gpu/drm/panel/panel-arm-versatile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-arm-versatile.c b/drivers/gpu/drm/panel/panel-arm-versatile.c index 3930b4925b15..35707d0ae6b0 100644 --- a/drivers/gpu/drm/panel/panel-arm-versatile.c +++ b/drivers/gpu/drm/panel/panel-arm-versatile.c @@ -132,7 +132,7 @@ static const struct versatile_panel_type versatile_panels[] = { .width_mm = 79, .height_mm = 54, .mode = { - .clock = 10000000, + .clock = 10000, .hdisplay = 320, .hsync_start = 320 + 6, .hsync_end = 320 + 6 + 6, @@ -156,7 +156,7 @@ static const struct versatile_panel_type versatile_panels[] = { .width_mm = 171, .height_mm = 130, .mode = { - .clock = 25000000, + .clock = 25000, .hdisplay = 640, .hsync_start = 640 + 24, .hsync_end = 640 + 24 + 96, @@ -179,7 +179,7 @@ static const struct versatile_panel_type versatile_panels[] = { .width_mm = 34, .height_mm = 45, .mode = { - .clock = 625000000, + .clock = 625000, .hdisplay = 176, .hsync_start = 176 + 2, .hsync_end = 176 + 2 + 3, @@ -203,7 +203,7 @@ static const struct versatile_panel_type versatile_panels[] = { .width_mm = 37, .height_mm = 50, .mode = { - .clock = 5400000, + .clock = 5400, .hdisplay = 240, .hsync_start = 240 + 10, .hsync_end = 240 + 10 + 10,