From patchwork Sat Oct 31 18:48:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320126 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2451441ilc; Sat, 31 Oct 2020 11:51:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMDnyqTyeJFW2UZP8y4RKYLKUPMCmQw3y8oph2gIAC9SEvLiKvHSAO/r10ShQiiUmHl0bj X-Received: by 2002:a50:f316:: with SMTP id p22mr9018735edm.201.1604170302602; Sat, 31 Oct 2020 11:51:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604170302; cv=none; d=google.com; s=arc-20160816; b=VJO1jN5b9OspWoyZAYmr/1URFS6WSvb+vAL2+kRQSc2MxKsdyJ3FjS0TeiggyqWLgk HAMa3lb3Z+6MSzLVi8nhfqSXYps/egplEEclF5PFx8IepjTof4bsuEKraoXws+RSwcFx tyo4G3zmZzHHRs2rNvNRJQiT1Cwm4jkZXlmKqjRDMyvca1MzjoXwhJUVXNStCvfo1NTk w4lBg70N7hKp+2NvwK17orEYeShbxZvHsISIJVwo/PU0X8Z/7z97T6ChYtueof3VlZGh OSn5q6jp32+YDALcs2chFMB1eqIvgZNCJDsfA/Nxs588DouFTnhQX+SgSVYVuD06C3wn dZog== 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=1DLhDLpEPl1KraOqoQuF2E+x2TsVcfrKcSl06I1lfxQ=; b=bsEdCiMFDk4piPETVGqhpFIpkjGDgHtRvKm20wAZ6i0BuHPI73LEk6IPi9B2v8NwNL z9xz1N69eFtextIbQ+ojWzh5aDjWJvYh/ZOrz6CcKXfuSQ2DKdtItiE5z8QY6zGwicuI mdqpU8Xk+SgNxXGG9job9n6mgPK/UyAvlpdJrqTGNkahOo9ORlqvVUeik2+VBd+6+Z6N w62hJinYg3j5aOXof7/PQX4a5HM+wOeX4/4SXyL8oKiT0fFO9rgdZvi7RO+iWYTP8L0a FyUZ2m3IP5F9gjKDlwylx0ThrkmWLdSNYsEK7KjeBKva1rs2uiVwnfp6/idfLEznvpOj gBIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oj1g4dvo; 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 f2si7081562ejc.542.2020.10.31.11.51.42; Sat, 31 Oct 2020 11:51: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=oj1g4dvo; 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 S1728400AbgJaSvg (ORCPT + 6 others); Sat, 31 Oct 2020 14:51:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:34686 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728395AbgJaSvf (ORCPT ); Sat, 31 Oct 2020 14:51:35 -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 82D3420720; Sat, 31 Oct 2020 18:51:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604170294; bh=GL5NLMdYAIJDAG2pgmplmCsOw7mxQvaz0GX+UG2FpR4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oj1g4dvoursWtKCmfQ6m0XnBGkbFRD0K8Vx5+6fAX1yvQTqW3hKa0pU2rq/Osm5so aEB/BHSCKPfVjBlVD2x1VvATqQPXwz6poq4t5o/uWNKJrOXvCf+Nl24YGayg9HRROM V8teHVEhVTosFqzKgWpRLs1l8SOaqAmbUiR7oKfo= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Marcelo Schmitt , Gabriel Capella , Alexandru Ardelean Subject: [PATCH 05/46] dt-bindings:iio:impedance-analyzer:adi, ad5933 yaml conversion. Date: Sat, 31 Oct 2020 18:48:13 +0000 Message-Id: <20201031184854.745828-6-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031184854.745828-1-jic23@kernel.org> References: <20201031184854.745828-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron The example in this one had a completely wrong compatible so I've fixed that. Otherwise, a fairly simple conversion. Note the driver itself is still in staging. Looking back at the last discussion around this, I think we were just waiting for some test results on some refactors. As such the binding should be stable even if the driver might need a little more love and attention. Signed-off-by: Jonathan Cameron Cc: Marcelo Schmitt Cc: Gabriel Capella Cc: Alexandru Ardelean --- .../iio/impedance-analyzer/ad5933.txt | 26 -------- .../iio/impedance-analyzer/adi,ad5933.yaml | 59 +++++++++++++++++++ 2 files changed, 59 insertions(+), 26 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/impedance-analyzer/ad5933.txt b/Documentation/devicetree/bindings/iio/impedance-analyzer/ad5933.txt deleted file mode 100644 index 5ff38728ff91..000000000000 --- a/Documentation/devicetree/bindings/iio/impedance-analyzer/ad5933.txt +++ /dev/null @@ -1,26 +0,0 @@ -Analog Devices AD5933/AD5934 Impedance Converter, Network Analyzer - -https://www.analog.com/media/en/technical-documentation/data-sheets/AD5933.pdf -https://www.analog.com/media/en/technical-documentation/data-sheets/AD5934.pdf - -Required properties: - - compatible : should be one of - "adi,ad5933" - "adi,ad5934" - - reg : the I2C address. - - vdd-supply : The regulator supply for DVDD, AVDD1 and AVDD2 when they - are connected together. - -Optional properties: -- clocks : external clock reference. -- clock-names : must be "mclk" if clocks is set. - -Example for a I2C device node: - - impedance-analyzer@0d { - compatible = "adi,adxl345"; - reg = <0x0d>; - vdd-supply = <&vdd_supply>; - clocks = <&ref_clk>; - clock-names = "mclk"; - }; diff --git a/Documentation/devicetree/bindings/iio/impedance-analyzer/adi,ad5933.yaml b/Documentation/devicetree/bindings/iio/impedance-analyzer/adi,ad5933.yaml new file mode 100644 index 000000000000..2ad043554b9c --- /dev/null +++ b/Documentation/devicetree/bindings/iio/impedance-analyzer/adi,ad5933.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/impedance-analyzer/adi,ad5933.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD5933/AD5934 Impedance Converter, Network Analyzer + +maintainers: + - Marcelo Schmitt + - Gabriel Capella + +description: | + https://www.analog.com/media/en/technical-documentation/data-sheets/AD5933.pdf + https://www.analog.com/media/en/technical-documentation/data-sheets/AD5934.pdf + +properties: + compatible: + enum: + - adi,ad5933 + - adi,ad5934 + + reg: + maxItems: 1 + + vdd-supply: + description: | + The regulator supply for DVDD, AVDD1 and AVDD2 when they + are connected together. Used to calculate voltage scaling of measurement + channels. + + clocks: + maxItems: 1 + + clock-names: + const: mclk + +additionalProperties: false + +required: + - compatible + - reg + - vdd-supply + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + impedance-analyzer@d { + compatible = "adi,ad5933"; + reg = <0x0d>; + vdd-supply = <&vdd_supply>; + clocks = <&ref_clk>; + clock-names = "mclk"; + }; + }; +...