Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1000903yba; Mon, 1 Apr 2019 23:36:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWJy5/kQ54FrO9e2zsWk5f/32n3zrgJ9n0jsFkXpZIG8atHpYAjJDsBeaXp3NSBdWQ6Wci X-Received: by 2002:a17:902:be0a:: with SMTP id r10mr54570195pls.4.1554186991840; Mon, 01 Apr 2019 23:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554186991; cv=none; d=google.com; s=arc-20160816; b=qPwN1T/tSO84+qgM+CQE39tX8akJjIjFifE8sgbMnqWV2PX+MM/CWaL2qpVND4Z+sa rR19orNShlaLilBqzzBR9z2U0qtHk4j4gJoM+IHyYX/PZeMWebXNJe2303YzhBF3UOAU pMC6ux1rK73aX2iwMyB5wLZqFGmMEoY02bvRzeGx7j/TSmAwW6YINgZx+OkzCBgjAe4g TmOJxP4yY4VVDPHiFC1z3iDuYk0WcMJHtZMeAqMjcsdsroL1F5Rt2YlMCIoY4kzsyBtr yTOFAvXALv2mixA1GxkPSxYEZOu0JJHlFH9P+S9a251OmslmJb+qSc9EQ61hKEaMm3qY USEA== 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; bh=RbJvII5M5WDG0lLg4HKMyigUDKa+R7h5q87O1vts0fs=; b=vcBnQ7K7LszHNHQybvzjZQ+bQHAIxx7U4i6nOpkNUC6+QmtJkyEyvomKJmDkb/n3C6 R7re7Na7VzJdc1bMP/vf5z+CS0VO57nR0CkrIsSJYtyO8Wv0qeoD51zyQsO0ddkGp9xV 1bdCPh5lPiPAxeRT38x5RzykMrdgY6oPX6h0UO0a2/EGMOaV0wzh/uhBdUU5LxCwli6I DvQhOxxVKi+4skxgqJrh3SFBigFd1StQXzXjmpjfPcwBHQvznWjxENzd0TPOvf2ksltI prDEyeFo2QKypcUW0arBIIOS9qlVDSasBNS4F29xYPHMpq6cLL1dXz2XyXTUnHaYIB/N VQxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Jhy/sN7o"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d6si7865734pls.402.2019.04.01.23.36.16; Mon, 01 Apr 2019 23:36:31 -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=@gmail.com header.s=20161025 header.b="Jhy/sN7o"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729398AbfDBGdr (ORCPT + 99 others); Tue, 2 Apr 2019 02:33:47 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:41959 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728359AbfDBGdr (ORCPT ); Tue, 2 Apr 2019 02:33:47 -0400 Received: by mail-ot1-f66.google.com with SMTP id 64so10969338otb.8; Mon, 01 Apr 2019 23:33:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RbJvII5M5WDG0lLg4HKMyigUDKa+R7h5q87O1vts0fs=; b=Jhy/sN7oecMRA9dYqjhI61v3rAubjD4j8SasUSx6bX6RmnOWmdui+b53kEoRmq0tMy YP99gb1Kd24s4sdtkuJ6MiycXeDJQ9wtbtO3RuLfDZ1HLlBaPwanAWndWtTiLC47aQPx BaoPMtrESKO2R5xlkprMv/OuMjc6F/49A+cDGR1TADe80FtWlbCYVJpA+GKWDDq3Gd6Z 3FYeiG1/AEKVubGGpY3ShITo7qqynlHjatUtpksCrWVKUCdyUWa0m7y6TdmQ1SAdHmgs b79KDLYkoUBAcLl2/ZBL4lME1OaNb8gGVBTRYJhRj3U3dGmy1SzTWAzphsP+LLBrBOzl +rgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RbJvII5M5WDG0lLg4HKMyigUDKa+R7h5q87O1vts0fs=; b=gnQWRfFi/CO76lXrCTXUANW4XY5rgHoHtBNgVkZLRjuWvfB/MnchfkzUfl/UZYcHCF 72UbqpsbeW/1iIisAyel9GtaGfFd3nhJeZLqM95bTbGojTDJ8BnaWb6ODCQe4CtT02ID vPV0xsRZF2d487OOnaiWinOQUfl1ZKsemcVrvwe1KKe214RcnpswM8+Mqver89qlVsWo u23j4R7CioZYK3fPwpyFmwh3YMa0LlVqJiomQKUdLJmi8qAnzIrPLNBdjMTU64P/plsd xKBjOoos6f417UUzX958fultFJby2l1DYa+GZt08vVdF7UpcTp9scwLQCr8WuoOrqcwm wAaw== X-Gm-Message-State: APjAAAXgOKypbj/gubu0FJcNp4R1jm190iXv/4J0eXJluENPoAKHUiOg mOn5Dr0o53a6rAKqMWzn9ZWhGkhZxO1nEA9G05Y= X-Received: by 2002:a9d:63d5:: with SMTP id e21mr28769508otl.288.1554186826243; Mon, 01 Apr 2019 23:33:46 -0700 (PDT) MIME-Version: 1.0 References: <20190401143807.xlz32drk367ogcxh@smtp.gmail.com> In-Reply-To: <20190401143807.xlz32drk367ogcxh@smtp.gmail.com> From: Alexandru Ardelean Date: Tue, 2 Apr 2019 09:33:34 +0300 Message-ID: Subject: Re: [PATCH 4/4] staging: iio: ad9832: add devicetree documentation To: Marcelo Schmitt Cc: lars@metafoo.de, "Hennerich, Michael" , stefan.popa@analog.com, Jonathan Cameron , knaack.h@gmx.de, Peter Meerwald-Stadler , gregkh@linuxfoundation.org, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, LKML , kernel-usp@googlegroups.com 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 Mon, Apr 1, 2019 at 5:38 PM Marcelo Schmitt wrote: > > Add a devicetree documentation for the ad9832 direct digital > synthesizer, waveform generator. > > Signed-off-by: Marcelo Schmitt > --- > .../bindings/iio/frequency/ad9832.txt | 26 +++++++++++++++++++ > 1 file changed, 26 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/frequency/ad9832.txt > > diff --git a/Documentation/devicetree/bindings/iio/frequency/ad9832.txt b/Documentation/devicetree/bindings/iio/frequency/ad9832.txt > new file mode 100644 > index 000000000000..6a35fdff5a48 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/frequency/ad9832.txt > @@ -0,0 +1,26 @@ > +Analog Devices AD9832 Direct Digital Synthesizer, Waveform Generator > + > +Data sheet: > +https://www.analog.com/media/en/technical-documentation/data-sheets/AD9832.pdf > + > +Required properties: > + - compatible : Must be "adi,ad9832" > + - reg : SPI chip select number for the device > + - spi-max-frequency = Max SPI frequency to use (< 25000000) > + - clocks : The clock reference for the DDS output > + - clock-names : Must be "mclk" It's always a good idea to reference other base dt docs. For SPI you could: ``` For more information on SPI properties, please consult Documentation/devicetree/bindings/spi/spi-bus.txt ``` For clock: ``` For more information on clock bindings properties, please consult Documentation/devicetree/bindings/clock/clock-bindings.txt ``` For regulator: ``` For more information on regulator bindings properties, please consult Documentation/devicetree/bindings/regulator/regulator.txt ``` > + > +Optional properties: > + - avdd-supply: Definition of the regulator used as analog supply > + - dvdd-supply : Definition of the regulator used as digital supply > + > +Example: > + adi9832-dds@0 { > + compatible = "adi,ad9832"; > + reg = <0>; > + spi-max-frequency = <25000000>; > + clocks = <&ad9832_mclk>; > + clock-names = "mclk"; > + avdd-suppy = <&avdd>; > + dvdd-suppy = <&dvdd>; > + }; > -- > 2.20.1 >