Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2709658pxb; Thu, 10 Feb 2022 03:58:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgWzmiAfDmEa8YDeSh322LIbm2ZWwe3JxrpxTe+b4NpE2ZLC3SSmNCyLXmel1o6SbEXICm X-Received: by 2002:a63:8543:: with SMTP id u64mr5916925pgd.624.1644494284651; Thu, 10 Feb 2022 03:58:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644494284; cv=none; d=google.com; s=arc-20160816; b=VUSz9C3TZRb+NpDpVQJxG+lZ3w6XIBPD98l3o//z3h7UK6IgDA4zemU2qz7rdkjzRf 48Q8hhPacW6ylzEq25aV0rcOMuNp9A8KGYKZyfCWQigDKgy7gPHZKq1L0iyAcR2cX6nc fH6CGe23gBZm7i1UX0hAlOhzjh3ddeS+7L8ldRuIWXSnhJK0jRRzOZ+lVPYkXbx/YHEB TcbN6G+HE67tDOsADJekVlUliUqzr9Ifdvhh0xn+Rorf7PyYGJyPPYgSFZ2kC4pGr86Y vw4enjNgCUXh0ijin5I3yGFGGTut4Ga5yZp0dzxfQf6Bu5O7TZDrICcK/2GC77DzOSRS hnqA== 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=y9L4Czc7A2FdXucdrY70AFh+b07oPp3FhPpaO2bKdQE=; b=EsZgvjbe+cgPsfYRRFykEPHfpvuuTB2C1XjtPDqvZ9DMrIlpRI8z+13xGolLOb8FMf HZXWRiSS7TElV3RiE5flmxivYi4HxVaJKAKW3h8oyTy7XnrMvGkc6jHCqAgZt6gXPGeF x3Nn/hEOH1RCYbj1i+FW3ULLFKRYn/ADXIyFHx14uhwayLbFzhU2z8WYgQoNGANW95Os a9ssegRu6/5P2VdySHEnfWEABLLtxDP0zCtGK4XpQ8XtZ/ZfmE/7akG+p49Yj/d1deik UVYO8Mra2A6k8VZHd8LvfWpczLKlweeN6ylsFS15xfQWMI0G41IZRXyRI9Y41wZXeOpn H5wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=NOjCvEJ8; 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 f2si19680847pfe.346.2022.02.10.03.57.52; Thu, 10 Feb 2022 03:58: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=@foss.st.com header.s=selector1 header.b=NOjCvEJ8; 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 S237617AbiBJIgL (ORCPT + 99 others); Thu, 10 Feb 2022 03:36:11 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233339AbiBJIgJ (ORCPT ); Thu, 10 Feb 2022 03:36:09 -0500 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A8A3204; Thu, 10 Feb 2022 00:36:09 -0800 (PST) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 21A76RmZ015012; Thu, 10 Feb 2022 09:35:46 +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=y9L4Czc7A2FdXucdrY70AFh+b07oPp3FhPpaO2bKdQE=; b=NOjCvEJ84ZRLEAj5IAIr7aiW0SHED5f+g80DdbZhQBditr4ddDK54uPHdj/t0JTOJ4Ch a90v4pZoIdJ9xgOpaQ46Z3GfQ+srZvV2z52ngI/ZwzuOQNVTso06Qk3lzwe7URXggwnN +T9FE2K774bG5WR/Cv/VTtgoAIFKKqQE7vU9S0tz+gDV12yn4/WgXpRIow/LgJwJRVM+ qqTMSBuQPUbnlZQhGLLEtpqhoQ07gUzuwHdseVI2E7RINS7VGAthylHjzDKu5u+Ob/Ay N4EK4gbvB+fqpS1U8+DQ46yXlIh240Tzs33EcnPNIN7yf+KPDCyFFCl8+Q2WxqNuNBKP 4A== 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 3e4x1a8gvk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Feb 2022 09:35:46 +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 4BC4210002A; Thu, 10 Feb 2022 09:35:46 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 3D998210F83; Thu, 10 Feb 2022 09:35:46 +0100 (CET) Received: from [10.201.21.201] (10.75.127.45) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Thu, 10 Feb 2022 09:35:44 +0100 Message-ID: <344eed6a-5367-35cf-49d8-eb53c50000e5@foss.st.com> Date: Thu, 10 Feb 2022 09:35:43 +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 01/12] ARM: dts: sti: ensure unique unit-address in stih407-clock Content-Language: en-US To: Alain Volmat , , , , , , References: <20211202075105.195664-1-avolmat@me.com> <20211202075105.195664-2-avolmat@me.com> From: Patrice CHOTARD In-Reply-To: <20211202075105.195664-2-avolmat@me.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.45] 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/stih407-clock.dtsi | 101 ++++++++++++--------------- > 1 file changed, 46 insertions(+), 55 deletions(-) > > diff --git a/arch/arm/boot/dts/stih407-clock.dtsi b/arch/arm/boot/dts/stih407-clock.dtsi > index 9cce9541e26b..350bcfcf498b 100644 > --- a/arch/arm/boot/dts/stih407-clock.dtsi > +++ b/arch/arm/boot/dts/stih407-clock.dtsi > @@ -29,7 +29,7 @@ clocks { > */ > clockgen-a9@92b0000 { > compatible = "st,clkgen-c32"; > - reg = <0x92b0000 0xffff>; > + reg = <0x92b0000 0x10000>; > > clockgen_a9_pll: clockgen-a9-pll { > #clock-cells = <1>; > @@ -37,32 +37,27 @@ 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"; > - reg = <0x92b0000 0x10000>; > - > - clocks = <&clockgen_a9_pll 0>, > - <&clockgen_a9_pll 0>, > - <&clk_s_c0_flexgen 13>, > - <&clk_m_a9_ext2f_div2>; > + clk_m_a9: clk-m-a9 { > + #clock-cells = <0>; > + compatible = "st,stih407-clkgen-a9-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"; > + /* > + * 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>; > + clocks = <&clk_m_a9>; > + clock-div = <2>; > + clock-mult = <1>; > + }; > }; > }; > > @@ -87,14 +82,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>; > @@ -113,6 +100,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-stih407-c0"; > @@ -142,18 +136,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-stih407-d0"; > @@ -166,18 +159,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-stih407-d2"; > @@ -192,18 +184,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