Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp321516imm; Thu, 2 Aug 2018 20:05:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcuow7jucffG0Od8kT4CPuiOM1Kfem5Knt7WHylB9UYEhyA9XlACcShTGL6cBY5R7ywOOji X-Received: by 2002:a63:c44a:: with SMTP id m10-v6mr1916088pgg.416.1533265510450; Thu, 02 Aug 2018 20:05:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533265510; cv=none; d=google.com; s=arc-20160816; b=N3kC/OkdGbs29x9nlwCxJdqi4RDCctucDEkYtNo6EZY2KFr2JulJrJbpJVHJMSwdBn 2iwHphbhHt92Y4xw4BY/aVg4b0Y1E2LupVEhzzrGZbzcguwdRTLMlHegudW2vReNR/ic rhXSVetFDyG3sDa2A3ExO37ws8f6uXJ8vVjc8k8saDiMqScc8/I5vaOkFdLe1QmMKxkH CacEZ/gPdG+NftOzVh9slCtNkV/qB21k3Lu9MKM9/e7P60ajK6c85oNoMoN1qq4Nl5jn GmfJeLEBJMfo/I5VXIXSf0tos9ZAQp8dQvsOW+37z/QT507Oexka7wlBJ+rFxV6sdM8w jmow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=BbLLYmec0XwCKsEb/KVjPo5dZ5MmvSnbaB17rGSBMEY=; b=QowSz3sCu5j1s0z12t1DGDnyqQQ0ccWC27UaVHERJTk/sasoevAYLjpx2LxRAdRhQz 35YkrqLDqnCfZp2QKRTJuM2ID+tMU6OScsu9cR3kv5J9znAUgpkeYnM5hiwVefWBYxah V2Za2TGgK5grrlrcRx5YlZuY45x8At7osinGlmHIkEo0zycvjCPHhjchyBFCZz9jAz4S A11OAt7s+EmPmUIq6piVFv+AZpF4tMsD3l7wOO6nqFIMuRXZ5L49KYkwAtPrxYV5+9dg FkYcaPpdxjAtkmdsKggeI5W2cOTL8v36Y0LVV1Nc2A0S0T2dswxzNQVBHaQsQuanZQbk xCDg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e125-v6si3602647pgc.424.2018.08.02.20.04.55; Thu, 02 Aug 2018 20:05:10 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727705AbeHCE54 (ORCPT + 99 others); Fri, 3 Aug 2018 00:57:56 -0400 Received: from mga01.intel.com ([192.55.52.88]:19256 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727246AbeHCE5y (ORCPT ); Fri, 3 Aug 2018 00:57:54 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Aug 2018 20:03:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,437,1526367600"; d="scan'208";a="80109907" Received: from sgsxdev001.isng.intel.com (HELO localhost) ([10.226.88.11]) by orsmga002.jf.intel.com with ESMTP; 02 Aug 2018 20:03:38 -0700 From: Songjun Wu To: hua.ma@linux.intel.com, yixin.zhu@linux.intel.com, chuanhua.lei@linux.intel.com, qi-ming.wu@intel.com Cc: linux-mips@linux-mips.org, linux-clk@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, Songjun Wu , Michael Turquette , Stephen Boyd , linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland Subject: [PATCH v2 03/18] dt-bindings: clk: Add documentation of grx500 clock controller Date: Fri, 3 Aug 2018 11:02:22 +0800 Message-Id: <20180803030237.3366-4-songjun.wu@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180803030237.3366-1-songjun.wu@linux.intel.com> References: <20180803030237.3366-1-songjun.wu@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yixin Zhu This patch adds binding documentation for grx500 clock controller. Signed-off-by: YiXin Zhu Signed-off-by: Songjun Wu --- Changes in v2: - Rewrite clock driver's dt-binding document according to Rob Herring's comments. - Simplify device tree docoment, remove some clock description. .../devicetree/bindings/clock/intel,grx500-clk.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/intel,grx500-clk.txt diff --git a/Documentation/devicetree/bindings/clock/intel,grx500-clk.txt b/Documentation/devicetree/bindings/clock/intel,grx500-clk.txt new file mode 100644 index 000000000000..e54e1dad9196 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/intel,grx500-clk.txt @@ -0,0 +1,39 @@ +Device Tree Clock bindings for grx500 PLL controller. + +This binding uses the common clock binding: + Documentation/devicetree/bindings/clock/clock-bindings.txt + +The grx500 clock controller supplies clock to various controllers within the +SoC. + +Required properties for clock node +- compatible: Should be "intel,grx500-cgu". +- reg: physical base address of the controller and length of memory range. +- #clock-cells: should be 1. + +Optional Propteries: +- intel,osc-frequency: frequency of the osc clock. +if missing, driver will use clock rate defined in the driver. + +Example: Clock controller node: + + cgu: cgu@16200000 { + compatible = "intel,grx500-cgu", "syscon"; + reg = <0x16200000 0x200>; + #clock-cells = <1>; + }; + + +Example: UART controller node that consumes the clock generated by clock + controller. + + asc0: serial@16600000 { + compatible = "lantiq,asc"; + reg = <0x16600000 0x100000>; + interrupt-parent = <&gic>; + interrupts = , + , + ; + clocks = <&cgu CLK_SSX4>, <&cgu GCLK_UART>; + clock-names = "freq", "asc"; + }; -- 2.11.0