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