Received: by 2002:a05:7412:4e10:b0:e2:908c:2ebd with SMTP id gb16csp46673rdb; Mon, 6 Nov 2023 23:28:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/m+9kQvjkG9xVrqAeyLW1NDtuXrlYA6sDWZMhX9zHgqZsepV9N6gdv8zZxQIUd/DxHjuy X-Received: by 2002:a17:902:e54d:b0:1cc:4625:74ed with SMTP id n13-20020a170902e54d00b001cc462574edmr25387490plf.53.1699342102718; Mon, 06 Nov 2023 23:28:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699342102; cv=none; d=google.com; s=arc-20160816; b=ElBywl9YZcZVGpEaWmw9YASYn4nPXp83HlIgCn40mxmZschG5jICpN81Ahc47dc+RU w3ojlJWYbB5WIGPmKlaMd14ltNi1i1LXuc/XoFIHe+wrWHZQD2ZKH8blC1sLA9L2VZzg mj44JULQOfxvnutFWaNbwJ0IswCwtz/XjFrVQ20Rvgfn4RLqnFE9zvvH0p02MqzKayJ5 DNnwvyWUL1LlA+Fj0nfMAK+ZwUajmyiidGRfPy5tddJyCoTMQNsu42yaMLhFe48Ubrbc LJORSxVV0vQCkVDrD82fHCSGqxM6xY15pk4jJIx+oEtGyy0QnByRt5gLXHH1Ap93v0Xn 0ggw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=a2bxCOo4OPWWsYsJCJs94k+aEnq5Ju8fmmgdctEFJDU=; fh=ciUEQjDR8+K21gObHC4h6H0Ifpz76meekFETVrvpc74=; b=q5RA6Lra3BGq2/nQ05Y4Jj5xmXzkbLjdP77I3XHLSESrWdMqOuAhh52+GcBqjCsB67 VsZ4I/IErTJJ+l0q9zj99JYfFVOJpST49tFzRQoBIIk6akdkhTuxLbHmyQ/xv+4pLUru 1pKVwFYt5b90U0hjeCsiI6N6o/I/b2SSKeeXVytNllRnnLdqwQJCsKZ9T+AZK+vIkqTd qbt20jtVix7zzk3akljOmLRhkKzBrIdrUDSzaJcCM28hokLxXkXkcwUfGRTHdepPYxnT 6G9ntdtljy5zJDl5fWDNk9VLFjsxUQeo/aImHsLM2oKJBo4L4aBbCUeY7bMkUTXf9GJ3 ImpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OVHUiGbY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id v2-20020a170903238200b001c74d844254si9440252plh.101.2023.11.06.23.28.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 23:28:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OVHUiGbY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 2A7AB80CE8D8; Mon, 6 Nov 2023 23:28:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233612AbjKGH2L (ORCPT + 99 others); Tue, 7 Nov 2023 02:28:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233550AbjKGH2K (ORCPT ); Tue, 7 Nov 2023 02:28:10 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F125E129 for ; Mon, 6 Nov 2023 23:28:06 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5DA25C433C7; Tue, 7 Nov 2023 07:28:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699342086; bh=Oeo7abSq3CtzoDpqum8ZKNA5cr+aGoQC0Mlx1lKoCrE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=OVHUiGbYydy/W6SH8NuD8f8xIxz2hEb8HNOUZ4gO5g3ro6aCR+ckIcchojCcGC1Ko FjNf4uVyZBkCA4c2OAM5N6Ng2GgjrNmNn8XfZzBZA/nHC/aWsntzym2o1oUfqSIi3J j+pMU2XgNX+35D5caua9BGqwoy6ZDgbc3Uv/m+PfwRd/DocmrjZVd3oOtSG8ktZURA dhxjP9nAnphvA7YtIgCgrlh/Z2Bh5hxqY5QOLCSL9rtz+zYuVlmGx6FOWahbWK8Sb4 n8+lt3ltA32im5to08Dj3F7tXiKDLr7pdFEqSzDt/KdNyRKd9sEU7fo8TjOzKDrweE u6GOfJVSt1klw== Message-ID: Date: Tue, 7 Nov 2023 08:28:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/4] arm64: dts: st: add rcc support in stm32mp251 Content-Language: en-US To: gabriel.fernandez@foss.st.com, Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue , Philipp Zabel Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20231106141845.102648-1-gabriel.fernandez@foss.st.com> <20231106141845.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qJP/h2Iwv6nw8U+7Yyl6gU BLHFTg2hYnLFJI4Xjg+AX1hHFVKmvl3VBHIsBv0oDcsQWXqY+NaFahT0lRPjYtrTa1v3tem/ JoFzZ4B0p27K+qQCF2R96hVvuEyjzBmdq2esyE6zIqftdo4MOJho8uctOiWbwNNq2U9pPWmu 4vXVFBYIGmpyNPYzRm0QPwARAQABwsF8BBgBCgAmAhsMFiEEm9B+DgxR+NWWd7dUG5NDfTtB YpsFAmA872oFCRRflLYACgkQG5NDfTtBYpvScw/9GrqBrVLuJoJ52qBBKUBDo4E+5fU1bjt0 Gv0nh/hNJuecuRY6aemU6HOPNc2t8QHMSvwbSF+Vp9ZkOvrM36yUOufctoqON+wXrliEY0J4 ksR89ZILRRAold9Mh0YDqEJc1HmuxYLJ7lnbLYH1oui8bLbMBM8S2Uo9RKqV2GROLi44enVt vdrDvo+CxKj2K+d4cleCNiz5qbTxPUW/cgkwG0lJc4I4sso7l4XMDKn95c7JtNsuzqKvhEVS oic5by3fbUnuI0cemeizF4QdtX2uQxrP7RwHFBd+YUia7zCcz0//rv6FZmAxWZGy5arNl6Vm lQqNo7/Poh8WWfRS+xegBxc6hBXahpyUKphAKYkah+m+I0QToCfnGKnPqyYIMDEHCS/RfqA5 t8F+O56+oyLBAeWX7XcmyM6TGeVfb+OZVMJnZzK0s2VYAuI0Rl87FBFYgULdgqKV7R7WHzwD uZwJCLykjad45hsWcOGk3OcaAGQS6NDlfhM6O9aYNwGL6tGt/6BkRikNOs7VDEa4/HlbaSJo 7FgndGw1kWmkeL6oQh7wBvYll2buKod4qYntmNKEicoHGU+x91Gcan8mCoqhJkbqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20231106141845.102648-5-gabriel.fernandez@foss.st.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 06 Nov 2023 23:28:20 -0800 (PST) On 06/11/2023 15:18, gabriel.fernandez@foss.st.com wrote: > From: Gabriel Fernandez > > Add RCC support used for to manage clocks and resets on stm32mp251. > > Signed-off-by: Gabriel Fernandez > --- > arch/arm64/boot/dts/st/stm32mp251.dtsi | 59 ++++++++++++++------------ > 1 file changed, 31 insertions(+), 28 deletions(-) > > diff --git a/arch/arm64/boot/dts/st/stm32mp251.dtsi b/arch/arm64/boot/dts/st/stm32mp251.dtsi > index 124403f5f1f4..698d0f68b98d 100644 > --- a/arch/arm64/boot/dts/st/stm32mp251.dtsi > +++ b/arch/arm64/boot/dts/st/stm32mp251.dtsi > @@ -3,7 +3,9 @@ > * Copyright (C) STMicroelectronics 2023 - All Rights Reserved > * Author: Alexandre Torgue for STMicroelectronics. > */ > +#include > #include > +#include > > / { > #address-cells = <2>; > @@ -35,22 +37,10 @@ arm_wdt: watchdog { > }; > > clocks { > - ck_flexgen_08: ck-flexgen-08 { > + clk_rcbsec: clk-rcbsec { > #clock-cells = <0>; > compatible = "fixed-clock"; > - clock-frequency = <100000000>; > - }; > - > - ck_flexgen_51: ck-flexgen-51 { > - #clock-cells = <0>; > - compatible = "fixed-clock"; > - clock-frequency = <200000000>; > - }; > - > - ck_icn_ls_mcu: ck-icn-ls-mcu { > - #clock-cells = <0>; > - compatible = "fixed-clock"; > - clock-frequency = <200000000>; > + clock-frequency = <64000000>; > }; > }; > > @@ -122,7 +112,7 @@ usart2: serial@400e0000 { > compatible = "st,stm32h7-uart"; > reg = <0x400e0000 0x400>; > interrupts = ; > - clocks = <&ck_flexgen_08>; > + clocks = <&rcc CK_KER_USART2>; > status = "disabled"; > }; > > @@ -131,7 +121,7 @@ sdmmc1: mmc@48220000 { > arm,primecell-periphid = <0x00353180>; > reg = <0x48220000 0x400>, <0x44230400 0x8>; > interrupts = ; > - clocks = <&ck_flexgen_51>; > + clocks = <&rcc CK_KER_SDMMC1 >; > clock-names = "apb_pclk"; > cap-sd-highspeed; > cap-mmc-highspeed; > @@ -140,6 +130,19 @@ sdmmc1: mmc@48220000 { > }; > }; > > + rcc: rcc@44200000 { Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification: https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation Best regards, Krzysztof