From patchwork Sun Jun 27 16:32:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 467818 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3283161jao; Sun, 27 Jun 2021 09:31:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/QeTjjyEiHnjek1y5vlwQPro7+yclaNCWjUVQ+6XsL8T1ePwqIe7n13+cGxAQQ7KI+wqY X-Received: by 2002:a05:6402:b9e:: with SMTP id cf30mr27735609edb.47.1624811465699; Sun, 27 Jun 2021 09:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624811465; cv=none; d=google.com; s=arc-20160816; b=nst20S4zvNVA0tTBaPauoTCHnrMnFD8NjiXwuO6VBEnCCekQjBFxzsTbYHgS4e+6El OHwij8zGPRDOeV61hWSAFHftiWWzd4GQ9Ej5v81+MOvkm+o1HGmdtacnMdw752l1Ue0Z ijscYlCVusCZ80Jb4Gxs1sR+kQbU64PHHhMNRWcriR6kbNxPOBS0jyZyDZT+hzFKaoJs 5DC3PBdLIPfIq+1h8/sBzKuR4QMt2gVy0z5a5A5ekH/SH+LgbQUHEO3vt4XTuEuQevhk cBNt2oZoUtV3fRn/rcp/Cl96U2sjBwkvB46VqskFZV7OBw2T/F0UJqO1+R0MJcMHR4NX ctaQ== 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=zZoftIsU8I6zKOv8X/MmBzjKGDivzusldTJAQ0LflOw=; b=iVwQDz24xEBXefXYAHi80C2dY5MaLEim6pCC/d8z9TnW9k1+JU/5h6V+/Z/6JlOZOk nXvOkOXxSCnTXG8iouoMEBQvXAikzMY4hh4lGaaNrWkhHu5KDPaHx6foHoHvynhNF/hU AMSBzzIAF2Y7Tinp0F3YmjuGbfnyq+QpUbj4slRyHBoInGkUanPTrn+XwRGl66Tji9CO WL3aszCf0zRmSfrfs58vdcHzAFxXnv1VjQgaLmFWDsFXHz4tCQABY7hPAuuqnE0kTepI SgxN/9M5X0kZUcTn9JIzH3btHtMhNCgz3zCzJ5q7SzD9XFueKBsUcH8oAJaXFu9cpzS9 nF1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J+g+ItZm; 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.05; Sun, 27 Jun 2021 09:31:05 -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=J+g+ItZm; 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 S231294AbhF0Qd1 (ORCPT + 7 others); Sun, 27 Jun 2021 12:33:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:45492 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231364AbhF0Qd1 (ORCPT ); Sun, 27 Jun 2021 12:33:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D8419619EE; Sun, 27 Jun 2021 16:31:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624811463; bh=e0lfQMQ98H7nPRXlX+QiaZAYOsdTAbkWcxvEJVVK3Tg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J+g+ItZm/viYynCwdaonkswGZRcGVmiKp+MVXach+UeodcbX8vbP3JAplEfPthHqG MDloAwKnWPQERq31lo/lcmftAYUIP0oHxNAeX/jzZZE4zgo/CRUwrX6+VAj4HtOLfq 046PC59N6Y3UgRKPq3Eq7SRaicNzBq0AU47SIc4puwLAEaKr2XArqQNngdV+ruBIDd WtnHXqfmQxe6fAV83fmgdg+SYExKVEuVO3HRVf7btyxXd9BopkrBNhNV7JDN3bE4DC B6FWHILYIA9IX5VifHDG7TXBvwBAowtNXgDuE2t3i01BoNZlYDGJwNCu1hG70d+vhK XhQcX00T1FbCA== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Lars-Peter Clausen Subject: [PATCH 12/15] dt-bindings: iio: dac: adi, ad5764: Add missing binding document Date: Sun, 27 Jun 2021 17:32:41 +0100 Message-Id: <20210627163244.1090296-13-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 binding covers the ad5744, ad5744r, ad5764 and ad5764r DACs. Note that the driver currently assumes the internal reference is used for the r parts. The binding as defined relaxes this constraint. There is no support in the binding or driver for the two digital IO signals. I do not propose to add that until we have a means to test any such binding. Signed-off-by: Jonathan Cameron Cc: Lars-Peter Clausen --- .../bindings/iio/dac/adi,ad5764.yaml | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) -- 2.32.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5764.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5764.yaml new file mode 100644 index 000000000000..8e893d52bfb1 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5764.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ad5764.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD5744 and AD5764 DAC families + +maintainers: + - Lars-Peter Clausen + - Jonathan Cameron + +properties: + + compatible: + enum: + - adi,ad5744 + - adi,ad5744r + - adi,ad5764 + - adi,ad5764r + + reg: + maxItems: 1 + + spi-max-frequency: true + + vrefAB-supply: true + vrefCD-supply: true + +additionalProperties: false + +required: + - compatible + - reg + +allOf: + - if: + properties: + compatible: + contains: + enum: + - adi,ad5744 + - adi,ad5764 + then: + required: + - vrefAB-supply + - vrefCD-supply + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + dac@0 { + compatible = "adi,ad5744"; + reg = <0>; + vrefAB-supply = <&dac_vref>; + vrefCD-supply = <&dac_vref>; + }; + }; +...