From patchwork Mon Oct 22 21:02:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Couret Charles-Antoine X-Patchwork-Id: 10652557 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2ED0014DE for ; Mon, 22 Oct 2018 21:03:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 937EB28ECB for ; Mon, 22 Oct 2018 21:03:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8819029038; Mon, 22 Oct 2018 21:03:12 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 2788428ECB for ; Mon, 22 Oct 2018 21:03:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726885AbeJWFXU (ORCPT ); Tue, 23 Oct 2018 01:23:20 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:40442 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728956AbeJWFXU (ORCPT ); Tue, 23 Oct 2018 01:23:20 -0400 Received: by mail-ed1-f68.google.com with SMTP id r1-v6so39328639edd.7 for ; Mon, 22 Oct 2018 14:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=essensium-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=z0u9ee9MYTJ1uIQ0jU/VqCtLhZivBMweTBmDMlKbJO8=; b=JFX8oI3ac18FJ5KkE3XcJVHEmT4Mi8KxYw6mJ5anX9dIEHQZkWWCbr64sI1aKNP4Gf xmq+4zaoFOw0Cq8L+F+wc7iua6ko4DJhYuc3LrNsU01gF66leaeSIktfr4o/AVM9pIej /AB9s50TKgkU1mcMG3C+4CpHhwYn48anmKRQP9YXGHblmwiCynique4ZgwRGRdDVyDhF O7r4IVr5eCNsqUmeoqWUxjpyWGNxxL7S2yPWcVx5+OIGmqwtkVc4U3Zev8n2bX5TNCEw HMqr3tUQVU2mLnP2aEazaDqnLVDV7vA6hKOuhMWWkMjkOLcwm1TixbEGW4RFgIX7qIkO wy3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=z0u9ee9MYTJ1uIQ0jU/VqCtLhZivBMweTBmDMlKbJO8=; b=Xx3VZKzud7p+Ht1jGTUnqfFUXdVx99sRlWDV4rpYPrYSZZqj59gbsNIyOgHjm+isH+ q3lwAtv4eICItyN546ClekJMYvQ06AmWMRiDA8qrk4Po9T8Ey8CiCChOkqUIZ4KZp1rD R0P3ZOvhkLKN8G3O0q8MGb+QjGtnjneOGcyLxcBKXSPq4ZRmNLgEaTHtVf0PBU1R8nxs 0FpRLEcbXg5zu5opJq+kgVoH6oKa1RGTAG1XV9kIG2GJ61ZN48ExTpJ8DnS7IfaLDh6J ttV486sYNl0Jxhswgi0lBKAKTM3yjui0JyAHBBBwdf7o+RqzjYVNgPybZFlC2qk9paqY UZTg== X-Gm-Message-State: AGRZ1gLGbXiDgoBfU8UzjuUlfwyZ8zxirnMHgdDDKGjDFg05dIv6/3R6 r1WA1RDdnxwYn8f/NvCDHk3xZZXQAlQ= X-Google-Smtp-Source: AJdET5c2F/rRUdz1tW/m9t/sb4RkTpDrv4+N2V4LQz6Kwe+rPKBNhPV1ZCtQ9f6xv/EXyMuB4FvlIQ== X-Received: by 2002:a50:cd4b:: with SMTP id d11-v6mr4234388edj.60.1540242189709; Mon, 22 Oct 2018 14:03:09 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:4423:3600:9626:d5b7:4a40:9655]) by smtp.gmail.com with ESMTPSA id o20-v6sm1513088ejs.30.2018.10.22.14.03.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Oct 2018 14:03:09 -0700 (PDT) From: Charles-Antoine Couret To: linux-iio@vger.kernel.org Cc: Charles-Antoine Couret , robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org Subject: [PATCH V3 2/2] doc:devicetree: Add AD7949 device tree bindings in documentation Date: Mon, 22 Oct 2018 23:02:43 +0200 Message-Id: <20181022210243.837-2-charles-antoine.couret@essensium.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181022210243.837-1-charles-antoine.couret@essensium.com> References: <20181022210243.837-1-charles-antoine.couret@essensium.com> MIME-Version: 1.0 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 Description how to invoke ad7949 driver from device tree file. Signed-off-by: Charles-Antoine Couret --- V1 to V3: * Add prefix vendor * Improve patch description .../devicetree/bindings/iio/adc/ad7949.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/ad7949.txt diff --git a/Documentation/devicetree/bindings/iio/adc/ad7949.txt b/Documentation/devicetree/bindings/iio/adc/ad7949.txt new file mode 100644 index 000000000000..f1c3af53f5cc --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ad7949.txt @@ -0,0 +1,18 @@ +* Analog Devices AD7949/AD7682/AD7689 + +Required properties: + - compatible: Should be one of + * "adi,ad7949" + * "adi,ad7682" + * "adi,ad7689" + - reg: spi chip select number for the device + - vref-supply: The regulator supply for ADC reference voltage + - spi-max-frequency: Max SPI frequency to use (< 33000000) + +Example: +adc@0 { + compatible = "adi,ad7949"; + reg = <0>; + vref-supply = <&vdd_supply>; + spi-max-frequency = <200000>; +};