From patchwork Sun Aug 9 11:17:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 247565 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp3995560ilo; Sun, 9 Aug 2020 04:20:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwD0esPn5FMxD+BzsA+5W6DFQB3wbcFteoUHNyiAR1lojaYTZYYiw6Us3IbxYjcN6YGfSKj X-Received: by 2002:a17:906:248d:: with SMTP id e13mr16749084ejb.169.1596972006798; Sun, 09 Aug 2020 04:20:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596972006; cv=none; d=google.com; s=arc-20160816; b=EIrDl90TnACD7moqO6puZ7QyagQY1TFMcBm8zNkOwSRAhyO+oafXjXcuiaWEFg7J7/ gPugkRoQl+cAYhmTx/acCisEfH4rHpHYhTggGzzpCZ0DJRCMaYlrePYrKrGpMIDDNYJZ aK9ngqYLE2heSAAxIVcDZ3n9/8OF2YVa7OM2tiChf40Uwu3iqEnKJnHGMvKEapXabPVp BA7RcyUkGV7XMG2UXSLM8Sb5oanP7gyZRPISMpSnFm6NQTwZiLT4WrqH7sr1eTJB1s0R nT2MI+XcDnDCKayR8oGDvH/juIoyZIPaii44zxCFmsph5hQsg2lBWavyHWLwIv/S/bPH TuoA== 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=mucf3DwvBpfy1t+GiE24Juw7BnqCwbndvq2LpTNkKRY=; b=J14P+zVtQstfRQEpuIhM52fcvktNIm6DiVz9FxZzMxU2k7TDE3JS088nkYdXXMqygG BbEDv6a+1x9o/dJm9aMbJigWBt0JyKeGoRJFFXMpxavk60GD1nCT0zQVOPcvt4e5sbYc QGvHjdv4abrfyEKy6DAQJE9B9Gg2g3N+Vbkg7DfvGXQ/kSeJEDHt8zC9huloTgsb2AWx xPBYk9WnsZUDD7TqIqQ2zk18eiXfqXUfu+p2CwMQ0HX3g8Bv1bN1WNWlV/mG8IZ1Jw5O 4bjX5sAU4pcWxshnWaYsAtmexOX/a8AwxGfZDiDYZ9lwhS05dVKQ7rgB20odilzTIYXG 4Efg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HAs6g7Gq; 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.06; Sun, 09 Aug 2020 04:20:06 -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=HAs6g7Gq; 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 S1726377AbgHILUE (ORCPT + 6 others); Sun, 9 Aug 2020 07:20:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:53962 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726199AbgHILUD (ORCPT ); Sun, 9 Aug 2020 07:20:03 -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 3AA6B20729; Sun, 9 Aug 2020 11:20:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596972003; bh=WbQLTXNbjRMQftFIIOZ4GiMYlCKeyiFb4uALYzHXB4M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HAs6g7GqIqdYEfCex97mPrbW5xmGnJVKkD1CkghjUUS+uq3KiFfvtLakmdxv/o4D4 cm/RatgTSVNp0oZNCpPW946MkyqdYYGEeV9lmuKn1BcsM+qnGtc+WB/6e4KzgaVbtR PC1/SwQqKYtbyG8AgVZhBsqW5Zd5BDsPIowNxcSk= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Jan Kiszka Subject: [PATCH 03/13] dt-bindings: iio: adc: ti,adc108s102 yaml conversion Date: Sun, 9 Aug 2020 12:17:43 +0100 Message-Id: <20200809111753.156236-4-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 conversion of spi device with reference supply. Added the #io-channel-cells property to allow for consumers. Signed-off-by: Jonathan Cameron Cc: Jan Kiszka --- .../bindings/iio/adc/ti,adc108s102.yaml | 47 +++++++++++++++++++ .../bindings/iio/adc/ti-adc108s102.txt | 18 ------- 2 files changed, 47 insertions(+), 18 deletions(-) -- 2.28.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/ti,adc108s102.yaml b/Documentation/devicetree/bindings/iio/adc/ti,adc108s102.yaml new file mode 100644 index 000000000000..54955f03df93 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,adc108s102.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,adc108s102.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments ADC108S102 and ADC128S102 + +maintainers: + - Bogdan Pricop + +description: | + Family of 8 channel, 10/12 bit, SPI, single ended ADCs. + +properties: + compatible: + const: + ti,adc108s102 + + reg: true + vref-supply: true + spi-max-frequency: true + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + - vref-supply + +additionalProperties: false + +examples: + - | + spi { + #address-cells= <1>; + #size-cells = <0>; + + adc@0 { + compatible = "ti,adc108s102"; + reg = <0>; + vref-supply = <&vdd_supply>; + spi-max-frequency = <1000000>; + #io-channel-cells = <1>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/adc/ti-adc108s102.txt b/Documentation/devicetree/bindings/iio/adc/ti-adc108s102.txt deleted file mode 100644 index bbbbb4a9f58f..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/ti-adc108s102.txt +++ /dev/null @@ -1,18 +0,0 @@ -* Texas Instruments' ADC108S102 and ADC128S102 ADC chip - -Required properties: - - compatible: Should be "ti,adc108s102" - - reg: spi chip select number for the device - - vref-supply: The regulator supply for ADC reference voltage - -Recommended properties: - - spi-max-frequency: Definition as per - Documentation/devicetree/bindings/spi/spi-bus.txt - -Example: -adc@0 { - compatible = "ti,adc108s102"; - reg = <0>; - vref-supply = <&vdd_supply>; - spi-max-frequency = <1000000>; -};