From patchwork Fri May 4 00:57:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 10379557 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 37A2460353 for ; Fri, 4 May 2018 00:58:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2154A292A3 for ; Fri, 4 May 2018 00:58:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 14291292D1; Fri, 4 May 2018 00:58:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 69215292A3 for ; Fri, 4 May 2018 00:58:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=mPyArsKQmUMLDUKOiuzifyCU4Tnzql4VL/Jl9ZIVQhI=; b=C4MRziC+405N8RiKYY9pwHA4hM r4ZcYsj1zScUDslDp1H9nynbNopUlti2LD/qf0zAafbna6Wgq2YHnIxZ4o8maGGE5BHiGEIXSer3n AbfFqo7BlVUpGcnmQkY2/6bcQnQIimjK2Xh2tNpH1Ur/OgfxNFahGKZggdupqWYbpyw13bMJZuyiQ ExUszti+eqrielcJn4KCne82qVRDPCXQbLHP5FYvy1H0GE4mNk1MmLPbnzSdtdxCOtIyXX0X3DmMJ ZTfjvDgmDIOVzGI9GNc0U1wHRsprCjvQVFtpjOVX8OiO4pTM2ivdFbm9G9gbpYyFxGQw7lOtgxmIp EPtFqafQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fEP3f-0003F2-2L; Fri, 04 May 2018 00:58:47 +0000 Received: from mail-pf0-f195.google.com ([209.85.192.195]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fEP34-0002zN-Dq for linux-arm-kernel@lists.infradead.org; Fri, 04 May 2018 00:58:12 +0000 Received: by mail-pf0-f195.google.com with SMTP id e9so12093229pfi.4 for ; Thu, 03 May 2018 17:58:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6ekfUl9cLlkshFIrzfygF/or4mKr8n4t3zvnn2DsE50=; b=gbyE/apDjR1VtFZ4949HpIjbOk4rQqJNLf3Kuv3/X0kiQuGHvPSEQeuqOlMlwQ2AJP VHgzx3EXsLZa+4YUbwO+dgupN8WV+3xnc2zGkPt8XdYqjoovaGtK8NxG3M2jY06KgytE Pn+g8q2qvz+bdMR+0UHA7U5Xd0oACqhUnERb2Q554T5T36oLCh8Ld9rw9s1PXCdqmLDO dzbD+Y5+fX/h6TxudN9P6qQt+/XxcnO2IOvkeHw6HwuuG9cYfG9LujQ2SndlVVTsPBsh y763mHGeAmhb40+QwiC+nHpn4c1+uR0Ir+ekorkinSCDXXemCoo00E2BkHqGZqHNy7LP V+Kw== X-Gm-Message-State: ALQs6tBBZVcRnMSDiPfEZ9Kt0vftuqD6NMygkKGrPdZST2rsKmeOYLF/ wy6PGlgrsPXGRZFzwSnvPvMKWA== X-Google-Smtp-Source: AB8JxZrmWTWHHPbguwBFap6EYgE1ii5h52HLELbDugh7wJgADQfJJ39kdXXwPUCI6KRyQEzlkObHsA== X-Received: by 2002:a17:902:82c3:: with SMTP id u3-v6mr25679233plz.83.1525395488214; Thu, 03 May 2018 17:58:08 -0700 (PDT) Received: from localhost.localdomain ([180.106.220.129]) by smtp.gmail.com with ESMTPSA id b89sm33948109pfd.85.2018.05.03.17.58.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 May 2018 17:58:06 -0700 (PDT) From: Shawn Guo To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/4] ARM: dts: imx27: use lable to override osc26m clock setting Date: Fri, 4 May 2018 08:57:25 +0800 Message-Id: <1525395446-1953-4-git-send-email-shawnguo@kernel.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525395446-1953-1-git-send-email-shawnguo@kernel.org> References: <1525395446-1953-1-git-send-email-shawnguo@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180503_175810_484165_B1E5C1F9 X-CRM114-Status: GOOD ( 14.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabio Estevam , Rob Herring , Shawn Guo , linux-imx@nxp.com, kernel@pengutronix.de MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Instead of copying the whole node hierarchy, let's define a label for clock osc26m in soc dtsi and use it for overriding clock-frequency. Signed-off-by: Shawn Guo --- arch/arm/boot/dts/imx27-apf27.dts | 13 +++---------- arch/arm/boot/dts/imx27.dtsi | 2 +- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/arch/arm/boot/dts/imx27-apf27.dts b/arch/arm/boot/dts/imx27-apf27.dts index 66941cdbf244..3eddd805a793 100644 --- a/arch/arm/boot/dts/imx27-apf27.dts +++ b/arch/arm/boot/dts/imx27-apf27.dts @@ -22,17 +22,10 @@ memory@a0000000 { reg = <0xa0000000 0x04000000>; }; +}; - clocks { - #address-cells = <1>; - #size-cells = <0>; - - osc26m { - compatible = "fsl,imx-osc26m", "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <0>; - }; - }; +&clk_osc26m { + clock-frequency = <0>; }; &iomuxc { diff --git a/arch/arm/boot/dts/imx27.dtsi b/arch/arm/boot/dts/imx27.dtsi index 389c9288b4ed..6c28b9cf802c 100644 --- a/arch/arm/boot/dts/imx27.dtsi +++ b/arch/arm/boot/dts/imx27.dtsi @@ -57,7 +57,7 @@ }; clocks { - osc26m { + clk_osc26m: osc26m { compatible = "fsl,imx-osc26m", "fixed-clock"; #clock-cells = <0>; clock-frequency = <26000000>;