Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp753178rwl; Fri, 7 Apr 2023 05:06:23 -0700 (PDT) X-Google-Smtp-Source: AKy350bF3Bje6yeUU/G/Dx46v2W32qehv2qran5SmEVxN9qz+VFFYmQra5b4N8btYg3hdeBpRU3f X-Received: by 2002:a17:906:3acd:b0:920:7827:302 with SMTP id z13-20020a1709063acd00b0092078270302mr1429441ejd.18.1680869183261; Fri, 07 Apr 2023 05:06:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680869183; cv=none; d=google.com; s=arc-20160816; b=zZFbLWWkIq2Rnu2bj5EsNaWFAfiv+GHY1RUiLCEQqOdCZKrl1JIxaYclE4Di2TiOw9 ZzTbL2RhG+Oa0ybk0qrhjvpVFnlLGn14HY7sqku1COrdjQyGbi2+0dO0OsBcas1GVx0w I3CHk9bbHRFaxsl9K9eBr/jm4H1f9YgnABPstZCdwkRmcZzsWtTsrLz6X9vndqTIKNiA KR14lFe8o28tgJlOQSOVO9AYdQyqPabyr8d87xCIYCToMl/VbjPJxpMWo1t4Bl2tN9gK b0V5iABCxXGef6XvaXCpfKlUBKfXnyhde2MiEAv1dyx2iXv8Jhp0JW+QvT4x2aeevS0a 2QLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=wyNciRuuESIaKZEY8Qa86obLOtLCt19xSQ+LjBWVyjQ=; b=UA5Y2MzQHGIFTEyP+78GAxJLq2lKM0HPqqhAod3gDJJqoHi3pm/dLkHL5LHETj6EQq wJl7K6YjQ9F662fQZM1/uLoJAyV/mX5zqtpH3ouD28r5e9Cgv8N7BAAvytR3zh6qY2nu Ye7FB+Na/2CKHoWPw1+XtCPnBfkPevcYEY0yyKpIg6zxyBTBiUHcNzhM8yqvTxnt5q2R v0KCFOGou5AiUy8neqzEle0aQC/auCRbrG336TosV/T5gB2NbcWbREFxmOJ09YBIaqwz XWdel9JVSLlY5wXF88zo+IrnelHy+kKLwB9SPAA02PxZh+il6lxfGoa2MC9ZCtHRcaT0 Uj9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x6t4GkeP; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt5-20020a170907728500b00926b7e35cf0si4217478ejc.165.2023.04.07.05.05.55; Fri, 07 Apr 2023 05:06:22 -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=@linaro.org header.s=google header.b=x6t4GkeP; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240375AbjDGL7X (ORCPT + 99 others); Fri, 7 Apr 2023 07:59:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239298AbjDGL7V (ORCPT ); Fri, 7 Apr 2023 07:59:21 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BED8783F2 for ; Fri, 7 Apr 2023 04:59:19 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id z42so43300608ljq.13 for ; Fri, 07 Apr 2023 04:59:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680868758; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wyNciRuuESIaKZEY8Qa86obLOtLCt19xSQ+LjBWVyjQ=; b=x6t4GkePT4JZJ8ZgtSOSGs26QhXMjRbSyqg/eMVLLWn4zVRxKrxl5K/BgF+DrHZuds s0jW3zyiwUl/LnZAih0GzV/X/1Yps9wU0ws51V8XXiC7LGAh/g4dxNtNwLdb15crQUc0 UwR7GcC+qebSayaEPaFwBe8FBh3Jko6hrhaUwDVm2EhKHm5yURJALcbFXl+dAbNGkZDO c+jEhsEZG1Iq/c/pZdsOrQFyym9+iodZUZXLoUP4tecBl+dCpf2kwvZr3saMHm9UgPNV 9fBa1sIS11zPyUf5IQC1zSYK/oeWeRX+S/84SWlAYY4BYvnmtQQasWB1j3bKyB6kujM3 8JDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680868758; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wyNciRuuESIaKZEY8Qa86obLOtLCt19xSQ+LjBWVyjQ=; b=cWrhB88dNtcTasD+DyFgCnGxwpAuZuwjeLlRcAY9HeM0mSyAN+7Moocmc+SJVBdinY gslAPmCR4Gy0YHbGlGTPQDMSwv6ngDLAzNH5fuwi2V+s+Bj2tGVsgrBv1fYghn8it76j 022es8ox4KaL29KTsxSjWZ/6lZFMvCoXH2prLQZW/j+w2l5vI9e442WCVMhSaHvRif27 uYejQ2pBKv7TDmIlWkUGIZbrvxS0vV/LWBDJ8Hj1rjmJDYMF7UusiNa2EULg5u3Ot9qY AMdfq/7XNlEMiAw8oHf2Pn7TJAMdJW54omqOANjtGZTDJyYYTdZqr8kr9EW5uFmpy5su i1rQ== X-Gm-Message-State: AAQBX9dOuoxyJx2cJcXQfNJflx2bSPTahnN0F/AP72I3ltcpJekUgbZW GVMciWeQIjI4eH1YPx31cXla2g== X-Received: by 2002:a05:651c:ba5:b0:2a6:13f:5f6c with SMTP id bg37-20020a05651c0ba500b002a6013f5f6cmr419351ljb.5.1680868757969; Fri, 07 Apr 2023 04:59:17 -0700 (PDT) Received: from [192.168.1.101] (abxh37.neoplus.adsl.tpnet.pl. [83.9.1.37]) by smtp.gmail.com with ESMTPSA id b8-20020a2e9888000000b0029571d505a1sm774904ljj.80.2023.04.07.04.59.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Apr 2023 04:59:17 -0700 (PDT) Message-ID: Date: Fri, 7 Apr 2023 13:59:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH V3 5/5] arm64: dts: qcom: ipq9574: Add cpufreq support To: Devi Priya , agross@kernel.org, andersson@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: quic_srichara@quicinc.com, quic_sjaganat@quicinc.com, quic_kathirav@quicinc.com, quic_arajkuma@quicinc.com, quic_anusha@quicinc.com, quic_ipkumar@quicinc.com References: <20230406070032.22243-1-quic_devipriy@quicinc.com> <20230406070032.22243-6-quic_devipriy@quicinc.com> <18eb5708-bf51-26c3-51a0-70a5069ffdbe@linaro.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7.04.2023 06:53, Devi Priya wrote: > > > On 4/7/2023 1:21 AM, Konrad Dybcio wrote: >> >> >> On 6.04.2023 09:00, Devi Priya wrote: >>> Add cpu freq nodes in the device tree to bump cpu frequency above 800MHz. >>> >>> Co-developed-by: Praveenkumar I >>> Signed-off-by: Praveenkumar I >>> Signed-off-by: Devi Priya >>> --- >>>   Changes in V3: >>>     - No change >>> >>>   arch/arm64/boot/dts/qcom/ipq9574.dtsi | 58 +++++++++++++++++++++++++++ >>>   1 file changed, 58 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi >>> index 1f9b7529e7ed..cfef87b5fd22 100644 >>> --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi >>> +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi >>> @@ -6,6 +6,7 @@ >>>    * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved. >>>    */ >>>   +#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 { >>> @@ -75,6 +92,47 @@ >>>           reg = <0x0 0x40000000 0x0 0x0>; >>>       }; >>>   +    cpu_opp_table: opp-table-cpu { >> This is not sorted properly. It should probably come >> after memory alphabetically ('o' > 'm') >> > Yes, But I see that opp-table-cpu node is already placed after > memory@40000000 Oh you're right, the diff doesn't really show that very well and I didn't notice.. Reviewed-by: Konrad Dybcio Konrad >> Konrad >>> +        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>; >>> +        }; >>> +    }; >>> + >>>       firmware { >>>           scm { >>>               compatible = "qcom,scm-ipq9574", "qcom,scm"; > Best Regards, > Devi Priya