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 26A96C32796 for ; Wed, 24 Aug 2022 10:46:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236160AbiHXKqm (ORCPT ); Wed, 24 Aug 2022 06:46:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236437AbiHXKq0 (ORCPT ); Wed, 24 Aug 2022 06:46:26 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8C2C4832E4 for ; Wed, 24 Aug 2022 03:45:44 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 727FE80CF; Wed, 24 Aug 2022 10:38:19 +0000 (UTC) Date: Wed, 24 Aug 2022 13:45:27 +0300 From: Tony Lindgren To: Nishanth Menon Cc: Vignesh Raghavendra , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Keerthy Subject: Re: [PATCH 2/2] arm64: dts: ti: k3-am65: Add general purpose timers for am65 Message-ID: References: <20220407104725.41755-1-tony@atomide.com> <20220407104725.41755-2-tony@atomide.com> <20220706232157.thvbsr6emvyy6i5o@resend> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org * Tony Lindgren [220815 16:03]: > Hi, > > * Nishanth Menon [220706 23:16]: > > On 13:47-20220407, Tony Lindgren wrote: > > > diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi > > > --- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi > > > +++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi > > > @@ -271,6 +271,114 @@ main_spi4: spi@2140000 { > > > #size-cells = <0>; > > > }; > > > > > > + main_timer0: timer@2400000 { > > > + compatible = "ti,am6-timer"; > > > + reg = <0x00 0x2400000 0x00 0x400>; > > > + interrupts = ; > > > + clocks = <&k3_clks 23 12>; > > > + clock-names = "fck"; > > > + ti,timer-pwm; > > > + }; > > > > Tony, > > Lets hold this back one more window.. ti,am6-timer should come > > in the next rc1, but I still dont see this yet in next-20220706, So, i am > > going to have to skip this window at least. > > I'm seeing the clock being too fast although debugfs reports the timer > source clock at 32k. Not quite sure what is wrong, maybe the clock index > should be 1 instead of 12 here. Best to wait with the dts patches until > the clock issue has bee sorted out. FYI the issue was caused by a wrong clock configuration. To use the 32k source as the default clock for main_timer0: clocks = <&k3_clks 23 0>; clock-names = "fck"; assigned-clocks = <&k3_clks 23 0>; assigned-clock-parents = <&k3_clks 23 12>; Regards, Tony