From patchwork Thu Sep 14 07:00:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kathiravan Thirumoorthy X-Patchwork-Id: 139638 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp415167vqi; Thu, 14 Sep 2023 08:07:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGIgI4qjXgS/vuuR0H72xwjMcMU1kwcOmB7IE7EcSowNn53yk/q6b1/repUDfxy6G70R6/p X-Received: by 2002:a05:6a00:1487:b0:68f:ca4a:efd with SMTP id v7-20020a056a00148700b0068fca4a0efdmr5869216pfu.9.1694704027452; Thu, 14 Sep 2023 08:07:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694704027; cv=none; d=google.com; s=arc-20160816; b=UBKwoZFkO8bMaccMLiiTelToqxIyDdY1vAbq1pEpa6nTMxQDXZVz2qEDK24GC/vMmP L3EahpsxJ4UPcQfJ8lwSooW14lcxZqfVURmqCGdcAyP9XDbrcL/ysLIuiNrCw3FQy9Su tTkpTJfzRhPguirNEJstVmgs26jRLd4rytH5TL0EkeuxsFGUM8DSW58F5blMYse5n3Yg eEVupXMHRLuQIi/ZW/EgAma6B08nQzYLewtizqYRo/Pmixxz2yPs+ZUU9F7hajmNuFdt pMPeH4lpUw/DKqJ23203N8Sef+zmp+SkOKeXuIwEHSnHpqEXBguU8tPd2a3M9y9j9KjW pz5A== 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=6bUxuFmDS4klU4fka2mvvCCsFdZpWPq+L4yzDGtwpo8=; fh=mjIL62vQiB4A8O5MMPZfdH8yNQTN0AjxF7i8ByKD+tU=; b=mrTgAqFRlQ0YL4wMz8kwe777gVQgpAqCxPppXGYzCo3jg6NMdy+NK1GLCfTZJ+yZUY TfwhvKa99dozMl7XmBeS8MkGx4UUpoqUzDsDBfNFR+WQg45prSgBwIvy4NFoXsT+XB/0 l43yFyovm38nhAJIdp0eiO48t01hVT+TOF7Oh7HtJQwYl/bYMCzXbmlKInpuxJpQDFGo 3rI6t86OtAJ8Y6k1Fi/sGZrdK1hf4jSgmxQUYaJ5mXn50hcgGVnzcQC3dNZ0HmBBj5i9 LaVlOlHpcyzUbX7eWH3r/aK8BZmDyDoQfFZFYG7/lF1s4UnCkgUfzAQwkHh9ZbxGqwig xl+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=i181YpEv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id br14-20020a056a00440e00b0068fb5cec8cfsi1781777pfb.267.2023.09.14.08.07.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 08:07:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=i181YpEv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 692038218878; Thu, 14 Sep 2023 00:02:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235822AbjINHBg (ORCPT + 35 others); Thu, 14 Sep 2023 03:01:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233607AbjINHBY (ORCPT ); Thu, 14 Sep 2023 03:01:24 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 167DA10C3; Thu, 14 Sep 2023 00:01:20 -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 38E237v7016462; Thu, 14 Sep 2023 07:01:15 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=6bUxuFmDS4klU4fka2mvvCCsFdZpWPq+L4yzDGtwpo8=; b=i181YpEvLJ38kFFhde718m4MO4L1kpBXzOeftAlrkLebvOlGewsFzH84saVEVdICBBua odF4nCdy9SiSB4ko7LUKGfum+8usoSDoIZD0RGO3HhP0DfT4QQlyf8JdjSDSS7Wq0Sr3 1gz66GteZD0P0GUjvJ8jWy5tfWZu521OkNAbtjl5EwqzcyIVjVk9wvB7xRQ9OjRcpI1Y V93xW/8VUqE9RUxfBizbIIIKmT1vn7YNv7xvPD7K48ZdY+uwOU03VRUtxZDYk9pjprym op0OqNKubgllBg6LbLUfxolvuPt9FcLrjcTMoUz+4awI+nu9XwObwzxghvLh+GMRsL+r wQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t3dj8a6ch-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 NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38E71DET025648 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 07:01:13 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:01:08 -0700 From: Kathiravan Thirumoorthy Date: Thu, 14 Sep 2023 12:30:00 +0530 Subject: [PATCH v2 10/11] arm64: dts: qcom: ipq9574: include the GPLL0 as clock provider for mailbox MIME-Version: 1.0 Message-ID: <20230913-gpll_cleanup-v2-10-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" X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694674810; l=1231; i=quic_kathirav@quicinc.com; s=20230906; h=from:subject:message-id; bh=veUniM41mszJd7aRSOLoQFrZylo/OvtixnEi2jYQD+g=; b=YmuzWpY0/eLnQ8avGXiBUEaaMIW0z1Z/W9uWq0dWK6y1RfzlsnoHOA6ouEQC1mx1C8bLnBn/o l5Ggj1UQHTUA4Z0FgcoPTteTe/6/hJmSJKXagPbU0QoKbD/xXL7mQI+ 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: BDRiFF-3wDs-KOYGKY9YKIyuzMH8KzPz X-Proofpoint-ORIG-GUID: BDRiFF-3wDs-KOYGKY9YKIyuzMH8KzPz 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=1 spamscore=0 impostorscore=0 malwarescore=0 bulkscore=0 phishscore=0 suspectscore=0 mlxlogscore=803 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 (agentk.vger.email [0.0.0.0]); Thu, 14 Sep 2023 00:02:25 -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 agentk.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777025970393963546 X-GMAIL-MSGID: 1777025970393963546 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 to the rate based on the opp table and the source also will be changed to APSS_PLL_EARLY. So allow the mailbox to consume the GPLL0, with this inclusion, CPU Freq correctly reports that CPU is running at 800MHz rather than 24MHz. Signed-off-by: Kathiravan Thirumoorthy Reviewed-by: Konrad Dybcio --- Changes in V2: - Splitted the change into target specific file --- arch/arm64/boot/dts/qcom/ipq9574.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi index 51aba071c1eb..89edb4b852df 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi @@ -652,8 +652,8 @@ apcs_glb: mailbox@b111000 { "qcom,ipq6018-apcs-apps-global"; reg = <0x0b111000 0x1000>; #clock-cells = <1>; - clocks = <&a73pll>, <&xo_board_clk>; - clock-names = "pll", "xo"; + clocks = <&a73pll>, <&xo_board_clk>, <&gcc GPLL0>; + clock-names = "pll", "xo", "gpll0"; #mbox-cells = <1>; };