From patchwork Tue May 4 05:28:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 430800 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp3474955jao; Mon, 3 May 2021 22:29:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJBTX/xbTj0x6jY1ZniZIXmKmz9iWuXk27ipFBSst+6+i2yx1nvikUhEOmnMixSKvcqzJy X-Received: by 2002:a17:90a:be10:: with SMTP id a16mr2694567pjs.112.1620106155112; Mon, 03 May 2021 22:29:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620106155; cv=none; d=google.com; s=arc-20160816; b=ruNLJEOD3bcUSdFJht+ZlLJmIrsyczETCyAaMkPDExATiBXumO7kL/sYu8gnyG3Qho pm4zS5x7dkWbQ8/IEYL73bwdbJhYU94DJkGrSMOs4XQJmaFfn2OXBTRlzksbe7cv9gy/ d8jH3oB0xuM+JFsGZIDW9PcJV19oegoFwTbH9/DHNL3rKPv+AcOhLYiWfLtSS7IZy8y2 EHT5tfytToTLuN6eFU2Cr9nd0KdD18C4f9Vx/DWYIxjwnLypLnC0abUVD8byCXPf5VCn CZ4Hmd6CjRumCAsdOA3wfsrdoGUwwOHyA/efznLip0s0TkU/tecphrU7eri0ifrdObtu KxvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=aNWYHyF10Ocv0rGRJlTBLbyA6sxWZ+weiafnUhBtEKk=; b=eM8zw6IZtVeA7lV3umwafJZWd1G3J71IIh6xZ/INYWujVcqhRd4b0ZsIv35UuhTPbV EFiSZz1Yc8tzAq6KgtMcfgZmPim8eGDL8Kg9wssaw2gEzoWWS1SHyWdOT6C21/tTStlu smj0++7cmJ8tbRMyGqYPf1nZaMNHlbPY0nil1pYFYBP1fozXP7Dk4TRStHRcZ0lCgLP0 6NOYfsiYyt4tT4VaBhcCcaGmEBH0YsX3S6TGOLLKTuRoIuBb0ETRWFBDutOAgtLFZ3+i DZsyqS6f5WKShXRozABhtCg+wJisC4kQWzlqV/JL1y91JYYi6K6byG+sISFlJ5F24EnU 6a4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H16lLhHB; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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. [23.128.96.18]) by mx.google.com with ESMTP id ay4si2364221plb.71.2021.05.03.22.29.14; Mon, 03 May 2021 22:29:15 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H16lLhHB; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S229823AbhEDFaD (ORCPT + 6 others); Tue, 4 May 2021 01:30:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229802AbhEDFaD (ORCPT ); Tue, 4 May 2021 01:30:03 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C07FC061761 for ; Mon, 3 May 2021 22:29:09 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id h11so6344745pfn.0 for ; Mon, 03 May 2021 22:29:09 -0700 (PDT) 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=aNWYHyF10Ocv0rGRJlTBLbyA6sxWZ+weiafnUhBtEKk=; b=H16lLhHBiZ9W/Un4AkE6jMkWBw2frgqbf7Eg/+/OqK0hiBEKl4VgMUPRdXXJH1KIT/ p7N2P75kCYNBGS4+kG259a+H/Q207cyygXepskuVu/jHb7QXptY8Irnr3720q2qI8SE7 4SRPDC1HdmfAMkgO1QjxSrYDiqNXJGGHlgqFfepy3q8kdgNZgL8Tl38Fq7D0fdadyg4Z KVgGWxmNY1A6537b+G1tUHWUXGAziNpeDDwtq3InYmY4lCCKHFixy4Yp7ntqVoHw2WwB jU+5UkeFfwIwNKYVwyTH6T3UWJ3zIzizk8WW2LqRdHXpZg/8FJn1/NQlNsosF4KzDZzn LYYg== 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=aNWYHyF10Ocv0rGRJlTBLbyA6sxWZ+weiafnUhBtEKk=; b=TzciBEamIR04FdYUjusPoC3CwEzTcQd4WEaGAp8B5R1ZkYvmMSc4brg03b4f19oGj0 9VrFdctX1RSOFHLzc+pthaTWlzqM2/l43K1NJwF1SD/SJXsBW4hcsnUjk0FfroukMbSf 3jIXlp/5XilSTWYMg6edqScyHldrOuZU29lwJT7hR+o8hnQR306bbNqv8eaZF23RlYq9 Jj496I73AYIa3UIh54AHkMhXAKjVcM0Ggp/ILDelta/abmsR6PGadbEg7dNvbR9kRnAT oc88B+lH0tpIAZyKoONz6TCVKvwsqLQXCYimDb/aORsk+QVR1nXfsjLvyO5c0rQfsGlc kYbA== X-Gm-Message-State: AOAM531kKtFaDto4Q09/gJbsbi8pXzyfuhiCEPGjoh1DT2RIYcZXAykW SD6Bt83nVoSw/tC1RkOpxRknKE4710ZUHw== X-Received: by 2002:a05:6a00:138b:b029:27f:179f:2c20 with SMTP id t11-20020a056a00138bb029027f179f2c20mr21803788pfg.37.1620106148803; Mon, 03 May 2021 22:29:08 -0700 (PDT) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id 145sm5933229pfv.196.2021.05.03.22.29.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 May 2021 22:29:08 -0700 (PDT) From: Shawn Guo To: Stephen Boyd Cc: Bjorn Andersson , Rob Herring , Sivaprakash Murugesan , Benjamin Li , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, Shawn Guo Subject: [PATCH 5/5] clk: qcom: a53-pll: Add MSM8939 a53pll clocks Date: Tue, 4 May 2021 13:28:44 +0800 Message-Id: <20210504052844.21096-6-shawn.guo@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210504052844.21096-1-shawn.guo@linaro.org> References: <20210504052844.21096-1-shawn.guo@linaro.org> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org It adds support for MSM8939 a53pll clock of Cluster0, Cluster1 and CCI (Cache Coherent Interconnect). The frequency data comes from vendor kernel. Signed-off-by: Shawn Guo --- drivers/clk/qcom/a53-pll.c | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) -- 2.17.1 diff --git a/drivers/clk/qcom/a53-pll.c b/drivers/clk/qcom/a53-pll.c index bfa048dc01ec..8c6f8bcc6128 100644 --- a/drivers/clk/qcom/a53-pll.c +++ b/drivers/clk/qcom/a53-pll.c @@ -26,6 +26,45 @@ static const struct pll_freq_tbl msm8916_freq[] = { { } }; +static const struct pll_freq_tbl msm8939_c0_freq[] = { + { 998400000, 52, 0x0, 0x1, 0 }, + { 1113600000, 58, 0x0, 0x1, 0 }, + { 1209600000, 63, 0x0, 0x1, 0 }, +}; + +static const struct pll_freq_tbl msm8939_c1_freq[] = { + { 652800000, 34, 0x0, 0x1, 0 }, + { 691200000, 36, 0x0, 0x1, 0 }, + { 729600000, 38, 0x0, 0x1, 0 }, + { 806400000, 42, 0x0, 0x1, 0 }, + { 844800000, 44, 0x0, 0x1, 0 }, + { 883200000, 46, 0x0, 0x1, 0 }, + { 960000000, 50, 0x0, 0x1, 0 }, + { 998400000, 52, 0x0, 0x1, 0 }, + { 1036800000, 54, 0x0, 0x1, 0 }, + { 1113600000, 58, 0x0, 0x1, 0 }, + { 1209600000, 63, 0x0, 0x1, 0 }, + { 1190400000, 62, 0x0, 0x1, 0 }, + { 1267200000, 66, 0x0, 0x1, 0 }, + { 1344000000, 70, 0x0, 0x1, 0 }, + { 1363200000, 71, 0x0, 0x1, 0 }, + { 1420800000, 74, 0x0, 0x1, 0 }, + { 1459200000, 76, 0x0, 0x1, 0 }, + { 1497600000, 78, 0x0, 0x1, 0 }, + { 1536000000, 80, 0x0, 0x1, 0 }, + { 1574400000, 82, 0x0, 0x1, 0 }, + { 1612800000, 84, 0x0, 0x1, 0 }, + { 1632000000, 85, 0x0, 0x1, 0 }, + { 1651200000, 86, 0x0, 0x1, 0 }, + { 1689600000, 88, 0x0, 0x1, 0 }, + { 1708800000, 89, 0x0, 0x1, 0 }, +}; + +static const struct pll_freq_tbl msm8939_cci_freq[] = { + { 403200000, 21, 0x0, 0x1, 0 }, + { 595200000, 31, 0x0, 0x1, 0 }, +}; + static const struct regmap_config a53pll_regmap_config = { .reg_bits = 32, .reg_stride = 4, @@ -98,6 +137,9 @@ static int qcom_a53pll_probe(struct platform_device *pdev) static const struct of_device_id qcom_a53pll_match_table[] = { { .compatible = "qcom,msm8916-a53pll", .data = msm8916_freq }, + { .compatible = "qcom,msm8939-a53pll-c0", .data = &msm8939_c0_freq }, + { .compatible = "qcom,msm8939-a53pll-c1", .data = &msm8939_c1_freq }, + { .compatible = "qcom,msm8939-a53pll-cci", .data = &msm8939_cci_freq }, { } };