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