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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D672CC54EBE for ; Mon, 16 Jan 2023 14:37:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jRCa12lpLjP12M/C3ESumTB7a9k9ecS8wtaVkIe95pM=; b=ajn4IwlqkyWBJv FS0Ih/twGRMggwSvBT1Zmo0Vc6+Kd8fNjZJ5xA3jle8HxY3LWnnTWP2jyJYRkETNb0BCC8NO3yJe3 b4NfUDqUBXlXEVpicXpxIHvmF4LBO4UjGeamWQz3QxezcaVMPlYe6ieI2o37zN5wxFHuK3cQPnpXU HuHjk6fxXecR4LRgwqrNF/siDtNBSnYw5V9DJBM1wcEsTJoAlCfsgwoBcxtSrE8T+hQbh5RVNeS/V 8RW0proMEjT4wuRdsgMNVRFZ1IDDlewgB9ioOpOLuU5Z14kf09Mz8GnpaUU2YDBbZVhRm9Xt8soe7 oUzSNDPDfDmZrRXK5j3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHQas-00AwNU-IW; Mon, 16 Jan 2023 14:36:14 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHQap-00AwMB-TZ for linux-arm-kernel@lists.infradead.org; Mon, 16 Jan 2023 14:36:13 +0000 Received: by mail-ed1-x533.google.com with SMTP id w14so23649076edi.5 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=PrrL9OMOTjwjDvlb/1wNK+Clr6DlVM+MUaDWeKM7OhUUxsgv1o+W832ntr1Vc5WmEL A9gTfkiQYXG6joZpJMga4zHh6jPGiytpUt/5RNCj3Fq9ygbTDttrJ6iNYtBr3+Whgb6y a2ppjJt8j3YrLofrQdZavTlOInkkjTkuOYfZbFJEc1QK5XFtf7f+A5ckYLQY55w8MLPj IrpbColAsTn78Y+HLLixfVk4E/bTN1ZShrH1rpRZ2j8NcYd7dvgN0po1p1eEPnN8scMb ZPK7DybZJqioyjqVw/dAXPzOVihJGuyR4AkG2jf6fMGkjcLxuKcRznYALMe36vYWqdd/ Kh6g== X-Gm-Message-State: AFqh2krlTmmkcTcw/KeYpMlVRDPgssihuq/Uv1ceEqpPyM9Opr/IvJEH afC8Hn2eXjvS1zBFbcskZABbSw== X-Google-Smtp-Source: AMrXdXtV7SF+3RSBX9E7TN51Zz8RFwX6gb7hQ8yrCuB589NuTrrLEfdLDjrguaEyTdVgTYDRIpbTRw== 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-Disposition: inline In-Reply-To: <20230101175740.1010258-12-dario.binacchi@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230116_063611_981151_8E15789D X-CRM114-Status: GOOD ( 22.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel