Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp969215rwo; Wed, 2 Aug 2023 07:00:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlF1kuw3wrcxpcicQiB44rHVmh6//h3swTTexFnBmGsDCR9mzONeYXjmkgrVL1ye817GS6Dq X-Received: by 2002:a17:902:e551:b0:1bb:a125:f831 with SMTP id n17-20020a170902e55100b001bba125f831mr18718042plf.58.1690984840996; Wed, 02 Aug 2023 07:00:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690984840; cv=none; d=google.com; s=arc-20160816; b=yfah0tvgUnvpY0EI+Bf/Wn3u99kdY3zQAzp8lJEtPsRdDYfledsjVVKtLiTiVBKY9m +pVCvNaDXl/Wr3xndDRMBDkp67OVcXiU2xLvNVurqt6PPfzdNUc5zAovjrBmH2V8hqZr KiLFup/Oa4YdnbXMm4vJhTV3lI5soGPE1YZz4qP/Az8BJZhg0Wesv/m2lBhD1kX2oqZL AsjYpZqQTOWZG8ZKI9m3RlEhBkkR98hLiPP3gUCuWyEwyVpKKCG7Qo8witFsmeS3PUBB xtyGNaFweumnsd/RERSR1rq5G8jR61HhtuN80/PuhQ694KGTv0z1SKEdu5x2KqvLzfet fD4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=WSbsJtohHRnYBB1xDQc1idh8hEl0+3hnIJ2WKqWVXVw=; fh=aveptdBsMV2erFJ+LztN9Pvf5KsKfLEAjK3Da1KDOjw=; b=yTevdjmmpyAv1D9vjolydchi25om1+NE4G79m52t/qs3ytcQAQECnyGscC0qxLUIqC r/U16Qg9ed57zlsdx38cWirPOXCUh8woxg5ei6ZUgWUlkqrLNTEymJZJnMhEpCMgG5Vh JIfLIm/jZCTsu0qxZgE2JfVu4RosvRy6TRKlM3Lu8VhYRh2IJgWH+obrCjLq9F2SH9h9 4zTsG8FQAVcEQRHwK2d+viRa7b5cYl5D703Hh/jns/wEX6rzBg7ykRi7q36xl9+mqmuw 3AxYe9VAu/ydpBcEmzO8Hs7tiAiTavdZ+V5pxC5tHuBZ8epDsXbEZNzslbyOhNKGPWYU 0eYA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c12-20020a170903234c00b001bb0fdb28a3si11272753plh.210.2023.08.02.07.00.13; Wed, 02 Aug 2023 07:00:40 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233416AbjHBNlM (ORCPT + 99 others); Wed, 2 Aug 2023 09:41:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233699AbjHBNlK (ORCPT ); Wed, 2 Aug 2023 09:41:10 -0400 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F367269E; Wed, 2 Aug 2023 06:41:09 -0700 (PDT) Received: from francesco-nb.int.toradex.com (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 2B985209F0; Wed, 2 Aug 2023 15:41:07 +0200 (CEST) Date: Wed, 2 Aug 2023 15:41:03 +0200 From: Francesco Dolcini To: Nishanth Menon Cc: Francesco Dolcini , Jai Luthra , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Francesco Dolcini Subject: Re: [PATCH v1 1/4] arm64: dts: ti: k3-am62x: Enable AUDIO_REFCLKx Message-ID: References: <20230731142135.108477-1-francesco@dolcini.it> <20230731142135.108477-2-francesco@dolcini.it> <23C6E13C-3F10-490B-A18E-C67B91CBAF35@dolcini.it> <20230802133244.b66pg3mztotgqotm@steerable> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230802133244.b66pg3mztotgqotm@steerable> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 02, 2023 at 08:32:44AM -0500, Nishanth Menon wrote: > On 13:37-20230802, Francesco Dolcini wrote: > > Il 2 agosto 2023 13:23:50 CEST, Jai Luthra ha scritto: > > >On Jul 31, 2023 at 16:21:32 +0200, Francesco Dolcini wrote: > > >> From: Jai Luthra > > >> > > >> On AM62-based SoCs the AUDIO_REFCLKx clocks can be used as an input to > > >> external peripherals when configured through CTRL_MMR, so add the > > >> clock nodes. > > >> > > >> Signed-off-by: Jai Luthra > > >> Signed-off-by: Francesco Dolcini > > >> --- > > >> arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 18 ++++++++++++++++++ > > >> arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 18 ++++++++++++++++++ > > > > > >Given currently none of the AM62A boards are using the refclks, can you > > >drop those or just mark the nodes as disabled. Whoever is the first user > > >can enable them. > > > > I can drop the 2 clocks from AM62A, however, should we really do it? > > These clocks exist and they are just defined in the DTS, they are > > not going to be enabled if not used, "ti,am62-epwm-tbclk" is also > > not disabled for example. > > Overall, the SoC clock as such has nothing to do with board specific, so > leave it default (enabled) in SoC.dts - just want to make sure that the > clk-parent selection doesn't get in the way of platforms and is a sane > default. When I looked into that, months ago, this looked to me the correct and a sane default. I had the same in our downstream way before the addition from Jai Luthra to the SoC dtsi. Not sure if Jai can add more on that regard. > pll2_hsdiv8 output - which looks like the default mux value anyways.. > I am ok for it being explicit, but wondering if that works for boards > that do not use this default. IFF needed, it would be very easy to just override from the board dts, using the labels that are already there (audio_refclk0, audio_refclk1). > (sidenote): Fransesco - your new mail client has line wrap issues ;) Yep, I had the crazy idea to reply from my mobile phone while having a walk. It's already a success that I did not top post ;-) Francesco