From patchwork Sun Aug 9 11:17:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 247566 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp3995567ilo; Sun, 9 Aug 2020 04:20:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2/Qg/AIJga22XjZz3XiaxytTeDjUjQW8E7hheU4z1QNFLpajqVAYM1OG1YBTCHlfDBICf X-Received: by 2002:a17:906:364e:: with SMTP id r14mr16371783ejb.295.1596972007151; Sun, 09 Aug 2020 04:20:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596972007; cv=none; d=google.com; s=arc-20160816; b=a2KIiszB48PDi8Wn3oxLhWG0mTjRdOB/K6ZSFEUrlqYAzgc3nP7WUraEhXE874Vp2B rjGRrfidCj9BOeEkvPhSlsLJvOa2jaKSlwQ/crWuB8UE3AMILfx4eAqVawHB27zfHFJA cfEV3fNJ0ldrMz83Nba+sh1Tb/+12B3rGfJR+iPbn/mv1I6OejbckE5CFsz6hOoJP8yO T7g6t1k+2r5zKlClrb8z8g4agi6z6Z3RnNQxJUAvn23VqO04XqdiSfTUD+vSiyymD7Q+ pB7XlnBLdWy85wm+F4rFETBaWZvdDv2LF+Tjvvp2xH+TIyU9Nyq8vm/LzcHnBPGiALE7 rgfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MKP4z1l758T9bpQkG9pUICmQCx4dvqY5UYVZ2zoXvBc=; b=yFrG8yt5vVS74o9DioRxexjIvPfYszPjkUPlDhxR5ZFfP0Tsycp0H9J5h9tSCJtfDo 8HoPI1FUYhXlN/0V7vZDyP+buf4bTBp00IRjYABQD3QEGZDzTnuowr5fwI871CFU1BqS 9GTgwbBxtKfvKnEuUjNW31hPOH33AzLtgIOYsdbtzRm2afGXhkwIy+tFbvTKPOj60WIk 1AZg/IOlIV955Q8esALkcKtl2NwP4TYBIleI2DjyotwF2GZvmGzcwEwcmK6mXMSE8LMy giU2FQ4wwnanWZY8CtHbLKycfkLc7f0aZ0k3GFakFlfU1OmNepzgdnNbDUNqAOP4mgaN meeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=c9XRpL4i; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt16si8833177ejb.353.2020.08.09.04.20.07; Sun, 09 Aug 2020 04:20:07 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=c9XRpL4i; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726199AbgHILUF (ORCPT + 6 others); Sun, 9 Aug 2020 07:20:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:54022 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726350AbgHILUF (ORCPT ); Sun, 9 Aug 2020 07:20:05 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A103C20748; Sun, 9 Aug 2020 11:20:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596972004; bh=fFjRg4u2O6rIsnmb5QeqklxTxGScNwRug1+xq9CT+p0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c9XRpL4iWTFkrLxl5H//i2fokGeZPU0w1XWxyYUoCgx22XO6pN/NOjoNrxOkbtz7w ty7xAdr5PiWp/Y4WhjqT/LCtXez2KpIY01JVz2hrfMOjyA3HcCwYRJ1BV6Nl5b4pIe 0wDi20TRDL/BttaDA9xEPSFBG6N9AIkuJMF14dD4= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Michael Hennerich Subject: [PATCH 04/13] dt-bindings: iio: adc: lltc,ltc2497 yaml conversion. Date: Sun, 9 Aug 2020 12:17:44 +0100 Message-Id: <20200809111753.156236-5-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200809111753.156236-1-jic23@kernel.org> References: <20200809111753.156236-1-jic23@kernel.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Very simple binding for this i2c device with a reference supply. Added the #io-channel-cells property to allow for consumers. Signed-off-by: Jonathan Cameron Cc: Michael Hennerich --- .../bindings/iio/adc/lltc,ltc2497.yaml | 44 +++++++++++++++++++ .../devicetree/bindings/iio/adc/ltc2497.txt | 13 ------ 2 files changed, 44 insertions(+), 13 deletions(-) -- 2.28.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/lltc,ltc2497.yaml b/Documentation/devicetree/bindings/iio/adc/lltc,ltc2497.yaml new file mode 100644 index 000000000000..6a176f551d75 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/lltc,ltc2497.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/lltc,ltc2497.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Linear Technology / Analog Devices LTC2497 ADC + +maintainers: + - Michael Hennerich + +description: | + 16bit ADC supporting up to 16 single ended or 8 differential inputs. + I2C interface. + +properties: + compatible: + const: + lltc,ltc2497 + + reg: true + vref-supply: true + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + - vref-supply + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + adc@76 { + compatible = "lltc,ltc2497"; + reg = <0x76>; + vref-supply = <<c2497_reg>; + #io-channel-cells = <1>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/adc/ltc2497.txt b/Documentation/devicetree/bindings/iio/adc/ltc2497.txt deleted file mode 100644 index a237ed99c0d8..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/ltc2497.txt +++ /dev/null @@ -1,13 +0,0 @@ -* Linear Technology / Analog Devices LTC2497 ADC - -Required properties: - - compatible: Must be "lltc,ltc2497" - - reg: Must contain the ADC I2C address - - vref-supply: The regulator supply for ADC reference voltage - -Example: - ltc2497: adc@76 { - compatible = "lltc,ltc2497"; - reg = <0x76>; - vref-supply = <<c2497_reg>; - };