Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp799766pxk; Thu, 17 Sep 2020 17:10:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3kdNncVRXYaDkX27g0tUyVMHqQu99AJFC8OngjqZCsrEQ3Q+hFqx6quWVjKjhcI1f9RCZ X-Received: by 2002:a17:906:6884:: with SMTP id n4mr34307829ejr.50.1600387833591; Thu, 17 Sep 2020 17:10:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600387833; cv=none; d=google.com; s=arc-20160816; b=c4auBeUeae/yLXKTJsxyBRncMKt9s+RTnVoqSP1eKP/EgAMDrvGNYWETRKItuQrE88 c0c7DlujT4YEHwjQ/xH0w0SeXFioCyUFtMSBj+U+dklwrnuuOq0KhXzSg0+z/cPhU55F iV/pdLqenvyRGLRUCNIsHJIv/AFf/iJNGFD/ratjtzhgZuYWjdULN0tBKfq3HkBlQ8Od E+jqjn+HekQBqkRSucbMTkOmzk5DroYbXXkJq8roHOy8b3ziZVhtdUwEB6JuxcxNRYaC bnRsbhthztL43pPP34hp7jrdaMEBMtYACM2LY/TwlLmPwjrwg9DE3qLMAn0JZwHP3oU7 L1Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=8/20BCIGSlCKQjeS/m580e5cwOxGHXcarEOmzDcD0nE=; b=YvSdU3Crxd5RNWHgemgAY1jL1xwhJPqm7DDavemDukRAivJKY6+SYtW+0QXWW7ukaa 1XCLIr6QeTHaQCEfr9a3SPmKXVSfx745DNY3F89phTimxPr7PYt49Qm1rERa1FP7HJ2O g90TdnExQ8gikibdGLIZLV9cCKQpt6woOyOyjOuna6zt4wQjLN6Kng81CrG6HnMZdHm8 wdUCF6Vii/nVAJ1FnMFeP8o2U7sCXplJM7Xakcwg7UZBY1bjGGldEbiSQMdwtMC/y8pa iohdnTmjt8PR2Yjd4pncYdoThPDCI42JWQbu5ymF/dRu1VBlyvIUbzHIo2OhVlsti87K WM1w== 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 b11si1201647ejz.631.2020.09.17.17.10.07; Thu, 17 Sep 2020 17:10:33 -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 S1726280AbgIRAI1 (ORCPT + 99 others); Thu, 17 Sep 2020 20:08:27 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:55293 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726183AbgIRAI0 (ORCPT ); Thu, 17 Sep 2020 20:08:26 -0400 X-Greylist: delayed 1407 seconds by postgrey-1.27 at vger.kernel.org; Thu, 17 Sep 2020 20:08:21 EDT 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 08HNiNQh008722; Fri, 18 Sep 2020 02:44:23 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id 24A7B639D7; Fri, 18 Sep 2020 02:44:23 +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 v6 1/3] arm: dts: modify NPCM7xx device tree clock parameter Date: Fri, 18 Sep 2020 02:44:18 +0300 Message-Id: <20200917234420.86137-2-tmaimon77@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20200917234420.86137-1-tmaimon77@gmail.com> References: <20200917234420.86137-1-tmaimon77@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Joel Stanley --- 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