From patchwork Sun Aug 9 11:17:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 247573 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp3995658ilo; Sun, 9 Aug 2020 04:20:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbZGR00b6w2mAY6I3xiWBHtHlJeSZkQtM5j2bEY/Cro1pt4QYtjI9RtZSicLnfXb+qIlr6 X-Received: by 2002:a05:6402:847:: with SMTP id b7mr17213784edz.39.1596972016157; Sun, 09 Aug 2020 04:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596972016; cv=none; d=google.com; s=arc-20160816; b=pRXhMLdF6xRmEXvdjBBm1c5qXhUgvSM93LKilMmRz/cHV+PQR5Qt/OTCdzsq21+1Bp TAWO0jV8oR/nSAEMgthhzsvB6RtaScUi8bzTx8ceVrfLTSnNk3xtk0pJE0YRAIL/gsXW UR07bTaGKxESJSoHMOFTyVNIIWgEQhl48a9g0mvrt14ryHM98N4uL7KIWIJvowPLlwwT fKZGjvo5wgiW1p0FdlKKh+nZnJWMp7Yp7z1mguGvwylURzqAdE3BCG/M1cv+UpbSP7Nr wICOxBeN9XFGFq/KbUWLhS0hGGhuuahQptDVRMI3qNJXUdled5f6K5J+vCUnbb50rXQY dynQ== 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=UG3Wjvc8q6E+xGxcXAfoJv2fVnAdg9hE5cmb8bOg4HA=; b=ck+aJ/P8QSEq8Z0vj2EEGa/DX7H1J/EH03Gyo4dY1vT4yrsdBmOuXUCi8g+SwEQg1C yLjLSS2ChwWxC7EOcmnnD4BOfddNj+8C/LWGEqJTfa5erkYN+7k5K0F7PEJ3j46yK/jB lEcmttfFKs6YFFHqMR29nu78zpXklxEHcKCTBCdjvkWy+pCX2rh3YpXPdDo8+gRudcW4 TZ6IDupDNhoieMzJVYW3eBinsyKk/wmICUXJU0njPRhplolD0Lu3E082NJx8US7kb7hO Y58oIBi/z7kCIlCqtimMBj8Hcj4vL9MDiTbZNv4yZjKID2wqUj3aW/AzJhzkKEkOR0V0 rJLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rxsSWMqz; 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.16; Sun, 09 Aug 2020 04:20:16 -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=rxsSWMqz; 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 S1726412AbgHILUP (ORCPT + 6 others); Sun, 9 Aug 2020 07:20:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:54236 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726350AbgHILUP (ORCPT ); Sun, 9 Aug 2020 07:20:15 -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 902162065D; Sun, 9 Aug 2020 11:20:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596972014; bh=U4FgdftWxD8YI33Nce7CbbUhkmxE3fQ82dNpmo1uPX4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rxsSWMqzQmj4ZZ/g8HUV2hlFpM3oH1237R5b3hMMD3p+EGQwxdo/L7dYdCIsMVpGF Qgk6ILEBO1ZJzJJFqAkd2oGShr+VA99qjCqoZddTE2H0wKfjXDDMxZSskcs4SUM3/P aTcTNUxwFotmKYv2J4tRwzUhyh0sp4kMbcWzH79Q= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron Subject: [PATCH 11/13] dt-bindings: iio: adc: ti,ads8344 yaml conversion Date: Sun, 9 Aug 2020 12:17:51 +0100 Message-Id: <20200809111753.156236-12-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 so easy to convert. Signed-off-by: Jonathan Cameron --- .../bindings/iio/adc/ti,ads8344.yaml | 51 +++++++++++++++++++ .../bindings/iio/adc/ti-ads8344.txt | 19 ------- 2 files changed, 51 insertions(+), 19 deletions(-) -- 2.28.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ads8344.yaml b/Documentation/devicetree/bindings/iio/adc/ti,ads8344.yaml new file mode 100644 index 000000000000..b8c398187d5c --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,ads8344.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,ads8344.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments ADS8344 ADC + +maintainers: + - Gregory Clement + +description: | + 16bit 8-channel ADC with single ended inputs. + +properties: + compatible: + const: ti,ads8344 + + reg: + maxItems: 1 + + spi-max-frequency: true + + vref-supply: + description: Supply the 2.5V or 5V reference voltage + + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + - vref-supply + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "ti,ads8344"; + reg = <0>; + vref-supply = <&refin_supply>; + spi-max-frequency = <10000000>; + #io-channel-cells = <1>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/adc/ti-ads8344.txt b/Documentation/devicetree/bindings/iio/adc/ti-ads8344.txt deleted file mode 100644 index e47c3759a82b..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/ti-ads8344.txt +++ /dev/null @@ -1,19 +0,0 @@ -* Texas Instruments ADS8344 A/DC chip - -Required properties: - - compatible: Must be "ti,ads8344" - - reg: SPI chip select number for the device - - vref-supply: phandle to a regulator node that supplies the - reference voltage - -Recommended properties: - - spi-max-frequency: Definition as per - Documentation/devicetree/bindings/spi/spi-bus.txt - -Example: -adc@0 { - compatible = "ti,ads8344"; - reg = <0>; - vref-supply = <&refin_supply>; - spi-max-frequency = <10000000>; -};