Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp680404imm; Fri, 31 Aug 2018 10:17:15 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZEu7Yjh26nia0hkxv0KS8Zh/rSTU8DrQ+Q1QErJxCsOJJiF4x+s5QvpN2wE7Cvhq0f01FC X-Received: by 2002:a63:6243:: with SMTP id w64-v6mr15474122pgb.145.1535735835697; Fri, 31 Aug 2018 10:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535735835; cv=none; d=google.com; s=arc-20160816; b=umDrQkIKAPetyA3aaNWJdvjGEly/qAli8zL8cnCW5R5K8QOHugLzUtMNLJJq157YjX BpmECuTxwP4zT/oBogk3WqZn+7RZFbIQizNFMVqzz3S/WfwfJ+kUOZ6XYnIdb701K8jl 1JuXPVQJJtlkMHz8w2ovi/2neAFtTTHZpkIuCmET1MnuHYM/X17Ud9MLuyIBjVinrNU3 SUKMmuS4FMVQk173OM642C52sW2iFeamAOx9vM0C7LEle36yAEuvH1lULFadEkCcYf9k cKH0jzYCcMKOpg3MFK/LEgCMvNDHwc6fnbv2cz+kPa6Xb6261B8D6abVM7qLpMnNF23G Mr8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=uPJimPlF7yyKd+X1kPW5Svf3bKd3KY199sq6AbkdR/Q=; b=eCx97rdASAGeqmUeQvpN08WG+WM49VD3luwpfexZUkgHTFxj7uvqKPUQyH1Cva2Qg1 jHEtcMNLTv0TGaU9UzR3lJBgnHWqzACSt+hH8wCashW0GOCf+RfXmJt9OvmI9lTsDq1n 1LMHGePloh7AWYZM4n9SF1qASovp1rJTWBsIfwlNXj8LSBMXHbTp69wMGUdvCnygalfr XShck/fRDCq9n1G7vyuGBsfTsvNGfOlTaOb5HHZ3D4Jxeft8PGjVn4SPWI+I6rsYqD0v TTyHK5B5CN/N/LFNrfRmajlTEgSiOeG04am93ZWCZk5I4nqMI/Pb+t3ETpYHeYQTWuI+ Tbqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZNdGpc0C; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y9-v6si10153734pgi.691.2018.08.31.10.17.01; Fri, 31 Aug 2018 10:17:15 -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=@kernel.org header.s=default header.b=ZNdGpc0C; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727655AbeHaVVd (ORCPT + 99 others); Fri, 31 Aug 2018 17:21:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:55106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727301AbeHaVVc (ORCPT ); Fri, 31 Aug 2018 17:21:32 -0400 Received: from localhost (unknown [104.132.0.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1BEC42077C; Fri, 31 Aug 2018 17:13:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1535735586; bh=uPJimPlF7yyKd+X1kPW5Svf3bKd3KY199sq6AbkdR/Q=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=ZNdGpc0ChTwoLOGayUjDCZKhqmf6qQhJoQj3lnr0glRwmHV4zCNIUmINbYCDfDZ+m 83y0klJYaHjzNak9VDg1cgfOXyuX/bAARUVgWbi2nk+9MdAQ/ndicAfd9YQ2oze3fx AJwmQWwV65x06PvCCHdGcaJMdS2fioaMpsHvhyew= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: "Zhu, Yi Xin" , Songjun Wu , chuanhua.lei@linux.intel.com, hua.ma@linux.intel.com, qi-ming.wu@intel.com From: Stephen Boyd In-Reply-To: <65a8518b-8fd8-847b-f952-0370be3d786a@linux.intel.com> Cc: linux-mips@linux-mips.org, linux-clk@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, Michael Turquette , linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland References: <20180803030237.3366-1-songjun.wu@linux.intel.com> <20180803030237.3366-3-songjun.wu@linux.intel.com> <153370742214.220756.2039365625963765922@swboyd.mtv.corp.google.com> <571d2d40-8728-fa7c-5d89-73d2a7b6293b@linux.intel.com> <153539697928.129321.2605078315090527674@swboyd.mtv.corp.google.com> <65a8518b-8fd8-847b-f952-0370be3d786a@linux.intel.com> Message-ID: <153573558557.93865.3835503209987304514@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH v2 02/18] clk: intel: Add clock driver for Intel MIPS SoCs Date: Fri, 31 Aug 2018 10:13:05 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Zhu, Yi Xin (2018-08-29 03:34:26) > >>>> +} > >>>> + > >>>> +CLK_OF_DECLARE(intel_grx500_cgu, "intel,grx500-cgu", grx500_clk_ini= t); > >>> Any reason a platform driver can't be used instead of CLK_OF_DECLARE(= )? > >> It provides CPU clock which is used in early boot stage. > >> > > Ok. What is the CPU clock doing in early boot stage? Some sort of timer > > frequency? If the driver can be split into two pieces, one to handle the > > really early stuff that must be in place to get timers up and running > > and the other to register the rest of the clks that aren't critical from > > a regular platform driver it would be good. That's preferred model if > > something is super critical. > > > Just to make sure my approach is same as you think. > = > In the driver, there's two clock registrations. > = > - One through CLK_OF_DECLARE for early stage clocks. > = > - The other via platform driver for the non-critical clocks. You can use the same DT node for both parts, no need to split the node into two and use syscon here.