From patchwork Mon Oct 22 21:03:40 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: 10652561 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 33B6517D4 for ; Mon, 22 Oct 2018 21:04:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C09329038 for ; Mon, 22 Oct 2018 21:04:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 904C0290F1; Mon, 22 Oct 2018 21:04:03 +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 4020529038 for ; Mon, 22 Oct 2018 21:04:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725768AbeJWFYL (ORCPT ); Tue, 23 Oct 2018 01:24:11 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:42487 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728939AbeJWFYL (ORCPT ); Tue, 23 Oct 2018 01:24:11 -0400 Received: by mail-ed1-f66.google.com with SMTP id b7-v6so39296114edd.9 for ; Mon, 22 Oct 2018 14:04:01 -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=IRaCcpRYNszjJv9QHtK21IsufcgzXv/LXF6yktWY7L4=; b=reUGbtzKUq0x+QzCuV6AmtBp+t3q5/59hYhqIBW7dKRaN/5te+ehIx26+57zD6Bp7a q4MXQN/fq905dJrf24+8m/t3xx5M3PXtvTuENqjK0nWWtx2kVt4osQxDBtnHDA1yO/+b vZOs4XL5PSN6e3C3iQ/hTCbTr7TZofzOvnet4OGmr2jVYz6Ds8JpoEM7fTHBMXlS6x+f kzQQ/yUT5kz92Rxg7j0GNdmGBFiECVECqArXS1pIX/kJ5JkRTSq9XhY1Juvw2N0x4bsH LsZSjyFXMi9BDvELGiISC0DvRP9Kz9BmNQ9Y4FkhyNYVxvljgbtsSH3ZqsV4dEMvrB7l UlHg== 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=IRaCcpRYNszjJv9QHtK21IsufcgzXv/LXF6yktWY7L4=; b=f+7sU0MXbmFf330XuHpl9Oh8DEytpFcVDeLiBmSZPuCKNQ8zy8+5apOuz09URL7mnf cCg6Pzvqt5pavaLPCquMF1f+zMC/Y3EspOVYLQOWm2bX9ehH0gMsM6DlrKMmFOdVi8Iv yPi6LDWWUxVpG/JP9ZSSNZHD8GWavaWahnhnmxBvUy8Xv8HpMD58qxpgPmAn7YW2LRpV hqgoArrrowe6o+MS5R9BD60gucb2ZjdNEFWf9er0XobKcvrKNO3iO3PP9GEoiogVobac Nd7/10fFTf9GanwyGynZMamjoMuwkZIk77nWcYf3HGXVZAxCkVaT46HN8+S207ieA7tb SXnA== X-Gm-Message-State: ABuFfoiS+LuBUWWe1asn1ZMXDzUffBPQP2H51EYX3Bx0k9DyGTsy+gp2 hxYDygMHXZYNNHSgmrd3rl4XENqLsgY= X-Google-Smtp-Source: ACcGV638YoLeZ9OmJWCL7+Frf9NidOj6Bf/uvEYiNcPEjfVVmuhJDQk3CVOeZRLyR3RyvRthwTYfnw== X-Received: by 2002:a17:906:5304:: with SMTP id h4-v6mr427999ejo.39.1540242240473; Mon, 22 Oct 2018 14:04:00 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:4423:3600:9626:d5b7:4a40:9655]) by smtp.gmail.com with ESMTPSA id g26-v6sm2278401edc.55.2018.10.22.14.03.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Oct 2018 14:03:59 -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 ti,dac7311 device tree bindings in documentation Date: Mon, 22 Oct 2018 23:03:40 +0200 Message-Id: <20181022210340.1136-2-charles-antoine.couret@essensium.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181022210340.1136-1-charles-antoine.couret@essensium.com> References: <20181022210340.1136-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 ti-dac7311 driver from device tree file. Signed-off-by: Charles-Antoine Couret --- V1 to V3: * Cosmetic changes * Improve description of the patch .../bindings/iio/dac/ti,dac7311.txt | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/dac/ti,dac7311.txt diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac7311.txt b/Documentation/devicetree/bindings/iio/dac/ti,dac7311.txt new file mode 100644 index 000000000000..b681060579b4 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/ti,dac7311.txt @@ -0,0 +1,20 @@ +TI DAC7311 device tree bindings + +Required properties: + +- compatible: Must be set to "ti,dac7311", "ti,dac6311" or "ti,dac5311" +- 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 (< 50000000) + +Example: + + spi_master { + dac: dac7311@0 { + compatible = "ti,dac7311"; + reg = <0>; /* CS0 */ + spi-max-frequency = <1000000>; + vref-supply = <&vdd_supply>; + }; + }; +