From patchwork Mon May 13 12:45:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 164033 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp1278779ili; Mon, 13 May 2019 05:45:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9c+UWtgl65Sl7SJLWMXcbHkNMOYRD65Tbr2F5SVuTqr1DVzNXQfNIIWvd/bTJYDI2SuCV X-Received: by 2002:aa7:8252:: with SMTP id e18mr32609512pfn.105.1557751544792; Mon, 13 May 2019 05:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557751544; cv=none; d=google.com; s=arc-20160816; b=Y7gfZxpGU+qJGhPp5EWT9PtzEaY3mtFzscAOBoYmeU9BHWklLOPPpMWO3kBU9MTQtA zfgAYXi3oHmY9PRzAPID8qb5dluDpbm+CrCInBv/T+Nmh1nnkiSDgrAuLfHRL+dhQcAS 5PGgp5rpbOeWXFOlaUGAjb6ygQ0vT82fA2IpX9YA2TJMk+DLxamZNCNiZ+5jYxoL07ta yYfTkJXq8zTaZSHOr9W6LQO8fqHXbJgTkK6+JhAUknVH61ynhI1OthxsHtg3FvwjLcm8 KXGxftbq59Rrv/SdftLCFL43Niem4NGq7rPnRYNoDWLeae79DgXvsigXzTZjZw0H9DxZ M2JA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=S2pz0rN5YxgIZ9+xKpj04TZfJLwVeh5ljwZlweZ4hEU=; b=ogFLevyPlKK8P9z0XNfZ1Yod8dHPINx1UmihV2DMO6SWcR9vjDUwMDA9htRoIkbG2S u3212zrNz6K6wS2Jx3aqcMseAnYUgCuw25UpvgD20M399oyiq+KX5AywqkEsidq++8jx yaukH05Cmv/qC42BytAfVU/rPWaMxpbszOJK+nodvZ32QdJhSKwKKZkl+lN5M2zIdy1g VJU23Y96w8Kdv4NKFYQpSxq+0d5JT8IJ/3aEKhirQ9lyCuN63BaUIAzft+oC13UE76bT aKRDB4irjEdt2qSASiVa3akFHDKddKHkeCCm3+2RumLW0MUwW9MVBRJtIC2lBDABvST9 GdeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Wd86UOuD; 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 s23si16032343pga.580.2019.05.13.05.45.44; Mon, 13 May 2019 05:45:44 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Wd86UOuD; 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 S1729410AbfEMMpm (ORCPT + 30 others); Mon, 13 May 2019 08:45:42 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39309 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728820AbfEMMpm (ORCPT ); Mon, 13 May 2019 08:45:42 -0400 Received: by mail-wr1-f65.google.com with SMTP id w8so12676898wrl.6 for ; Mon, 13 May 2019 05:45:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=S2pz0rN5YxgIZ9+xKpj04TZfJLwVeh5ljwZlweZ4hEU=; b=Wd86UOuDbF0LRCUA0cQW2+b/NtT84O02/WElU5v/n9SOjE7s3v5qeLFeA6JBNikdwO oVlq4JKQjsGC0mwAYDc5cx1C8ZGfJw4yCxWkuF92n95LjcSPnAiD5ftTx1dgnCKl4ZhO 90EmirHh3vBH3gF23ScGRur/G9mC5IZ6Nx+iq5tuHlfMa8D66pYsYIKr2oIR1JXywamf AZXGEB960rbq+9+aozNWZ+Ob7yVb5WszjUWteEiX1r3LWOtd61vnB8vDTspL0eGoN8zG mHbF+suSjWN92YWGB8d6F6MP3zhD3HfE//bGQ0FFED8F6tW0B+w1X0PF62uwO+HrChtj vyzw== 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:mime-version :content-transfer-encoding; bh=S2pz0rN5YxgIZ9+xKpj04TZfJLwVeh5ljwZlweZ4hEU=; b=k2l/yvWl4rDQsQRPdf7JAHBj7ioNO6hFflPekCf9mCm3C5eFbgdvWyQeLOGn1Cc3dv J4SHpetFwPRB0f54jp/an1xvRVd2trCFSwpbqLIDta/a7LoG1KJJ8KwlrJ78EMhgV16+ W8Hyj/9TDNoCfzmsyuDGMngI4FbbvRF6brpRoyos3fNqxq7Vzpv1oRNbEacAqZ+8Y+rR UQ0oXH2nXuIGz6Nx3Z4lHcr3ulTCguyPXoaUJ4SqkxlEzSsfjTC/YvqQvtfqaPEqcn0b GmBJ1p+CKBMGujgKx2Fil39r2cnLYzZNpDL5P/vCh74rVGDx/+LfCDFG2mllZ9Ue26OH WaQg== X-Gm-Message-State: APjAAAUbEtnHQjAQ8FJEPhgomHpMqWCGhOIlZU/ay4dgeE51eea/1N4A 39f67JnAnXxLWIii2Nre4m+zhg== X-Received: by 2002:a5d:448e:: with SMTP id j14mr18189595wrq.158.1557751540348; Mon, 13 May 2019 05:45:40 -0700 (PDT) Received: from boomer.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id m13sm11576677wrs.87.2019.05.13.05.45.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 May 2019 05:45:39 -0700 (PDT) From: Jerome Brunet To: Neil Armstrong Cc: Jerome Brunet , Kevin Hilman , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] clk: meson: g12a: fix gp0 and hifi ranges Date: Mon, 13 May 2019 14:45:31 +0200 Message-Id: <20190513124531.20334-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While some SoC samples are able to lock with a PLL factor of 55, others samples can't. ATM, a minimum of 60 appears to work on all the samples I have tried. Even with 60, it sometimes takes a long time for the PLL to eventually lock. The documentation says that the minimum rate of these PLLs DCO should be 3GHz, a factor of 125. Let's use that to be on the safe side. With factor range changed, the PLL seems to lock quickly (enough) so far. It is still unclear if the range was the only reason for the delay. Fixes: 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller") Signed-off-by: Jerome Brunet --- drivers/clk/meson/g12a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 Reviewed-by: Martin Blumenstingl diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c index 206fafd299ea..d11606d5ddbd 100644 --- a/drivers/clk/meson/g12a.c +++ b/drivers/clk/meson/g12a.c @@ -463,7 +463,7 @@ static struct clk_regmap g12a_cpu_clk_trace = { }; static const struct pll_mult_range g12a_gp0_pll_mult_range = { - .min = 55, + .min = 125, .max = 255, };