Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2701269pxb; Thu, 10 Feb 2022 03:44:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYJYDrXfLpPNV+bPFxuE6CZ2+4wwc5l27PFqpBY++rz92xb4BO6E1+uIUv1/DlZmUlIOqW X-Received: by 2002:a65:679a:: with SMTP id e26mr4253703pgr.182.1644493466349; Thu, 10 Feb 2022 03:44:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644493466; cv=none; d=google.com; s=arc-20160816; b=ZWsxx6n8yxWRipqsXFVIbXjdLwwQurYi7bNe/E9sGvCpVU7ISnj4K1vF7F+hOd9Nal O2S2DULi8ggwitkqtVXWDBoBDcOB7lpTSIBB7B2lozDuI/oE2Ehsqva72DF2kU0ukVH4 28PVFJ57jkg0JnVIvFXqH6Qkly2TfB8jOVhqKhjyEUBhQqMrBFSpG0IKfAwCN2wGxGTm tAoLUp9UNLO4dZQu6C+jbGcRxs6AkQezYFLio+0dw3cUj2FXVDwAezsE7asikRkvJsrS mzSyNxICftE+KKt/Q9uAHDwa0MvY3cLX/GLFCWYgovJRRMvZlqKKx5H0GMTBj+dCoP9p /N1g== 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:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=G/1l6JpUGOidRb9dQ6UMR2ViJBXgtTFNmfutsOzLvFc=; b=XQeFLHQt6nmrsejMBBEJFHIc8MM0p36mVFQHe+/MlSGteyNsBDn+g1OR+g788Gc9Gg UI8lo05j5vHGN3mm8JeZbzr6ixXerdH1YibXPIOC5t/ryVQ4XfmFZWzSUG1/R+M9Pb3x a7aIcPjKED7klexDSGorGVeyf+6VkXRfBQqQW5RJE8GRi7vINWFeUDSIiGhi3BXQRb5a XP0WN1E5HTBoXzTIFFIc6OIXcu4t/pRa2ahEh+1Z5xPxWX/+1ZqkfNiPrdHQM/NtIHKO Pc138TZS04Nxce8Hw5HXKD8PfcKaYUY6xHU9mPPSs6NhPvaG9Pvl3knHh0T1Ft9bicX/ vGsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=J2hDc5Bu; 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=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f8si9449601pgc.100.2022.02.10.03.44.13; Thu, 10 Feb 2022 03:44:26 -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=@foss.st.com header.s=selector1 header.b=J2hDc5Bu; 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=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238726AbiBJJ3g (ORCPT + 99 others); Thu, 10 Feb 2022 04:29:36 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:51550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238585AbiBJJ3S (ORCPT ); Thu, 10 Feb 2022 04:29:18 -0500 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B00031134; Thu, 10 Feb 2022 01:29:18 -0800 (PST) Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 21A74UHh017191; Thu, 10 Feb 2022 09:36:21 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=G/1l6JpUGOidRb9dQ6UMR2ViJBXgtTFNmfutsOzLvFc=; b=J2hDc5Bu/cs0d8uvuowAVawTd+ivgAzCtXVnPDrSXJWrcOZAnjuYfdqEHPEAtO1MhbC9 G9obSLHoeAYwZiMOveVDF+ivlLiQaYD4Vteg5zzCfNaFRPjE8Q/QjtoFvQNaN2m810fi KphFAi3oDR6FBzRsSB7p6LoN+ZSPWQaS5mq9WmnM7Pei8zA/AWQYOSTurkED/8hBdHE5 T9rYB/tKMevcGb15jZbzX6RI6MvDOIogdtmrX4lrIWgWWqzeTPJ7FLmWyFoOV8mj/+fX ByWrm5DNs/y1Opnkp+6TY8WFZqknYKufgZbwujt5+ywli1tLCR1EmIEbL5RjSHIotnaG Tw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3e4x0c0j8u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Feb 2022 09:36:21 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4BA7D10002A; Thu, 10 Feb 2022 09:36:20 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 44B452138DE; Thu, 10 Feb 2022 09:36:20 +0100 (CET) Received: from [10.201.21.201] (10.75.127.47) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Thu, 10 Feb 2022 09:36:19 +0100 Message-ID: <2dfbf110-9c08-5a4e-7714-6e9e960afae5@foss.st.com> Date: Thu, 10 Feb 2022 09:36:14 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 03/12] ARM: dts: sti: ensure unique unit-address in stih418-clock Content-Language: en-US To: Alain Volmat , , , , , , References: <20211202075105.195664-1-avolmat@me.com> <20211202075105.195664-4-avolmat@me.com> From: Patrice CHOTARD In-Reply-To: <20211202075105.195664-4-avolmat@me.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.47] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-10_03,2022-02-09_01,2021-12-02_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, 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 Hi Alain On 12/2/21 08:50, Alain Volmat wrote: > Move quadfs and a9-mux clocks nodes into clockgen nodes so > that they can get the reg property from the parent node and > ensure only one node has the address. > > Signed-off-by: Alain Volmat > --- > arch/arm/boot/dts/stih418-clock.dtsi | 101 +++++++++++++-------------- > 1 file changed, 48 insertions(+), 53 deletions(-) > > diff --git a/arch/arm/boot/dts/stih418-clock.dtsi b/arch/arm/boot/dts/stih418-clock.dtsi > index e84c476b83ed..e1749e92a2e7 100644 > --- a/arch/arm/boot/dts/stih418-clock.dtsi > +++ b/arch/arm/boot/dts/stih418-clock.dtsi > @@ -32,7 +32,7 @@ clocks { > */ > clockgen-a9@92b0000 { > compatible = "st,clkgen-c32"; > - reg = <0x92b0000 0xffff>; > + reg = <0x92b0000 0x10000>; > > clockgen_a9_pll: clockgen-a9-pll { > #clock-cells = <1>; > @@ -40,30 +40,29 @@ clockgen_a9_pll: clockgen-a9-pll { > > clocks = <&clk_sysin>; > }; > - }; > - > - /* > - * ARM CPU related clocks. > - */ > - clk_m_a9: clk-m-a9@92b0000 { > - #clock-cells = <0>; > - compatible = "st,stih407-clkgen-a9-mux", "st,clkgen-mux"; > - reg = <0x92b0000 0x10000>; > - > - clocks = <&clockgen_a9_pll 0>, > - <&clockgen_a9_pll 0>, > - <&clk_s_c0_flexgen 13>, > - <&clk_m_a9_ext2f_div2>; > > /* > - * ARM Peripheral clock for timers > + * ARM CPU related clocks. > */ > - arm_periph_clk: clk-m-a9-periphs { > + clk_m_a9: clk-m-a9 { > #clock-cells = <0>; > - compatible = "fixed-factor-clock"; > - clocks = <&clk_m_a9>; > - clock-div = <2>; > - clock-mult = <1>; > + compatible = "st,stih407-clkgen-a9-mux", "st,clkgen-mux"; > + > + clocks = <&clockgen_a9_pll 0>, > + <&clockgen_a9_pll 0>, > + <&clk_s_c0_flexgen 13>, > + <&clk_m_a9_ext2f_div2>; > + > + /* > + * ARM Peripheral clock for timers > + */ > + arm_periph_clk: clk-m-a9-periphs { > + #clock-cells = <0>; > + compatible = "fixed-factor-clock"; > + clocks = <&clk_m_a9>; > + clock-div = <2>; > + clock-mult = <1>; > + }; > }; > }; > > @@ -88,14 +87,6 @@ clk_s_a0_flexgen: clk-s-a0-flexgen { > }; > }; > > - clk_s_c0_quadfs: clk-s-c0-quadfs@9103000 { > - #clock-cells = <1>; > - compatible = "st,quadfs-pll"; > - reg = <0x9103000 0x1000>; > - > - clocks = <&clk_sysin>; > - }; > - > clk_s_c0: clockgen-c@9103000 { > compatible = "st,clkgen-c32"; > reg = <0x9103000 0x1000>; > @@ -114,6 +105,13 @@ clk_s_c0_pll1: clk-s-c0-pll1 { > clocks = <&clk_sysin>; > }; > > + clk_s_c0_quadfs: clk-s-c0-quadfs { > + #clock-cells = <1>; > + compatible = "st,quadfs-pll"; > + > + clocks = <&clk_sysin>; > + }; > + > clk_s_c0_flexgen: clk-s-c0-flexgen { > #clock-cells = <1>; > compatible = "st,flexgen", "st,flexgen-stih418-c0"; > @@ -143,18 +141,17 @@ clk_m_a9_ext2f_div2: clk-m-a9-ext2f-div2s { > }; > }; > > - clk_s_d0_quadfs: clk-s-d0-quadfs@9104000 { > - #clock-cells = <1>; > - compatible = "st,quadfs-d0"; > - reg = <0x9104000 0x1000>; > - > - clocks = <&clk_sysin>; > - }; > - > clockgen-d0@9104000 { > compatible = "st,clkgen-c32"; > reg = <0x9104000 0x1000>; > > + clk_s_d0_quadfs: clk-s-d0-quadfs { > + #clock-cells = <1>; > + compatible = "st,quadfs-d0"; > + > + clocks = <&clk_sysin>; > + }; > + > clk_s_d0_flexgen: clk-s-d0-flexgen { > #clock-cells = <1>; > compatible = "st,flexgen", "st,flexgen-stih410-d0"; > @@ -167,18 +164,17 @@ clk_s_d0_flexgen: clk-s-d0-flexgen { > }; > }; > > - clk_s_d2_quadfs: clk-s-d2-quadfs@9106000 { > - #clock-cells = <1>; > - compatible = "st,quadfs-d2"; > - reg = <0x9106000 0x1000>; > - > - clocks = <&clk_sysin>; > - }; > - > clockgen-d2@9106000 { > compatible = "st,clkgen-c32"; > reg = <0x9106000 0x1000>; > > + clk_s_d2_quadfs: clk-s-d2-quadfs { > + #clock-cells = <1>; > + compatible = "st,quadfs-d2"; > + > + clocks = <&clk_sysin>; > + }; > + > clk_s_d2_flexgen: clk-s-d2-flexgen { > #clock-cells = <1>; > compatible = "st,flexgen", "st,flexgen-stih418-d2"; > @@ -193,18 +189,17 @@ clk_s_d2_flexgen: clk-s-d2-flexgen { > }; > }; > > - clk_s_d3_quadfs: clk-s-d3-quadfs@9107000 { > - #clock-cells = <1>; > - compatible = "st,quadfs-d3"; > - reg = <0x9107000 0x1000>; > - > - clocks = <&clk_sysin>; > - }; > - > clockgen-d3@9107000 { > compatible = "st,clkgen-c32"; > reg = <0x9107000 0x1000>; > > + clk_s_d3_quadfs: clk-s-d3-quadfs { > + #clock-cells = <1>; > + compatible = "st,quadfs-d3"; > + > + clocks = <&clk_sysin>; > + }; > + > clk_s_d3_flexgen: clk-s-d3-flexgen { > #clock-cells = <1>; > compatible = "st,flexgen", "st,flexgen-stih407-d3"; Reviewed-by: Patrice Chotard Thanks Patrice