From patchwork Fri May 4 00:57:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 10379559 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 D3EA36038F for ; Fri, 4 May 2018 00:59:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BFC42292A3 for ; Fri, 4 May 2018 00:59:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3376292D1; Fri, 4 May 2018 00:59:46 +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 250E7292A3 for ; Fri, 4 May 2018 00:59:46 +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=o8a8+cEU57Vtr2RRkGETymndoyL5+Ht+cRC6AtcMDI4=; b=lo3RD5u9I1YS/8ZnL9VN7CTGCu XnPkGHCB9NdxsvxRsBg2VrxVaat/FsuBWWlIVmYd4gqteL9hqvDxAfqX1xDde47cWkFlSMWdGLSjn lSNT83/ludA2IqB+k8HlnpofJoxz7Y0tL3bkgQPSl9ybSv9faNPGMBV/prUibIqPYUIMrpLVUR7gO jUUhAQhg2mepa3WPgd8AUmvIJ7BPYU0rsp2p0RkKY+o/2pXTvXFdAC9k1KJsW5m9UrfleUm7va1jF XuzqmJ16tm3Gie3UuaZWqrySsWCqJVoaqWVYHT/SLiIPdcBI08jgX5o1GQ+UU2iCgwGhrayTKig5O g8t7XFdw==; 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 1fEP4O-0003aO-UZ; Fri, 04 May 2018 00:59:32 +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-0002z5-Dm 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 f20so7300545pfn.0 for ; Thu, 03 May 2018 17:58:04 -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=zh1ZuMslgommrBKb5x58Arf0zW/31WNpUoNJ887Hhh8=; b=OV6Bu830RxJgdxXLPq1RwHpBmlIA9sLFl5CmhMMmomDIs7UHPy5crF7hnDwedZerlf KB8KiGME5BxIPWlG1BRSDgz3LLncGnarJCNSJe2GraDiJGcUXKF/PM1VecNpEkBnjvYx uymb0PNynvgK6xLMl3j91NojmlrreLtm4QjWVXXNvXlo7JWaE5xQplVDVAqG4PqOoXwf GO0h8KkNg3PxlMmHDyCzzsJgRzwZyP3fWdXUPlQhRV65o3vmLQ7w+xSm3VYmgnlrIaoN LG1PHBnxcgdkgoDXCftAQsLv7fID//VmTVxegoYfAP4K2fwJB0frVWEnvUTrOP5GszN/ HITg== X-Gm-Message-State: ALQs6tAPFihwCUyF17uC13TaTw6/LMrkK4J/yFZVi4ksflRdSWSehTHY dPNWZwTQBSVdqYaDUHidfkPDug== X-Google-Smtp-Source: AB8JxZpNfvP3ATQwZPYTJ87jasN518qhyWS93SZ5nOl8QbHQymRVTYOXwJPbsmSQUjZpxv36n78Adg== X-Received: by 2002:a17:902:362:: with SMTP id 89-v6mr26326564pld.270.1525395483854; Thu, 03 May 2018 17:58:03 -0700 (PDT) Received: from localhost.localdomain ([180.106.220.129]) by smtp.gmail.com with ESMTPSA id b89sm33948109pfd.85.2018.05.03.17.58.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 May 2018 17:58:02 -0700 (PDT) From: Shawn Guo To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/4] ARM: dts: imx1: move clk32 clock into soc dtsi Date: Fri, 4 May 2018 08:57:24 +0800 Message-Id: <1525395446-1953-3-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_509257_97CEA504 X-CRM114-Status: GOOD ( 14.54 ) 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 The clk32 clock is an input clock to CCM module, and should be defined in soc dtsi rather than a board level dts. Let's move it into imx1.dtsi. While at it, let's drop unnecessary #address-cells/#size-cells from 'clocks' node to DTC warning avoid_unnecessary_addr_size seen with W=1 switch. Signed-off-by: Shawn Guo --- arch/arm/boot/dts/imx1-ads.dts | 11 ----------- arch/arm/boot/dts/imx1.dtsi | 8 ++++++++ 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/arch/arm/boot/dts/imx1-ads.dts b/arch/arm/boot/dts/imx1-ads.dts index 6354e4c87313..a1d81badb5c8 100644 --- a/arch/arm/boot/dts/imx1-ads.dts +++ b/arch/arm/boot/dts/imx1-ads.dts @@ -23,17 +23,6 @@ memory@8000000 { reg = <0x08000000 0x04000000>; }; - - clocks { - #address-cells = <1>; - #size-cells = <0>; - - clk32 { - compatible = "fsl,imx-clk32", "fixed-clock"; - #clock-cells = <0>; - clock-frequency = <32000>; - }; - }; }; &cspi1 { diff --git a/arch/arm/boot/dts/imx1.dtsi b/arch/arm/boot/dts/imx1.dtsi index f7b9edf93f5e..78cba9435f8e 100644 --- a/arch/arm/boot/dts/imx1.dtsi +++ b/arch/arm/boot/dts/imx1.dtsi @@ -62,6 +62,14 @@ }; }; + clocks { + clk32 { + compatible = "fsl,imx-clk32", "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32000>; + }; + }; + soc { #address-cells = <1>; #size-cells = <1>;