Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8817890ybi; Tue, 9 Jul 2019 23:47:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMVKhqPATCIOLWkDFaOp1orKv5rg9XtGO20oAWLJEcf+AJS0WwMwQtjO0grngWllKwLyF8 X-Received: by 2002:a17:90a:9604:: with SMTP id v4mr4959536pjo.66.1562741269283; Tue, 09 Jul 2019 23:47:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562741269; cv=none; d=google.com; s=arc-20160816; b=gqxqzZuBJDAtDh+Q0H77XK4kks0/EEkkYXM3/SZ0qTLuhLskcKkTepWxuBMXVbv1Ii 9ZUpt42s21IG6mgeUnGaEBoHkyL1CXNo4Dd+bta1xq7Km449IlYzB4qtWEqxoCymQ0ZA 3Aj613RG5aOV0oTsdL2CxIxZ4NCnGCAc4qP+eehuav8P5BwcYbf2aNfVJBqC3nuAAA7d BAF+ABcEEXQ/n8ci4TQ2ulpwhqc3z0ECBzeV3qAPepFWDeiQ4EX2mPRZ4STK+RLrtbyF gJmtwmU8wowGpr8SmkZtzq2+fPamNC0CccMIqFRMyfAtQOaNX/zz8Ke3EqEhiKpPw/mP Urww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=goA0pqDvekqqmxZQjkpFHCZBNwrKPP7M5GIjZbuPPQs=; b=Tuy0PcTQYn55e4uAfVI8yaCOr+oJRilXwJCOExcKYedNhc18PyY5HH/kP7Z5TjvF2X tUmDdEKD6oGKxhtUbE79lJ0BogjsBLpjuTCS1I/Dr452aR3ClJ9PypSHDZaaShEMKWNC 5bvBi5hLfFYihfSeTlrriSn9KT2tR0KBWxrdMt/IcTgxkUeR30AEwkZunAFrSgXzX0Zh dpzLFn4/x9furA1O1fD8+jt/VaGL+cdPqamx/5CU+xve7Pd4jRYCZl7EmkpzD9eCDn8d +lU+II1IKil6nbJx3C6RJQ3buUddOd1CX//BbhKvXPwB8eWdzmnx0E2YsQNVZVl9lkjW xIGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Dn2ACj9E; 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=pass (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 a24si1510569pfi.205.2019.07.09.23.47.33; Tue, 09 Jul 2019 23:47:49 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Dn2ACj9E; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726275AbfGJGqb (ORCPT + 99 others); Wed, 10 Jul 2019 02:46:31 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:33270 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726111AbfGJGqb (ORCPT ); Wed, 10 Jul 2019 02:46:31 -0400 Received: by mail-ot1-f68.google.com with SMTP id q20so1097444otl.0; Tue, 09 Jul 2019 23:46:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=goA0pqDvekqqmxZQjkpFHCZBNwrKPP7M5GIjZbuPPQs=; b=Dn2ACj9EnzC10Mxhwl/GbLOGyx01LLVFuYvtNYMVexM46MKXlqDa9q/9MdvWqJVqR0 Vew3p7VZxbyZm3YfmpGi1m8fdc9zcfTpDR44iiEoXqqm+hcrsMpdTQfXA5jXE9DK11gs JMZfBexPsnQDrKIwm6ZAYlN5xjMp5FYHYmBCl4V6scUR1Rx5aizZcK73SnaAqEv+ddZG PhMwoKIRBgqJuSSC8LdZu0ZyDLEQhpGqTKjPG5G7LemRHVBbrwC34CkuDM/e11H0dIyU cnNyIzFGj/RMZVldwOCXxkRfao+FWo4+CGQt7D60vcpk7dLEGnzgWfFOQy2IafyyOU2L 1ANw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=goA0pqDvekqqmxZQjkpFHCZBNwrKPP7M5GIjZbuPPQs=; b=crHC6cjt9xtIA1B03GTiVnLof/zk8l8vLpC8jwOK68Xsr963o70GV9sW1cqzoliyfP w/C/Q42vmlkfVNTvve3iYE4Opwmz8KlBrAbUkIL4EEquKX/lHTfmQJwFaIfRxhfFVfML 1H3VJzpiKPr3wIvgBHpnCiT7FGWAuMc7lb6fjTK6mh4APmxSQypT6nV0X8NND7qO+jFS Gy6a6zgXk9wDROs6TrcDHS9T1A7cKtuEQ2jf0kqaINUceZlGXsfcl52Y5lnDDwpuRt9u eiiieTi+CcYJXk+bKFqKMZxnkqiX8It0WGFLAdWolNoDDVjMqaWI/yvva62IZ7/KZrxK CQAw== X-Gm-Message-State: APjAAAXoTW8QolsMVJYoVgfh4iwgTSrCvqegguWPBrY4NdVTw3EnrxLB sGrsMIs1Xp4w47jIeD6JS8jOlm2g7GxDnCVH16DE9g2GXB8= X-Received: by 2002:a05:6830:1350:: with SMTP id r16mr21391473otq.84.1562741190094; Tue, 09 Jul 2019 23:46:30 -0700 (PDT) MIME-Version: 1.0 References: <20190709182018.23193-1-gch981213@gmail.com> <20190709182018.23193-5-gch981213@gmail.com> In-Reply-To: <20190709182018.23193-5-gch981213@gmail.com> From: Chuanhong Guo Date: Wed, 10 Jul 2019 14:46:18 +0800 Message-ID: Subject: Re: [PATCH 4/5] staging: mt7621-dts: add dt nodes for mt7621-pll To: "open list:COMMON CLK FRAMEWORK" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , "open list:MIPS" , "open list:STAGING SUBSYSTEM" Cc: Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Ralf Baechle , Paul Burton , James Hogan , John Crispin , Greg Kroah-Hartman , Weijie Gao , NeilBrown Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 10, 2019 at 2:22 AM Chuanhong Guo wrote: > > This commit adds device-tree node for mt7621-pll and use its clock > accordingly. > > Signed-off-by: Chuanhong Guo Oops. Please ignore this single patch for now. I forgot to drop cpuclock node in drivers/staging/mt7621-dts/gbpc1.dts I'll resend this patch with changes for gbpc1.dts after the other four patches are applied. > --- > drivers/staging/mt7621-dts/mt7621.dtsi | 15 +++++++-------- > 1 file changed, 7 insertions(+), 8 deletions(-) > > diff --git a/drivers/staging/mt7621-dts/mt7621.dtsi b/drivers/staging/mt7621-dts/mt7621.dtsi > index a4c08110094b..12717f570ceb 100644 > --- a/drivers/staging/mt7621-dts/mt7621.dtsi > +++ b/drivers/staging/mt7621-dts/mt7621.dtsi > @@ -1,4 +1,5 @@ > #include > +#include > #include > > / { > @@ -27,12 +28,11 @@ > serial0 = &uartlite; > }; > > - cpuclock: cpuclock@0 { > - #clock-cells = <0>; > - compatible = "fixed-clock"; > + pll: pll { > + compatible = "mediatek,mt7621-pll", "syscon"; > > - /* FIXME: there should be way to detect this */ > - clock-frequency = <880000000>; > + #clock-cells = <1>; > + clock-output-names = "cpu", "bus"; > }; > > sysclock: sysclock@0 { > @@ -155,7 +155,6 @@ > compatible = "ns16550a"; > reg = <0xc00 0x100>; > > - clocks = <&sysclock>; > clock-frequency = <50000000>; > > interrupt-parent = <&gic>; > @@ -172,7 +171,7 @@ > compatible = "ralink,mt7621-spi"; > reg = <0xb00 0x100>; > > - clocks = <&sysclock>; > + clocks = <&pll MT7621_CLK_BUS>; > > resets = <&rstctrl 18>; > reset-names = "spi"; > @@ -372,7 +371,7 @@ > timer { > compatible = "mti,gic-timer"; > interrupts = ; > - clocks = <&cpuclock>; > + clocks = <&pll MT7621_CLK_CPU>; > }; > }; > > -- > 2.21.0 >