From patchwork Sun Jun 27 16:32:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 467810 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3282939jao; Sun, 27 Jun 2021 09:30:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzn0+a28PaTUs7oivyaykAV558CpqPNV7EsuuEHVvaUhSnVgiLuHLzVV85Yyo+lzIO4g9np X-Received: by 2002:a05:6402:10c3:: with SMTP id p3mr25061493edu.175.1624811445196; Sun, 27 Jun 2021 09:30:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624811445; cv=none; d=google.com; s=arc-20160816; b=mFlc/Q2ZktFOkAqPj+GxUQXa0r1W5rUpdEbzwWR7uOGd/oML7mmi7BwNWUJfV8O3be PifQ/EIZjj7p0EBOcavn4qX67tQpuFHfgGIpPlDOAQUjS6oh0+xn3fuAgL2T/hIIMxtt 1tSepgeo9fDJ704AlcKLnNr95b+BpkQG+xRUtrZC3kzFhwtbEyzzhDJQdV7ROxe3ZYrB tW3ibKpZrP5i6b+z15nEMyzXA5aQTcFZi045pGVDo+h9uWYvhyvjz0Zk/d50+v/nWtFx q6IJ1HSq2fa90SIgJag/s2RN6KQTm5p8MQlbghGlwu3ycLaxG2jpfF9KGb2bVpJps1jk FvOQ== 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=NEMtuFMKUKEzbpfvaHTnO/Yy5VUqfauT5UeDLbGGwRk=; b=kBpIujnmVuZf+fhd0CVKFSDZy1RZBgtRtXNXi4Z8O5/NrJDJhCpnWTALE0YBPLvNJD E/uZ/j73D6GajgvzrKackLCDyGzkoxOzttBxmnGKqijZPlnDxeuu7FV4bVANs7ZeLNMa bmM2OMF/MyvT+Al9AlaDYHgV/ED+ItLrEgbC5eLJRwSxeSZpOT0PAuGfK0DJGCt+IU5p z+TL61CBbXk2B5N0Z+oHNSnpa7BnIovbmF9T2CoPDut1DDY1WPQhgwEU3/yF0u/3StWi eaIc/D74/f2G9L+EHI2yvuusWSqYFYzfZg6XL6F8A3U8VcQHntpv2L2PHhZnc65mCI53 o9aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dEYmZK9F; 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.45; Sun, 27 Jun 2021 09:30:45 -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=dEYmZK9F; 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 S231219AbhF0QdH (ORCPT + 7 others); Sun, 27 Jun 2021 12:33:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:45134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230315AbhF0QdH (ORCPT ); Sun, 27 Jun 2021 12:33:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2ECFE61A2D; Sun, 27 Jun 2021 16:30:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624811443; bh=PKZiWZrL67AoGNS72wk1iWGHrdyCelWkrNOmmL2JyZ8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dEYmZK9Fs2OXco0U7CS30fOxEzZ8gQwPfJpJFGu/vGS66mJZRDYDSi3YfQ/t9FTK7 Ggudc6Coavof6ZnvSUfCvg7hzW5eE1MedmR5ZLzIU4yOUemHIaSvd0b5+PpUy5VV8D yrJ0thh7cNwOI9S4UnhVCrgMO8Jro4pVHTDAWvPzJcBMseuAiQix4QdrISojo4gqYE uTpferjSBQB95JIVtofIovSkEiMRFy4JUpxdNJ2k1OfVovRXb2Hf61mQVsZH3bGtci GubseYuni+eImItL5Kgggf3c4D1MGojBhCTVpGX+ynj2rH6/AKKADHlC5kJsA2g/aN mSX5Ae5jXSwlg== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Lars-Peter Clausen Subject: [PATCH 04/15] dt-bindings: iio: dac: ad5380: Add missing binding document Date: Sun, 27 Jun 2021 17:32:33 +0100 Message-Id: <20210627163244.1090296-5-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 A simple binding for this particular DAC familly. Signed-off-by: Jonathan Cameron Cc: Lars-Peter Clausen --- .../bindings/iio/dac/adi,ad5380.yaml | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) -- 2.32.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5380.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5380.yaml new file mode 100644 index 000000000000..d599b418a020 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5380.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/adi,ad5380.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD5380 and similar DACs + +maintainers: + - Lars-Peter Clausen + - Jonathan Cameron + +description: | + DAC devices supporting both SPI and I2C interfaces. +properties: + compatible: + enum: + - adi,ad5380-3 + - adi,ad5380-5 + - adi,ad5381-3 + - adi,ad5381-5 + - adi,ad5382-3 + - adi,ad5382-5 + - adi,ad5383-3 + - adi,ad5383-5 + - adi,ad5384-3 + - adi,ad5384-5 + - adi,ad5390-3 + - adi,ad5390-5 + - adi,ad5391-3 + - adi,ad5391-5 + - adi,ad5392-3 + - adi,ad5392-5 + + reg: + maxItems: 1 + + vref-supply: + description: + If not supplied devices will use internal regulators. + + spi-max-frequency: true + +additionalProperties: false + +required: + - compatible + - reg + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + dac@0 { + reg = <0>; + compatible = "adi,ad5390-5"; + vref-supply = <&dacvref>; + }; + }; + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + dac@42 { + reg = <0x42>; + compatible = "adi,ad5380-3"; + }; + }; +...