From patchwork Mon Dec 17 09:46:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 153972 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2266598ljp; Mon, 17 Dec 2018 01:47:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/WktREyH6DuzxxI3ZxUfo0+AxaD+BD8K839z0Khv1UYmT3YGx+yaFfXZN43vF49j2Mr5sYP X-Received: by 2002:a17:902:f81:: with SMTP id 1mr11660825plz.174.1545040069225; Mon, 17 Dec 2018 01:47:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545040069; cv=none; d=google.com; s=arc-20160816; b=MaS3MI0qyUAYdLbdEed6o2YhuTZZRc0GIt8CifqivZA2M7Bm080Q6/CnVUiABBSSe0 X9PhxxMLD9EpsINouRvQ8VqpsaXNrMWhIwDtrPn4Dwk+slSRUSVZM9s3aW4mHLKBvdNG sQ1mj1X/D/ip8jls4ryl1Hf5GnK4HLhavRLGQCei6Mmv3WZQb85fqcnyCH3Tz5p3FUte OlU4PkMiU789im0638NFTrLMpi6Z5Te8JXR8WyZR1wZejaJ5LQf++wTYLH1NtPGAnyr6 1x1tgnX7YzMCeEigm5MmmhHgfAKQioejEip16X9e0dDE2nKvlfB0HEHYxKkFiqlDUF+z LSWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=MAoZVGyUyqIgBFjZmHlB19eSlto0aZoSbTGaZ+uSfto=; b=Xo82PySP3x7YCpujyXFtvKB9Q5fsY6dJ9xxc09CQM47ggIsQe+znGIOOzFv384BbjP TMqkYuOVaMBOMeNx4pWA+FMUr4qZfoNhf4gWhUOxWHNcHGk13vDnblGD0BPVJPVXxCtI OaCtVJRtgAQYEUdBS2srkwZ9940dfru6dwqVJ5YZbJIMZaF0uabLDCjlEYluZ2yc6PSK qmNxwt9GD+i7TLjHDV8/xa+CIq/JDFNvc1tRxyrf7Ufb6XQ2Rkh+Fo2wEuLJQCtB5/Pi QOm2wVgUjiVDwmwGmGe+5Aeo4K8Q6n4v0eeFLKrQrVPVlms2sLzHTZpfldz0f977MRYu 6M0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ju0aYP9T; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2si10306192plp.130.2018.12.17.01.47.48; Mon, 17 Dec 2018 01:47:49 -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=pass header.i=@linaro.org header.s=google header.b=ju0aYP9T; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732135AbeLQJqm (ORCPT + 31 others); Mon, 17 Dec 2018 04:46:42 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:40722 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732019AbeLQJqj (ORCPT ); Mon, 17 Dec 2018 04:46:39 -0500 Received: by mail-wr1-f68.google.com with SMTP id p4so11526622wrt.7 for ; Mon, 17 Dec 2018 01:46:37 -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:in-reply-to:references; bh=MAoZVGyUyqIgBFjZmHlB19eSlto0aZoSbTGaZ+uSfto=; b=ju0aYP9TwSWXr86I68EvqHSMfznus+2y4taD626AEyJQ8pivkVBFmqA1lZo0dF3+8n oMhIBEWw3Ak98UO+qQLaGCcj8vlMp1u0qie8op4+DYKI/rgoSKEXaTxUS0NvD52uSCJt EMU5uAVjdn/0rTOdtAPD4+qBGXiDqhE8eN8Mk= 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; bh=MAoZVGyUyqIgBFjZmHlB19eSlto0aZoSbTGaZ+uSfto=; b=loROqyw80hP9a2bqWr9haAlkObd51o1Oo6YN8ZwqtxktQQrniAn/GB/ky/CJdPBKTZ rbOWsR72OWancxbr6vpXA+tRfaxouX123EK6HxGhzB2GnBoi0rPPpfKajrhLg8hM1m0x yAzF+xsDdmSEEHibn7kOfQz2iVS4qWDA7VQ92k/In5tuxwoTjKXvRRvwMT0vLA7iqdFi HCngih09g+ZoDnlUSS1ndXVzxWQHgEhlE0kNFdBP713LRRNBP0E7aoWqJpPEiWbadSIi olRDNU0ZweNIEX9eBsm4zGky+JZ3ICx/oDSq/JQajqFdjTsOeHygOrd1e/LKApPt9wY9 3agA== X-Gm-Message-State: AA+aEWZ0PvkrPbVnabrzVGfFVDrP2sPveSF/ihj2BhWvhBRfZwK5WOum /T5+xZCJITwwaJ1Bn95yU+ah8w== X-Received: by 2002:a5d:418b:: with SMTP id m11mr8959307wrp.8.1545039997185; Mon, 17 Dec 2018 01:46:37 -0800 (PST) Received: from localhost.localdomain (58.red-81-47-145.staticip.rima-tde.net. [81.47.145.58]) by smtp.gmail.com with ESMTPSA id h12sm28878113wma.48.2018.12.17.01.46.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Dec 2018 01:46:36 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, andy.gross@linaro.org, david.brown@linaro.org, sboyd@kernel.org, will.deacon@arm.com, mturquette@baylibre.com, jassisinghbrar@gmail.com Cc: bjorn.andersson@linaro.org, vkoul@kernel.org, niklas.cassel@linaro.org, sibis@codeaurora.org, georgi.djakov@linaro.org, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [PATCH 01/13] clk: qcom: gcc: limit GPLL0_AO_OUT operating frequency Date: Mon, 17 Dec 2018 10:46:18 +0100 Message-Id: <1545039990-19984-2-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1545039990-19984-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1545039990-19984-1-git-send-email-jorge.ramirez-ortiz@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Limit the GPLL0_AO_OUT_MAIN operating frequency as per its hardware specifications. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz --- drivers/clk/qcom/gcc-qcs404.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.7.4 diff --git a/drivers/clk/qcom/gcc-qcs404.c b/drivers/clk/qcom/gcc-qcs404.c index 64da032..833436a 100644 --- a/drivers/clk/qcom/gcc-qcs404.c +++ b/drivers/clk/qcom/gcc-qcs404.c @@ -304,10 +304,16 @@ static struct clk_alpha_pll gpll0_out_main = { }, }; +static const struct pll_vco gpll0_ao_out_vco[] = { + { 800000000, 800000000, 0 }, +}; + static struct clk_alpha_pll gpll0_ao_out_main = { .offset = 0x21000, .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT], .flags = SUPPORTS_FSM_MODE, + .vco_table = gpll0_ao_out_vco, + .num_vco = ARRAY_SIZE(gpll0_ao_out_vco), .clkr = { .enable_reg = 0x45000, .enable_mask = BIT(0),