From patchwork Sat Sep 5 17:29:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 249174 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp2420885ilg; Sat, 5 Sep 2020 10:33:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6BuyNYt8FGZo64V88bwXA2l2MzWT0cmirU3WrLMX5jxeU9zkGDAdb4VkmTA4/Z36bza0D X-Received: by 2002:a05:6402:1694:: with SMTP id a20mr13976123edv.286.1599327184464; Sat, 05 Sep 2020 10:33:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599327184; cv=none; d=google.com; s=arc-20160816; b=dxBU4a3lfRZ44O9rDaLhGmgr5I3b3CyHa8jCg71lHGecZfHKeVZb1dQ/KCBje1PLom iTyHf67aA8zTJwEBzygxa+i59vcex0LKiwnMUO8MLOppuPu2YnMnJamYAN5l3dClLsKo D8dndDgly4fXYRSSSgq1JdCUeOVpf8AaEku2wlFkXRhxSbVL+fAeH6a7yOBXzvkXhBFd itqF7QVSnYmJfSoOm6jP/4FiEdJIaNQCYvGzgwfDfm6sjv/RXNmjNw5OoTJZ1l6JnDp3 H/hRkHrMKtsIeCZg93riVbut3KBbuhizyGcogYv9jQ5+SNTob0m6aOziOwd9XM8INQP3 0v1A== 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=gGB76DxQszexJNrInYWF5LXHwBwYkP2LpkEzeJ57kr8=; b=uaXjgo+XWS17uBAeuYt/LyWodCx/EL9FNwlQ1IbS0/EBCkoTiHrWtC5vDftZ6x/svg yti+MPlmo2c4TEY7PNjLB5FSoLpUTYB/E1GA5wenhY5OKeF2WEkZdSGRO+vGMW+YYBi2 RmstmT0y7wVVJOfSCvQ+zAoX4s9pVHdIvDJ3ymuVAch8qhNAVcaj6ZhKd8wavkpb8Kkk Pc0Gq0G5QycjQktfj1+3+h4I8HTq63/yP2h49ww1OvraF0OKK9ZWDtRCalmCSO8oozvU Pr7aIStbyrksbAbcceA4iUZo6lod+Dawpp2OUhE7dvV0pvx3gzZ2t/HQ4z5oedpqmjP/ 3L4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DaUXEQqT; 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 u17si5687486ejk.29.2020.09.05.10.33.04; Sat, 05 Sep 2020 10:33:04 -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=DaUXEQqT; 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 S1728507AbgIERcx (ORCPT + 6 others); Sat, 5 Sep 2020 13:32:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:60480 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728463AbgIERcr (ORCPT ); Sat, 5 Sep 2020 13:32:47 -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 80F332086A; Sat, 5 Sep 2020 17:32:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599327166; bh=pIGED+JyPxgowS0lFF9cJwDhp/9iv4X0tN+lMhcd7Mw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DaUXEQqTYpFt8LoRvtdUWDNzynOeIWM+cbLPoSCGUdOTzr6I/Uz42ufWuBh25aNWf xQOgFcx1/b+9w9UuAmV57N53D2ftfN8GNNUFDnKlo3mpbsYf1Xg+BN3FpdfqJTQMn4 vdlRi+PrcWp+Nfv7TCar7AC8SWBybHHzxAisgvpA= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Charles-Antoine Couret Subject: [PATCH 14/20] dt-bindings:iio:adc:adi,ad7949 yaml conversion Date: Sat, 5 Sep 2020 18:29:58 +0100 Message-Id: <20200905173004.216081-15-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200905173004.216081-1-jic23@kernel.org> References: <20200905173004.216081-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 SPI driver. I've added the #io-channel-cells as an optional parameter to allow use of this device as a provider of ADC capabilities to other devices. Signed-off-by: Jonathan Cameron Cc: Charles-Antoine Couret --- .../devicetree/bindings/iio/adc/ad7949.txt | 16 ------ .../bindings/iio/adc/adi,ad7949.yaml | 57 +++++++++++++++++++ 2 files changed, 57 insertions(+), 16 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/adc/ad7949.txt b/Documentation/devicetree/bindings/iio/adc/ad7949.txt deleted file mode 100644 index c7f5057356b1..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/ad7949.txt +++ /dev/null @@ -1,16 +0,0 @@ -* Analog Devices AD7949/AD7682/AD7689 - -Required properties: - - compatible: Should be one of - * "adi,ad7949" - * "adi,ad7682" - * "adi,ad7689" - - reg: spi chip select number for the device - - vref-supply: The regulator supply for ADC reference voltage - -Example: -adc@0 { - compatible = "adi,ad7949"; - reg = <0>; - vref-supply = <&vdd_supply>; -}; diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7949.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7949.yaml new file mode 100644 index 000000000000..9b56bd4d5510 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7949.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/adi,ad7949.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD7949/AD7682/AD7689 analog to digital converters + +maintainers: + - Charles-Antoine Couret + +description: | + Specifications on the converters can be found at: + AD7949: + https://www.analog.com/media/en/technical-documentation/data-sheets/AD7949.pdf + AD7682/AD7698: + https://www.analog.com/media/en/technical-documentation/data-sheets/AD7682_7689.pdf + +properties: + compatible: + enum: + - adi,ad7682 + - adi,ad7689 + - adi,ad7949 + + reg: + maxItems: 1 + + vref-supply: + description: + ADC reference voltage supply + + 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 = "adi,ad7949"; + reg = <0>; + vref-supply = <&vdd_supply>; + }; + }; +...