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>; + }; + }; +...