From patchwork Wed Feb 28 17:53:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 10249173 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9865060211 for ; Wed, 28 Feb 2018 18:00:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8BAEF28D97 for ; Wed, 28 Feb 2018 18:00:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A31928DDD; Wed, 28 Feb 2018 18:00:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EC10F28D97 for ; Wed, 28 Feb 2018 18:00:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=RjQnuslBwxrNkpPYVdYZZuJXI6eOKTXDvIxlrpmKIag=; b=RqV JgI7a6ecpJAalKImUQqzECN8SM1S/C2CT7YU0zC9wUnix4reVUzcquv19xotHNEhIOa2K7JLXOii5 va1baDXJ1dUopnIZc32Q3DbvQW3cfSxSHf8kA/nproDEPyWc7dTWs4CRF81MgHy3OlW0K23FGagj6 PXBdfeZeGZgMNNLr2x1NtQfLsQKgPTUjRXp5pl/31sYPUrIfXwLlkTXg7AyKfd3dHvKqUCA8bp4nc 291d6Sa7J884bsAUyGJZfpjFvy9WFqS2EhepzQxao0F4N1I/H8KoDdor5CGCWGkWt+tNacXnsN7IJ JI0kpte5pLa7YnipFQDE0yjxF8XRzYA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1er61o-0001xP-Kl; Wed, 28 Feb 2018 18:00:32 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1er5wQ-0005Ta-Q3 for linux-arm-kernel@bombadil.infradead.org; Wed, 28 Feb 2018 17:54:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=kAkmWQKCLfSZEZjwb75iNpTA0MiijBoKSA+oBeXJ7vM=; b=OJ0Oyfq3Dnu5NLQF3SgMvtG32 p7cw4Cndfs4MYBMxGzIRKhUBEx4TdTLiJEBHKkEn00nkuh7O34DlVs85g5ZKmsxwRRWnNDS0eog46 3dOqjY29q5jsjodE+4nV6y5FAbYAOX59WC11RDsib47S4x1ECYVbFULjxWf0XKDSvq3IgmNdx0tcF wiMKo5uS6yVBxg++IY1ZHY/RaNfexl+ojxFR48DUPO48PzFtSaLEsoRKa4keaef+LF8izktS/gfLr wSEWHW6e5D//aWzQeUH8Sc1T38PM1dm0BSli7YAeJ3RoFT3fSFdh0+4zrb9v3/Uqhj6EfKZlZ255A lg43TKkyA==; Received: from mail.micronovasrl.com ([212.103.203.10]) by merlin.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1er5wM-0001kF-9k for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2018 17:54:55 +0000 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id 652A1B00A45 for ; Wed, 28 Feb 2018 18:54:42 +0100 (CET) Authentication-Results: mail.micronovasrl.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=micronovasrl.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=micronovasrl.com; h=x-mailer:message-id:date:date:subject:subject:to:from:from; s=dkim; t=1519840481; x=1520704482; bh=9kefQWiwnIjBCtseUT5z4w2x nmpjtXiM4+uOJ7xaXPU=; b=HKrfkmsso1XKMaXP4CAj0/mgqjVX3PF7tjWvJLkF 0scLBESlfN5Mb3FozQUMX/Zrrzh9nHuPL79+UM4uF25jB11FlgAZ+DqUKPftFy4f PftWN5c4ogExeb+3AhlO9V/4AH6vJOmDrCT9mD6nx4aeVpRGvje/ipPCdTn8cyU0 HVk= X-Virus-Scanned: Debian amavisd-new at mail.micronovasrl.com Received: from mail.micronovasrl.com ([127.0.0.1]) by mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id AH-MSq48ikcD for ; Wed, 28 Feb 2018 18:54:41 +0100 (CET) Received: from localhost.localdomain (62-11-51-166.dialup.tiscali.it [62.11.51.166]) by mail.micronovasrl.com (Postfix) with ESMTPSA id 3C05CB00183; Wed, 28 Feb 2018 18:54:41 +0100 (CET) From: Giulio Benetti To: Maxime Ripard Subject: [PATCH 1/2] drm/sun4i: increase lvds dclk max divisor Date: Wed, 28 Feb 2018 18:53:51 +0100 Message-Id: <1519840432-61489-1-git-send-email-giulio.benetti@micronovasrl.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180228_125454_527746_88419B31 X-CRM114-Status: UNSURE ( 8.70 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Chen-Yu Tsai , Giulio Benetti , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP At the moment both min and max dclk div are set to 7. This doesn't allow to have lower frequencies. Increase dclk_max_div to 18 to achieve 30Mhz. Signed-off-by: Giulio Benetti --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c index 029d2ce..bb35f41 100644 --- a/drivers/gpu/drm/sun4i/sun4i_tcon.c +++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c @@ -278,7 +278,7 @@ static void sun4i_tcon0_mode_set_lvds(struct sun4i_tcon *tcon, u32 reg, val = 0; tcon->dclk_min_div = 7; - tcon->dclk_max_div = 7; + tcon->dclk_max_div = 18; sun4i_tcon0_mode_set_common(tcon, mode); /* Adjust clock delay */