Message ID | 20230615084841.12375-1-quic_devipriy@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp492679vqr; Thu, 15 Jun 2023 02:08:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Q51BWnq5+hGBmmBT2c1zpIGPcp8t9B89+EFyFEkX09JeWkpxN7dkpSwB9G3afoJtP/WPp X-Received: by 2002:a17:907:c12:b0:966:1bf2:2af5 with SMTP id ga18-20020a1709070c1200b009661bf22af5mr4524571ejc.22.1686820105283; Thu, 15 Jun 2023 02:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686820105; cv=none; d=google.com; s=arc-20160816; b=wk3UfwakSmdIVB4pyAEvFSJhTZbHEVgWhmBJRstBJBCGD6Nlyufwb+BN7+7pdAk7dr 32liELirX1s5F+gyF5Q4tXbFYanwPUGhOOxpPeYc/GKGqxKFyIk3IBOrdQHHrMrG3wU2 aBBmwJ4oEFRYKoVXdRx/s+1yiHQPfNj53fDl+Tst2IXHjo7wtQSjMHKL4zaJfZH4JYMP 3OkQGU2jJ2+gc5pM2E4leV5DD0LTVqBrxxV+lfWJtc3Mnr4NiSMFNr6vhrHciBL/TfRw 8m9it/nE5pppTL9f8HrTd2vZZaycyjupdxuSyjTkLsL1gblHlZWHUtM5wFAy6LSXOGEL ScTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=y8GbwR3Om8ATjvtpQuV6B+xsxm6V6zShZPUc3AEsx/0=; b=nNPtyFE0ckJFFeiX7g58i8X3wyr0+pA0kLS1E3QMMK9IrnJTdQYwJvrMtwit+eNmTw TuXTRdH8cHFkVqj7qlb9YCFZogXaOSdg5t92oLawUHjCMqWuM302/UkBb7xnLKHQwYhN 8I1RclmCPGJf36hsGi5ahD+I7VjE9ovaTOa3VfWcH/CAAf/8f7F0KoEBEkhQCv1JfEx7 Xzm7Csug536XMFy8Gbmy9SWw9OJl9VdLvpA2zgreNkX2bzWAZzqGIFJTh8HT9lM7kB+z tiaeZkyd95G3ft6fF8WAb1Yt80UrhPQ8oxmsNgMB9pPibjSGt4S9qXgNtI6SeHosCo9C 1b6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ohsugmcv; 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 j9-20020a170906830900b00978644b119fsi8485564ejx.983.2023.06.15.02.08.00; Thu, 15 Jun 2023 02:08:25 -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=ohsugmcv; 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 S240902AbjFOIuR (ORCPT <rfc822;n2h9z4@gmail.com> + 99 others); Thu, 15 Jun 2023 04:50:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245455AbjFOIth (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 15 Jun 2023 04:49:37 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 963912D57; Thu, 15 Jun 2023 01:49:19 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35F8bwdZ004498; Thu, 15 Jun 2023 08:49:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=y8GbwR3Om8ATjvtpQuV6B+xsxm6V6zShZPUc3AEsx/0=; b=ohsugmcvsoKHZLHDuJMdM/VHOxC0364Nn/IInd5h7/Tx2UAMK+OYj9TzLPPG4fvWz4Cr dLScST46kOPSfj0QaPdrRlP9xvuLRU0H6e8V5ds32o8ApOI3vyLYlS7nZs4npQeAonhv 9j4jPZCVTL+UfEB+GgzXe+cVhSX2pW/EqE4ULybRcXdV1VDBDQouCZF3GNHIs8bTKmve X2jXwy/6CIQP6dzKCaJfW3uQYAjgpJmLZAmTb7mKWl/QFVdFaMQ9eu17iNk8FeEEf2yo ml7gCRyHNsJ+8OYKeXIkJncEsiVi82EfwWM9fUHJ6VkldMwcJdr3w2VMrLd5Jec0Znmu Qg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3r7va2gej2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Jun 2023 08:49:16 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 35F8n3F0027583 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Jun 2023 08:49:03 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; Thu, 15 Jun 2023 01:48:58 -0700 From: Devi Priya <quic_devipriy@quicinc.com> To: <agross@kernel.org>, <andersson@kernel.org>, <konrad.dybcio@linaro.org>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <conor+dt@kernel.org>, <linux-arm-msm@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org> CC: <quic_srichara@quicinc.com>, <quic_sjaganat@quicinc.com>, <quic_kathirav@quicinc.com>, <quic_anusha@quicinc.com> Subject: [PATCH] arm64: dts: qcom: ipq9574: Use assigned-clock-rates for QUP I2C core clks Date: Thu, 15 Jun 2023 14:18:41 +0530 Message-ID: <20230615084841.12375-1-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain 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-GUID: XmG6i7Yb4grH_fWgidg7fU2DYSE2N6Xy X-Proofpoint-ORIG-GUID: XmG6i7Yb4grH_fWgidg7fU2DYSE2N6Xy X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-15_05,2023-06-14_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=769 priorityscore=1501 mlxscore=0 impostorscore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 clxscore=1011 phishscore=0 malwarescore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306150075 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 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768759078751136461?= X-GMAIL-MSGID: =?utf-8?q?1768759078751136461?= |
Series |
arm64: dts: qcom: ipq9574: Use assigned-clock-rates for QUP I2C core clks
|
|
Commit Message
Devi Priya
June 15, 2023, 8:48 a.m. UTC
Use assigned-clock-rates property for configuring the QUP I2C core clocks
to operate at nominal frequency.
Signed-off-by: Devi Priya <quic_devipriy@quicinc.com>
---
arch/arm64/boot/dts/qcom/ipq9574.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
Comments
On 15.06.2023 10:48, Devi Priya wrote: > Use assigned-clock-rates property for configuring the QUP I2C core clocks > to operate at nominal frequency. > > Signed-off-by: Devi Priya <quic_devipriy@quicinc.com> > --- There's probably some logic behind this, and it almost sounds like it'd be fitting to introduce an OPP table for I2C hosts, especially given the voltage requirements. Konrad > arch/arm64/boot/dts/qcom/ipq9574.dtsi | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi > index 0baeb10bbdae..78bf7f9c455a 100644 > --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi > +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi > @@ -361,6 +361,8 @@ > clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>, > <&gcc GCC_BLSP1_AHB_CLK>; > clock-names = "core", "iface"; > + assigned-clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>; > + assigned-clock-rates = <50000000>; > dmas = <&blsp_dma 14>, <&blsp_dma 15>; > dma-names = "tx", "rx"; > status = "disabled"; > @@ -389,6 +391,8 @@ > clocks = <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>, > <&gcc GCC_BLSP1_AHB_CLK>; > clock-names = "core", "iface"; > + assigned-clocks = <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>; > + assigned-clock-rates = <50000000>; > dmas = <&blsp_dma 16>, <&blsp_dma 17>; > dma-names = "tx", "rx"; > status = "disabled"; > @@ -417,6 +421,8 @@ > clocks = <&gcc GCC_BLSP1_QUP4_I2C_APPS_CLK>, > <&gcc GCC_BLSP1_AHB_CLK>; > clock-names = "core", "iface"; > + assigned-clocks = <&gcc GCC_BLSP1_QUP4_I2C_APPS_CLK>; > + assigned-clock-rates = <50000000>; > dmas = <&blsp_dma 18>, <&blsp_dma 19>; > dma-names = "tx", "rx"; > status = "disabled"; > @@ -446,6 +452,8 @@ > clocks = <&gcc GCC_BLSP1_QUP5_I2C_APPS_CLK>, > <&gcc GCC_BLSP1_AHB_CLK>; > clock-names = "core", "iface"; > + assigned-clocks = <&gcc GCC_BLSP1_QUP5_I2C_APPS_CLK>; > + assigned-clock-rates = <50000000>; > dmas = <&blsp_dma 20>, <&blsp_dma 21>; > dma-names = "tx", "rx"; > status = "disabled";
On 6/15/2023 2:21 PM, Konrad Dybcio wrote: > On 15.06.2023 10:48, Devi Priya wrote: >> Use assigned-clock-rates property for configuring the QUP I2C core clocks >> to operate at nominal frequency. >> >> Signed-off-by: Devi Priya <quic_devipriy@quicinc.com> >> --- > There's probably some logic behind this, and it almost sounds like > it'd be fitting to introduce an OPP table for I2C hosts, especially > given the voltage requirements. > > Konrad The qup i2c core clocks are not scalable and operate at fixed frequency. The assigned-clock-rates are used to configure the clock frequency if it is not done by the bootloaders. Thanks, Devi Priya >> arch/arm64/boot/dts/qcom/ipq9574.dtsi | 8 ++++++++ >> 1 file changed, 8 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi >> index 0baeb10bbdae..78bf7f9c455a 100644 >> --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi >> +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi >> @@ -361,6 +361,8 @@ >> clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>, >> <&gcc GCC_BLSP1_AHB_CLK>; >> clock-names = "core", "iface"; >> + assigned-clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>; >> + assigned-clock-rates = <50000000>; >> dmas = <&blsp_dma 14>, <&blsp_dma 15>; >> dma-names = "tx", "rx"; >> status = "disabled"; >> @@ -389,6 +391,8 @@ >> clocks = <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>, >> <&gcc GCC_BLSP1_AHB_CLK>; >> clock-names = "core", "iface"; >> + assigned-clocks = <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>; >> + assigned-clock-rates = <50000000>; >> dmas = <&blsp_dma 16>, <&blsp_dma 17>; >> dma-names = "tx", "rx"; >> status = "disabled"; >> @@ -417,6 +421,8 @@ >> clocks = <&gcc GCC_BLSP1_QUP4_I2C_APPS_CLK>, >> <&gcc GCC_BLSP1_AHB_CLK>; >> clock-names = "core", "iface"; >> + assigned-clocks = <&gcc GCC_BLSP1_QUP4_I2C_APPS_CLK>; >> + assigned-clock-rates = <50000000>; >> dmas = <&blsp_dma 18>, <&blsp_dma 19>; >> dma-names = "tx", "rx"; >> status = "disabled"; >> @@ -446,6 +452,8 @@ >> clocks = <&gcc GCC_BLSP1_QUP5_I2C_APPS_CLK>, >> <&gcc GCC_BLSP1_AHB_CLK>; >> clock-names = "core", "iface"; >> + assigned-clocks = <&gcc GCC_BLSP1_QUP5_I2C_APPS_CLK>; >> + assigned-clock-rates = <50000000>; >> dmas = <&blsp_dma 20>, <&blsp_dma 21>; >> dma-names = "tx", "rx"; >> status = "disabled";
On 22.06.2023 08:25, Devi Priya wrote: > > > On 6/15/2023 2:21 PM, Konrad Dybcio wrote: >> On 15.06.2023 10:48, Devi Priya wrote: >>> Use assigned-clock-rates property for configuring the QUP I2C core clocks >>> to operate at nominal frequency. >>> >>> Signed-off-by: Devi Priya <quic_devipriy@quicinc.com> >>> --- >> There's probably some logic behind this, and it almost sounds like >> it'd be fitting to introduce an OPP table for I2C hosts, especially >> given the voltage requirements. >> >> Konrad > The qup i2c core clocks are not scalable and operate at fixed frequency. > The assigned-clock-rates are used to configure the clock frequency > if it is not done by the bootloaders. OPP tables with a single entry are totally fine. Konrad > > Thanks, > Devi Priya >>> arch/arm64/boot/dts/qcom/ipq9574.dtsi | 8 ++++++++ >>> 1 file changed, 8 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi >>> index 0baeb10bbdae..78bf7f9c455a 100644 >>> --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi >>> +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi >>> @@ -361,6 +361,8 @@ >>> clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>, >>> <&gcc GCC_BLSP1_AHB_CLK>; >>> clock-names = "core", "iface"; >>> + assigned-clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>; >>> + assigned-clock-rates = <50000000>; >>> dmas = <&blsp_dma 14>, <&blsp_dma 15>; >>> dma-names = "tx", "rx"; >>> status = "disabled"; >>> @@ -389,6 +391,8 @@ >>> clocks = <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>, >>> <&gcc GCC_BLSP1_AHB_CLK>; >>> clock-names = "core", "iface"; >>> + assigned-clocks = <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>; >>> + assigned-clock-rates = <50000000>; >>> dmas = <&blsp_dma 16>, <&blsp_dma 17>; >>> dma-names = "tx", "rx"; >>> status = "disabled"; >>> @@ -417,6 +421,8 @@ >>> clocks = <&gcc GCC_BLSP1_QUP4_I2C_APPS_CLK>, >>> <&gcc GCC_BLSP1_AHB_CLK>; >>> clock-names = "core", "iface"; >>> + assigned-clocks = <&gcc GCC_BLSP1_QUP4_I2C_APPS_CLK>; >>> + assigned-clock-rates = <50000000>; >>> dmas = <&blsp_dma 18>, <&blsp_dma 19>; >>> dma-names = "tx", "rx"; >>> status = "disabled"; >>> @@ -446,6 +452,8 @@ >>> clocks = <&gcc GCC_BLSP1_QUP5_I2C_APPS_CLK>, >>> <&gcc GCC_BLSP1_AHB_CLK>; >>> clock-names = "core", "iface"; >>> + assigned-clocks = <&gcc GCC_BLSP1_QUP5_I2C_APPS_CLK>; >>> + assigned-clock-rates = <50000000>; >>> dmas = <&blsp_dma 20>, <&blsp_dma 21>; >>> dma-names = "tx", "rx"; >>> status = "disabled";
On Thu, 15 Jun 2023 14:18:41 +0530, Devi Priya wrote: > Use assigned-clock-rates property for configuring the QUP I2C core clocks > to operate at nominal frequency. > > Applied, thanks! [1/1] arm64: dts: qcom: ipq9574: Use assigned-clock-rates for QUP I2C core clks commit: 5229c1d6a0c7d7d8f51a27833e568909b8707c39 Best regards,
diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi index 0baeb10bbdae..78bf7f9c455a 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi @@ -361,6 +361,8 @@ clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>; clock-names = "core", "iface"; + assigned-clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>; + assigned-clock-rates = <50000000>; dmas = <&blsp_dma 14>, <&blsp_dma 15>; dma-names = "tx", "rx"; status = "disabled"; @@ -389,6 +391,8 @@ clocks = <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>; clock-names = "core", "iface"; + assigned-clocks = <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>; + assigned-clock-rates = <50000000>; dmas = <&blsp_dma 16>, <&blsp_dma 17>; dma-names = "tx", "rx"; status = "disabled"; @@ -417,6 +421,8 @@ clocks = <&gcc GCC_BLSP1_QUP4_I2C_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>; clock-names = "core", "iface"; + assigned-clocks = <&gcc GCC_BLSP1_QUP4_I2C_APPS_CLK>; + assigned-clock-rates = <50000000>; dmas = <&blsp_dma 18>, <&blsp_dma 19>; dma-names = "tx", "rx"; status = "disabled"; @@ -446,6 +452,8 @@ clocks = <&gcc GCC_BLSP1_QUP5_I2C_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>; clock-names = "core", "iface"; + assigned-clocks = <&gcc GCC_BLSP1_QUP5_I2C_APPS_CLK>; + assigned-clock-rates = <50000000>; dmas = <&blsp_dma 20>, <&blsp_dma 21>; dma-names = "tx", "rx"; status = "disabled";