Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5814628ybv; Tue, 18 Feb 2020 04:32:46 -0800 (PST) X-Google-Smtp-Source: APXvYqwBcKr26awZpQLjBE8HNOYrw0Nd2atE18TjwSpMX7kn4oeMLFKZ6VR/J9om/VteBAs2T1JX X-Received: by 2002:a9d:63d6:: with SMTP id e22mr15879279otl.185.1582029166337; Tue, 18 Feb 2020 04:32:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582029166; cv=none; d=google.com; s=arc-20160816; b=QwLvZVLvl5T9Tk0+Xoe239RSEBiJEM0vxc32jBBQhmhWUlKLCql0b3ARBPLPWDGjOQ FzflCqa0ERCcG6fy71jYDpmNHYXZIrdEgDy0FxGK5O9Z+x7cujVIeLar1Jb7tO2aPaIx ndTJ8Fqklf/w92EuSKUGA/a1WQI4Cdg7kcF2j43eYSrGyLmFVv0rIe+5QFufC5AFe2Ry ENO8E1gOzKZDyq1J4ynTnQSiN6QBqlrsCio3ReHK/6KDH1b4/0OPI2LMGcAzN3uOHSM/ 7HJ/ydUsBSr9jcyNaH771gB4p60thQOF+mG14wAM//krMrbje2lhea3ObUf+gAnLq9aO Wa2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=4Z+9qLdQa65aVvO8BSAoR7xJmdrhX3wpTvBsfaRTXBk=; b=AP3dM22e/vQtKpdMM6g0hmvN9SCmAMjb3xVtiOMJnFTg3VUZo0WM827ONZeokKFaLA fo2UD9zzgHsvUcd2CTpmXw1HdgaFQVioeVzG7Dqt7W7SWERZY13ZuztPByw6K39cireb 0IS5WPzEtuGLWlAXOD1lZaJc7osWst58LoGAEjChuDU5jGo4HpEVQ8Pu49ro2sRbOJU2 xk3m2/QY7Sy7qqbAH8fo0oJmLsLZc/b4otU30qshEl2JFdra8i4tA2AVSlWuY8E7Is2P w50P6gv2tIB3L8xDTwcXIVw+bY/VLivH5o0KyvEQ42Py12O7O6n6ZV4h8NKyZVbq8RZg JcnA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l10si1705696oth.243.2020.02.18.04.32.33; Tue, 18 Feb 2020 04:32:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726656AbgBRMc0 (ORCPT + 99 others); Tue, 18 Feb 2020 07:32:26 -0500 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:37551 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726551AbgBRMc0 (ORCPT ); Tue, 18 Feb 2020 07:32:26 -0500 Received: from taln60.nuvoton.co.il (ntil-fw [212.199.177.25]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id 01ICVdWY007990; Tue, 18 Feb 2020 14:31:39 +0200 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id 316E76032F; Tue, 18 Feb 2020 14:31:39 +0200 (IST) From: Tomer Maimon To: robh+dt@kernel.org, mark.rutland@arm.com, joel@jms.id.au, avifishman70@gmail.com, tali.perry1@gmail.com, venture@google.com, yuenn@google.com, benjaminfair@google.com, linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, Tomer Maimon Subject: [PATCH v4 1/3] arm: dts: modify NPCM7xx device tree clock parameter to clock constant Date: Tue, 18 Feb 2020 14:31:26 +0200 Message-Id: <20200218123128.17990-2-tmaimon77@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20200218123128.17990-1-tmaimon77@gmail.com> References: <20200218123128.17990-1-tmaimon77@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Modify NPCM7xx device tree clock parameter to clock constants that define at include/dt-bindings/clock/nuvoton,npcm7xx-clock.h file. Signed-off-by: Tomer Maimon --- arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi | 19 ++++++++++--------- arch/arm/boot/dts/nuvoton-npcm750.dtsi | 6 +++--- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi b/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi index d2d0761295a4..16a28c5c4131 100644 --- a/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi +++ b/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi @@ -3,6 +3,7 @@ // Copyright 2018 Google, Inc. #include +#include / { #address-cells = <1>; @@ -80,7 +81,7 @@ interrupts = ; cache-unified; cache-level = <2>; - clocks = <&clk 10>; + clocks = <&clk NPCM7XX_CLK_AXI>; arm,shared-override; }; @@ -120,7 +121,7 @@ compatible = "nuvoton,npcm750-timer"; interrupts = ; reg = <0x8000 0x50>; - clocks = <&clk 5>; + clocks = <&clk NPCM7XX_CLK_TIMER>; }; watchdog0: watchdog@801C { @@ -128,7 +129,7 @@ interrupts = ; reg = <0x801C 0x4>; status = "disabled"; - clocks = <&clk 5>; + clocks = <&clk NPCM7XX_CLK_TIMER>; }; watchdog1: watchdog@901C { @@ -136,7 +137,7 @@ interrupts = ; reg = <0x901C 0x4>; status = "disabled"; - clocks = <&clk 5>; + clocks = <&clk NPCM7XX_CLK_TIMER>; }; watchdog2: watchdog@a01C { @@ -144,13 +145,13 @@ interrupts = ; reg = <0xa01C 0x4>; status = "disabled"; - clocks = <&clk 5>; + clocks = <&clk NPCM7XX_CLK_TIMER>; }; serial0: serial@1000 { compatible = "nuvoton,npcm750-uart"; reg = <0x1000 0x1000>; - clocks = <&clk 6>; + clocks = <&clk NPCM7XX_CLK_UART>; interrupts = ; reg-shift = <2>; status = "disabled"; @@ -159,7 +160,7 @@ serial1: serial@2000 { compatible = "nuvoton,npcm750-uart"; reg = <0x2000 0x1000>; - clocks = <&clk 6>; + clocks = <&clk NPCM7XX_CLK_UART>; interrupts = ; reg-shift = <2>; status = "disabled"; @@ -168,7 +169,7 @@ serial2: serial@3000 { compatible = "nuvoton,npcm750-uart"; reg = <0x3000 0x1000>; - clocks = <&clk 6>; + clocks = <&clk NPCM7XX_CLK_UART>; interrupts = ; reg-shift = <2>; status = "disabled"; @@ -177,7 +178,7 @@ serial3: serial@4000 { compatible = "nuvoton,npcm750-uart"; reg = <0x4000 0x1000>; - clocks = <&clk 6>; + clocks = <&clk NPCM7XX_CLK_UART>; interrupts = ; reg-shift = <2>; status = "disabled"; diff --git a/arch/arm/boot/dts/nuvoton-npcm750.dtsi b/arch/arm/boot/dts/nuvoton-npcm750.dtsi index 6ac340533587..a37bb2294b8f 100644 --- a/arch/arm/boot/dts/nuvoton-npcm750.dtsi +++ b/arch/arm/boot/dts/nuvoton-npcm750.dtsi @@ -17,7 +17,7 @@ cpu@0 { device_type = "cpu"; compatible = "arm,cortex-a9"; - clocks = <&clk 0>; + clocks = <&clk NPCM7XX_CLK_CPU>; clock-names = "clk_cpu"; reg = <0>; next-level-cache = <&l2>; @@ -26,7 +26,7 @@ cpu@1 { device_type = "cpu"; compatible = "arm,cortex-a9"; - clocks = <&clk 0>; + clocks = <&clk NPCM7XX_CLK_CPU>; clock-names = "clk_cpu"; reg = <1>; next-level-cache = <&l2>; @@ -38,7 +38,7 @@ reg = <0x3fe600 0x20>; interrupts = ; - clocks = <&clk 5>; + clocks = <&clk NPCM7XX_CLK_AHB>; }; }; }; -- 2.22.0