Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3918593rdb; Thu, 14 Sep 2023 06:48:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFulOJUXOGtVwvwfzRdCmqZ/qn5x9BOY/y1tkKW6HWN2yKoxpDmwiyWcHRx5gYGTzuoB4bB X-Received: by 2002:a05:6a00:b4f:b0:68f:b72f:9aca with SMTP id p15-20020a056a000b4f00b0068fb72f9acamr6409342pfo.27.1694699306820; Thu, 14 Sep 2023 06:48:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694699306; cv=none; d=google.com; s=arc-20160816; b=jI1QBm+SvEm1ZQ70+Sw/NCD1dpeKxucgjaAk5VQG4QyyHzAq0N3K3L4EItkrXzRJUO fjLfeRoel1Bn0aH4qKdD3oUjzniwumxCuTDlTtiwC1H/+GzZ8ij/3ni1SaNyK0SHddId j2E2Vu2coammstSnc9kVKFX19Hah+bZhagwS/akU4eS8YIGygDds/t7w9PLyyxUIuB5t szusDHxpS2Z/QkYEBLBp0vIXeXhNdFevjrLi2sNIxwuSBdKk87zpLeGVFa4nj/abKkb7 JYOQnZBKvrhH+BL4K6lv8tmhy+AyN1P91yB6yjNF4ix/5K8XZhaBd2c8JawjjvhOwpls nbdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=LiD3LvDZ+UPBugMGzkY7XarM7OFaqZovwvV8zwDKJCM=; fh=LAXcebzpE6V5k/JOCTKB1AMFvCiLQvFVoyCjGldasyM=; b=YPCp4aYglzC5OqSnyT/7+Kchqf6vaKpGLMSg9OiO9+wJjZPwoMxhOgyillfsWOnfU1 81faqg4SQdc0DDcUMCEW03VDU5OOMTt4TXx1m61ZIRVK4BfdSdxooB4jl+wevfcL1CV4 bj04fQTvScJ4SEV/hkIE/SttmvImxJDH/6pqTMsNJFYBu5E3sLrtwomXuuSNXmYP2Zem ptjF7jJi3HopYRKFqFWEnoamiHRKlKVqP4OqUrn2eZ5yHGwhqLo9wUWRTxoxfyqWgW/V GvC+MQKMXjHzJwMt8N9d3t1dwBSOXxhJl6J1MHnwfr4ALf6JrlcTnDWNzmwq8LEfNAzJ m8Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="llfYURq/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id m7-20020a632607000000b00563e15edb8fsi1604718pgm.544.2023.09.14.06.48.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 06:48:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="llfYURq/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 13557806888E; Thu, 14 Sep 2023 00:01:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235890AbjINHBd (ORCPT + 99 others); Thu, 14 Sep 2023 03:01:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229967AbjINHBX (ORCPT ); Thu, 14 Sep 2023 03:01:23 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D172BE6E; Thu, 14 Sep 2023 00:01:18 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38E237v6016462; Thu, 14 Sep 2023 07:01:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : references : in-reply-to : to : cc; s=qcppdkim1; bh=LiD3LvDZ+UPBugMGzkY7XarM7OFaqZovwvV8zwDKJCM=; b=llfYURq/nkGEqP1JQS3pjafZdaUuZIh4SemFjmAjocVXqMCbnb68HubRLk0NykIUfQHL Um0hj7RIXW93LgjlUN7+EZXPGYwsEfqoede05wOgMQs94XTEa116ZtRV2qL6wv6IEsOY j0m+SB/LsTreApdQLTbLs5CwK/tS1qzE85hFNPqh5HjnSpRdPQMtR/zcHy1m31IhMP/c PPijBHv4rq/f6IHXl4vQGWlLJ6GKwZ200qiQXXXokHey4Vaphw3Q8HG94O5hMjMcvKKI qsVWmt34/KNGkgnEkV2/tFJ9bn9REUsSN+aNmxZOQkrI5NW4Qa7lz59AOOtCutZb3kmi IA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t3dj8a6c4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:01:14 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38E70vrw020152 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:00:57 GMT Received: from hu-kathirav-blr.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Thu, 14 Sep 2023 00:00:51 -0700 From: Kathiravan Thirumoorthy Date: Thu, 14 Sep 2023 12:29:57 +0530 Subject: [PATCH v2 07/11] clk: qcom: apss-ipq6018: add the GPLL0 clock also as clock provider MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20230913-gpll_cleanup-v2-7-c8ceb1a37680@quicinc.com> References: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> In-Reply-To: <20230913-gpll_cleanup-v2-0-c8ceb1a37680@quicinc.com> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , "Sricharan Ramabadhran" , Gokul Sriram Palanisamy , Varadarajan Narayanan , Anusha Rao , Devi Priya , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , , "Kathiravan Thirumoorthy" , Robert Marko X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694674810; l=1271; i=quic_kathirav@quicinc.com; s=20230906; h=from:subject:message-id; bh=0WLXM7UqBZpsd0pHbjXLnJu/oCGwNfmF+vKO/PV2u8k=; b=fycx2BXyEF2j8rwWSoyeowB/WDt1d7i0/e6F/ZzF6MjPiruezY08l5sje0mGps2MWjtNyCboh K/puEx6hiooAuC61b9fZdGKgTY0FQ+XqOTnJez5ZbGOiY8nQOxEolf2 X-Developer-Key: i=quic_kathirav@quicinc.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: gywkCSXhlFJUEcY0CM-i6lZ8dJlbK2oO X-Proofpoint-ORIG-GUID: gywkCSXhlFJUEcY0CM-i6lZ8dJlbK2oO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-14_04,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 mlxscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 impostorscore=0 malwarescore=0 bulkscore=0 phishscore=0 suspectscore=0 mlxlogscore=975 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309140062 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 14 Sep 2023 00:01:46 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email While the kernel is booting up, APSS PLL will be running at 800MHz with GPLL0 as source. Once the cpufreq driver is available, APSS PLL will be configured and select the rate based on the opp table and the source will be changed to APSS_PLL_EARLY. Without this patch, CPU Freq driver reports that CPU is running at 24MHz instead of the 800MHz. Reviewed-by: Konrad Dybcio Tested-by: Robert Marko Signed-off-by: Kathiravan Thirumoorthy --- Changes in V2: - Pick up te R-b and T-b tags. Thanks Robert! --- drivers/clk/qcom/apss-ipq6018.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/qcom/apss-ipq6018.c b/drivers/clk/qcom/apss-ipq6018.c index f2f502e2d5a4..4e13a085a857 100644 --- a/drivers/clk/qcom/apss-ipq6018.c +++ b/drivers/clk/qcom/apss-ipq6018.c @@ -20,16 +20,19 @@ enum { P_XO, + P_GPLL0, P_APSS_PLL_EARLY, }; static const struct clk_parent_data parents_apcs_alias0_clk_src[] = { { .fw_name = "xo" }, + { .fw_name = "gpll0" }, { .fw_name = "pll" }, }; static const struct parent_map parents_apcs_alias0_clk_src_map[] = { { P_XO, 0 }, + { P_GPLL0, 4 }, { P_APSS_PLL_EARLY, 5 }, }; -- 2.34.1