Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp694920ybb; Thu, 28 Mar 2019 10:19:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvyHnpDU6OnMA2Mnv7AdoioFBvWVxKQaXc8ouOgBe7ORa82SksMH1kLdR2qfHr5K1mBGh/ X-Received: by 2002:a63:c84c:: with SMTP id l12mr41224646pgi.287.1553793542984; Thu, 28 Mar 2019 10:19:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553793542; cv=none; d=google.com; s=arc-20160816; b=QlQ2mW6EoGnf3AvCPxMuihnPUKPMJS245g8zSxGru1RUJOQWThdwkmShO9uyYblTjI SkRcx56vczjzRLCKtA+UndnJ2w1/0sGJH6bcI/bpqxClevR9vr0gjD0x6nHo3UWzSohr 7GaosZTkgBegagfVQlWgZ3iGu8uQM9bS8Y1SInebZU99sLqnd4e4S6/y4va5I7gOXLiB VfB5lw6ZTStOEl3585s+6kdY1o/zpkP6SNEeG8Tw/fpceBfdn+4eRrIjdfU+gsoTWyoh YPMX9WO/AtbJ+IZdJiYAfACwxfjrVuZW9FKfpLAE9Ld7fGS4ipQNH0hZkRSwTwXQPUWR 3t5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9vt45JTo9+c6j8dWNrO0OHz+tpId79deEfwrm9YqjVA=; b=dpgufgVm4mO8O83tkpOwLcB8tuMgltS+VeJh38rEdWoaq+jqqfciDazt1CjOxoE0gh ouZywd+UZ/Ss34065l93aziddlPtvaWAC3kNOMxIRpvUl95vkukdlaZAHVIqcXx1n7d2 tCOlkZ41y2LRmwhKS10wkcNz6ufcKXslq3WseK6uYswx1cGNQzKF4WfWaiTQZNk5bFuV MDC3sNHD7uGlNgb3wLC8RoEPezyjjtRW/I0YjyP4F0LaoGRXbhidea0lWzNsSwgKe8q0 Q4VbzYzpsRcPtpCn2nX6e7KjJto82cecuWA7YSJHc+OTismDRJAV41t/XbGzQsyccGxv WszQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=C0sXUDY3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l25si13927785pfi.9.2019.03.28.10.18.46; Thu, 28 Mar 2019 10:19:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=C0sXUDY3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727710AbfC1RSG (ORCPT + 99 others); Thu, 28 Mar 2019 13:18:06 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:36914 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727684AbfC1RSE (ORCPT ); Thu, 28 Mar 2019 13:18:04 -0400 Received: by mail-pl1-f195.google.com with SMTP id q6so5257605pll.4 for ; Thu, 28 Mar 2019 10:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9vt45JTo9+c6j8dWNrO0OHz+tpId79deEfwrm9YqjVA=; b=C0sXUDY310SL/SQYeRt4iQe5a7IZUNKd2ajEsEMma+zuySpcP46oeny6KE9+HvqCCb fN8X9jGjPYtVY98XypzXk7M779imEhiwyHtsPbCogehzomsLOXt5a0NgUr3tZU+p50UY GsxEaaAIt0s/GZv1v0PtUwNUIWSAb8nqrs8FM= 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=9vt45JTo9+c6j8dWNrO0OHz+tpId79deEfwrm9YqjVA=; b=gxCRf2R70jyxpW7BeM8+H1lnP5hPEbkWCZYInqAgUNzkcf/BsJOcOW+BsSVctoG26i hdMGq8TbQa/wEalLY/NrCD1/i7kFew7JQ55w/yU+5aIl52gdXPnxHEq6GDzgr0p7h5js h2teoKViznU7DQTRpJ5iyji+bxaiTMQcIb2VTSwKAEClpY8h5LrKzGtm0bphnBfgHObl X2m3QjIlS4soRar9PECAgwXDY5CljGSVaL6edQI98AP3euYbHSVXDdSXkr01IlXiJRon uqJ6nMFSJeD0PpXRnJm/GBudkXljyF+sl7KYiTAKjGzfHGwIQ2JDDElkp28P/MpY4M9g eXHA== X-Gm-Message-State: APjAAAUJRIHHiw868oseIP6lGb6GrpVEfREHsFZ+FD7LlY5IuHaHqc1k AaKbi4gM6bqZkFaPu5xLGsq9Ew== X-Received: by 2002:a17:902:7587:: with SMTP id j7mr25505653pll.304.1553793483508; Thu, 28 Mar 2019 10:18:03 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:24fa:e766:52c9:e3b2]) by smtp.gmail.com with ESMTPSA id r10sm31699414pfn.188.2019.03.28.10.18.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Mar 2019 10:18:02 -0700 (PDT) From: Douglas Anderson To: Thierry Reding , Heiko Stuebner , Sean Paul Cc: linux-rockchip@lists.infradead.org, Laurent Pinchart , dri-devel@lists.freedesktop.org, Boris Brezillon , Ezequiel Garcia , =?UTF-8?q?Enric=20Balletb=C3=B2?= , Rob Herring , mka@chromium.org, Douglas Anderson , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Rutland , linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 7/7] ARM: dts: rockchip: Specify rk3288-veyron-minnie's display timings Date: Thu, 28 Mar 2019 10:17:10 -0700 Message-Id: <20190328171710.31949-8-dianders@chromium.org> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog In-Reply-To: <20190328171710.31949-1-dianders@chromium.org> References: <20190328171710.31949-1-dianders@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Just like rk3288-veyron-jerry, we want to be able to use one of the fixed PLLs in the system to make the pixel clock for minnie. Specifying these timings matches us with how the display is used on the downstream Chrome OS kernel. See https://crrev.com/c/323211. Unlike jerry, this CL actually changes the timings (though not the pixel clock) that is used when using the upstream kernel. Booting up a minnie shows that it ended up with a 66.67 MHz pixel clock but it was still using the porches/blankings it would have wanted for a 72.5 MHz pixel clock. NOTE: compared to the downstream kernel, this seems to cause a slightly different result reported in the 'modetest' command on a Chromebook. The downstream kernel shows: 1280x800 60 1280 1298 1330 1351 800 804 822 830 66667 With this patch we have: 1280x800 59 1280 1298 1330 1351 800 804 822 830 66666 Specifically modetest was reporting 60 Hz on the downstream kernel but the upstream kernel does the math and comesup with 59 (because we actually achieve 59.45 Hz). Also upstream doesn't round the Hz up when converting to kHz--it seems to truncate. ALSO NOTE: when I look at the EDID from the datasheet, I see: -hsync -vsync ...but it seems like we've never actually run with that so I've continued leaving that out. Signed-off-by: Douglas Anderson --- Changes in v4: - rk3288-veyron-minnie patch new for v4. Changes in v3: None Changes in v2: None arch/arm/boot/dts/rk3288-veyron-minnie.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-veyron-minnie.dts b/arch/arm/boot/dts/rk3288-veyron-minnie.dts index ca7512ade222..8179cf9f6e98 100644 --- a/arch/arm/boot/dts/rk3288-veyron-minnie.dts +++ b/arch/arm/boot/dts/rk3288-veyron-minnie.dts @@ -144,6 +144,18 @@ power-supply= <&panel_regulator>; /delete-node/ panel-timing; + + panel-timing { + clock-frequency = <66666667>; + hactive = <1280>; + hfront-porch = <18>; + hback-porch = <21>; + hsync-len = <32>; + vactive = <800>; + vfront-porch = <4>; + vback-porch = <8>; + vsync-len = <18>; + }; }; &rk808 { -- 2.21.0.392.gf8f6787159e-goog