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