From patchwork Fri Apr 20 19:30:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Veenstra X-Patchwork-Id: 10353591 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 928B8600CC for ; Fri, 20 Apr 2018 19:31:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F5D028872 for ; Fri, 20 Apr 2018 19:31:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D9B628862; Fri, 20 Apr 2018 19:31:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E785528862 for ; Fri, 20 Apr 2018 19:31:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751228AbeDTTa7 (ORCPT ); Fri, 20 Apr 2018 15:30:59 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:34518 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750841AbeDTTa7 (ORCPT ); Fri, 20 Apr 2018 15:30:59 -0400 Received: by mail-wr0-f195.google.com with SMTP id p18-v6so6497589wrm.1; Fri, 20 Apr 2018 12:30:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=jqKKlD3eF6bwYQfkjwR1RUcQtKye2/g2R2IzeBFhb4E=; b=tmjytht13gyQ+lTsF8Sd+Vd9D3MjXVIVa1AwRRULFxKWPqIqko1ilLNjBjhiUBmjv0 NS6y28E2BdnIzKvGhmgX5Pfu1WoyCQX20M31rLZJuxP8LBp+T3VzDQ+JBEAJyAU35s0M khX1XAKHAQKVeFR2swJc45DuJSVIujKLMmYpE8mAH68HQrviTLDlkKtT8WEgI/iFSD57 LsagyPKsGDcJ2YaeDF8wIGLYnB5fG2opZEjVgfKSHSOG+alR9cOlbbCSuSBTLXBP3ieg ujaxqyFNoBZRl0/7Av3hvrd77kLW92hZtXI/6X2uRLJdGLUV7gFP//lbX4JfOEf+7kPz 4UcA== 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=jqKKlD3eF6bwYQfkjwR1RUcQtKye2/g2R2IzeBFhb4E=; b=duPvLI7zRv1WimxaZoQkvG14wW0Vxa2MSqAYPkyWatpxO62Bo5eJKPzRi1pSYo3MdW 4iTGfYxb3SY97VuvBSvlAaqO6K3krBs628M5Qo47oiCAK5r4VF04IYON5IvYlYr2XEnh bn2Bcb2cQU84cW3fnEP7DswjenvclBz3KSttWbKP7S90vMyUeRZJS0e3r32fn5zPxgAo 7Wn8D2UqbQKHKZH0Q0mJ/t4f8ui8z6RHOe93lcXvY2ZD02jVedwgz5sdqzamXIMlJjGt F70BOU6Q8AePZgL0YgoTT+tcdpiQk769NkOYsTxIn9fWIqpyIeRnFCwlshyxZnP56BZl X88g== X-Gm-Message-State: ALQs6tC2a9t1wvkFN6yNPPd5+NKaUkPlE/xKQyIWPKdXjdiawkYJR+tu G/lT97ckjJ3XNRZ3Uqau9Kg= X-Google-Smtp-Source: AIpwx49p87oOGUSGtNtY3dT/ij/b0I635YAWw8OL4BRJW2n2xQUFWfxDe35czcZVoBKvWRN/v7uR+g== X-Received: by 10.80.211.3 with SMTP id g3mr15254492edh.15.1524252657863; Fri, 20 Apr 2018 12:30:57 -0700 (PDT) Received: from zenbook-arch (s559434a1.adsl.online.nl. [85.148.52.161]) by smtp.gmail.com with ESMTPSA id v21sm3990900edb.75.2018.04.20.12.30.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Apr 2018 12:30:57 -0700 (PDT) Date: Fri, 20 Apr 2018 21:30:54 +0200 From: David Veenstra To: lars@metafoo.de, jic23@kernel.org, pmeerw@pmeerw.net Cc: robh+dt@kernel.org, Michael.Hennerich@analog.com, knaack.h@gmx.de, daniel.baluta@nxp.com, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, devicetree@vger.kernel.org Subject: [PATCH v2 09/13] staging: iio: ad2s1200: Add documentation for device tree binding Message-ID: <2b0596e9dd109a8ea949c38d9e9abb0e38e8bc5e.1524247563.git.davidjulianveenstra@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add documentation for the added device tree bindings. Signed-off-by: David Veenstra --- Changes in v2: - Introduced in this version. .../bindings/staging/iio/resolver/ad2s1200.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/staging/iio/resolver/ad2s1200.txt diff --git a/Documentation/devicetree/bindings/staging/iio/resolver/ad2s1200.txt b/Documentation/devicetree/bindings/staging/iio/resolver/ad2s1200.txt new file mode 100644 index 000000000000..85c009987878 --- /dev/null +++ b/Documentation/devicetree/bindings/staging/iio/resolver/ad2s1200.txt @@ -0,0 +1,16 @@ +Analog Devices AD2S1200 Resolver-to-Digital Converter + +Required properties: + - compatible : should be "adi,ad2s1200" + - reg : the SPI chip select number of the device + - sample-gpios : The GPIO pin connected to the SAMPLE line of the AD2S1200 + - rdvel-gpios : The GPIO pin connected to the RDVEL line of the AD2S1200 + +Example: + + resolver { + compatible = "adi,ad2s1200"; + reg = <4>; + sample-gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; + rdvel-gpios = <&gpio 6 GPIO_ACTIVE_HIGH>; + };