Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3397268rwb; Mon, 16 Jan 2023 07:31:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXsClEaT5Rglu7DOsCYlUkdFMJrSpkd5+VkryKQcFQfsNyoj++0tQEWjd/KhisaL+txhtpzx X-Received: by 2002:a05:6a20:93a1:b0:b6:b961:6725 with SMTP id x33-20020a056a2093a100b000b6b9616725mr14975027pzh.41.1673883063619; Mon, 16 Jan 2023 07:31:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673883063; cv=none; d=google.com; s=arc-20160816; b=SUa7cFfKbp54JPevK3R3uGHfj7PcLdnCIAr++J0x5hmVT52T5dx6aLMnr7JS1UeY4b CioWcFcu4hGUf7fCtNcUCVAS1c0p4CY9MVrD3MeSlAnLaY6z2Cfohf9MAsGNrz0w/Rw5 7Iu70Iw4AA1nzv5vr94SRo3eXJgKpNOaf6zda5/OTIRvKMb5mrc+0sulTr80SPdKiyxF oCXH/pe1DE7DxXPEn4FoZvjHdzx/yK8smo+oSXMCqhV+cQ3wmqE2ZMtXjHd0d5Xz7AUG FNW3OenCUvcvK3FO6WVmTdFVF2SYWks755YJFrvaKlmvKjGk5ycoqHwEVPYWyiW9ECtK jG9A== 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:dkim-signature; bh=rCZPqWPiwmy+Qg3w9Zw0kU442c7Jihjgka7OZcZFvZ4=; b=rXle6wTJnDtrBpPSj3qZmNvBg4HNHgFY1pPrjyoydcgjD5/KuWJpoi+eZl2VsQban3 /UzujGUDKLZ5y1VyhnbA5CZxbm67YhvT7Ej2uAaQPIIfJBz+gOLtS9EVtRSN5LJT/vUX WOdShcmWk84ByO/FPsfdKiZ0YceG455dWZeIa5DaLy6VdUcjpE3JJcYL2Q1Unj0xJlUx bq0VVDBZ4tiEfFOICVQonEebsQ5Ke/n8/vH2VH7ZZUg0joV6HlScwxkZEwaBwjFC7XzZ c8AyuGbKcfOdyfxU290U+IFrKbxCUhsfWWZoo/mOuQPXFggwvjY5f8NjzHc4K/wgUG0x 9xVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="vK/m3ZhB"; 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 h18-20020a63df52000000b0047f3b677affsi27467126pgj.274.2023.01.16.07.30.47; Mon, 16 Jan 2023 07:31:03 -0800 (PST) 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="vK/m3ZhB"; 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 S230265AbjAPOvv (ORCPT + 50 others); Mon, 16 Jan 2023 09:51:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230183AbjAPOvX (ORCPT ); Mon, 16 Jan 2023 09:51:23 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4F7017CF6 for ; Mon, 16 Jan 2023 06:36:03 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id s5so40936832edc.12 for ; Mon, 16 Jan 2023 06:36:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=rCZPqWPiwmy+Qg3w9Zw0kU442c7Jihjgka7OZcZFvZ4=; b=vK/m3ZhBu0rXmwlaHWgHg/SJV3wZwAcbhd6qMxLW6BfEHoQz0LWh1fbCr8C+lK5HmS bhRZ1X9ylmKvKawQ3N6yph8My2pmJvfm0eafkOElbuheYZVdMhjGMwR8YExcCfbR/kL8 7eeGDkBW4uSNo0sICPIofDBbdeMdir6P4y2J0LpZl3rAU4eXG4k6SY8gQa6LsLjo1Hyd UJgJqfqxKJJnyqeIXL8PxL4bMoBZkHOqmADuqiClaUMVQQH1XIk5czTyl31+GkSEqVyO b/3x0jhIpJSBAntgZfJ52P3wbP7zLAnGw9xJE+2x3+hDg8AAW3SluiWijSVism0Kxc2q uc/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rCZPqWPiwmy+Qg3w9Zw0kU442c7Jihjgka7OZcZFvZ4=; b=KKTqKk7/S13FwD8G5Sc7J/6oQjNRWUIm4Q26X2EOh0nxG0bmq8alfMoBwubDJ0HERq +Z4Aya+pQrsFWWQOE4do2s4gdB0eeVpm6U4QLPlfknesWQbyJ4A6TvYKxGaSEnoI3NkG guazBnR0OFBhshpSlfCosB4ZMj2RNIXBaLy58qiN6fhBU0CQcSZfO5kKg1zIWs2I6qYi WpIwALtBtU4y7tr0x8KslqOZyqUOTE5FG0U9I/8CFoVApwAmDl/XTA0/klxHBUYF+Rdi GGksVnMAVyzDsPah1x1tXFycncZHNBkgSb+HNMgvvswqBlq+NxT544pWW2q4q7kc0jrh pdFQ== X-Gm-Message-State: AFqh2kpphE1kQMZ6WZ44+tx5AEttamhwmoEuWc65azeHLy3RqUm6cwuG a7PzQyOqgFoqmuSp2M7veTZDzg== X-Received: by 2002:a05:6402:2a02:b0:470:44eb:9e58 with SMTP id ey2-20020a0564022a0200b0047044eb9e58mr82109589edb.30.1673879762167; Mon, 16 Jan 2023 06:36:02 -0800 (PST) Received: from linaro.org ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id d3-20020aa7d5c3000000b004835bd8dfe5sm11665624eds.35.2023.01.16.06.36.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 06:36:01 -0800 (PST) Date: Mon, 16 Jan 2023 16:35:59 +0200 From: Abel Vesa To: Dario Binacchi , Rob Herring , Krzysztof Kozlowski Cc: linux-kernel@vger.kernel.org, angelo@amarulasolutions.com, michael@amarulasolutions.com, tommaso.merciai@amarulasolutions.com, Chen-Yu Tsai , linux-amarula@amarulasolutions.com, anthony@amarulasolutions.com, jagan@amarulasolutions.com, Abel Vesa , Adam Ford , Fabio Estevam , Krzysztof Kozlowski , Li Jun , Lucas Stach , Marek Vasut , Markus Niebel , Michael Turquette , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , Stephen Boyd , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: Re: [RFC PATCH v2 11/11] arm64: dts: imx8mn: add clocks description Message-ID: References: <20230101175740.1010258-1-dario.binacchi@amarulasolutions.com> <20230101175740.1010258-12-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230101175740.1010258-12-dario.binacchi@amarulasolutions.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 23-01-01 18:57:40, Dario Binacchi wrote: > The patch creates a unique node for each clock in the imx8mn clock > control module (CCM). > > To ensure backwards compatibility it was not possible to separate the > changes to the device tree from those applied to the clocks setup code. > In doing so, all clocks are initialized from the device tree and the > legacy setup code with hardwired parameters is removed. > > Signed-off-by: Dario Binacchi > > --- > > (no changes since v1) > > .../boot/dts/freescale/imx8mn-clocks.dtsi | 1885 +++++++++++++++++ > arch/arm64/boot/dts/freescale/imx8mn.dtsi | 54 +- > drivers/clk/imx/clk-imx8mn.c | 714 ++----- > 3 files changed, 2086 insertions(+), 567 deletions(-) > create mode 100644 arch/arm64/boot/dts/freescale/imx8mn-clocks.dtsi > > diff --git a/arch/arm64/boot/dts/freescale/imx8mn-clocks.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-clocks.dtsi > new file mode 100644 > index 000000000000..21e02ea996d0 > --- /dev/null > +++ b/arch/arm64/boot/dts/freescale/imx8mn-clocks.dtsi > @@ -0,0 +1,1885 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Device Tree Source for imx8mn clock data > + * > + * Copyright (c) 2022 Amarula Solutions > + * > + * Dario Binacchi > + */ > + > +/ { > + osc_32k: clock-osc-32k { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <32768>; > + clock-output-names = "osc_32k"; > + }; > + [...] > + > + clk_audio_pll2_bypass: clock-audio-pll2-bypass@14 { > + compatible = "fsl,imx8mn-mux-clock"; > + #clock-cells = <0>; > + clocks = <&clk_audio_pll2>, <&clk_audio_pll2_ref_sel>; > + fsl,anatop = <&anatop 0x14>; > + fsl,bit-shift = <16>; > + fsl,set-rate-parent; NACK. I'm sorry, but this creates a huge effort on maintaining the bindings. Plus the vendor specific properties will keep increasing. I don't think Rob and Krzysztof will be OK with this either. > + clock-output-names = "audio_pll2_bypass"; > + }; > + > + clk_audio_pll2_out: clock-audio-pll2-out@14 { > + compatible = "fsl,imx8mn-gate-clock"; > + #clock-cells = <0>; > + clocks = <&clk_audio_pll2_bypass>; > + fsl,anatop = <&anatop 0x14>; > + fsl,bit-shift = <13>; > + clock-output-names = "audio_pll2_out"; > + }; > + [...] > -- > 2.32.0 >