From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC0D8C433EF for ; Fri, 4 Mar 2022 03:58:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237672AbiCDD6z (ORCPT ); Thu, 3 Mar 2022 22:58:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229965AbiCDD6z (ORCPT ); Thu, 3 Mar 2022 22:58:55 -0500 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AEF64C799; Thu, 3 Mar 2022 19:58:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1646366287; x=1677902287; h=subject:from:to:cc:references:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=ebBvZoakZRPaLqiip1r6GvYgYOcgLjCmwdtlw630iFQ=; b=umLWZbXDF6PrerhbCaMJM2sKtjM5pwiacwGIx/EbGRJFI3EWdTEr6CXi fN36kIkOK5b1nUIzn1ClUDG4y8STuxC660xNtgrw790TGmxUn7P9NyioD v2k7FU3HGlPJUxwPxL+0sNTK8LjpuHU+rkPYojC6+RY2pse5wcPabxExm Y=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-01.qualcomm.com with ESMTP; 03 Mar 2022 19:58:07 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2022 19:58:06 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Thu, 3 Mar 2022 19:58:06 -0800 Received: from [10.50.57.42] (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.15; Thu, 3 Mar 2022 19:58:02 -0800 Subject: Re: [PATCH] arm64: dts: qcom: ipq8074: fix the sleep clock frequency From: Kathiravan Thirumoorthy To: Bjorn Andersson CC: , , , , , , , , References: <1644581655-11568-1-git-send-email-quic_kathirav@quicinc.com> <848671a3-dcf0-9968-f3fd-a3c5b9902ccf@quicinc.com> Message-ID: Date: Fri, 4 Mar 2022 09:27:59 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <848671a3-dcf0-9968-f3fd-a3c5b9902ccf@quicinc.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US 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) Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On 2/25/2022 5:48 PM, Kathiravan Thirumoorthy wrote: > > On 2/25/2022 1:27 AM, Bjorn Andersson wrote: >> On Fri 11 Feb 06:14 CST 2022, Kathiravan T wrote: >> >>> Sleep clock frequency should be 32768Hz. Lets fix it. >>> >>> Cc: stable@vger.kernel.org >>> Fixes: 41dac73e243d ("arm64: dts: Add ipq8074 SoC and HK01 board >>> support") >>> Link: >>> https://lore.kernel.org/all/e2a447f8-6024-0369-f698-2027b6edcf9e@codeaurora.org/ >>> Signed-off-by: Kathiravan T >> Can you please confirm this? The documentation for GCC says that the >> incoming sleep clock is 32000Hz. >> >> Regards, >> Bjorn > > Bjorn, > > I checked the internal documents and it is derived from the PMIC as > 32.7645KHz. I rounded off it to 32768Hz. Looks like GCC documentation > is not up-to-date. > > All these information is available in the link > https://lore.kernel.org/all/e2a447f8-6024-0369-f698-2027b6edcf9e@codeaurora.org/ > > Please let me know if you need any further information. > > Thanks, > > Kathiravan T. Bjorn, Gentle Ping. Thanks, Kathiravan T. > >>> --- >>>   arch/arm64/boot/dts/qcom/ipq8074.dtsi | 2 +- >>>   1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi >>> b/arch/arm64/boot/dts/qcom/ipq8074.dtsi >>> index 26ba7ce9222c..b6287355ad08 100644 >>> --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi >>> +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi >>> @@ -13,7 +13,7 @@ >>>       clocks { >>>           sleep_clk: sleep_clk { >>>               compatible = "fixed-clock"; >>> -            clock-frequency = <32000>; >>> +            clock-frequency = <32768>; >>>               #clock-cells = <0>; >>>           }; >>>   -- >>> 2.7.4 >>>