Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1994252imm; Thu, 14 Jun 2018 07:10:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKUie4Ne9w0vIRRUgvRdNavUvVBNv4hTR3F2d29tw+W/f+oS7taZxsQ7gvA3kciX6nlZgHk X-Received: by 2002:a63:a356:: with SMTP id v22-v6mr2423452pgn.182.1528985446156; Thu, 14 Jun 2018 07:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528985446; cv=none; d=google.com; s=arc-20160816; b=XPEgZFJl9O9Cl3rHHMOGJBvm1Wvt97tCCfG90XF8EoO0vKDTU8FyILSKQLTDxVgzZA BT3G38hhz5SkhLJm6rjI0fBjBTXqnG2e6mLFgPpAwjAqpInacKR0oXiq9soBf6o8WRPM vCRbQR6TqLMEOzT16/fMCzVA+oM7jwF/G87NfCusdXM42OWkoxN9nAmxiyDoxVSAssKA xPWAxu36O5SV6dfD7Ww8Gp4KYM2pHGpOoJBONYjRGnDBohLJNgTdal+h2X6F9da06D8A sdep6IUmTrjZtP6TwaM0VCWAUdmHmfHOHr6zSsG3F10oPZ4z6piBnnP3qhlHn5/pgohw 6mqQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=fRkS6eVm9GaxT2/Uec5gRgF0/Z5dO7U9q0J/PSrpIfk=; b=MhvPDAQRnrw+N/CA4UF4PyxaHVlM9uYmWVqY3fY/8jcKph4q3O2D4MCNbLdeqB8La0 oH1bvV3mE9PdioFSuDl2MlaFb4Maczw7dqLS7Z0VkwkvV+meQoMCZldj0In461c1UGOn IPrz+xWv6SaLblNpXJYTLcafEnD0oHu3A5CqRfIsBLEM8/AK99VtxxTV67YqoVkLfRf3 kksWufc2TC1UcF7f86/ZmfUmPviwnwX48zeaMdi2YAn1sHCJ54UtXz2/nlOVCdmcneMS WBEgwP1HHdqjpMkp39sTES6odvAOVeGSiY99leANwuTm74vR2XCT44+rwX6g5bL8AvOG uvgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NRYzIZF9; 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 u10-v6si5437803plz.153.2018.06.14.07.10.32; Thu, 14 Jun 2018 07:10:46 -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=NRYzIZF9; 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 S965494AbeFNOJk (ORCPT + 99 others); Thu, 14 Jun 2018 10:09:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:50572 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965480AbeFNOJg (ORCPT ); Thu, 14 Jun 2018 10:09:36 -0400 Received: from mail-it0-f49.google.com (mail-it0-f49.google.com [209.85.214.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6F881208DE; Thu, 14 Jun 2018 14:09:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528985375; bh=FO48a2zJQFE3s5ew5+6pO930bfZJRPJk+gTs/h5A5tI=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=NRYzIZF9oErkXIq1D4HJPZJfl+qwZKCVwKKhILM5Hlh9oUVYjyyLEWcqL9PHlwlDi nNFQ2IDBDLdjOQJwdqLQcEbrN6iUkfVB/qRoKsnV+3Lgz6kWMJ10Iv7fOo1PTeTEU5 3GwNCo3txoRVNO+VYk3nSmzYLwSXxBlzheU2LKQs= Received: by mail-it0-f49.google.com with SMTP id m194-v6so8507558itg.2; Thu, 14 Jun 2018 07:09:35 -0700 (PDT) X-Gm-Message-State: APt69E1Dldvd1zpyZxt+wecz/lbNcs25FS+QMuf01UDiaHZdrDHiWxjH /ilUAMmpZajJY42tbeLruIPtIL0wtbKOrNWvRQ== X-Received: by 2002:a24:ec44:: with SMTP id g65-v6mr2515174ith.18.1528985374889; Thu, 14 Jun 2018 07:09:34 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:6403:0:0:0:0:0 with HTTP; Thu, 14 Jun 2018 07:09:14 -0700 (PDT) In-Reply-To: <41163f48-ce5c-efae-2b6d-b93d75e422e5@linux.intel.com> References: <20180612054034.4969-1-songjun.wu@linux.intel.com> <20180612054034.4969-3-songjun.wu@linux.intel.com> <20180612223725.GC2197@rob-hp-laptop> <41163f48-ce5c-efae-2b6d-b93d75e422e5@linux.intel.com> From: Rob Herring Date: Thu, 14 Jun 2018 08:09:14 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/7] clk: intel: Add clock driver for GRX500 SoC To: yixin zhu Cc: Songjun Wu , hua.ma@linux.intel.com, chuanhua.lei@linux.intel.com, Linux-MIPS , qi-ming.wu@intel.com, linux-clk , "open list:SERIAL DRIVERS" , devicetree@vger.kernel.org, Michael Turquette , Stephen Boyd , "linux-kernel@vger.kernel.org" , Mark Rutland 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 Thu, Jun 14, 2018 at 2:40 AM, yixin zhu wrote: > > > On 6/13/2018 6:37 AM, Rob Herring wrote: >> >> On Tue, Jun 12, 2018 at 01:40:29PM +0800, Songjun Wu wrote: >>> >>> From: Yixin Zhu >>> >>> PLL of GRX500 provide clock to DDR, CPU, and peripherals as show below [...] >>> +Example: >>> + clkgate0: clkgate0 { >>> + #clock-cells = <1>; >>> + compatible = "intel,grx500-gate0-clk"; >>> + reg = <0x114>; >>> + clock-output-names = "gate_xbar0", "gate_xbar1", >>> "gate_xbar2", >>> + "gate_xbar3", "gate_xbar6", "gate_xbar7"; >>> + }; >> >> >> We generally don't do a clock node per clock or few clocks but rather 1 >> clock node per clock controller block. See any recent clock bindings. >> >> Rob > > Do you mean only one example is needed per clock controller block? > cpuclk is not needed in the document? No, I mean generally we have 1 DT node for the h/w block with all the clock control registers rather than nodes with a single register and 1 or a couple of clocks. Sometimes the clock registers are mixed with other functions which complicates things a bit. But I can't tell that here because you haven't documented what's in the rest of the register space. Rob