From patchwork Fri May 18 18:22:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Veenstra X-Patchwork-Id: 10411803 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 E41B16031B for ; Fri, 18 May 2018 18:22:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D409A28A7F for ; Fri, 18 May 2018 18:22:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6C5828A81; Fri, 18 May 2018 18:22:56 +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 71A0228A7F for ; Fri, 18 May 2018 18:22:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751581AbeERSWz (ORCPT ); Fri, 18 May 2018 14:22:55 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:54217 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751156AbeERSWy (ORCPT ); Fri, 18 May 2018 14:22:54 -0400 Received: by mail-wm0-f68.google.com with SMTP id a67-v6so15457457wmf.3; Fri, 18 May 2018 11:22:54 -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=1pIPG2MorPYV5moghf0J5gf2RIoSTGfMe5zR3b0rWYE=; b=a43KUh7Yjo/EZovZDT+I6AnjYBqM3oZVULZrezQQWTiMydpV4Ymuua7uDo4rnpqude SrixfrfxttYtAVGD9ao2cZnwVc1gWHXQ6rr4VEBZRctMb6+5Dc3Wb3GH5CCMMRo+Kdvs QNn8in4bvi7r1AnrSZXiQfLLqypBZ0l07VQL7Cl+3V3dcr/HyGiFLuhv3MSMy+yqmrZS GWGfIwsdRQGE9nk+Rk7TyMWnndf1nUsgtjMea7G50dyTUz/ETX6EaXYoOGw/Sgr+MaNT J3ZC6BR+Aw/98XeBtApqx50Rbw7qgZc7gdbOTebiEQAD2GvPqUbBNK93jOmEEwyFpusI d5PA== 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=1pIPG2MorPYV5moghf0J5gf2RIoSTGfMe5zR3b0rWYE=; b=BduHMsNZ4mFWbtYu4UWjLw9+KNjB4k4zvUi1jlg4aWqMWAgAzznOsl2+JD2XEtQ1k5 jDLJNShIWNWA9vbmWLRscSVW2aJGJXYNBa+IEHIr5u/13z9HeNgTscCsEjyov678VpQI 9NOW1YG4/WTg502n/jWsehUd5oa7DaFO+yem+2MWpJS84/CRKGxDxc9hYwea6nWtSdtz zKgLz40gyWmQRfypJLN63ac/px38+KGl9gahnrp7Btcx2492qkHP26o2rMDcC/bMaiAo Euw+NQAdynMHxDWuZmkTD/tk/mly5hQtNDW2lDi36Juy4XbCxLHEPiO159tRen5GSe7t 8zvA== X-Gm-Message-State: ALKqPwci2Pn+iNZivXFntX12ZRCKbA7fwhHCQpWUYL3pgexUx0R+79e4 7cxWz3oq7pVRycDVfD5t9n8= X-Google-Smtp-Source: AB8JxZo4WhbAfiwV9n4cibgtd6E0SuFDolRBgxNq1fC/aMuKcDT2dzr7rm/yLsNWdJ2avk7SEan3pg== X-Received: by 2002:a50:ae23:: with SMTP id c32-v6mr12838504edd.131.1526667773793; Fri, 18 May 2018 11:22:53 -0700 (PDT) Received: from zenbook-arch (s559434a1.adsl.online.nl. [85.148.52.161]) by smtp.gmail.com with ESMTPSA id x29-v6sm4176849edm.26.2018.05.18.11.22.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 11:22:53 -0700 (PDT) Date: Fri, 18 May 2018 20:22:50 +0200 From: David Veenstra To: jic23@kernel.org, lars@metafoo.de, pmeerw@pmeerw.net, robh+dt@kernel.org Cc: Michael.Hennerich@analog.com, knaack.h@gmx.de, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, devicetree@vger.kernel.org Subject: [PATCH v4 08/12] dt-bindings: iio: resolver: Document AD2S1200 bindings Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) 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 device tree bindings of the AD2S1200 resolver. Signed-off-by: David Veenstra --- Changes in v4: - Added vendor prefix to gpio function name. - Added unit address. - Changed commit subject to be more inline with other dt-bindings commit . .../bindings/iio/resolver/ad2s1200.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/resolver/ad2s1200.txt diff --git a/Documentation/devicetree/bindings/iio/resolver/ad2s1200.txt b/Documentation/devicetree/bindings/iio/resolver/ad2s1200.txt new file mode 100644 index 000000000000..bbf54260c911 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/resolver/ad2s1200.txt @@ -0,0 +1,16 @@ +Analog Devices AD2S1200 and AD2S1205 Resolver-to-Digital Converter + +Required properties: + - compatible : should be "adi,ad2s1200" or "adi,ad2s1205" + - reg : the SPI chip select number of the device + - adi,sample-gpios : The GPIO pin connected to the SAMPLE line of the AD2S1200 + - adi,rdvel-gpios : The GPIO pin connected to the RDVEL line of the AD2S1200 + +Example: + + resolver@0 { + compatible = "adi,ad2s1200"; + reg = <4>; + adi,sample-gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; + adi,rdvel-gpios = <&gpio 6 GPIO_ACTIVE_HIGH>; + };