From patchwork Wed May 17 17:25:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 95441 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1304333vqo; Wed, 17 May 2023 10:29:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4XX+d6xQiAIJDq+WtQq/l9mlfSL+Ai2JvyIrZ/knQy9Da5jJC+l8vq2W9aNldh67Mw03nT X-Received: by 2002:a05:6a20:a10d:b0:101:4d10:e40a with SMTP id q13-20020a056a20a10d00b001014d10e40amr38935096pzk.12.1684344548772; Wed, 17 May 2023 10:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684344548; cv=none; d=google.com; s=arc-20160816; b=f1B838+JiKNcFG6oZGqu69tSPiUozli2tIzjGL+500bzTzvcAEvNcG8wzM7sCIMjsH DNyKK/K3wBbel9+G1Fltx+dru24BkTiKT7SWtsFBrsFcbe79NX65JdXQUJ4wLhHp9sYD lDATB0WktZ2eTwFsbMZ+kh3yE20jka64j7jQTBLKvX/mTZYKkJW7cveeGUUWK/9cjgl9 KOmYxO6ugLR4xSX4daEIMY5Zbw6aMDQZDPklmCw6J5T7yP5fUJl2zfUfpVMMx5BjCfHP 2t27d0+D2LDNFkA8XVLCDpo0CxHMMtpeb8d0ljRmZtubp5hWqRZYTuteImLOGDkNoZdf BvNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=jGXX9lnReOzc9h/R39hgS5rI53YOA/sU83/rJyiiLyw=; b=Ix+yDRoGSDK9ZQV0m0twte0mZHFcPy0+bTKzljpPUY3mAAImrxGwaGjXppDxUJ0L8L ythvqGrvhkK76QiOFi92CVhPLiIrdgCHMcI7qwv+qaZwU1yhlqsf44O9SqOA5Ww32j+g +IhnBcRAOmsj0u82fCmuVX+O/6N6fI3OEQMp0hUmc3mLw8PJoVTu3zzp6N7HaNVj+dCY e1phGpKW1h9aRdkYolKfDYObB5AZQrejfCxigVS0yoxG9FxyTX4VxxKb0fRNOKgAl4g1 yjg8lRJLBcDMSG0JM1r6rIp/Wnx7FZg9xbJ/Os1fME9MVAqHbFhBDVue1nV5j1AUTedb O3UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HIbEsN3U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t15-20020a17090a4e4f00b0024dec166f91si2267023pjl.98.2023.05.17.10.28.38; Wed, 17 May 2023 10:29:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HIbEsN3U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229903AbjEQR0n (ORCPT + 99 others); Wed, 17 May 2023 13:26:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229814AbjEQR0d (ORCPT ); Wed, 17 May 2023 13:26:33 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BFE67EE4; Wed, 17 May 2023 10:26:15 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34H9Bw8b029498; Wed, 17 May 2023 17:25:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=jGXX9lnReOzc9h/R39hgS5rI53YOA/sU83/rJyiiLyw=; b=HIbEsN3Uzj4hn16Qf2MbnhZdLkcf3cQeFII9uf/WBroDZuKCjr6fq2CzJu2AxGW/7IFK 5ds+P9GrLLf4pvAF5kpviJ4513iWffbcBjtIOXewxd8U3/49R9erSANWcu9QVOWzTDgq f1dbObaB3cG4Nx3745tXtMg40OzBMW5jd18fkvUF1c2e5opJZvbE3/MvGv3wmtsOfZy6 HpgQ4s4KUeXs0IhXee9xKpIzylV7zAkSOMMRhbiAmZexyskRWzwd/7XDkWXW2IGsup2Y nMcuNJwjZuAcFKYyJ4zQN0outBwJ11c2dOJjg2PhswS+O0ShVn0LVFCdiGlF4AVZg42s 5A== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qmh32tbrx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 May 2023 17:25:59 +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 34HHPw4g007005 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 May 2023 17:25:58 GMT Received: from devipriy-linux.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.986.42; Wed, 17 May 2023 10:25:54 -0700 From: Devi Priya To: , , , , , , , , CC: , , , , Subject: [PATCH V5 3/3] arm64: dts: qcom: ipq9574: Add cpufreq support Date: Wed, 17 May 2023 22:55:27 +0530 Message-ID: <20230517172527.1968-4-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230517172527.1968-1-quic_devipriy@quicinc.com> References: <20230517172527.1968-1-quic_devipriy@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-ORIG-GUID: 3pyZ05gX0U64LSeH_DJ78DxRuVY2h11p X-Proofpoint-GUID: 3pyZ05gX0U64LSeH_DJ78DxRuVY2h11p X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-17_02,2023-05-17_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 priorityscore=1501 spamscore=0 clxscore=1015 lowpriorityscore=0 phishscore=0 mlxscore=0 mlxlogscore=760 adultscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305170143 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766163269259395087?= X-GMAIL-MSGID: =?utf-8?q?1766163269259395087?= Add cpu freq nodes in the device tree to bump cpu frequency above 800MHz. Reviewed-by: Konrad Dybcio Co-developed-by: Praveenkumar I Signed-off-by: Praveenkumar I Signed-off-by: Devi Priya --- Changes in V5: - Sorted the includes alphabetically arch/arm64/boot/dts/qcom/ipq9574.dtsi | 60 ++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi index 31244b1d8c25..16edffe53c8b 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi @@ -6,8 +6,9 @@ * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved. */ -#include +#include #include +#include #include / { @@ -37,6 +38,10 @@ reg = <0x0>; enable-method = "psci"; next-level-cache = <&L2_0>; + clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>; + clock-names = "cpu"; + operating-points-v2 = <&cpu_opp_table>; + cpu-supply = <&ipq9574_s1>; }; CPU1: cpu@1 { @@ -45,6 +50,10 @@ reg = <0x1>; enable-method = "psci"; next-level-cache = <&L2_0>; + clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>; + clock-names = "cpu"; + operating-points-v2 = <&cpu_opp_table>; + cpu-supply = <&ipq9574_s1>; }; CPU2: cpu@2 { @@ -53,6 +62,10 @@ reg = <0x2>; enable-method = "psci"; next-level-cache = <&L2_0>; + clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>; + clock-names = "cpu"; + operating-points-v2 = <&cpu_opp_table>; + cpu-supply = <&ipq9574_s1>; }; CPU3: cpu@3 { @@ -61,6 +74,10 @@ reg = <0x3>; enable-method = "psci"; next-level-cache = <&L2_0>; + clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>; + clock-names = "cpu"; + operating-points-v2 = <&cpu_opp_table>; + cpu-supply = <&ipq9574_s1>; }; L2_0: l2-cache { @@ -82,6 +99,47 @@ reg = <0x0 0x40000000 0x0 0x0>; }; + cpu_opp_table: opp-table-cpu { + compatible = "operating-points-v2"; + opp-shared; + + opp-936000000 { + opp-hz = /bits/ 64 <936000000>; + opp-microvolt = <725000>; + clock-latency-ns = <200000>; + }; + + opp-1104000000 { + opp-hz = /bits/ 64 <1104000000>; + opp-microvolt = <787500>; + clock-latency-ns = <200000>; + }; + + opp-1416000000 { + opp-hz = /bits/ 64 <1416000000>; + opp-microvolt = <862500>; + clock-latency-ns = <200000>; + }; + + opp-1488000000 { + opp-hz = /bits/ 64 <1488000000>; + opp-microvolt = <925000>; + clock-latency-ns = <200000>; + }; + + opp-1800000000 { + opp-hz = /bits/ 64 <1800000000>; + opp-microvolt = <987500>; + clock-latency-ns = <200000>; + }; + + opp-2208000000 { + opp-hz = /bits/ 64 <2208000000>; + opp-microvolt = <1062500>; + clock-latency-ns = <200000>; + }; + }; + pmu { compatible = "arm,cortex-a73-pmu"; interrupts = ;