From patchwork Sun Aug 9 11:17:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 247569 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp3995616ilo; Sun, 9 Aug 2020 04:20:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhmaGqASMCtDJ5KhjVqmyw64vaMpwqb5puFhCtk2wshsEkBiJCG2jNe7rV2zrIrhhmvcH7 X-Received: by 2002:a50:f311:: with SMTP id p17mr15049691edm.37.1596972011255; Sun, 09 Aug 2020 04:20:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596972011; cv=none; d=google.com; s=arc-20160816; b=fnGnD39Sk+nyZ5ACYLDgqQ7bzGkDN81NC52ObrfHEUn6j3sk2+YwOGmgtmEmMyDyc2 QVOIGXcQsF+v6jYjP57c0EUZOu1rMFw+g5qhMXc5yQvjNyUSCSiW2mKGQsYTYTeDHxbH gGRiug4qAzl/KBRWSCl+o/ZPzeP8+bc73LgwP1D88UZXppjR18k6Ndfg4z5K6H2jz1rk TT0V5zSOgQcbyh5o06olQzzXzTGswn+LjjDxmyA1QMPN9E3NPfrs/eF/tyB3TTgfLadI /+FyoJIgYNmyCE0VFAonkGNBQqc6RKZOE8btT7RPKXKzVF3Dg26r8Kld1ju9J5mEhAc6 DhCw== 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=5iLHMqIouuNm52b/131lk19NKtVdV8q5FJZIJllLq8k=; b=mfDg1lSgvZLWAM8d+DTwDr0R3rnOxl83aurKnbP8Xg5NolvC6Bz1/iLANJg/SIDAyV FbgOudWefTqQzz3J6KvO+6Z6LGUa7O3D1N+PCCfwoGC3hO50AqBDzBFXkuxSdh5eK3Q+ oBj367LQoIL55lpWMVMOrBSzLk6L+O6ExCIBg8ygQgmiZBg+FRnqrYtEfsrRndazi3vI fnGsWIZUQPE6Ca/Q33SHecTyU6lIJUDAlPmp3axi/2owuU2uZUkZ68E+npFETDdoREwM 0oP3KqEAzTMtwWzT3BlPIvdMQyIw0c1NPGH0SamGEwnsCXUX4/qBo08umnP3GbgpdbTe kILw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fYBcKbNz; 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.10; Sun, 09 Aug 2020 04:20:11 -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=fYBcKbNz; 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 S1726396AbgHILUK (ORCPT + 6 others); Sun, 9 Aug 2020 07:20:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:54124 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726350AbgHILUJ (ORCPT ); Sun, 9 Aug 2020 07:20:09 -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 E03D92076B; Sun, 9 Aug 2020 11:20:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596972008; bh=LQa3oA0XrV5L39YgAkj15csoBQWKNcLKu0FArIRY1sM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fYBcKbNzCoSIUxXANAWX9jlER0lfH7tIDfkuI90j9KLk0yLIMb+Imk7f3n706bfvE bwTy73OQZv/iRK6M9wJg3FSEhxg5e4eHlj/A5sExUMnbwvHqt7Y7kIaWisUg86E7md XamfpOIZ21guDtMZPyN39f+i/CTWI2qR8OOm1C2I= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , =?utf-8?q?M=C3=A5rten_Lindahl?= Subject: [PATCH 07/13] dt-bindings: iio: adc: ti,adc084s021 yaml conversion Date: Sun, 9 Aug 2020 12:17:47 +0100 Message-Id: <20200809111753.156236-8-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 Simple conversion. Added the #io-channel-cells optional property to allow for consumer bindings if appropriate on a given board. Signed-off-by: Jonathan Cameron Cc: Mårten Lindahl --- .../bindings/iio/adc/ti,adc084s021.yaml | 58 +++++++++++++++++++ .../bindings/iio/adc/ti-adc084s021.txt | 19 ------ 2 files changed, 58 insertions(+), 19 deletions(-) -- 2.28.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/ti,adc084s021.yaml b/Documentation/devicetree/bindings/iio/adc/ti,adc084s021.yaml new file mode 100644 index 000000000000..1a113b30a414 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,adc084s021.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,adc084s021.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments ADC084S021 ADC + +maintainers: + - Mårten Lindahl + +description: | + 8 bit ADC with 4 channels + +properties: + compatible: + const: ti,adc084s021 + + reg: + maxItems: 1 + + spi-max-frequency: true + + vref-supply: + description: External reference, needed to establish input scaling + + spi-cpol: true + spi-cpha: true + + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + - vref-supply + - spi-cpol + - spi-cpha + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "ti,adc084s021"; + reg = <0>; + vref-supply = <&adc_vref>; + spi-cpol; + spi-cpha; + spi-max-frequency = <16000000>; + #io-channel-cells = <1>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/adc/ti-adc084s021.txt b/Documentation/devicetree/bindings/iio/adc/ti-adc084s021.txt deleted file mode 100644 index 4259e50620bc..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/ti-adc084s021.txt +++ /dev/null @@ -1,19 +0,0 @@ -* Texas Instruments' ADC084S021 - -Required properties: - - compatible : Must be "ti,adc084s021" - - reg : SPI chip select number for the device - - vref-supply : The regulator supply for ADC reference voltage - - spi-cpol : Per spi-bus bindings - - spi-cpha : Per spi-bus bindings - - spi-max-frequency : Per spi-bus bindings - -Example: -adc@0 { - compatible = "ti,adc084s021"; - reg = <0>; - vref-supply = <&adc_vref>; - spi-cpol; - spi-cpha; - spi-max-frequency = <16000000>; -};