From patchwork Thu Apr 1 17:41:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 413644 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp773418jai; Thu, 1 Apr 2021 10:52:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVoK3IXwPxh1SwFGLz8gtdw2hPYjNIP32Xmh++VkYh6F/vvx7JmzKIRk8hz+mGA6FDRS1C X-Received: by 2002:a17:906:4b14:: with SMTP id y20mr10066289eju.26.1617299552804; Thu, 01 Apr 2021 10:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617299552; cv=none; d=google.com; s=arc-20160816; b=L+Z55eNhOGWYEy3Fd+doZqLgSxGw9MTylFRFbd+lpy+7/JAhd1mHJrE588zrLwhoLF KWb/moTaiRaqSUV3oOZ6UAUZdBFh5+wJSnPisMQPkrijewbSvbWf/PuITXAhAtGww864 EeS4lIseTu06OHvVu2P7WzG8TUEBJiBnmgVYH5TCiohoD0vWi+0CCZKq6Xe6cGPSuwhM Qg+n6fcki8gMAMGuCGOwURRDGo3D8lPzpO+K8bFMSo4onLwqH5tmc3jGNRczLlXA2XRC 4pwpUIPNx8sUBF48YYMh8oicOKt1gdsnJR5SUpOl73umfQusfuvpgdpo51dZdyU4YTRF GUkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=noWelmPfjnu9Keg8dwED93kag7levDtx3XlebIsBZRg=; b=hud9tFE91qIyfEinOqlCWp/fsSEJpS2JAGdkCcjaPwDwhzzvMwanWP4xcvnqogRD59 MpHa7ezDWM14dI6Wy8Arztud4hWNsLYzIZdl8kMvPDgC9RoN6608N89G9tz2GBqEHeZJ uOk3GvwViOgvUbqJFhHFWTPCNGLOEogYmDw//BkBbhuRupAefhBXOqJ28oWkzvZj8pUO 8x/ol320JKwN5ZxEzxBzsIoF5DmDHxv77Ig03jU6V2eGIGXJcXuO773HyDwgGb+mfi96 9Oy2YBusSWQY2v9fDgs9WYKuxgqcacZyC73nmF7k9ZzlInVVD0ISWUyU2ZG6PIgyj8/S oewA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n7DEEBdo; 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 mp39si4446275ejc.182.2021.04.01.10.52.32; Thu, 01 Apr 2021 10:52:32 -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=k20201202 header.b=n7DEEBdo; 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 S234448AbhDARwZ (ORCPT + 6 others); Thu, 1 Apr 2021 13:52:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:45228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236468AbhDARpC (ORCPT ); Thu, 1 Apr 2021 13:45:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 00FB9613BE; Thu, 1 Apr 2021 17:43:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617299000; bh=DYBylFCzwf/mC1qtfHCHRZAYGu4r3hcX9pYrM/Et+T0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n7DEEBdoZVB6pQDH/QEAOLAVGoQkgGkFICaNFMo7ECIFLilAMUhlJkVJ57U0+29Dm QfCfWm8JJhdYjPSeRF3SOWbDZhOSC5ziZTCsWZGJbXZpsvZMRZHr8E0vEBhMOFGNwN JdtVHqL4n14SFhhgAAS0Yas32UmDgFrUrTNl1g7C/JOcCc+qpI+01rYUs6gGRIQi32 Q9uMn9y7g10BJkfX9e6WGb6iHoi33bYGDZV4P+DpB7hLct70jOK5kXMtmutYkYK/Lx cMThOAmPM8R4vDhc/EtEDC269WKApNW1LfyWKIADvojaLMg564ghu3NKGIWURi5GCT WANmobMB6aEAQ== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring Cc: devicetree@vger.kernel.org, Jonathan Cameron , Michael Hennerich Subject: [PATCH 6/6] dt-bindings:iio:adc:adi,ad7298 document bindings Date: Thu, 1 Apr 2021 18:41:12 +0100 Message-Id: <20210401174112.320497-7-jic23@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210401174112.320497-1-jic23@kernel.org> References: <20210401174112.320497-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron The device has a tsens-busy pin, but it's both fiddly and currently ignored by the Linux driver. Given it's not clear whether the binding should be an interrupt, or a GPIO I have left that out for now. Signed-off-by: Jonathan Cameron Cc: Michael Hennerich --- .../bindings/iio/adc/adi,ad7298.yaml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) -- 2.31.1 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7298.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7298.yaml new file mode 100644 index 000000000000..ca414bb396c5 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7298.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2019 Analog Devices Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/adi,ad7298.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD7298 ADC + +maintainers: + - Michael Hennerich + +description: | + Bindings for the Analog Devices AD7298 ADC device. Datasheet can be + found here: + https://www.analog.com/en/products/ad7298.html + +properties: + compatible: + const: adi,ad7298 + + reg: + maxItems: 1 + + vref-supply: true + vdd-supply: true + spi-max-frequency: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "adi,ad7298"; + reg = <0>; + spi-max-frequency = <5000000>; + vref-supply = <&adc_vref>; + }; + }; +...