From patchwork Thu May 2 16:14:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Michaelis X-Patchwork-Id: 1094431 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=rockwellcollins.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44w0hk72RYz9s7T for ; Fri, 3 May 2019 02:14:46 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726514AbfEBQOp (ORCPT ); Thu, 2 May 2019 12:14:45 -0400 Received: from da1vs03.rockwellcollins.com ([205.175.227.47]:44885 "EHLO da1vs03.rockwellcollins.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726303AbfEBQOo (ORCPT ); Thu, 2 May 2019 12:14:44 -0400 Received: from ofwda1n02.rockwellcollins.com (HELO ciulimr02.rockwellcollins.com) ([205.175.227.14]) by da1vs03.rockwellcollins.com with ESMTP; 02 May 2019 11:14:44 -0500 X-Received: from righttwix.rockwellcollins.com (righttwix.rockwellcollins.com [192.168.141.218]) by ciulimr02.rockwellcollins.com (Postfix) with ESMTP id 676D62007D; Thu, 2 May 2019 11:14:43 -0500 (CDT) From: Adam Michaelis To: linux-iio@vger.kernel.org Cc: lars@metafoo.de, michael.hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, robh+dt@kernel.org, mark.rutland@arm.com, charles-antoine.couret@essensium.com, devicetree@vger.kernel.org, brandon.maier@rockwellcollins.com, clayton.shotwell@rockwellcollins.com, Adam Michaelis Subject: [PATCH v2 4/6] dt-bindings: iio: ad7949: Add cfg-readback option Date: Thu, 2 May 2019 11:14:30 -0500 Message-Id: <1556813672-49861-4-git-send-email-adam.michaelis@rockwellcollins.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1556813672-49861-1-git-send-email-adam.michaelis@rockwellcollins.com> References: <1556813672-49861-1-git-send-email-adam.michaelis@rockwellcollins.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Adding optional parameter to the ad7949 to indicate that the part should be configured to include the configuration register value used when acquiring the current sample value. Signed-off-by: Adam Michaelis --- V2: Add some defines to reduce use of magic numbers. --- Documentation/devicetree/bindings/iio/adc/ad7949.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/ad7949.txt b/Documentation/devicetree/bindings/iio/adc/ad7949.txt index 14ee9a2cb2a5..cd3572828243 100644 --- a/Documentation/devicetree/bindings/iio/adc/ad7949.txt +++ b/Documentation/devicetree/bindings/iio/adc/ad7949.txt @@ -18,6 +18,8 @@ Optional properties: 7: External reference, temperature sensor disabled, buffer enabled - vref-supply: The regulator supply for ADC reference voltage. Required if external reference selected by 'adi,reference-select'. + - adi,cfg-readback: If defined, set bit in configuration register to + read-back the configuration used for the current sample value. Examples: adc@0 { @@ -32,3 +34,10 @@ adc@0 { reg = <0>; adi,reference-select = <0>; }; + +adc@0 { + compatible = "adi,ad7949"; + reg = <0>; + adi,reference-select = <1>; + adi,cfg-readback; +};