Received: by 10.223.185.116 with SMTP id b49csp6470452wrg; Wed, 28 Feb 2018 09:56:25 -0800 (PST) X-Google-Smtp-Source: AH8x226G3Mn5eZfz2vYnUwIyl3zlEJ+izGsiaCHKLTuMAYh+8G56uP7Rx3TB6c2m97fnviL+lchk X-Received: by 2002:a17:902:9686:: with SMTP id n6-v6mr18610121plp.333.1519840585503; Wed, 28 Feb 2018 09:56:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519840585; cv=none; d=google.com; s=arc-20160816; b=u14Cged4u1qQWwxXJP4Mtykap+2UBZ4PTgLekLHdhoxW4feGqpFG3mGPEcdszlylmm RCg+LFgiJrYiCE9f+JrvZ7pomOCRfTVOX8I25ALpNKrrQHQC3LNVaQ/tssdTV31LfLpx pNVTueREZYxUx5m+YugN+I0Suy4Przkrqza1MK99OnHo18PQ/UJeFGsibXenZpNj3VYg nS4EewLd/Zj6ifAJc4RPGMVAhnHcatIfWss2HHrOC4sMpoPPq21oL+q9PVzG/Q/cW+Ym vrpQUhxhVdrioBVRtYgipFwxonuOgVG006pSShKH8ueDA+swqZXIhzo2Io3AYR9nXUS6 tVBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=kAkmWQKCLfSZEZjwb75iNpTA0MiijBoKSA+oBeXJ7vM=; b=IghoCMQ6Z/lM4Gx4QkdrfWscaULGAlEtAHmYev7ktSRk1E6WdYN7sk+raA3ZcTZT7M 5E9Ju4jd59/fY3rRX8Oh40BTSpDdatUqFax2p2agovpAHG6j/kilaJPhpicOLMdIXel0 i0MxAuSrv8S1LK8wSXTQTXTt52v17rIQn7ZC/UvrA71UwTa47CUFrBlrBcecW6dKWfU7 l9/lY27B9EAiE+5USzoZhJSLFMbFF/QcIS03RylhJVCFRAxNVyCUz7fC8FZlUEcYSpsB b+Vd5JWNpNV4j/VHtvzP7YQ+PGfdhVBG7CIjpPuwBIjid1Qz49w37hiGQCsU5u6zsnWg F35w== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=CcG+hQNh; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j6-v6si1525520pll.799.2018.02.28.09.56.11; Wed, 28 Feb 2018 09:56:25 -0800 (PST) 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=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=CcG+hQNh; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934607AbeB1Ryq (ORCPT + 99 others); Wed, 28 Feb 2018 12:54:46 -0500 Received: from mail.micronovasrl.com ([212.103.203.10]:39788 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934187AbeB1Ryo (ORCPT ); Wed, 28 Feb 2018 12:54:44 -0500 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id D4C0AB00AB6 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=1519840482; x=1520704483; bh=9kefQWiwnIjBCtseUT5z4w2x nmpjtXiM4+uOJ7xaXPU=; b=CcG+hQNhbzyPy+5RBq621/kcvYi2a6wUR3dxcPWB PmxlZCxbuBTLxBMDl9eT07bT+uUKCGwLUxqcrZuPc4kjHA77qT5hhk8o1fWIhCkt qdOuf4Bf+z4FUusMPpk3sus+iTfNMMFbjN3dh2Q9gzRc4wl4tRMj+UEeggeAXrlc UIM= X-Virus-Scanned: Debian amavisd-new at mail.micronovasrl.com X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Level: X-Spam-Status: No, score=-2.9 tagged_above=-10 required=4.5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=unavailable autolearn_force=no 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 DyZ4qYoQBeKx for ; Wed, 28 Feb 2018 18:54:42 +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 Cc: David Airlie , Chen-Yu Tsai , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Giulio Benetti 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 */ -- 2.7.4