From patchwork Wed Sep 9 17:59:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 249536 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp57064ilk; Wed, 9 Sep 2020 11:05:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwva5Jq/UUaWn1cDtA6ienf+fyM+0RF3U6fxYaKCNJJTAHTR8Oecz6TBtkAxUefW9HhJdkU X-Received: by 2002:aa7:cf05:: with SMTP id a5mr5422120edy.313.1599674742091; Wed, 09 Sep 2020 11:05:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599674742; cv=none; d=google.com; s=arc-20160816; b=G3jhLIBdq11W4gBIxwuBbAFj7nvS5VDsU+MFI/45Rk7lKsGbpn7uAY1TkSmCmtoAFz HnREAQXVGi/yo6giKeBj0B6YbBoM3XtJAJetBwVb95tkcs7hsXlFvKEgZLGj8chyzYlE VcucBQ6LOg47mgBMulhdY/y2GZryrKxkhasqD8WKAER+6yC2OjBTw/gm4lYI1FXLorSC Dw/6cItzkMpN+Y/IucuxHvYlrQia1aiO2HooyMVt4tjbZD+5sFNiI/LDBvpv3DLmH/a2 UlcJfAcRB+48KR7penYOjbU6BIjLvRamzX0DUCL9F2lUDnJBkJHRUqss7Wp3QPgCS9+N bMxQ== 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=MJ51XSSqMB7wWBJkIAOmZOePTnJuh4kQmRNWIuX6CRVY+iz6ylV86HvbNjo2NYHI9/ FACA48frcEmE4BvkKWU8UAfu+Btwegbp77TSCwb4Lx1tMzDnTAaDPz8orHhm1/IcYgvr sHxsyv3v1FU422sN5o/uaHYN1L4cjHIsvyD+tgctbiAdFTlGmvf+LRWSr6C+/M+cJp2w tt/YQkY2uedGmOUd2h6tC3Su6hVPbdmne9VNQtV+PDttBiM7DkQiIBxAv5ffyXfVkL/f YwQUFM9u1NBgFxDILCgDFGNaWH3g29dgk0lsUF5lKBl/xpkipUhpEQjyODlN8gjnDdg3 RZgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=R43MGhl9; 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 m3si1923698ejk.485.2020.09.09.11.05.41; Wed, 09 Sep 2020 11:05:42 -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=R43MGhl9; 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 S1729161AbgIISFd (ORCPT + 6 others); Wed, 9 Sep 2020 14:05:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:59138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728015AbgIISEa (ORCPT ); Wed, 9 Sep 2020 14:04:30 -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 E730C221EB; Wed, 9 Sep 2020 18:02:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599674561; bh=pIGED+JyPxgowS0lFF9cJwDhp/9iv4X0tN+lMhcd7Mw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R43MGhl91+eUaPZyD7+9F+Az4Z/tMZG1bA68KGhFD78EqUYeu9nksdvdUlxHsnk24 Ul3vM1VuAKaJIpxnwAd0Y5DwXYGKm/ozhtoX5/pwkqBakiHjRPhbSc4ddSornCFXib oO0N64/ZbR5UeEclZcX7gt0enpQtDdiZ1lIcKdNM= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Charles-Antoine Couret Subject: [PATCH v2 14/20] dt-bindings:iio:adc:adi,ad7949 yaml conversion Date: Wed, 9 Sep 2020 18:59:40 +0100 Message-Id: <20200909175946.395313-15-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200909175946.395313-1-jic23@kernel.org> References: <20200909175946.395313-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 Reviewed-by: Rob Herring 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>; + }; + }; +...