From patchwork Sun Jun 27 16:32:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 467807 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3282860jao; Sun, 27 Jun 2021 09:30:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLenFNdK8zkK7V8J4kWIhT+FIBlNuDyPIamqwqdpbGEQbXowP8NhUxauu+PX8O6xfzJyWN X-Received: by 2002:aa7:dbc3:: with SMTP id v3mr28070359edt.63.1624811439471; Sun, 27 Jun 2021 09:30:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624811439; cv=none; d=google.com; s=arc-20160816; b=FzxVrhKNfqOGWp40xJuu0NBUIRmiX7oNNHipYQyL7ZMdy16qSRwzErwjRHdog22Bp2 UGBXRERjRry7qB+cjJ4jzC3judOZ+Njb2P3zr05ZI3khkqV7KdYL0TtQ0sg4Azk0kjgl /vWCfeQnfJyVqjGE6EDtFPWhl8iUTDbaS6PnI8yB99kZHWWOFPni87TzGyNg7Z2jbXHz FrHTm822Rv39JSnC2rV/hWHmtTEReV6677ayhukdvdmtFlJ1cOK6K3p9/I28GH1HR4/7 +rcxO/tW0qR+6SfdBhfdPqrzJSF+yutIbd/Lu1i4q8A7tmMj/nPQj/YqCsSvAe2ppvci oOTg== 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=eUhb/65/501wP48o/4GiNKU6I7nWUGF3VD7QAsBeyJQ=; b=k5L0jU0yFRkAFtaccC67Nt0BATRU7/hP/HnHJdYLx3T5dLFJWT8kyijyGVyY1JohDg RQfB7alUJpg+Rb03WpFo6ypiiwF0e701OiA9ZIBNLM59Ew1S9+98WZLrUfHFxZRfJMlq eqvux6pGhg0yU33MSucDenCEjUuMaH0RRvFcWgKhJLzEaf7Vv5nEGQlTBUEtY4BYvevu +cGMkUrYgc7EqXbPocdkNZvgbCAWJOVrhRAOk6ebz3GRTv4mlCfU2lv18Go5dy/tlVIg KEYM1dplGSvpse4F7m2PKogLSvlmbQDh69xX/2U9lgmTSpeOrpixm/fcwGDEQDdZ2piN I2RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OFITp9rc; 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 s27si11202998edy.94.2021.06.27.09.30.39; Sun, 27 Jun 2021 09:30:39 -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=OFITp9rc; 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 S230334AbhF0Qc7 (ORCPT + 7 others); Sun, 27 Jun 2021 12:32:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:44964 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230315AbhF0Qc6 (ORCPT ); Sun, 27 Jun 2021 12:32:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9C663619EE; Sun, 27 Jun 2021 16:30:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624811434; bh=hBOyjKv+0wVWVYHNsRiFNDZRxA1uNPRZ6ksWzHUapDI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OFITp9rcZywJFDDSlHRCUT09TQelQxNKYPqnLVsCBzHYlgFJRwdpybTH0/t3a9muB 99Ue1Tzw/V8tStO23WL6JS/12p1PTPf4gbQUpFseMNGRIfe0zYPOapWQo8aIvsYLEB l+4RoG1hqOwQLKLl0okfQCYJFiEAre8Bv6KU5ShtUMLzC9HT8f/J77rKZwcGNM5+mM zklwzyiUJH0vWdhXVVPFBPFbFMghIeVgCrn+pD+HLY8F6bNu69JNHMdGW7M4li5o7H KZLtXDpieMdP4qmpMDQb0pBE4fYLyFmt9B1fnuFMnHw1bDfp0RutdbaJotSTsD/u4G MzRBIuPOI2buA== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Lars-Peter Clausen Subject: [PATCH 01/15] dt-bindings: iio: dac: adi, ad5421: Add missing binding document. Date: Sun, 27 Jun 2021 17:32:30 +0100 Message-Id: <20210627163244.1090296-2-jic23@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210627163244.1090296-1-jic23@kernel.org> References: <20210627163244.1090296-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron This is documented what is currently the case. There are a number of things that could be added, but I don't feel the binding elements are obvious enough to document without a driver implementation to verify they are good choices. These include * Range * Regulators, both input and potentially output (if the loop being driven is ever described). I've listed Lars and myself as maintainers of the binding, but if anyone else wants to be added they would be most welcome! Signed-off-by: Jonathan Cameron Cc: Lars-Peter Clausen --- .../bindings/iio/dac/adi,ad5421.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) -- 2.32.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5421.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5421.yaml new file mode 100644 index 000000000000..188f656617e3 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5421.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ad5421.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD5421 DAC + +maintainers: + - Lars-Peter Clausen + - Jonathan Cameron + +description: | + AD5421 is designed for us in loop-powered, 4 mA to 20 mA smart transmitter + applications. It provides a 16-bit DAC, current amplifier, voltage regulator + to drive the loop and a voltage reference. + +properties: + compatible: + const: adi,ad5421 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + description: Fault signal. + + spi-max-frequency: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + dac@0 { + compatible = "adi,ad5421"; + reg = <0>; + spi-max-frequency = <30000000>; + interrupts = <55 IRQ_TYPE_LEVEL_HIGH>; + }; + }; +... From patchwork Sun Jun 27 16:32:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 467808 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3282874jao; Sun, 27 Jun 2021 09:30:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMWdKbGAj0kTBotzDXIcWhn7D5RtmxUi3bMbYamzE04biuE9GiWp+wy3y5pcM/BGfTpGsA X-Received: by 2002:a17:906:190c:: with SMTP id a12mr19973231eje.491.1624811440356; Sun, 27 Jun 2021 09:30:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624811440; cv=none; d=google.com; s=arc-20160816; b=y5GINWajuyBZui0lvz4OIFS7wO54pDnFzKjqmCvX4Ea9vwMmf8QPr2vr+0AcuKTF7M ahKJxFL6e1ZMJLcamnv01mMkRS+K6+VwBNdtHWW9QzTrqo40ce4LTTkhCEdgBTtLM324 QimFubzOXvX2V5KBKcn1myKhfANU7jmXMR2mc6mO3E4HHhxLR91GnqjxhOt25PY5pkeD Xg/O84O62TNCp5AOJ/wqXvSwmWnjA1wF/E/ZIrP+7lQ482mdvIBSo3ERXTATZaaOVXID I1G0DStBMv7EsCC7XwqiFf3ghM3Pm21n62otFviCbEHtWTy8t3WP7jm4GXY42VA3tX2X /+fg== 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=lJvM4Qik10j2Hn5jtqD5KZ7srde9RdmeOUi5sev89BM=; b=VJhmRS9IKQ8aq/wqUG0LSK6Uu3LkwxcYKB2sAuredFFnNnjzevmTg+E+A4SUR01HDh ksWxnpKgfvYt905n/TwWsc1sIp46wh0fQ6WacbEhR9QUltq6GFSvHNlNYptuU/zU3Dwx 7BFBDA/unw5dCSNiCb0+pQkjKpafHEZGkVGqFZbItKRwUokE5ABE6+RVuSRE0jNsklwY vDtKYoyJz7z/tJ7hfC5sWHFiLoHlMk1uClHthJwhg+Hct2dshcZ+tTtT0NOdqAYeLKNC yLK/JATftfF8UMSTDo9Ys4+seS8iOEPLmtb5uukgnHJypKbN/G/tmzzJ58MJ4z9SUs2J acQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RTT4eztm; 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 s27si11202998edy.94.2021.06.27.09.30.40; Sun, 27 Jun 2021 09:30:40 -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=RTT4eztm; 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 S230523AbhF0QdC (ORCPT + 7 others); Sun, 27 Jun 2021 12:33:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:45028 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230315AbhF0QdB (ORCPT ); Sun, 27 Jun 2021 12:33:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7E091619D1; Sun, 27 Jun 2021 16:30:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624811437; bh=6qrzyIL+AHe8VrjfusUVVvYznEz+S6YYi1btIDS1pdQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RTT4eztm8ZG7w8y3lr1QWBkPgNKQ7ZuisJH/2krg95wh+PaBYIcNKhDKB6lcUQZ8Q 00Yecrx8qk2aHermyF8sxpIKR+yu7L+HJKINt2nuhISrEk0kpzHuhysiRJgiPRcTeG BXYhQ/TheTx6B+I3sJshIRepRnoUJlZIQv9YHqOwLGZzbpzZ8hgYt28Bwd68kDQD8b Z5DfkmCsXtpWhn0HZ6Af4Vktp9VaFgfBKDxd1qHJiwnQIoMzgsHRxyWrWgQsAndYG0 xvb35YnzEpXgQ1/0o48u1zQRcIuDns++dNCBx2YoGbRWYBLRRQjUW0H8yNQKN18g6L 5KM9vquSsefMg== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Lars-Peter Clausen Subject: [PATCH 02/15] dt-bindings: iio: dac: adi, ad5064: Document bindings for many different DACs Date: Sun, 27 Jun 2021 17:32:31 +0100 Message-Id: <20210627163244.1090296-3-jic23@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210627163244.1090296-1-jic23@kernel.org> References: <20210627163244.1090296-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Note this is documenting bindings that have effectively existing ever since this driver was merged. The naming conventions for the ADI parts are inconsistent on the data sheets which has lead to a mixture of -X and -reference voltage part naming. We could attempt to clean this up, but as we are stuck supporting the existing binding it is probably not worthwhile. Signed-off-by: Jonathan Cameron Cc: Lars-Peter Clausen --- .../bindings/iio/dac/adi,ad5064.yaml | 268 ++++++++++++++++++ 1 file changed, 268 insertions(+) -- 2.32.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5064.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5064.yaml new file mode 100644 index 000000000000..05ed4e0ec364 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5064.yaml @@ -0,0 +1,268 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ad5064.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD5064 and similar DACs + +maintainers: + - Lars-Peter Clausen + - Jonathan Cameron + +description: | + A range of similar DAC devices with between 1 and 12 channels. Some parts + have internal references, others require a single shared external reference + and the remainder have a separate reference pin for each DAC. + +properties: + compatible: + oneOf: + - description: I2C devics + enum: + - adi,ad5024 + - adi,ad5025 + - adi,ad5044 + - adi,ad5045 + - adi,ad5064 + - adi,ad5064-1 + - adi,ad5065 + - adi,ad5628-1 + - adi,ad5628-2 + - adi,ad5648-1 + - adi,ad5648-2 + - adi,ad5666-1 + - adi,ad5666-2 + - adi,ad5668-1 + - adi,ad5668-2 + - adi,ad5668-3 + - description: SPI devices + enum: + - adi,ad5625 + - adi,ad5625r-1v25 + - adi,ad5625r-2v5 + - adi,ad5627 + - adi,ad5627r-1v25 + - adi,ad5627r-2v5 + - adi,ad5629-1 + - adi,ad5629-2 + - adi,ad5629-3 + - adi,ad5645r-1v25 + - adi,ad5645r-2v5 + - adi,ad5665 + - adi,ad5665r-1v25 + - adi,ad5665r-2v5 + - adi,ad5667 + - adi,ad5667r-1v25 + - adi,ad5667r-2v5 + - adi,ad5669-1 + - adi,ad5669-2 + - adi,ad5669-3 + - lltc,ltc2606 + - lltc,ltc2607 + - lltc,ltc2609 + - lltc,ltc2616 + - lltc,ltc2617 + - lltc,ltc2619 + - lltc,ltc2626 + - lltc,ltc2627 + - lltc,ltc2629 + - lltc,ltc2631-l12 + - lltc,ltc2631-h12 + - lltc,ltc2631-l10 + - lltc,ltc2631-h10 + - lltc,ltc2631-l8 + - lltc,ltc2631-h8 + - lltc,ltc2633-l12 + - lltc,ltc2633-h12 + - lltc,ltc2633-l10 + - lltc,ltc2633-h10 + - lltc,ltc2633-l8 + - lltc,ltc2633-h8 + - lltc,ltc2635-l12 + - lltc,ltc2635-h12 + - lltc,ltc2635-l10 + - lltc,ltc2635-h10 + - lltc,ltc2635-l8 + - lltc,ltc2635-h8 + + reg: + maxItems: 1 + + vrefA-supply: true + vrefB-supply: true + vrefC-supply: true + vrefD-supply: true + vref-supply: true + + spi-max-frequency: true + +additionalProperties: false + +required: + - compatible + - reg + +allOf: + - # Shared external vref, no internal reference + if: + properties: + compatible: + contains: + enum: + - adi,ad5064-1 + - adi,ad5625 + - adi,ad5627 + - adi,ad5665 + - adi,ad5667 + - lltc,ltc2606 + - lltc,ltc2607 + - lltc,ltc2616 + - lltc,ltc2617 + - lltc,ltc2626 + - lltc,ltc2627 + then: + properties: + vref-supply: true + vrefA-supply: false + vrefB-supply: false + vrefC-supply: false + vrefD-supply: false + required: + - vref-supply + - # Shared external vref, internal reference available + if: + properties: + compatible: + contains: + enum: + - adi,ad5625r-1v25 + - adi,ad5625r-2v5 + - adi,ad5627r-1v25 + - adi,ad5627r-2v5 + - adi,ad5628-1 + - adi,ad5628-2 + - adi,ad5629-1 + - adi,ad5629-2 + - adi,ad5629-3 + - adi,ad5645r-1v25 + - adi,ad5645r-2v5 + - adi,ad5647r-1v25 + - adi,ad5647r-2v5 + - adi,ad5648-1 + - adi,ad5648-2 + - adi,ad5665r-1v25 + - adi,ad5665r-2v5 + - adi,ad5666-1 + - adi,ad5666-2 + - adi,ad5667r-1v25 + - adi,ad5667r-2v5 + - adi,ad5668-1 + - adi,ad5668-2 + - adi,ad5668-3 + - adi,ad5669-1 + - adi,ad5669-2 + - adi,ad5669-3 + - lltc,ltc2631-l12 + - lltc,ltc2631-h12 + - lltc,ltc2631-l10 + - lltc,ltc2631-h10 + - lltc,ltc2631-l8 + - lltc,ltc2631-h8 + - lltc,ltc2633-l12 + - lltc,ltc2633-h12 + - lltc,ltc2633-l10 + - lltc,ltc2633-h10 + - lltc,ltc2633-l8 + - lltc,ltc2633-h8 + - lltc,ltc2635-l12 + - lltc,ltc2635-h12 + - lltc,ltc2635-l10 + - lltc,ltc2635-h10 + - lltc,ltc2635-l8 + - lltc,ltc2635-h8 + then: + properties: + vref-supply: true + vrefA-supply: false + vrefB-supply: false + vrefC-supply: false + vrefD-supply: false + - # 4 input devices, separate vrefs, no internal reference + if: + properties: + compatible: + contains: + enum: + - adi,ad5024 + - adi,ad5044 + - adi,ad5064 + - lltc,ltc2609 + - lltc,ltc2619 + - lltc,ltc2629 + then: + properties: + vrefA-supply: true + vrefB-supply: true + vrefC-supply: true + vrefD-supply: true + vref-supply: false + required: + - vrefA-supply + - vrefB-supply + - vrefC-supply + - vrefD-supply + - # 2 input devices, separate vrefs, no internal reference + if: + properties: + compatible: + contains: + enum: + - adi,ad5025 + - adi,ad5045 + - adi,ad5065 + then: + properties: + vrefA-supply: true + vrefB-supply: true + vrefC-supply: false + vrefD-supply: false + vref-supply: false + required: + - vrefA-supply + - vrefB-supply + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + dac@0 { + reg = <0>; + compatible = "adi,ad5625"; + vref-supply = <&dac_vref>; + }; + }; + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + dac@0 { + reg = <0>; + compatible = "adi,ad5625r-1v25"; + }; + }; + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + dac@42 { + reg = <0x42>; + compatible = "adi,ad5024"; + vrefA-supply = <&dac_vref>; + vrefB-supply = <&dac_vref>; + vrefC-supply = <&dac_vref2>; + vrefD-supply = <&dac_vref2>; + }; + }; +... From patchwork Sun Jun 27 16:32:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 467809 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3282918jao; Sun, 27 Jun 2021 09:30:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvRE2YnQVQJ3/Vql1aKWiZbC+xfHGcGR/KC3GTYvu/yB+MFwiFNlq/f51G+wbBR6OdvMjM X-Received: by 2002:a17:907:9604:: with SMTP id gb4mr20177045ejc.544.1624811443378; Sun, 27 Jun 2021 09:30:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624811443; cv=none; d=google.com; s=arc-20160816; b=amslM9ph0fzwgOPdE1y3ionj0bQhHuSahncJbCBuUJGjCnQM2AzzRtQq6sKb5r1dXe A9PCykplANj99V4MaocFT6JW5LKt4LUNvDT6fTzOHbxaIVuHzaDO4ZRfIHbbSTNJVWL3 oiYOttAbcCxfQPwK7t3F7ZNhWjF6j8AspW3rtU/1QxErRExjQ3ZOPfOfXfSOydPEw8t4 rLoucC3xBXVnQEf3LUcGPtG1YxB4ghoE90yepM8L93JD6x3oiB7nGq8BdWEhQlqNjZuI T3EZMq2B1Xxfdvefq+1cN5rIz6x5F2uQEE0tfy3fTWMqsAq5X/chy4fz/O8F7yekY0mz rqOg== 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=sgl5SdLzem3Qh2kCZBHACBbxSU5FC7odJP3dtIl31Rs=; b=doSeLORI+N0n8NKCIibruc1LIon9PUwnTcZTZsJ8THqZCCvQTTV6GEJI3SUGm5TZf9 CjHxUIeGBjaLUBgN8bCy08XfMy9xx0/IETO9bgckgagsIL45MEb3t0kdu5fRAUq5ZXw9 OTKwbnJkRDaTgzd5WaJXhDZhH7EmQyWxjK2kXHRV+1cSwbCpwCKbqnCOv1mz/mP0gh8x w7mRwYdw/8c9vdjaIgqkPjW6rqYUg7CB6EWoDf25mtQaYOt7S+k1RAOF5I4w6wwKCX4G AJZqJbOs6tN2Li/DMgGwHTyQkFiWUwND9ULUel4ZXzMyq9uuzdr0afUMQJ+LTpFiox10 se5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XGuhtJgs; 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 s27si11202998edy.94.2021.06.27.09.30.43; Sun, 27 Jun 2021 09:30:43 -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=XGuhtJgs; 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 S231206AbhF0QdF (ORCPT + 7 others); Sun, 27 Jun 2021 12:33:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:45090 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230315AbhF0QdE (ORCPT ); Sun, 27 Jun 2021 12:33:04 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6EE1E619F1; Sun, 27 Jun 2021 16:30:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624811440; bh=xRdqalZ8E+dwdFxyZIJWwbxFhbSG/NZbYezfc0DgEyo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XGuhtJgsfqZpnG0+HVCziy7hYYy0KP/BcX6f2dU7l/Ws5JkNiqewo3WF5+zGXnfmd 6krv3zOQenfBM/Lnjwsl8X/RCeZ7GDeAZAWP3vRu8ikQyB65DKS2iC1SmsKzu/8/zh r1dkN488m5bGqm0fCyPmtOmS3mJCAyFiGiWbMjucRGlQEGKzQY+mXMDXfhUgGQcvWB XHfMpqKU4qr5mQYv/EHfJXAw1I+ABu4GN1YcwLLMcu4MJcW1bbopiCardDcn5k6QTX EwkaPMR7vXMKFITo0pI64XcCNXQ1y7grC9CU49WOY2cfQsDd83vmb2Fef+qHUcnsra PNp2YCTbSgi/Q== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Lars-Peter Clausen Subject: [PATCH 03/15] dt-bindings: iio: dac: adi, ad5360: Add missing binding document Date: Sun, 27 Jun 2021 17:32:32 +0100 Message-Id: <20210627163244.1090296-4-jic23@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210627163244.1090296-1-jic23@kernel.org> References: <20210627163244.1090296-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Bindings for the family of many channel DACs. Fairly straight forward with just a differing number of voltage references (an extra one for the 40 channel ad4371) Signed-off-by: Jonathan Cameron Cc: Lars-Peter Clausen --- .../bindings/iio/dac/adi,ad5360.yaml | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) -- 2.32.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5360.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5360.yaml new file mode 100644 index 000000000000..0d8fb56f4b09 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5360.yaml @@ -0,0 +1,79 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ad5360.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD5360 and similar DACs + +maintainers: + - Lars-Peter Clausen + - Jonathan Cameron + +properties: + compatible: + enum: + - adi,ad5360 + - adi,ad5361 + - adi,ad5363 + - adi,ad5370 + - adi,ad5371 + - adi,ad5372 + - adi,ad5373 + + reg: + maxItems: 1 + + vref0-supply: true + vref1-supply: true + vref2-supply: true + + spi-max-frequency: true + +additionalProperties: false + +required: + - compatible + - reg + - vref0-supply + - vref1-supply + +allOf: + - if: + properties: + compatible: + contains: + enum: + - adi,ad5360 + - adi,ad5361 + - adi,ad5363 + - adi,ad5370 + - adi,ad5372 + - adi,ad5373 + then: + properties: + vref2-supply: false + - if: + properties: + compatible: + contains: + enum: + - adi,ad5371 + then: + required: + - vref2-supply + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + dac@0 { + reg = <0>; + compatible = "adi,ad5371"; + vref0-supply = <&dac_vref0>; + vref1-supply = <&dac_vref1>; + vref2-supply = <&dac_vref2>; + }; + }; +... From patchwork Sun Jun 27 16:32:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 467810 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3282939jao; Sun, 27 Jun 2021 09:30:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzn0+a28PaTUs7oivyaykAV558CpqPNV7EsuuEHVvaUhSnVgiLuHLzVV85Yyo+lzIO4g9np X-Received: by 2002:a05:6402:10c3:: with SMTP id p3mr25061493edu.175.1624811445196; Sun, 27 Jun 2021 09:30:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624811445; cv=none; d=google.com; s=arc-20160816; b=mFlc/Q2ZktFOkAqPj+GxUQXa0r1W5rUpdEbzwWR7uOGd/oML7mmi7BwNWUJfV8O3be PifQ/EIZjj7p0EBOcavn4qX67tQpuFHfgGIpPlDOAQUjS6oh0+xn3fuAgL2T/hIIMxtt 1tSepgeo9fDJ704AlcKLnNr95b+BpkQG+xRUtrZC3kzFhwtbEyzzhDJQdV7ROxe3ZYrB tW3ibKpZrP5i6b+z15nEMyzXA5aQTcFZi045pGVDo+h9uWYvhyvjz0Zk/d50+v/nWtFx q6IJ1HSq2fa90SIgJag/s2RN6KQTm5p8MQlbghGlwu3ycLaxG2jpfF9KGb2bVpJps1jk FvOQ== 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=NEMtuFMKUKEzbpfvaHTnO/Yy5VUqfauT5UeDLbGGwRk=; b=kBpIujnmVuZf+fhd0CVKFSDZy1RZBgtRtXNXi4Z8O5/NrJDJhCpnWTALE0YBPLvNJD E/uZ/j73D6GajgvzrKackLCDyGzkoxOzttBxmnGKqijZPlnDxeuu7FV4bVANs7ZeLNMa bmM2OMF/MyvT+Al9AlaDYHgV/ED+ItLrEgbC5eLJRwSxeSZpOT0PAuGfK0DJGCt+IU5p z+TL61CBbXk2B5N0Z+oHNSnpa7BnIovbmF9T2CoPDut1DDY1WPQhgwEU3/yF0u/3StWi eaIc/D74/f2G9L+EHI2yvuusWSqYFYzfZg6XL6F8A3U8VcQHntpv2L2PHhZnc65mCI53 o9aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dEYmZK9F; 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 s27si11202998edy.94.2021.06.27.09.30.45; Sun, 27 Jun 2021 09:30:45 -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=dEYmZK9F; 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 S231219AbhF0QdH (ORCPT + 7 others); Sun, 27 Jun 2021 12:33:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:45134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230315AbhF0QdH (ORCPT ); Sun, 27 Jun 2021 12:33:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2ECFE61A2D; Sun, 27 Jun 2021 16:30:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624811443; bh=PKZiWZrL67AoGNS72wk1iWGHrdyCelWkrNOmmL2JyZ8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dEYmZK9Fs2OXco0U7CS30fOxEzZ8gQwPfJpJFGu/vGS66mJZRDYDSi3YfQ/t9FTK7 Ggudc6Coavof6ZnvSUfCvg7hzW5eE1MedmR5ZLzIU4yOUemHIaSvd0b5+PpUy5VV8D yrJ0thh7cNwOI9S4UnhVCrgMO8Jro4pVHTDAWvPzJcBMseuAiQix4QdrISojo4gqYE uTpferjSBQB95JIVtofIovSkEiMRFy4JUpxdNJ2k1OfVovRXb2Hf61mQVsZH3bGtci GubseYuni+eImItL5Kgggf3c4D1MGojBhCTVpGX+ynj2rH6/AKKADHlC5kJsA2g/aN mSX5Ae5jXSwlg== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Lars-Peter Clausen Subject: [PATCH 04/15] dt-bindings: iio: dac: ad5380: Add missing binding document Date: Sun, 27 Jun 2021 17:32:33 +0100 Message-Id: <20210627163244.1090296-5-jic23@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210627163244.1090296-1-jic23@kernel.org> References: <20210627163244.1090296-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron A simple binding for this particular DAC familly. Signed-off-by: Jonathan Cameron Cc: Lars-Peter Clausen --- .../bindings/iio/dac/adi,ad5380.yaml | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) -- 2.32.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5380.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5380.yaml new file mode 100644 index 000000000000..d599b418a020 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5380.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ad5380.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD5380 and similar DACs + +maintainers: + - Lars-Peter Clausen + - Jonathan Cameron + +description: | + DAC devices supporting both SPI and I2C interfaces. +properties: + compatible: + enum: + - adi,ad5380-3 + - adi,ad5380-5 + - adi,ad5381-3 + - adi,ad5381-5 + - adi,ad5382-3 + - adi,ad5382-5 + - adi,ad5383-3 + - adi,ad5383-5 + - adi,ad5384-3 + - adi,ad5384-5 + - adi,ad5390-3 + - adi,ad5390-5 + - adi,ad5391-3 + - adi,ad5391-5 + - adi,ad5392-3 + - adi,ad5392-5 + + reg: + maxItems: 1 + + vref-supply: + description: + If not supplied devices will use internal regulators. + + spi-max-frequency: true + +additionalProperties: false + +required: + - compatible + - reg + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + dac@0 { + reg = <0>; + compatible = "adi,ad5390-5"; + vref-supply = <&dacvref>; + }; + }; + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + dac@42 { + reg = <0x42>; + compatible = "adi,ad5380-3"; + }; + }; +... From patchwork Sun Jun 27 16:32:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 467811 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3282957jao; Sun, 27 Jun 2021 09:30:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnUJYLV6pfTzRmPMYijOMGUobGVGUHeh5i/CIMO+IFKSKDcG09FjPeh8jwXYli1UNlFVSj X-Received: by 2002:a17:906:498b:: with SMTP id p11mr20888335eju.295.1624811447686; Sun, 27 Jun 2021 09:30:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624811447; cv=none; d=google.com; s=arc-20160816; b=o9WPbKg5UHIKYlHzZM+rZj+nkhtulbkmBFHprp3tzh19WO3ko/yFHaMRbvOwSsO+Bm Jxhdnee37isvCUaObA9JJ5qhtN0+shKHFPLOq4R8UPaIX4/MfWDUvi0z2AaFEhObI+Us dD11Xj4a+oNp5quLWYUvuKTx1WL9gSVHZkjOphMU4Ag6FRhtG1vdLfXXBXHPUc4IvlFr 3F8kJx1bbDFA/7I3EgjeeOg7WvaukOVi/b5v0bek//85lqxz8jbxSh4SiOgzOgcGDAj2 ge24WWKYXRgQIcTiuj+tkMM/1yJvoFgNGYYAzxmOPVqzOsYHiE6J/yiZQSdFuNzR70aN tJTA== 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=nAIuGYuYjcOa4WY8Dp7YXo6Yixe2PlI/usp6THhkFds=; b=M7jUY4v+U5kAyyvgZ4bM6cK6HKReCXSDG5xWrdf48CQjWsa3edU/KA0SpRxpad7Ap0 8PskFSIMfxeUw2Ku0hmM3prQ+HWEJdAaZ06f93SR+Msv3A3zNty7kWX2RPRjIeLPpvlw M7C+1UhqhGanCA+ZlSRfJ1pNvz7WutO18MuHyK2ksj5d7j9QVLqCKLXVPRWcvgX79zXm lejsbkqbGg+kFyMiCMKsNogcai9MlBUeEznjdFP3JhNWVdO9ZtERUPt45rhhCYc56owa lpExN0uM5sXao6aZWC7FOqMgzTL8R+iIjyLBU8bq01+MP1sJfGwGllCScrQvu3r46qMX eGSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mO0XnykA; 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 s27si11202998edy.94.2021.06.27.09.30.47; Sun, 27 Jun 2021 09:30:47 -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=mO0XnykA; 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 S230436AbhF0QdK (ORCPT + 7 others); Sun, 27 Jun 2021 12:33:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:45186 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231243AbhF0QdK (ORCPT ); Sun, 27 Jun 2021 12:33:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F0534619AD; Sun, 27 Jun 2021 16:30:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624811446; bh=o6mqFqi+WqcWA3TRryRMSDXpaSBg5G6W9BVGpW6lxXU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mO0XnykA3KX/4yqBpTuRFrhjNBKZnf7/VAYhTXt5cCTibu+DpvpCm9CajqbZqTPDm ts7TeM1f1Bk67iN1QjDdUZsxLyv4/LKdSrH/RIyqY0aDSHQKQRE4HA3HkbzDIcEEim sghS2iEAsc823g5RDn/9CJUs1o2cKrFByRZmXFDmcolRSCGly1/GvEeOTUvGD/cM8D VmUxCbCGCOxVR4tX7NUmlvAEq3QB/ie/powMO97KZ9og+zf5RebbsFPi0Us+dROIr7 ZmxffHqYWXIHjkCQZoFj5Fh7YdEsqa0v3TU+zYxJijIHImtQx3aV6KHOsPMkeTBYWc 2gEEJ0AUlSrnw== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Lars-Peter Clausen Subject: [PATCH 05/15] dt-bindings: iio: dac: ad5446: Add missing binding document Date: Sun, 27 Jun 2021 17:32:34 +0100 Message-Id: <20210627163244.1090296-6-jic23@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210627163244.1090296-1-jic23@kernel.org> References: <20210627163244.1090296-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Binding is a little stricter than the Linux driver. It requires vcc-supply to be present for devices that don't have an internal reference, whereas the driver just prints a message and carries on. Given this means that it is impossible to establish a scaling of the output channel, let us make it required in the binding schema. Signed-off-by: Jonathan Cameron Cc: Lars-Peter Clausen --- .../bindings/iio/dac/adi,ad5446.yaml | 105 ++++++++++++++++++ 1 file changed, 105 insertions(+) -- 2.32.0 diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5446.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5446.yaml new file mode 100644 index 000000000000..e0a0def20c8c --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5446.yaml @@ -0,0 +1,105 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ad5446.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Single channel DACs similar to the AD5446 + +maintainers: + - Lars-Peter Clausen + - Jonathan Cameron + +properties: + compatible: + oneOf: + - description: I2C devices + enum: + - adi,ad5602 + - adi,ad5612 + - adi,ad5622 + - description: SPI devices + enum: + - adi,ad5300 + - adi,ad5310 + - adi,ad5320 + - adi,ad5444 + - adi,ad5446 + - adi,ad5450 + - adi,ad5451 + - adi,ad5452 + - adi,ad5453 + - adi,ad5512a + - adi,ad5541a + - adi,ad5542a + - adi,ad5543 + - adi,ad5553 + - adi,ad5600 + - adi,ad5601 + - adi,ad5611 + - adi,ad5621 + - adi,ad5641 + - adi,ad5620-2500 + - adi,ad5620-1250 + - adi,ad5640-2500 + - adi,ad5640-1250 + - adi,ad5660-2500 + - adi,ad5660-1250 + - adi,ad5662 + - ti,dac081s101 + - ti,dac101s101 + - ti,dac121s101 + - ti,dac7512 + + reg: + maxItems: 1 + + vcc-supply: true + + spi-max-frequency: true + +additionalProperties: false + +required: + - compatible + - reg + +# Ensure the scaling can be established for devices with no internal reference. +allOf: + - if: + not: + properties: + compatible: + contains: + enum: + - adi,ad5620-2500 + - adi,ad5620-1250 + - adi,ad5640-2500 + - adi,ad5640-1250 + - adi,ad5660-2500 + - adi,ad5660-1250 + then: + required: + - vcc-supply + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + dac@0 { + reg = <0>; + compatible = "adi,ad5620-2500"; + }; + }; + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + dac@42 { + reg = <0x42>; + compatible = "adi,ad5602"; + vcc-supply = <&vcc_dac>; + }; + }; +... From patchwork Sun Jun 27 16:32:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 467812 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3282984jao; Sun, 27 Jun 2021 09:30:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb36mveGFsxe6AjxTojM6XQ4RitJRwyFi/SlhuRLL+bkZ6Dn5HV50D+OSOFJyfc/etDq/f X-Received: by 2002:a17:907:d1d:: with SMTP id gn29mr20696194ejc.175.1624811450251; Sun, 27 Jun 2021 09:30:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624811450; cv=none; d=google.com; s=arc-20160816; b=yrG1+X5WhvhHgwaFVFM1MurXrtkfi5A8jYz9QQ2D3TDFf1tWDsATFaZtThnAzeNXwV oKZa0qTo3Tj/TMsORDmcHiaT0G1E2LU8GOdlMqmhpdiXwiD0OgIS4yYdhholSIt3iMGQ bRB6aUAtYcx/hmDmdHCHf+7oF7HNYzRMV2aXqrtvPwtADOZ6HFRbcCuHBIH3+FqxnisT thaqFF8wxnk5feVxFYjNqgpGJUMSA3RCuYZ19Zkf5fw0z6sIXAfuHodey99aqHJPEgCJ CJmvfWqUSe0iOsvMrt74R4khrmitlH5ZjAvWJXlxTyQ8uCb7BCpj2vGwB6hXZ3V3++/a rdAA== 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=tMyMANhyKECw3ng1JNK9tqGRWnKioMaydLGCfKQgNxM=; b=bhCuJOjDC8ApLs7FVHAnnEhv0YkkaS36HUaGg+NXcPpyt3whIC9rcHa1SkNkxYypSf e9y1ye/V4ooF3h5uNRCVa7lkGMCXCgx8YA/b0KS8lm5d9kAFmDLvjiSZ8mREwrMm8v/m TNnJ4zxGhny1sD7K0t99/2JuxLrtCJ0Cq0Ak1iFp5qGcRQpnWrabu2njbQose84p81LS cmSQmg4QhBOEZ4ILYd+RHqFCfAoiDPHbr7Y0qpmaa2cvjgNX/oJkYLM0skPISmVTl4ge Irch6QVOiSuL7ET+5dWen5uf4erUShYkQwnQmUC+NT/aQAHTsxOwH0iWgrA+Mhxccp41 0xdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qFWuVKSU; 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 s27si11202998edy.94.2021.06.27.09.30.50; Sun, 27 Jun 2021 09:30:50 -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=qFWuVKSU; 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 S231260AbhF0QdN (ORCPT + 7 others); Sun, 27 Jun 2021 12:33:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:45240 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230315AbhF0QdM (ORCPT ); Sun, 27 Jun 2021 12:33:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BC246619EE; Sun, 27 Jun 2021 16:30:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624811448; bh=MeXy1XMu9z/PWDSHfoCk/MelsWxU00zLJ3GfFEqxGVg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qFWuVKSUbR01xUlr4duKzG7mKAGlSJUfmBEFcXD3B2lEgXps7o7qOZb6DwPcfZo8U bT7ndfJ/WiYXkrJwEibsmNjazzR/0c97gB0D2qCrUHz0fUOXs4hwa+A0mP8Wr51hmr Xi/pgUU+iTkFzm3WHZJ3tsRBxMVLsGFNdSe8UBmOYQX1gVV7LSvCF2vAbKPdTtbiK4 dSpAg71vn/+ANEHWwb0trvKy1k1Eu/fpVPlfw/UHnDgh50UKDsBWe1vZ4t6oVu1sV/ RLCqO3DUYZdNwX5sURKxnkhfkIP6fHROnR9xIFjxavWZQBG9kzPkndwbfjcZvasu+0 ZTVnalWkzTW8g== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Lars-Peter Clausen Subject: [PATCH 06/15] dt-bindings: iio: dac: ad5449: Add missing binding document. Date: Sun, 27 Jun 2021 17:32:35 +0100 Message-Id: <20210627163244.1090296-7-jic23@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210627163244.1090296-1-jic23@kernel.org> References: <20210627163244.1090296-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Documenting existing binding, so little flexibility available. 2 channel devices that require separate reference voltages. Signed-off-by: Jonathan Cameron Cc: Lars-Peter Clausen --- .../bindings/iio/dac/adi,ad5449.yaml | 97 +++++++++++++++++++ 1 file changed, 97 insertions(+) -- 2.32.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5449.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5449.yaml new file mode 100644 index 000000000000..044332c97743 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5449.yaml @@ -0,0 +1,97 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ad5449.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD5449 and similar DACs + +maintainers: + - Lars-Peter Clausen + - Jonathan Cameron + +description: + Family of multiplying DACs from Analog Devices + +properties: + compatible: + enum: + - adi,ad5415 + - adi,ad5426 + - adi,ad5429 + - adi,ad5432 + - adi,ad5439 + - adi,ad5443 + - adi,ad5449 + + reg: + maxItems: 1 + + spi-max-frequency: true + + VREF-supply: true + VREFA-supply: true + VREFB-supply: true + +additionalProperties: false + +required: + - compatible + - reg + +allOf: + - if: + properties: + compatible: + contains: + enum: + - adi,ad5415 + - adi,ad5426 + - adi,ad5432 + then: + properties: + VREF-supply: true + VREFA-supply: false + VREFB-supply: false + required: + - VREF-supply + - if: + properties: + compatible: + contains: + enum: + - adi,ad5429 + - adi,ad5439 + - adi,ad5449 + then: + properties: + VREF-supply: false + VREFA-supply: true + VREFB-supply: true + required: + - VREFA-supply + - VREFB-supply + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + dac@0 { + reg = <0>; + compatible = "adi,ad5415"; + VREF-supply = <&dac_ref>; + }; + }; + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + dac@0 { + reg = <0>; + compatible = "adi,ad5429"; + VREFA-supply = <&dac_refA>; + VREFB-supply = <&dac_refB>; + }; + }; +... From patchwork Sun Jun 27 16:32:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 467813 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3283009jao; Sun, 27 Jun 2021 09:30:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySFm1YYy9V9v9CN97DCK8k+zWXLaoMc80JFps+AHcyySL5d/4IY5CwYy2M8wzhdaAlw/wf X-Received: by 2002:aa7:d9d3:: with SMTP id v19mr28124011eds.145.1624811452399; Sun, 27 Jun 2021 09:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624811452; cv=none; d=google.com; s=arc-20160816; b=Das6pn93JCtM38PUyzafXsY+fXhQ3RVUludcqRxycSkV209Fxd1HvShOWZX1rJY3CG ZkW6mL2Rw0W3MZnC+x5EdNPtIz8qzVcYaR2ZUC+jcuK0y95EeRREpaf/NuVgUtSOSBwL UBLHd3rFRLGRacMCfCJZO/Pt3z4bf/ryRGtx+8pJK9TD9FbqiSiXrONtQLbVdP/HWThC uQJsGR/UKs7eVo6BCWOc4L7cnplTuBl0lNabZPedtJQRPSCJHlShns3XI4OU5I+DL1Kb 9rE+kRhdlDYWMUVxN/SN88mF/rDK61y4a/pXftkyPomFJxQDbdhV0CcvIFuNyXIJJH47 oA9A== 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=7cbYb2/chKf7Tj0T/Cf6tVE1KyraFeSU4lRT7OOHe1E=; b=qQoodC4A3ir2aZXNRfOomBTanu28z2FiBvaDEnS9tpT8guH7Hq2HvSHGb+PJWKJXK8 Qh07+4hFk/FI+rDqrupPAIkDBjanEH9LemOsxWIcCUhJ4MTfBJhdHRjtrfi23Ez+tD3o WH07sti2rlIMBJ12owyb/jIrsm5OoDVsd6PzFxLmq1MPtBI/GjcQ1MjyhSNS32sLhGQu qxJJQvrz9NhU8RCcfwaDHYNUL8xujoM987wW7z88xk1SskkAG66N0rjYTIeky3Mrk3F5 TNO/Hw+WqBmx/KddxM5qKBloVeyur4Lwn0GefZmOLHl2iG4LBLCdRNlxm2HqHNx/WCMg OVLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NPamKmaA; 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 s27si11202998edy.94.2021.06.27.09.30.52; Sun, 27 Jun 2021 09:30:52 -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=NPamKmaA; 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 S231262AbhF0QdP (ORCPT + 7 others); Sun, 27 Jun 2021 12:33:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:45290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230315AbhF0QdP (ORCPT ); Sun, 27 Jun 2021 12:33:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 490F661A1D; Sun, 27 Jun 2021 16:30:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624811451; bh=HfMjNfSq0JGtXaPncbMa0LA4Gsa76nqTdhYAm6Yy0nM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NPamKmaAGR2E4MSEitB8Yk2nodEmnXBCxyfpEXLF5ESW8VPPj9LJju/92EorE5nns qRcpFztBPj0mFkECQGNBlyVVYJynf1co19LzXDEksEBqSzrqUhE9HSEz8xeo9344sE VQqTT7Fd6F0dVx8ba4iqvY3lAkgP3JgLkq+Hms1yuEKSyjyiTWstRxth1oX1UJalXE iuX3nmTT0qu87fE8xPxr/Qg1s43ysW3/J8zsXMk/inrMhJ+wKKHVgnCwPHUTbZJEcP FZpnu4hiBdhyvxLIGg4/hpp0x/JP4OdQhGbQ03SKeqFGTAGa9AnUEH/sUtXW3AVEsT xJ49mUdgHxwFA== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron Subject: [PATCH 07/15] dt-bindings: iio: dac: ad5504: Add missing binding document Date: Sun, 27 Jun 2021 17:32:36 +0100 Message-Id: <20210627163244.1090296-8-jic23@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210627163244.1090296-1-jic23@kernel.org> References: <20210627163244.1090296-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Binding for this high voltage DAC with temperature event signal. Signed-off-by: Jonathan Cameron --- .../bindings/iio/dac/adi,ad5504.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) -- 2.32.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5504.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5504.yaml new file mode 100644 index 000000000000..9c2c038683b4 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5504.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ad5504.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD5501 and AD5504 DACs + +maintainers: + - Lars-Peter Clausen + - Jonathan Cameron + +description: + High voltage (up to 60V) DACs with temperature sensor alarm function + +properties: + compatible: + enum: + - adi,ad5501 + - adi,ad5504 + + reg: + maxItems: 1 + + interrupts: + description: Used for temperature alarm. + maxItems: 1 + + vcc-supply: true + +additionalProperties: false + +required: + - compatible + - reg + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + dac@0 { + reg = <0>; + compatible = "adi,ad5504"; + vcc-supply = <&dac_vcc>; + interrupts = <55 IRQ_TYPE_EDGE_FALLING>; + }; + }; +... From patchwork Sun Jun 27 16:32:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 467814 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3283040jao; Sun, 27 Jun 2021 09:30:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7SR/0CfWrvvdqSVdT4sPptYLOs0n/aka52je6dlh/BQNnlboSeeI9obbi1Nd5nZRquPnx X-Received: by 2002:a05:6402:848:: with SMTP id b8mr27730324edz.44.1624811455047; Sun, 27 Jun 2021 09:30:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624811455; cv=none; d=google.com; s=arc-20160816; b=l+2dXIeVVD5a5pjLYTfQEAhyOChaiNOCnJrBvzmAAEknmJTotXdLL8ziGJe4Xw2Dbl GscevFLCzz8iT58KB/ewcn73AMsTp5BC+QC6sUEKwug1uvbqQhWkbled73YUecFUzLar eYCqcEbgxFVbwEg0fYiyJXZQhhU2l37n9dqlnORB1St+GzN9boCiXtyc/cFU+7X1J/Ba 8I/cP36JCWh48/e5Er7B/I6Mtlor8Z5lNtAxIwCUJ9PC4R3vK5rIis536ThQM7970LrQ OjsNO5tIda9VJzA/5HrmVVTFSoGlSqlqDwLtxYHmGhX3lvN9aRjsdlHln5nV0TQZSkI7 QJDA== 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=5ruFEVyO79SQnSMFGfuOEJRLp4hBFibBwEBbyojXtlg=; b=NByVykgdnXkj5hTgSM6JxeEb7du9+YpIHMUzpGLZVh0cWuw1pYGAf2wBYsPTwBXV6b JZMiN03SImUkApjT7vsjC8KUI6gRixfEd9607Cw/dhuMN1xDnGmTcilG4lalj9yyXlUb LBA1GsqVL6UOiBF0ggZqrd1EbtEpZc2AfiATN5Lax2BUoEJRXKxX7+bduAsk+7siyUuc z1FrEGTqyWThUutkcsHBw/flwjahfyfib5pTCEqgCbYPgs/j6mPCVybidr3gp0x8IU9X HfdMKLpyaYe8nlq+3IqNys7kdxqNYyEtrF4STT58achxKl3qsxjIMHQKQ1soUGetd6sT a3tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="h/bAUfU3"; 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 s27si11202998edy.94.2021.06.27.09.30.54; Sun, 27 Jun 2021 09:30:55 -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="h/bAUfU3"; 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 S230315AbhF0QdS (ORCPT + 7 others); Sun, 27 Jun 2021 12:33:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:45330 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231272AbhF0QdR (ORCPT ); Sun, 27 Jun 2021 12:33:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id ED31F61AC0; Sun, 27 Jun 2021 16:30:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624811453; bh=e+5por/x6H1B9nYsnTR4ERVYy05CrPHFtL6c7o+YNK4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h/bAUfU3McnwuFfkS+tBojxE/uU5kvGKcYoYkaGTh+4kkdfagVLimG5ZReQRmGfVt DQIckka7uc0dooIqITCWts4Bhpqq/zdh/HGQIK3R5am5u6uhHKp/I16CnRFqcynaMQ vPBtlsTrob+U3usZtxJeORFPT3sM2VQxNFX/E/BLeNZl+JLsn+BbiA4oqmaHtIQLt3 1K1PQ5uUaXabz29gO887A1BKZQ0IxxbfPoRvK9Ef86eaWGuK9Sx1ONAlxMEC4k12ua IdllCrH+gckgxK22ngU+TXJjY8Y1UqEqNBKpxqNMspEoq0w4XWI6PY77k8rncMmbNK UjdcsTRfT/aEg== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron Subject: [PATCH 08/15] iio: dac: ad5624r: Fix incorrect handling of an optional regulator. Date: Sun, 27 Jun 2021 17:32:37 +0100 Message-Id: <20210627163244.1090296-9-jic23@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210627163244.1090296-1-jic23@kernel.org> References: <20210627163244.1090296-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron The naming of the regulator is problematic. VCC is usually a supply voltage whereas these devices have a separate VREF pin. Secondly, the regulator core might have provided a stub regulator if a real regulator wasn't provided. That would in turn have failed to provide a voltage when queried. So reality was that there was no way to use the internal reference. In order to avoid breaking any dts out in the wild, make sure to fallback to the original vcc naming if vref is not available. Signed-off-by: Jonathan Cameron --- drivers/iio/dac/ad5624r_spi.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) -- 2.32.0 Reported-by: kernel test robot Reported-by: kernel test robot diff --git a/drivers/iio/dac/ad5624r_spi.c b/drivers/iio/dac/ad5624r_spi.c index 9bde86982912..b4888c8c14a2 100644 --- a/drivers/iio/dac/ad5624r_spi.c +++ b/drivers/iio/dac/ad5624r_spi.c @@ -229,7 +229,7 @@ static int ad5624r_probe(struct spi_device *spi) if (!indio_dev) return -ENOMEM; st = iio_priv(indio_dev); - st->reg = devm_regulator_get(&spi->dev, "vcc"); + st->reg = devm_regulator_get_optional(&spi->dev, "vref"); if (!IS_ERR(st->reg)) { ret = regulator_enable(st->reg); if (ret) @@ -240,6 +240,22 @@ static int ad5624r_probe(struct spi_device *spi) goto error_disable_reg; voltage_uv = ret; + } else { + if (PTR_ERR(st->reg) != -ENODEV) { + return PTR_ERR(st->reg); + /* Backwards compatibility. This naming is not correct */ + st->reg = devm_regulator_get_optional(&spi->dev, "vcc"); + if (!IS_ERR(st->reg)) { + ret = regulator_enable(st->reg); + if (ret) + return ret; + + ret = regulator_get_voltage(st->reg); + if (ret < 0) + goto error_disable_reg; + + voltage_uv = ret; + } } spi_set_drvdata(spi, indio_dev); From patchwork Sun Jun 27 16:32:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 467815 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3283068jao; Sun, 27 Jun 2021 09:30:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTdXp7nz2enBpfFAzPUj4ZS7FxROm//c+1fsXZQ+5MkC0w2X4rHawRI3Wws9cy1awsJHD5 X-Received: by 2002:a05:6402:10c3:: with SMTP id p3mr25062252edu.175.1624811457774; Sun, 27 Jun 2021 09:30:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624811457; cv=none; d=google.com; s=arc-20160816; b=03UgBVsWZ5Ys2V84uLZPBnyn6xXhkwdnte4EKUTvbOQWwaIx+lxbedlK/CecYkdcgD Pb1vKHrZFFJOcxtysOHaQLImq/UqQkNzWV/v1z+aW6bSsYVmqDn0Jnw9J9WxHprxePGN QBGiKx8ygvRd9wrIFeTPQGI4tGpEOW6ePoXYh6GDKO40ueHXhcnApqKU1bvHRQL6pJS8 J35x7hFId1VHV+T4rxPi0kB8dkF0+OBIw9rnoivIw3rv9SIas34zE9UbaG6hH60wcmGM r8eidmJzUfnhbecqfm/tVBKUayJpRmro0ZDWMfTjCbrqKwdwRz9gsBQSrvAay8TDO6k1 WLSw== 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=17vg8QSE7rshcjdCQt5YJ6inEMuLMIN2CrKb8UDPqnE=; b=QQvw9AoevLvKscogvN9KAwuxK5HoGrPKZzugtDrV2GMQ7SEn4voARXhctcUlDFxI8J 5VCnVi5gKesdtc/M/r1WrEDlfKNdanvS5WBtELGgRc2SzqwcSpzi/txd0k16b2SfY7cA 4pjHlVW/Bo2dGSiImuOvYTTCOeALEcyoDacwnS7v3iXlXlEvqhIJbIvyRThsh/WdFHtm FnItUyeRfmP4dv7Zj9NWhEIjOWgg1l5jSOFdipCEGEvAvdSlopDof7KWVpQqV4yiKvi6 Sc1otYi1hmBsCf5dHUVxafld7SvNBpiTNiDD9o3cqun2gkQmuITeCeiNWZI56tlIqlp0 Tj9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dVU8rfx8; 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 s27si11202998edy.94.2021.06.27.09.30.57; Sun, 27 Jun 2021 09:30:57 -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=dVU8rfx8; 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 S231298AbhF0QdU (ORCPT + 7 others); Sun, 27 Jun 2021 12:33:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:45386 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231288AbhF0QdU (ORCPT ); Sun, 27 Jun 2021 12:33:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 68E3E619F1; Sun, 27 Jun 2021 16:30:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624811456; bh=b5DcIJGaJZtvQooeD30lASG5zHHRlCd4zNzKyFkCOvM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dVU8rfx8Pg9990qLiCR9o0isxszadpOKPLrppjE+9Lr6fDL7SH2tLC+URNAytYxfN vDSOfGGb5Ygf+sRjO7EZ7QDrlhu5RQnE47HrHJifJElvaH/lrDdNWCcq4bdvOcH5iw RNTAii/rjBdBck/7drG7lNvznhEZtXI4IDkz3ODu0js+h7JEGGmKXT08DS4T07j/js 1EAjxZIcDcfPP++A9jOxIY5hxgN69OfNO698+5F4DRbMdkN+E3UU7DeiwiQt8rSSwN Ex9uLLGtdJcEVuS1YEj9WQ9ZHqLFvyolep46wXakrsjmLBZHJ+hUq1NnpVP+S6Y5QQ JXFx0taBRl/bQ== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron Subject: [PATCH 09/15] dt-bindings: iio: dac: ad5624r: Add missing binding document Date: Sun, 27 Jun 2021 17:32:38 +0100 Message-Id: <20210627163244.1090296-10-jic23@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210627163244.1090296-1-jic23@kernel.org> References: <20210627163244.1090296-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Simple binding, with optional vref. Note that the Linux driver does support vcc-supply for historical reasons, but lets not let that get into any bindings that are checked going forwards. Hence I have deliberately not documented it. Signed-off-by: Jonathan Cameron --- .../bindings/iio/dac/adi,ad5624r.yaml | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) -- 2.32.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5624r.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5624r.yaml new file mode 100644 index 000000000000..330383b85eeb --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5624r.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ad5624r.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD5624r and similar DACs + +maintainers: + - Jonathan Cameron + +properties: + compatible: + enum: + - adi,ad5624r3 + - adi,ad5644r3 + - adi,ad5664r3 + - adi,ad5624r5 + - adi,ad5644r5 + - adi,ad5664r5 + + reg: + maxItems: 1 + + spi-max-frequency: true + + vref-supply: + description: If not present, internal reference will be used. + +additionalProperties: false + +required: + - compatible + - reg + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + dac@0 { + reg = <0>; + compatible = "adi,ad5624r3"; + vref-supply = <&vref>; + }; + }; +... From patchwork Sun Jun 27 16:32:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 467816 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3283140jao; Sun, 27 Jun 2021 09:31:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQgTYabXJvzyhJZDgcCt+Yp7DqJseTG2VO/mYyWla7sTEE4B//b2o5L757n+s6b/X5my9p X-Received: by 2002:a17:906:1796:: with SMTP id t22mr20057326eje.304.1624811464085; Sun, 27 Jun 2021 09:31:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624811464; cv=none; d=google.com; s=arc-20160816; b=QPAPpb9inRExMpVe9dxyOZ9JKaeBB23sU3uv9jDAkRHHhs2i1UjAuCcy5PhWkCogGB pUD+cEWfVrq8CpYZS9fNNLzoXqN85DtO6ulC1/Ch5djSdso+TfnMRbv7aBOk6FVZn/N+ joBANOhxN5ol7cIriHJGWX4DiVQjwT5roYd0gPTvR5CI3hsm7GzltuvWsHMYu5AsLj76 PQYrIqntEWZrj7d03HH8vt974ZGergHgxk8dih0XPUXS9E9MsvhGzRyliG8VQBE+yGcO MAAUIJ0MM6woY9wUWfa+TgzfnyYdccNV02wz2sM7lt81Br6yYBoUDU2PEdiraZQM1wYk bjUQ== 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=YVR2RLWA5AbifgVbY1w2piOeZIPtbWdDAvJNqHp0cMw=; b=MCk6y4DaVfJXjMOA9wHfqYflvdgnWNEaJ68uDriYo8xb/Az2q11eqV7lyjj685ooJQ VJofVk2fGCkjAR6gcnnMtJ+Yc1BbQADko0spLtu0Rf/S+2F1eGJr/EQMutlQ68tkcvXc e8FpPw9PzF2u2qKTBPJdJ0W47Wa1J3pE0aFCx92BIS+WPdd8wuicoubf2XR+lFmasSH+ I4oJ7c2QNJtqBZwPLW5mjCbBmICve7u1vcE+Nlpie7wXnBxbf/CYoMlQnvBJksQQZYK5 6OVrBvBGekVmzW3kOCmxFEcfh+Ev7gasJQooF3I2qosqgqwJ+rggr00iP+bmoL7/8QNf avZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gt31NFzk; 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 s27si11202998edy.94.2021.06.27.09.31.03; Sun, 27 Jun 2021 09:31: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=k20201202 header.b=gt31NFzk; 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 S231341AbhF0QdZ (ORCPT + 7 others); Sun, 27 Jun 2021 12:33:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:45432 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231335AbhF0QdW (ORCPT ); Sun, 27 Jun 2021 12:33:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C48A4619AD; Sun, 27 Jun 2021 16:30:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624811458; bh=UEasIvT43WJvGGnmc3s7yO7hCaHy5uC+Ko8xz+oHGhU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gt31NFzkm9LTrcXXfac8+XxgNka8wTHLLaS0iVi4Jqcse1OBcWzhPCbkwTqRc4Xeq JSqT008KDG9MBrnYVHAflsCl1es11KLbZzQ5Ku3FyeAx6ENzqzAZT+bWvl2hbh4zEC w+GwPxa45z48ucIq+ItLNG/YXT4VLUZrFtMrk3o2anwaM9NvHJblGXZI/MUJCEp/5i W5XZR/cIRBYpuvKKZBAgczcxWjTI+R/vVh0PSiFXot2nQY7OEmYaoBwIKZplwXxpzn n0O5gS+3ZRXKHmwerbQrasqtNmLHb1c7KrKOHdsl6Ulj0wKUqEk6IQT7fkOsBV0nfu c1mF4GJSGVeZw== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron Subject: [PATCH 10/15] dt-bindings: iio: dac: ad5686 and ad5696: Add missing binding document. Date: Sun, 27 Jun 2021 17:32:39 +0100 Message-Id: <20210627163244.1090296-11-jic23@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210627163244.1090296-1-jic23@kernel.org> References: <20210627163244.1090296-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron The use of vcc-supply for the reference voltage is unsual and should probably be deprecated as there is an explicit VREF pin on at least some of these parts. Signed-off-by: Jonathan Cameron --- .../bindings/iio/dac/adi,ad5686.yaml | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) -- 2.32.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5686.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5686.yaml new file mode 100644 index 000000000000..5c26441eae9f --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5686.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ad5686.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD5360 and similar DACs + +maintainers: + - Michael Hennerich + - Jonathan Cameron + +properties: + compatible: + oneOf: + - description: SPI devices + enum: + - adi,ad5310r + - adi,ad5672r + - adi,ad5674r + - adi,ad5676 + - adi,ad5676r + - adi,ad5679r + - adi,ad5681r + - adi,ad5682r + - adi,ad5683 + - adi,ad5683r + - adi,ad5684 + - adi,ad5684r + - adi,ad5685r + - adi,ad5686 + - adi,ad5686r + - description: I2C devices + enum: + - adi,ad5311r + - adi,ad5338r + - adi,ad5671r + - adi,ad5675r + - adi,ad5691r + - adi,ad5692r + - adi,ad5693 + - adi,ad5693r + - adi,ad5694 + - adi,ad5694r + - adi,ad5695r + - adi,ad5696 + - adi,ad5696r + + + reg: + maxItems: 1 + + vcc-supply: + description: If not supplied the internal reference is used. + + spi-max-frequency: true + +additionalProperties: false + +required: + - compatible + - reg + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + dac@0 { + reg = <0>; + compatible = "adi,ad5310r"; + vcc-supply = <&dac_vref0>; + }; + }; +... From patchwork Sun Jun 27 16:32:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 467817 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3283147jao; Sun, 27 Jun 2021 09:31:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzH3HhCP5UnfN+wH6CZB4/bj8e1lmkoDDxyk65xLNe81yrErOp4cbY/jtyXbP7HsJv2sSTP X-Received: by 2002:a17:907:170f:: with SMTP id le15mr20190583ejc.329.1624811464751; Sun, 27 Jun 2021 09:31:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624811464; cv=none; d=google.com; s=arc-20160816; b=rs3ZfB/QzAwWYN8CPo3MdyPG05MhbQz9qH6zE12TBEOis9BHvbmfkp2Wk9/HuKxAtv v1T1EO0/PtT4sZsSxMjKOkeJ9JlVsQzgVTlJWSnTyN65CaBEgNmxNWG4NVt5JmbZ03Qg HMDX0/g8UhNrwQj4hxijxuegL5deKOjVOtpS1XEfKbszikhfKcCwjfRuxiqZVqNY0SX8 k3ryjL/+uXOZ1OjEimgw2R8G/lWsgUGR5FDmVl91BuRC7JvlgxncpK/4H14dTcOkkwr4 U6A6XNUb6xhfbcxLIBCksprJXEeHVmOGLe+Z6cdaKr/EXyjjdeLw4xw75s/N4GUGZ0QO 5y6g== 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=A1HvOkJZ+BDMCulFU8PIIgYkv2BCXjz838M8DJjY7z8=; b=JZjYB+gQakaoE6LDn8oWG+rdsc/etjV8RaI/nfQD1TGoD5Pelk3h0y3SyglGpxNEr/ IMIIzFKbRIf8nhh8uigOpehAZVozJOkDK86HKnEqzyjx8d8uUgzBdJDB7S4V9Mo6rTnf dh04WMkgU4VGQwN5+Qa27uHRRIXsVqxlgHBmMDgsFVLG9pAo62f1MU6JbHaouv3BWmNa 4elm9qRAlF8qYF7Nbhp0bTG74L3kSOOjX5CR4VMJrbW/yEFhivIcIvoKzLi3xJQqkd3L tZzkWgfJ5yxaYtltDNRxVUIhVzoPOz5ETr5EgpM5vbVz1XXjyfSACTEKGyf8xLSR2FI0 rVaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eQQENEWr; 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 s27si11202998edy.94.2021.06.27.09.31.04; Sun, 27 Jun 2021 09:31: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=k20201202 header.b=eQQENEWr; 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 S231354AbhF0Qd1 (ORCPT + 7 others); Sun, 27 Jun 2021 12:33:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:45460 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231294AbhF0QdZ (ORCPT ); Sun, 27 Jun 2021 12:33:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5971761A2B; Sun, 27 Jun 2021 16:30:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624811461; bh=FRR0xYI09jli8iFHy0b+7kNgcpOOy9LtqHVGcsG5u5Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eQQENEWrbUm2VyPVFwbiV+8UE26vlOGqotR4ZcfnxHRLW7+72fLkA0sWwPuTLXzTY OJJH7x86FsmLd303xue4f5LlP0cfS+lNlnUZPUbn9dcj2hnTwNu92wjWjh6Fcx9Syq cEsft/h4AdKbzaeNHIM5mVThG80j73zQVNx56FL1nHnjRiciMY6Dj7mZPqmN/wmN2V KRVQqN1VD0BxmHIakrdZj8eXE5DoM/xbSGrczhwVgipfxqYxSp2mPWfs/FjhHppLtr Ehm0a37jnSB7Q0cKRxtfVOxiy6YI7R2Cg8/CsdiAoDjHA3t6pSlHBHYnqSaxeJkDUz 3ALxBuXvrifSw== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Ricardo Ribalda Subject: [PATCH 11/15] dt-bindings: iio: dac: ad5761: Add missing binding doc. Date: Sun, 27 Jun 2021 17:32:40 +0100 Message-Id: <20210627163244.1090296-12-jic23@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210627163244.1090296-1-jic23@kernel.org> References: <20210627163244.1090296-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Straight forward binding with vref optional for those part with internal regulators, but required for those without. Signed-off-by: Jonathan Cameron Cc: Ricardo Ribalda --- .../bindings/iio/dac/adi,ad5761.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) -- 2.32.0 Reviewed-by: Rob Herring Acked-by: Ricardo Ribalda diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5761.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5761.yaml new file mode 100644 index 000000000000..7f95a9ed55fe --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5761.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ad5761.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD5761 and similar DACs + +maintainers: + - Ricardo Ribalda + - Jonathan Cameron + +properties: + + compatible: + enum: + - adi,ad5721 + - adi,ad5721r + - adi,ad5761 + - adi,ad5761r + + reg: + maxItems: 1 + + spi-max-frequency: true + + vref-supply: + description: If not supplied, internal reference will be used. + +additionalProperties: false + +required: + - compatible + - reg + +allOf: + - if: + properties: + compatible: + contains: + enum: + - adi,ad5721 + - adi,ad5761 + then: + required: + - vref-supply + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + dac@0 { + compatible = "adi,ad5721"; + reg = <0>; + vref-supply = <&dac_vref>; + }; + }; +... From patchwork Sun Jun 27 16:32:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 467818 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3283161jao; Sun, 27 Jun 2021 09:31:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/QeTjjyEiHnjek1y5vlwQPro7+yclaNCWjUVQ+6XsL8T1ePwqIe7n13+cGxAQQ7KI+wqY X-Received: by 2002:a05:6402:b9e:: with SMTP id cf30mr27735609edb.47.1624811465699; Sun, 27 Jun 2021 09:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624811465; cv=none; d=google.com; s=arc-20160816; b=nst20S4zvNVA0tTBaPauoTCHnrMnFD8NjiXwuO6VBEnCCekQjBFxzsTbYHgS4e+6El OHwij8zGPRDOeV61hWSAFHftiWWzd4GQ9Ej5v81+MOvkm+o1HGmdtacnMdw752l1Ue0Z ijscYlCVusCZ80Jb4Gxs1sR+kQbU64PHHhMNRWcriR6kbNxPOBS0jyZyDZT+hzFKaoJs 5DC3PBdLIPfIq+1h8/sBzKuR4QMt2gVy0z5a5A5ekH/SH+LgbQUHEO3vt4XTuEuQevhk cBNt2oZoUtV3fRn/rcp/Cl96U2sjBwkvB46VqskFZV7OBw2T/F0UJqO1+R0MJcMHR4NX ctaQ== 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=zZoftIsU8I6zKOv8X/MmBzjKGDivzusldTJAQ0LflOw=; b=iVwQDz24xEBXefXYAHi80C2dY5MaLEim6pCC/d8z9TnW9k1+JU/5h6V+/Z/6JlOZOk nXvOkOXxSCnTXG8iouoMEBQvXAikzMY4hh4lGaaNrWkhHu5KDPaHx6foHoHvynhNF/hU AMSBzzIAF2Y7Tinp0F3YmjuGbfnyq+QpUbj4slRyHBoInGkUanPTrn+XwRGl66Tji9CO WL3aszCf0zRmSfrfs58vdcHzAFxXnv1VjQgaLmFWDsFXHz4tCQABY7hPAuuqnE0kTepI SgxN/9M5X0kZUcTn9JIzH3btHtMhNCgz3zCzJ5q7SzD9XFueKBsUcH8oAJaXFu9cpzS9 nF1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J+g+ItZm; 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 s27si11202998edy.94.2021.06.27.09.31.05; Sun, 27 Jun 2021 09:31:05 -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=J+g+ItZm; 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 S231294AbhF0Qd1 (ORCPT + 7 others); Sun, 27 Jun 2021 12:33:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:45492 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231364AbhF0Qd1 (ORCPT ); Sun, 27 Jun 2021 12:33:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D8419619EE; Sun, 27 Jun 2021 16:31:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624811463; bh=e0lfQMQ98H7nPRXlX+QiaZAYOsdTAbkWcxvEJVVK3Tg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J+g+ItZm/viYynCwdaonkswGZRcGVmiKp+MVXach+UeodcbX8vbP3JAplEfPthHqG MDloAwKnWPQERq31lo/lcmftAYUIP0oHxNAeX/jzZZE4zgo/CRUwrX6+VAj4HtOLfq 046PC59N6Y3UgRKPq3Eq7SRaicNzBq0AU47SIc4puwLAEaKr2XArqQNngdV+ruBIDd WtnHXqfmQxe6fAV83fmgdg+SYExKVEuVO3HRVf7btyxXd9BopkrBNhNV7JDN3bE4DC B6FWHILYIA9IX5VifHDG7TXBvwBAowtNXgDuE2t3i01BoNZlYDGJwNCu1hG70d+vhK XhQcX00T1FbCA== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Lars-Peter Clausen Subject: [PATCH 12/15] dt-bindings: iio: dac: adi, ad5764: Add missing binding document Date: Sun, 27 Jun 2021 17:32:41 +0100 Message-Id: <20210627163244.1090296-13-jic23@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210627163244.1090296-1-jic23@kernel.org> References: <20210627163244.1090296-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron This binding covers the ad5744, ad5744r, ad5764 and ad5764r DACs. Note that the driver currently assumes the internal reference is used for the r parts. The binding as defined relaxes this constraint. There is no support in the binding or driver for the two digital IO signals. I do not propose to add that until we have a means to test any such binding. Signed-off-by: Jonathan Cameron Cc: Lars-Peter Clausen --- .../bindings/iio/dac/adi,ad5764.yaml | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) -- 2.32.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5764.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5764.yaml new file mode 100644 index 000000000000..8e893d52bfb1 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5764.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ad5764.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD5744 and AD5764 DAC families + +maintainers: + - Lars-Peter Clausen + - Jonathan Cameron + +properties: + + compatible: + enum: + - adi,ad5744 + - adi,ad5744r + - adi,ad5764 + - adi,ad5764r + + reg: + maxItems: 1 + + spi-max-frequency: true + + vrefAB-supply: true + vrefCD-supply: true + +additionalProperties: false + +required: + - compatible + - reg + +allOf: + - if: + properties: + compatible: + contains: + enum: + - adi,ad5744 + - adi,ad5764 + then: + required: + - vrefAB-supply + - vrefCD-supply + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + dac@0 { + compatible = "adi,ad5744"; + reg = <0>; + vrefAB-supply = <&dac_vref>; + vrefCD-supply = <&dac_vref>; + }; + }; +... From patchwork Sun Jun 27 16:32:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 467819 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3283165jao; Sun, 27 Jun 2021 09:31:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytgs86p1sC+1INb2HosrAyn7A3yty4z1gOEkw9hVnlyRn85xpzKMHqsb60QXuNSQXZu/yK X-Received: by 2002:a17:906:5d0e:: with SMTP id g14mr3052181ejt.504.1624811466530; Sun, 27 Jun 2021 09:31:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624811466; cv=none; d=google.com; s=arc-20160816; b=lmlLNyCmMi2PCqIMwV+wFAWk9dwgtsARvoK7dIarmi2Ct/JILvjAfSTiLAQ3NQm9Qk 2yh880a+NsAn5z2rBKWRrDDoOe1v+zgju4QvqY9yvqgI80iE6nrk68dZZdQ8DVSeVtz5 TTP2xJzpScgYgpDCcO2YO96kdLZwvyYfhtUf2U9LZfc6AC7cgmZXy8N9dBO8enRvYKS/ mxDRLcfLL8nGCjlqVvM9GBASrYwbCMNVfcRlNWm0DywAeTQmcEvi94yfBtDsrMeRGwxs 4YYS0d80H2AIxQFueucRaUxtgaI+9x5g1jL6bxPcVlCBsYldifYktOxdh6PCALBTnNrP zxow== 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=2w368c/LxOFGO//KAsBNR4vvuS+8JKEaUw2SeF4lfLg=; b=mH2mRvBT8NFd7Qva1F9zbkrMzK8lTXq9Hd68NWxXooY0dJP0KN/myk0Bz0GRcitGq4 c1aXEAE4YVgf+PKWx2KDjcmGWoJtQu7snpFcGaHpRY2MIMqf4Lk5VHaysR7kf/7Zz6yD GYixJZoRYRbyz8jRxrmyeObM5uRPogjtPDlUir/CUrMYCEqI0DhUX/neGsvFcbZMKbZW giYIXuJv73IVVXhSWX4MVpwIgJ2+NNsD24HTtGzBXCZBe+QJ46C3DUMBdIQLm+48Xerc taLeaa/DUGJL09nA/RPeopMsxbnjPhYThf1DWFkosDort3SD1OvVdncHNsbAvUzcOjBX OsyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="jSIwj/3U"; 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 s27si11202998edy.94.2021.06.27.09.31.06; Sun, 27 Jun 2021 09:31:06 -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="jSIwj/3U"; 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 S231336AbhF0Qd3 (ORCPT + 7 others); Sun, 27 Jun 2021 12:33:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:45580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231339AbhF0Qd2 (ORCPT ); Sun, 27 Jun 2021 12:33:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A69D9619AD; Sun, 27 Jun 2021 16:31:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624811464; bh=Ksk17R4D3ghCvdxqXTL/5nJIgq88JtydCqN7MwYh3Ow=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jSIwj/3ULuFdX1bPE4S+8sOVBGTC60fQK0JQotcbBYVx3sXK3oj/L27ZTUwy/jMVp zWWS0ybl+yXbQdY4VfE6UEIEhaNp+luo/PEabD6UPCxnJVIAU2pfNHJ5sLfVjTc4/i kHRUv0bMoGpM84kHR0J6RSaxk5UL/b8G6IoK9IKZZt4qDssJ9CijyUViQkw4qbGpuk MwSOlES4XlzRaKuVPvb+FTWY2AdqkSR+fJ7vdbtTOwzSo5rCLgpXGQh7ac4D66mzsC G16kfKDgscC9l0pASWjICr1pl9QLN5n27M9mFK47mfa+z/D6dSuxQAHpGTLk8ehrfE ipD7sva2snEHg== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Michael Hennerich Subject: [PATCH 13/15] dt-bindings: iio: dac: adi, ad5791: Add missing bindings document Date: Sun, 27 Jun 2021 17:32:42 +0100 Message-Id: <20210627163244.1090296-14-jic23@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210627163244.1090296-1-jic23@kernel.org> References: <20210627163244.1090296-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Documenting existing bindings for this device. The Linux driver in theory 'works' without the two supplies that I have listed as required, but without a valid scale. As such I've documented it as required. Signed-off-by: Jonathan Cameron Cc: Michael Hennerich --- .../bindings/iio/dac/adi,ad5791.yaml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) -- 2.32.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5791.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5791.yaml new file mode 100644 index 000000000000..650d1ebdcec3 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5791.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ad5791.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD5791 and similar DACs + +maintainers: + - Michael Hennerich + - Jonathan Cameron + +properties: + + compatible: + enum: + - adi,ad5760 + - adi,ad5780 + - adi,ad5781 + - adi,ad5790 + - adi,ad5791 + + reg: + maxItems: 1 + + spi-max-frequency: true + + vdd-supply: true + vss-supply: true + +additionalProperties: false + +required: + - compatible + - reg + - vdd-supply + - vss-supply + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + dac@0 { + compatible = "adi,ad5791"; + reg = <0>; + vss-supply = <&dac_vss>; + vdd-supply = <&dac_vdd>; + }; + }; +... From patchwork Sun Jun 27 16:32:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 467820 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3283230jao; Sun, 27 Jun 2021 09:31:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw76zgXBL3ctbytokYXr5V5cSkASGIWhjs3/qfs4Kedg9IrkH/Fkmc5H262epgbEdRhgJ0Q X-Received: by 2002:aa7:dd57:: with SMTP id o23mr27592130edw.6.1624811471738; Sun, 27 Jun 2021 09:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624811471; cv=none; d=google.com; s=arc-20160816; b=uZLhNacdfJ5K/UYyk1GOcbNiXY4uIQTeIADtp+N0u48l/FntGr6WguluHiiC8Tuu9c h5Zn9h34cCd6Ut8p/zYvIXHWB8lBXTWvsZYvEfUvZru4WXyoBfYTWEr9mZCKs4vrJyJn w2PBg8wH1R14X0vW3wHZewXJyH0akGkirPuKtJEwXpG5/STB4MsW+PvV+iNTuWiGGlti vqq/I+dAIApH3goN94c96p3S09ghzEWAkkHjg//FoCKb+yE5n25NbgMuO3sQpHf9Vp3V 7UkbsSKRwrjQOohmgd6uu0azMrEZw+MScI6eaCA1dk9UKPSQ3cBZneyLSY7GsguIZ7IM a30g== 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=qoXg6WH2PYK5bSNfzEnrpiyCHA2rBhIQaa2ZvfLTsPU=; b=JPO1sIaL0g562zVR8yDu96mXyRfQvt/WpnXpjulTPkE9BqrI6ZxqzdInSwvaqBCWcN Hsf/ou6/6yzx9ukVD2JhlS1bQ4MTEgTnd5NO4w11gw5okEuNqgJxpYb1cB+ViYT7lFTc cnTSviqjN0CirUz5t7FyQjTDDwUmgeDx/E21CbdajHdI9SZSFxXcAB3tI8eYa2GW1o3R ZA9pM7+MoDEmj2+nGHzuhr7SHxZ0zwqd41gwpaynLuGSLY/OJlqy+tFoj+RyHiSbfkgm o4jdJf8bO48LD+6kdmNnsSq7XoNbBS0D+sNyEniAYs9AZu8qGCe1l4E5gRH8u5hoA//K j7aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G7iiCDkQ; 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 i7si7394646edc.0.2021.06.27.09.31.11; Sun, 27 Jun 2021 09:31:11 -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=G7iiCDkQ; 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 S231379AbhF0Qdc (ORCPT + 7 others); Sun, 27 Jun 2021 12:33:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:45644 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231339AbhF0Qda (ORCPT ); Sun, 27 Jun 2021 12:33:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 08F9E61A2D; Sun, 27 Jun 2021 16:31:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624811466; bh=528RYEkDvcb3g+na6HYClWgZj4+rl50+j9vJXJwl+qI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G7iiCDkQtad/Oxcko5cJudvr5ysnrHimatwbUuPZqbi3Ed3MUT7Of7WfON/OsQWzU /Z6+AafrHLseOUy0AsRC3Y9SZR/hFZOfg1IJvYVRG4bUFGJxyiWn/LOe9pnh/Dx9v/ hx1cHd49/BDijcrm409oWerfph9swzaO56S8XaPJ9otvdJTnrw0fdM+TJrhxGh/5KC H7ssqrCRlVohAW+TQQq7dRSbaWXLN5xk5ditq/z0Rjh+Kn7MidmfVtZQQMhNQ3cTw1 ctrYHZodV+gZEBEAOLtlLy0bwwKmyhSUgOYZWP7Kb8hSuHGj+sQUiiwsHlyTK/sOMW M9G9+1bRNHF3w== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Gwenhael Goavec-Merou Subject: [PATCH 14/15] dt-bindings: iio: dac: adi, ad8801: Add missing binding document. Date: Sun, 27 Jun 2021 17:32:43 +0100 Message-Id: <20210627163244.1090296-15-jic23@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210627163244.1090296-1-jic23@kernel.org> References: <20210627163244.1090296-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron This device was missing a binding document. Simple binding with the ad8803 requiring two both low and high references whilst the 8801 only has a high reference. Signed-off-by: Jonathan Cameron Cc: Gwenhael Goavec-Merou --- .../bindings/iio/dac/adi,ad8801.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) -- 2.32.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad8801.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad8801.yaml new file mode 100644 index 000000000000..6a3990a8d0ad --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad8801.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ad8801.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD8801 and AD8803 DACs + +maintainers: + - Jonathan Cameron + +properties: + + compatible: + enum: + - adi,ad8801 + - adi,ad8803 + + reg: + maxItems: 1 + + spi-max-frequency: true + + vrefh-supply: true + vrefl-supply: true + +additionalProperties: false + +required: + - compatible + - reg + - vrefh-supply + +allOf: + - if: + properties: + compatible: + contains: + const: adi,ad8803 + then: + required: + - vrefl-supply + else: + properties: + vrefl-supply: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + dac@0 { + compatible = "adi,ad8803"; + reg = <0>; + vrefl-supply = <&dac_vrefl>; + vrefh-supply = <&dac_vrefh>; + }; + }; +... From patchwork Sun Jun 27 16:32:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 467821 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3283235jao; Sun, 27 Jun 2021 09:31:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyasSAiTi2E528Az935p6uBXuHJhjKjTZ9JZkQ0RtBUy4w1dwchkYtiwgpqq80Jm++wSlIZ X-Received: by 2002:a17:906:1318:: with SMTP id w24mr20250704ejb.222.1624811472951; Sun, 27 Jun 2021 09:31:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624811472; cv=none; d=google.com; s=arc-20160816; b=mPVkC+3fduziuukrxsBGmvdp+wJcryLk2SkYA28dIf8uGexU2Ma9S0LbjLFWrpU9ss Y2/LEzhDQGf6+umiWjaRN/la+o0IRD4Uyi6QfPkqZTU+d4tU2bPuCYUBwvodKqSJiL+l NOq1ojEZdQx5gKXRGJotQ1ozAWraMmVjufiE8MC8YgXfJ8L1jr+r1JAAbExcnK+TvcAK UHUvkdUEoMl3AqWP5UcbAoZcgEEhiXfyWEhn7VD+G+B2qDpto/4eDwdBgNTCdeP2dWLx Uf4+uIoP2LZI3qj7JYxgZZ8Gf5f26VRdMrFckmJ8YjdDyl0Q8dN9bVEiDdePHqJEf+JT Xk0A== 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=+diOx/3fXd0q4BJ/Ql4cvO9Qmc3WsrTYlmbjKlGSJ1c=; b=pz8J83uhhBMJ4a6PepeBw7WVd3ThyDptxlbq54X3jbA7pA+8VttaXK8iayltX8R7Le EUEliZYjyIRhtD+gF0vQPTvarNwPUqEX+L9xbU2K/Xmp5YUmJJKjKZssEu7vUnL1T8N4 0ZFqTlNmmOZ4Loa99ClPw5izEYcrgU83sxQyPHPXjI5W6tqAcdVNATD9iDLAL+IJ6i9z x9WBl9xIXgmBQoSJax25oa8/P0OiD4gYfF2Ej3cWLp8qi5yjO7Pt9XxUgwGxDBz8Sq6i ulQczJTgJT3CHLcYnt+6scLitZbpxPO8b4ehApZdhJO7iY4ZaO2zqTLTaUHgGZKpB2E8 eU6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BtFTTEW5; 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 i7si7394646edc.0.2021.06.27.09.31.12; Sun, 27 Jun 2021 09:31:12 -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=BtFTTEW5; 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 S231339AbhF0Qdf (ORCPT + 7 others); Sun, 27 Jun 2021 12:33:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:45700 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231350AbhF0Qde (ORCPT ); Sun, 27 Jun 2021 12:33:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8921F619AD; Sun, 27 Jun 2021 16:31:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624811469; bh=58MyanpF+CguHFikUqTuPVvkHhFLPL6cRoRjkZwfOd4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BtFTTEW5llOifaWFZNm4NgmVEXqpcXf2lfSNKsqdKhAxdZCdLXqO7vvawkGRUREiM QMJvnI+/PsYBuMa/bCpA+rZmFTIsTvU8tphI/sPGrTlP1IYXvRFUynsig09JBTSky3 A1kGkjquMWKptFvN+CrPcFgzroZ6NDXuxA/kY8+d2gKJuMZi94njRKnHYzkV6owvyA 3tc8bM35cPviBMuEAXtPn1MsgIS7ZbxwW9LLxkIQSh3baDQrl6MgKjFgWX7bIlzZIh FB03htJ4/vtmZd9K7jCh7Gcbr+XZD3SaaO6M3T/m+wQdWc92Cqftzvj61L7VFO/cBe Qiq7G4PXRjcRg== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Michael Welling Subject: [PATCH 15/15] dt-bindings: iio: dac: microchip, mcp4922: Add missing binding document Date: Sun, 27 Jun 2021 17:32:44 +0100 Message-Id: <20210627163244.1090296-16-jic23@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210627163244.1090296-1-jic23@kernel.org> References: <20210627163244.1090296-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Simple binding for this family of microchip DACs. Signed-off-by: Jonathan Cameron Cc: Michael Welling --- .../bindings/iio/dac/microchip,mcp4922.yaml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) -- 2.32.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/dac/microchip,mcp4922.yaml b/Documentation/devicetree/bindings/iio/dac/microchip,mcp4922.yaml new file mode 100644 index 000000000000..12a14b3f36cb --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/microchip,mcp4922.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/microchip,mcp4922.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip MCP4902, MCP4912 and MPC4922 dual output SPI DACs + +maintainers: + - Jonathan Cameron + - Michael Welling + +properties: + compatible: + enum: + - microchip,mcp4902 + - microchip,mcp4912 + - microchip,mcp4922 + + reg: + maxItems: 1 + + spi-max-frequency: true + + vref-supply: true + +additionalProperties: false + +required: + - compatible + - reg + - vref-supply + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + dac@0 { + compatible = "microchip,mcp4912"; + reg = <0>; + vref-supply = <&dac_vref>; + }; + }; +...