Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp322504ybl; Tue, 7 Jan 2020 20:13:59 -0800 (PST) X-Google-Smtp-Source: APXvYqzhDWSJ3b7tiZmv4qIX4073ELaxryZw/3gon4e1tzTyb1bVLWDadjZ2g6y2TTSRIukh+aN+ X-Received: by 2002:a05:6830:1d7a:: with SMTP id l26mr2673090oti.138.1578456839786; Tue, 07 Jan 2020 20:13:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578456839; cv=none; d=google.com; s=arc-20160816; b=aLqwllPXVR7zCMCp+7jZmSKEfUawO7M2kixFwrhTIhPTusSF+52G+Xo9al7COyofje r4TbYH7FrXtL63zgbZbFFotz4s4Hz/OqlZZp2AYQkrlnBiJmNA+ClCz8BzjGOB/W+hrl KrUyOje5V22mkFHhbEbTx42/vdHnJvAvV7ql+L292SS6V6dCbrVhF+h4TOJRMTplCgyG 1+AawMY5f5kX3BbB6M3ssn7m8eT842RpU1Zue+4UdINPBlzTgsDe+ovhcJoBNSTk/FvU f9KoLM0zZqe+S0XZVP6q72RcyJ8P3mPEL13scnR2ujAQBUdVSXV2tEffY/lLxMi0HlMP k+vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=bVEmriYX9VcSaqW3+ubpAnBoimQDo1dYPWqbf3v17Hs=; b=fRuTV+I8AlWcjuW1R8Zrd88CV/kyLk4yO+dKdjvLQhvqXeBzSwYwV5qyN60DSuFoO1 ZqcSQd+AOusYaxi58Id7BzKCZMqW3Prg7YsFCe+H/lMDKyC/Hw0MHC1DjM4zTZEGrqS8 UcASjX0TPPXQfomtDff5+8sHJr6Q89UlMIGWCdMlbnhcG1dEdKaBAKW57aouFncKwr6T 7YgiqhXQk9epr1kztx7wgXlNbpG0vFDCzXw4QEfLbvpvArUCYgE62DOYkKfDUjKx5hB5 1NiqIdVi64MYnhrjqq/Dq4gEL3RS1HbaYr4sCskGGhfAkw3+Ir+h2h9XQOWsi16/s2aZ M2MA== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p8si1406163otc.118.2020.01.07.20.13.46; Tue, 07 Jan 2020 20:13:59 -0800 (PST) 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726530AbgAHENE (ORCPT + 99 others); Tue, 7 Jan 2020 23:13:04 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:39448 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726145AbgAHENE (ORCPT ); Tue, 7 Jan 2020 23:13:04 -0500 Received: by mail-ot1-f67.google.com with SMTP id 77so2300732oty.6 for ; Tue, 07 Jan 2020 20:13:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=bVEmriYX9VcSaqW3+ubpAnBoimQDo1dYPWqbf3v17Hs=; b=IOxGiGoKEDeoIvg7sGvUbeYRDmdPLdfo2aAAnCuwhxexOmj7AIdtI02Mi5yh/oS3IL od1gf6M/P3nS9/VnayCDKp6+LrLL6BcisE85iuP0goyibRbf3/YsdJMkGWXHjB2mVQLE G2LDHYlDZlL6eArQV5MgZ+6CTOsryY3Bk/khFPL9xBTfaNsZqznojpTBYkUmwQxOdQC6 NxWiXGVFSFcvvhu+SovLvrks6pL/43JPmwp5QU7bSZPH50QX7DByP5JCrgQCM39h1wje mye0bM9NxDscBBEDL9JHwVbsc4ThF6oAZHJYtdCISpJS6scNqtKayKjE1RiocOCxbt4C ZqTw== X-Gm-Message-State: APjAAAUaTytZqlYL6qNGBKBCpiCNbfYF4GWnEFo5isDfKDBY8j+Ao3kV iEOyocCTrEVLliG0ekWD3xIEu6o= X-Received: by 2002:a05:6830:4c2:: with SMTP id s2mr2852910otd.144.1578456782190; Tue, 07 Jan 2020 20:13:02 -0800 (PST) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id p24sm688931oth.28.2020.01.07.20.12.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2020 20:13:01 -0800 (PST) Received: from rob (uid 1000) (envelope-from rob@rob-hp-laptop) id 220d1c by rob-hp-laptop (DragonFly Mail Agent v0.11); Tue, 07 Jan 2020 22:12:59 -0600 Date: Tue, 7 Jan 2020 22:12:59 -0600 From: Rob Herring To: Mircea Caprioru Cc: jic23@kernel.org, Michael.Hennerich@analog.com, alexandru.ardelean@analog.com, lars@metafoo.de, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 1/3] dt-bindings: iio: frequency: Add docs for LTC6952 Message-ID: <20200108041259.GA30234@bogus> References: <20191219134810.6677-1-mircea.caprioru@analog.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191219134810.6677-1-mircea.caprioru@analog.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 19, 2019 at 03:48:08PM +0200, Mircea Caprioru wrote: > Document support for Analog Devices LTC6952 ultralow jitter, 4.5GHz PLL > with 11 outputs and JESD204B/C support. > > Signed-off-by: Mircea Caprioru > --- > .../bindings/iio/frequency/adi,ltc6952.yaml | 127 ++++++++++++++++++ > 1 file changed, 127 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/frequency/adi,ltc6952.yaml > > diff --git a/Documentation/devicetree/bindings/iio/frequency/adi,ltc6952.yaml b/Documentation/devicetree/bindings/iio/frequency/adi,ltc6952.yaml > new file mode 100644 > index 000000000000..a28c773c3948 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/frequency/adi,ltc6952.yaml > @@ -0,0 +1,127 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +# Copyright 2019 Analog Devices Inc. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/bindings/iio/frequency/adi,ltc6952.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Analog Devices LTC6952 ultralow jitter, JESD204B/C clock generation IC. > + > +maintainers: > + - Mircea Caprioru > + > +description: | > + Analog Devices LTC6952 ultralow jitter, JESD204B/C clock generation IC. > + https://www.analog.com/media/en/technical-documentation/data-sheets/ltc6952.pdf > + > +properties: > + compatible: > + enum: > + - adi,ltc6952 > + > + reg: > + maxItems: 1 > + > + clock-output-names: > + description: | > + Clock output signal names indexed by the first cell in the clock > + specifier (see clock/clock-bindings.txt) > + maxItems: 1 Only one string? Then why is this needed? > + > + adi,vco-frequency-hz: > + description: | > + VCO input frequency. This is fed to the internal distribution path and > + feedback dividers. > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 Standard units already have a type definition. > + maxItems: 1 Drop this. Not an array. > + > + adi,ref-frequency-hz: > + description: | > + Reference input frequency. This is fed in the reference divider. > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 > + maxItems: 1 Same comments here. > + > +required: > + - compatible > + - reg > + - clock-output-names > + > +patternProperties: > + "^channel@[0-9]$": > + type: object > + description: Represents the external channels which are connected to the device. > + > + properties: > + reg: > + description: | > + The channel number. It can have up to 11 channels numbered from 0 to 10. Your unit address above does not allow for 0xa (unit addresses are hex). > + maxItems: 1 > + > + adi,extended-name: > + description: Descriptive channel name. > + maxItems: 1 Needs a type ref. maxItems is for arrays. > + > + adi,divider: > + description: | > + Channel divider. This divides the incoming VCO frequency. > + maxItems: 1 type ref. Range of values? > + > + adi,digital-delay: > + description: | > + Each output divider can have the start time of the output delayed by > + integer multiples of half of the VCO period after a synchronization > + event. > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 > + - minimum: 0 > + - maximum: 4095 These 2 need to be grouped together. minimum and maximum can be at the same level as allOf. > + maxItems: 1 Drop this. > + > + adi,analog-delay: > + description: | > + Each output has a fine analog delay feature to further adjust its > + output delay time (tADELx) in small steps. > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 > + - minimum: 0 > + - maximum: 63 > + maxItems: 1 Same comments here. > + > + required: > + - reg > + > +examples: > + - | > + ltc6952@0 { > + compatible = "adi,ltc6952"; > + reg = <0>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + spi-max-frequency = <10000000>; > + > + clock-output-names = "ltc6952_out0", "ltc6952_out1", "ltc6952_out2", > + "ltc6952_out3", "ltc6952_out4", "ltc6952_out5", "ltc6952_out6", > + "ltc6952_out7", "ltc6952_out8", "ltc6952_out9", "ltc6952_out10"; > + #clock-cells = <1>; > + > + adi,vco-frequency-hz = <4000000000>; > + adi,ref-frequency-hz = <100000000>; > + > + ltc6952_c0: channel@0 { > + reg = <0>; > + adi,extended-name = "REF_CLK"; > + adi,divider = <10>; > + adi,digital-delay = <100>; > + adi,analog-delay = <0>; > + }; > + > + ltc6952_c1: channel@1 { > + reg = <1>; > + adi,extended-name = "TEST_CLK"; > + adi,divider = <10>; > + }; > + }; > -- > 2.17.1 >