Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3656427imm; Mon, 6 Aug 2018 08:24:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd9xnHlMUCH3lK6RHBUaM3aRSDN821AQ3W6XioRZ9R30899m5qIjfcvwxPmzR2Pgvx2VYSV X-Received: by 2002:a62:864a:: with SMTP id x71-v6mr17708741pfd.252.1533569072954; Mon, 06 Aug 2018 08:24:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533569072; cv=none; d=google.com; s=arc-20160816; b=f+VSWvIgR2TG4dtB3/ethqqLtqYWJB8AyRzw/fsBx4leTmqxdG2zblElz5hUShXwMu rfLfnwnLegDkuKAg2bd2D1MLDPjm7X9RmeMJD++1lzLQNUNCCzQ98IIICAmkD+9FQ9oS 9lmtlFeme/oa9WvKxccjw1+dm/Fv2/P5bURe3l99Ljh3hXt12m6pSI3UkzD7F74+6r9U b+wBjBcfgWjwwa3ijDvsn3AEBhFPkYZncIm6pHIhOb072nQYjzrJx/vI023xJtQysfLL EjVnA2pJpQZI2IJioD9bX5cEWlXO2jK7dtc3ZXTbotSZKNfnKc1mU7LNeFpN1tncofS9 d+fA== 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 :arc-authentication-results; bh=+Z7G54LEsykdNxWjMqwks6q7DaeGFfTDBwCZAdtBsoY=; b=DmxSLrCUu6qQVvJVFd/VgludHxuu9MVp2XcJ4u/aL0owhkGGb/JK+eVMCECQw6nso0 rtEf61hxnrsL5UCK6lQEczlt3byQvYkRP5RA6wb3hH2rr2MNfuYNIe/RdIyDXtuNPKSW slj4sAgEGSwb1wBQTIPHzWdMBizrBwzF/BTovhddR5tKdUwJxjG19pWO0eMphCczDJHN sKYRcV5uDIp+tfmYy9duWuhP7MGpvjc/PCXrNUlryQdEBHiOL2uhMoA+yDvXahwDJVTq +H1/l/j7KlPJZ7ufPa1tpVk62YpIXI9e/1JUMp4Kmcdzp5rg97eUQVeNWvQxvzYfq7sP 7Wpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wJA6rjEQ; 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 p81-v6si14437043pfi.345.2018.08.06.08.24.18; Mon, 06 Aug 2018 08:24:32 -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=wJA6rjEQ; 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 S1732788AbeHFR2h (ORCPT + 99 others); Mon, 6 Aug 2018 13:28:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:51852 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730628AbeHFR2h (ORCPT ); Mon, 6 Aug 2018 13:28:37 -0400 Received: from mail-qt0-f174.google.com (mail-qt0-f174.google.com [209.85.216.174]) (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 CD9F921A51; Mon, 6 Aug 2018 15:19:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1533568742; bh=PkZG50FcGw1TCROBAmEn1G3W3HCxbuWOi6YXHUxmWBI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=wJA6rjEQYbCR2lZYe+84IgGnbgDHDbV6b+t2D55Bb0RRxs9dnE7wtM4trZONXVvOy y2N7gw4FaWZllYNaybCkYrOMtiqLOITioNkUUmscXyEzKm+Jq+xaHjrsebrYlTQ1DF lzhs5fhRRPk0Jou/c1BFgPSNBUVYWtG88gYtIyIs= Received: by mail-qt0-f174.google.com with SMTP id h4-v6so14190577qtj.7; Mon, 06 Aug 2018 08:19:01 -0700 (PDT) X-Gm-Message-State: AOUpUlHySD0EWxwB0n3NPzxoRLlt4AqEojpuXeSKBmrzg9je1mEJqRZA ZuIbO9bExZ/kaQ9i7Zi30aT06RzR7Zno94sUkg== X-Received: by 2002:ac8:71c9:: with SMTP id i9-v6mr14448536qtp.22.1533568741064; Mon, 06 Aug 2018 08:19:01 -0700 (PDT) MIME-Version: 1.0 References: <20180803030237.3366-1-songjun.wu@linux.intel.com> <20180803030237.3366-4-songjun.wu@linux.intel.com> In-Reply-To: <20180803030237.3366-4-songjun.wu@linux.intel.com> From: Rob Herring Date: Mon, 6 Aug 2018 09:18:49 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 03/18] dt-bindings: clk: Add documentation of grx500 clock controller To: Songjun Wu Cc: hua.ma@linux.intel.com, yixin zhu , chuanhua.lei@linux.intel.com, qi-ming.wu@intel.com, Linux-MIPS , 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, Aug 2, 2018 at 9:03 PM Songjun Wu wrote: > > 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 ++++++++++++++++++++++ Please match the compatible string: intel,grx500-cgu.txt > 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. This should use a fixed-clock node instead. > + > +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 >