From patchwork Sun Aug 9 11:17:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 247571 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp3995636ilo; Sun, 9 Aug 2020 04:20:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzl5QvEvphItThMQrYOhvAZq7h5W3SBzCq3d//ixJhcM8SIK4ae8FVXseP9PJ9nXBSUzsl X-Received: by 2002:a17:906:2e8d:: with SMTP id o13mr17132335eji.279.1596972013455; Sun, 09 Aug 2020 04:20:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596972013; cv=none; d=google.com; s=arc-20160816; b=Og/1WfKtQwKjmETovr93YukKiOiq4Sc6wxWUVMa/ShhYe9Py33RaiqK9L+peskcP5U 10a33WsXl1HCJ7JOkvqNDk4dAsKffxfZUAfmjVSvFn3ARw+ofIARVXj+vYgYsHA8WgWU TFGz3RPMPAfSQQ0W83Fg7rzjcUdckW8UW/41zQ4/6EcutUeWNXUnafnRRpB6GF73eery H5vQlkaEHJl7EUZAN1s9/CKqc/SlRA49stQjBuWGZPEu1YYlbdEycdZLGSwDqd+Aw7pY Pr7I231bysCXOblUoXjNbwFDplluVfVr2QNKp8QyXrD4otvyFb7qF0efrf69xhquQlKR 0DiA== 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=j4a8xYHOirard6lgEcv9hov/qXTBYHo97LMfOe8frZg=; b=osHL8EFMX9miTa8FU5vnGlA0r8lEQA+gJ1kER+/ieFo6R9HpEZv+LKDXBlSFPQwur6 ft476HTNv/Qu85HO2Y8quAD9APlpVLF/Ml7QSz0+ZZx7eA/p8FEwhcDm263tdNgv5C0H 5UI6hKZzn9KZYiZTocqCO1HiNHxaC3uXThZa7po0rW4URloyQBAWruGya9quNOHacFba 6p59e8sr/Bn358mkIQuNxnSacLT0sjaDvg8Fv8MBDsOuGVaLC0BIbUloy1CPLtkASECw uBiBMBuk4zW1AD1GIHXvy5SA/wbGrG9ckgQwCnQn2lS1ZWhgGmeTaMDyhLBh07ousFc7 g/fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0CUMNyqO; 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.13; Sun, 09 Aug 2020 04:20:13 -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=0CUMNyqO; 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 S1726401AbgHILUM (ORCPT + 6 others); Sun, 9 Aug 2020 07:20:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:54188 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726350AbgHILUM (ORCPT ); Sun, 9 Aug 2020 07:20:12 -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 BBBB52076C; Sun, 9 Aug 2020 11:20:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596972011; bh=qomiOKxTUeSfn56banZXI2i5A5k2DuDKDauQW496Q2E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0CUMNyqOnUDYMkuAZ4WYvIO/iea7VTrcoIOimCRhulp1UdOR2rBx6yWUld+rCwji6 YeYo1ScbyI8/Ict68IKTeokOSsZ4ROPw/C/xO/YEbl9ZEgYpemUF7SJJPFhnJ1NuvI p/rZ15RIp5qn7ViDvwtSvpRw5UHSlD7stlP8SdN4= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Angelo Compagnucci Subject: [PATCH 09/13] dt-bindings: iio: adc: ti, adc128s052 yaml conversion. Date: Sun, 9 Aug 2020 12:17:49 +0100 Message-Id: <20200809111753.156236-10-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 binding. Only addition to txt version is as a provider of channels to other devices using the consumer binding. Signed-off-by: Jonathan Cameron Cc: Angelo Compagnucci --- .../bindings/iio/adc/ti,adc128s052.yaml | 59 +++++++++++++++++++ .../bindings/iio/adc/ti-adc128s052.txt | 25 -------- 2 files changed, 59 insertions(+), 25 deletions(-) -- 2.28.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/ti,adc128s052.yaml b/Documentation/devicetree/bindings/iio/adc/ti,adc128s052.yaml new file mode 100644 index 000000000000..d54a0183f024 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,adc128s052.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,adc128s052.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments ADC128S052 and similar ADCs + +maintainers: + - Angelo Compagnucci + +description: | + Family of 12 bit SPI ADCs with 2 to 8 channels with a range of different + target sample rates. + +properties: + compatible: + enum: + - ti,adc122s021 + - ti,adc122s051 + - ti,adc122s101 + - ti,adc124s021 + - ti,adc124s051 + - ti,adc124s101 + - ti,adc128s052 + + reg: + maxItems: 1 + + spi-max-frequency: true + + vref-supply: true + + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + - vref-supply + +additionalProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "ti,adc128s052"; + reg = <0>; + vref-supply = <&vdd_supply>; + spi-max-frequency = <1000000>; + #io-channel-cells = <1>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/adc/ti-adc128s052.txt b/Documentation/devicetree/bindings/iio/adc/ti-adc128s052.txt deleted file mode 100644 index c07ce1a3f5c4..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/ti-adc128s052.txt +++ /dev/null @@ -1,25 +0,0 @@ -* Texas Instruments' ADC128S052, ADC122S021 and ADC124S021 ADC chip - -Required properties: - - compatible: Should be one of: - - "ti,adc128s052" - - "ti,adc122s021" - - "ti,adc122s051" - - "ti,adc122s101" - - "ti,adc124s021" - - "ti,adc124s051" - - "ti,adc124s101" - - 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,adc128s052"; - reg = <0>; - vref-supply = <&vdd_supply>; - spi-max-frequency = <1000000>; -};