Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp533125iog; Fri, 24 Jun 2022 08:44:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uzq6bIDgm0/BPXDuITe5GfGD1ViCOPhlgzS+keEyU2cYcLx9Va6W680Len5yV1k6Q8Kp0a X-Received: by 2002:a05:6402:2786:b0:435:da07:14cb with SMTP id b6-20020a056402278600b00435da0714cbmr10047765ede.408.1656085475378; Fri, 24 Jun 2022 08:44:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656085475; cv=none; d=google.com; s=arc-20160816; b=UeLJxPE1i8busSQQnIGNGkDqBE9FYImQ9fr+weYJhbddW0EO464XYajCOOyKc8jK6E hlzUT2vo9O/9usRrkb/h0LffErXfYYHRN/rW0R40g06ISEWSJNiWxhBqPeLMVVWVbti5 8iEEcVa2im/Yug33DYZ70X7Xvf1PoMfQFl+3WLwGRv5Tta/gXorFQiRI9P+jnUfbB799 sbuLnNVGDEcWO/zqqTM85wIetDWVx9Jkf2mbwiTf/JAaIOwxqgG7xjNNuzjPtbv4A+mR PvOu39YKIca8V2DnkWx3tno6AmAXRBYHiqjvf63wHnUJASMOrpAznMooh4U6GNfHZLtM 3DZQ== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=eLN3ch2NV1IByCrnExH7ePzYAakmgcmF+vNeRO+SJDw=; b=k8Zg7ZVpmfYEhzj8I0oZXEdZByYjNt+d9KccBN3fG86Sg9dQc654XLRR38vaEsYHI1 5E0Yw6L6zbj/IbsEpjfxHoIbKvNAzRipXqaMjWGLIfJKJ8acrTdr8UM395Ku+RR+U+A+ 21DKa91fkd+xXNUzioiLFT1r1Os25rvVNUAABToGY8UeLVcXg/mi8ZCr7hY6p+eIx/Gm nL0/9qY2ecRpjZ0ps3jCd9mmAgTi1+DpiLR/3E4BiAIDVitnIEpiA/PSwl+Ia8ZbXfOR rS+zEO3d9tYjBgSEc/CN5JIIdlQtUcgaEoWDYCzS2IbWUEbXpAQ86QKhcDewH94GuxnH kzGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U4iDyQPS; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q23-20020aa7d457000000b0043582787ec4si3173221edr.85.2022.06.24.08.44.08; Fri, 24 Jun 2022 08:44:35 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=U4iDyQPS; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233538AbiFXOxm (ORCPT + 99 others); Fri, 24 Jun 2022 10:53:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232800AbiFXOxU (ORCPT ); Fri, 24 Jun 2022 10:53:20 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72F6581702; Fri, 24 Jun 2022 07:49:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C4C46B82929; Fri, 24 Jun 2022 14:49:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC909C34114; Fri, 24 Jun 2022 14:49:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656082173; bh=pZY+pA5AINAjtnkof1xdlWisxtGnP3HBGU+2ebSV7h8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=U4iDyQPS3eVRP4fTQRv7+TVyY6fpy+8zlZxcb+T8qyL7dtsvRNfnudWqIEWGQPkoj +Hcpkq2nJpImcv/t3xq5Fi/nJ7oYjamstZd+E5WKH0Bay189S7iYCdMaW/1VCqddLT yS1EoPCqxs3SmEP1nrR/RYKvUOGIMbjHaXDnoBrOB+TpLMY1nIXOPBn4oT7uxnM5XV GqZgK8Uwvx/kE3+g4byAthuGKTJHSprbfW2zw53H7MsRgfWUn+3hcBfazu3pjnPvG4 KIaF8DHOsSgciPBkTZTRoqBMKBkN+ikGFfYwATGBGWYCHax+2SBs1N6L0jzAhJMYnR bsRaAE38EiePg== Message-ID: Date: Fri, 24 Jun 2022 09:49:31 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH] arm64: dts: altera: socfpga_stratix10: move clocks out of soc node Content-Language: en-US To: niravkumar.l.rabara@intel.com Cc: devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org References: <20220624031017.3247656-1-niravkumar.l.rabara@intel.com> <20220624115911.3389627-1-niravkumar.l.rabara@intel.com> From: Dinh Nguyen In-Reply-To: <20220624115911.3389627-1-niravkumar.l.rabara@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 On 6/24/22 06:59, niravkumar.l.rabara@intel.com wrote: > From: Niravkumar L Rabara > > The clocks are not part of the SoC but provided on the board > (external oscillators). Moving them out of soc node. > > Signed-off-by: Niravkumar L Rabara > --- > .../boot/dts/altera/socfpga_stratix10.dtsi | 56 +++++++++---------- > .../dts/altera/socfpga_stratix10_socdk.dts | 10 ++-- > 2 files changed, 32 insertions(+), 34 deletions(-) > > diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi > index aa2bba75265f..5c7d926d18f7 100644 > --- a/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi > +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi > @@ -97,6 +97,34 @@ intc: interrupt-controller@fffc1000 { > <0x0 0xfffc6000 0x0 0x2000>; > }; > > + clocks { > + cb_intosc_hs_div2_clk: cb-intosc-hs-div2-clk { > + #clock-cells = <0>; > + compatible = "fixed-clock"; > + }; > + > + cb_intosc_ls_clk: cb-intosc-ls-clk { > + #clock-cells = <0>; > + compatible = "fixed-clock"; > + }; > + > + f2s_free_clk: f2s-free-clk { > + #clock-cells = <0>; > + compatible = "fixed-clock"; > + }; > + > + osc1: osc1 { > + #clock-cells = <0>; > + compatible = "fixed-clock"; > + }; > + > + qspi_clk: qspi-clk { > + #clock-cells = <0>; > + compatible = "fixed-clock"; > + clock-frequency = <200000000>; > + }; > + }; > + > soc { > #address-cells = <1>; > #size-cells = <1>; > @@ -119,34 +147,6 @@ clkmgr: clock-controller@ffd10000 { > #clock-cells = <1>; > }; > > - clocks { > - cb_intosc_hs_div2_clk: cb-intosc-hs-div2-clk { > - #clock-cells = <0>; > - compatible = "fixed-clock"; > - }; > - > - cb_intosc_ls_clk: cb-intosc-ls-clk { > - #clock-cells = <0>; > - compatible = "fixed-clock"; > - }; > - > - f2s_free_clk: f2s-free-clk { > - #clock-cells = <0>; > - compatible = "fixed-clock"; > - }; > - > - osc1: osc1 { > - #clock-cells = <0>; > - compatible = "fixed-clock"; > - }; > - > - qspi_clk: qspi-clk { > - #clock-cells = <0>; > - compatible = "fixed-clock"; > - clock-frequency = <200000000>; > - }; > - }; > - > gmac0: ethernet@ff800000 { > compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.74a", "snps,dwmac"; > reg = <0xff800000 0x2000>; > diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts > index 5159cd5771dc..48424e459f12 100644 > --- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts > +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts > @@ -52,12 +52,6 @@ ref_033v: regulator-v-ref { > }; > > soc { > - clocks { > - osc1 { > - clock-frequency = <25000000>; > - }; > - }; > - > eccmgr { > sdmmca-ecc@ff8c8c00 { > compatible = "altr,socfpga-s10-sdmmc-ecc", > @@ -113,6 +107,10 @@ &mmc { > bus-width = <4>; > }; > > +&osc1 { > + clock-frequency = <25000000>; > +}; > + > &uart0 { > status = "okay"; > }; What about arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_nand.dts? Also for future versions, please use a 'PATCHv#".