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