Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp462641pxk; Wed, 16 Sep 2020 08:25:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAOadn4T/PGJJ1HW5ICWBlHuJjGYwIoeLkFWYAbNhJ7JgkbYlos5l0xvmPV24sYzn05+xR X-Received: by 2002:a50:fe0a:: with SMTP id f10mr15113209edt.133.1600269950742; Wed, 16 Sep 2020 08:25:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600269950; cv=none; d=google.com; s=arc-20160816; b=vahom2/4tdQdd62pUvMqcY1IbYLy7QCdZculIsrDIRTOgnLgw1lr0wrXfz6z9Onds2 aHvB+705X3KCH377zdlixhX8gM5kgRxnhyDE027n+FA+9CLkBfES2L2pQGqZWot9lpjB MU5cUsMlBUex09uxVGpYEsrkCVi2Wj+21oX1mc+5s9yb60gGMYBQR01oW/eCixxVRmf7 w2SSEWygIMkTnI3TMVMYLcUYU+En7MCSEBXZ3apCdvPJG8wdRkEg2T9hO96FIC5dFeNc Ac08I0koMLr2+c37L3BVgn0CWPXy2kSt64Gr/uJ/JFOgqdL4PQrbDZhJHwbSvJAQnivQ 486A== 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=ip2NkoGZYiOVOsKtGVr8WLJdkS7/DR3qE3z96TTalHpzEbiKki0u0vT6GZjtOk2AY/ vVkBCpZ+npNeygebfwVOXK15ql27AaOGJ6TvOepg5jvrGmhcDwYRgvJKmBDAdxabQIAv /01BajMUTQpB37FzJDyYYTKyqACKYMaIEIb9CL3sVV9dwpi/DcrD7Kdaz7l5xFnqRmCm v5ucdDRvJ4hnA2b7zCCM3LRSv9nQ+thZlc50gYJvVZcMCZh2cmJQmERiP9kBCd8+l2C5 Rn1HzDftl66hGz0kfLKTs3+R8HyzGC5Tf9au++WXl9FSIQMx99DH5jasznhMuxDeOpXJ e7Rg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id s14si12006033ejx.304.2020.09.16.08.25.13; Wed, 16 Sep 2020 08:25:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726260AbgIPPXc (ORCPT + 99 others); Wed, 16 Sep 2020 11:23:32 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:55124 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726378AbgIPPUh (ORCPT ); Wed, 16 Sep 2020 11:20:37 -0400 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 08GCtvvl031127; Wed, 16 Sep 2020 15:55:57 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id 4BE7B639D7; Wed, 16 Sep 2020 15:55:57 +0300 (IDT) From: Tomer Maimon To: robh+dt@kernel.org, mark.rutland@arm.com, avifishman70@gmail.com, tali.perry1@gmail.com, venture@google.com, yuenn@google.com, benjaminfair@google.com, joel@jms.id.au Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, tmaimon77@gmail.com Subject: [PATCH v5 1/3] arm: dts: modify NPCM7xx device tree clock parameter Date: Wed, 16 Sep 2020 15:55:52 +0300 Message-Id: <20200916125554.195749-2-tmaimon77@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20200916125554.195749-1-tmaimon77@gmail.com> References: <20200916125554.195749-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