From patchwork Sat Oct 31 13:41:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320082 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268529ilc; Sat, 31 Oct 2020 06:44:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9HQtKYhcYAeiO7IKNvZ2V6pXIXTUDHjZVa2R5F7t1nuhBfCuMV0sW4OHHJH58vzIcSBiQ X-Received: by 2002:a50:d987:: with SMTP id w7mr7620638edj.113.1604151855160; Sat, 31 Oct 2020 06:44:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151855; cv=none; d=google.com; s=arc-20160816; b=m11mqjPQ9ObuKP+C+Wn5DQtIEC91wBuOo56YwEL2jh10/DgxCqypxQk5O9ghQYij2N 59vOp+ui3Hv6VlMmOpohiWgDm+kutWbrxUbCU6ZHv1tSYQ7xWqagFK1EY+HJCYO7A1xC hmWhLVPCE0JzUm7qOenuuja8bROC4eVtMOFekjFDKZpEEob/psKDq/UyQZd0YWgQMZQg 8bgZTFRljpmbKkiEJQbBxXv8U13eAHu8r9bUP36DL264ML9dcZgT/PSfmTlSH1oEu/+l iumtQ/dPqLnx+cuWROtMJNpg8QolAJpOWS9eqbpY+wHODVKTHRcVMpBblQs2RziCmJdU BE5g== 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=4fyosaaAad20ix+04TvqGzWN0rzg6K/7E/VVpBgdPSM=; b=N26q9ncVQnI8qKVbY01waMM9C6q+c5D+LH2fK5yHtk5qP226MIvS3wa6dE1RUOD2Ky yVSc/M3wLQW9W2rtx8KXWgNrHC/7IkjVTn7NHSqPJiM6y7RUL5hQTdFma5cnjiUN+oAM HtZK4JHow/8cVj8JhHOYoWdMSXWx8q2OYmnYGHvEJl8LQxXWEzAoFQo/urVupPtSEp7M 4zCxHcihDg4ShkOTYwMYefVQyaTOo2UJIbG57bOM2WmzlFSL/HRa7w+ehgMLrVII6VR4 J4zvEIUOejfZBQfA+kDWMfkxHrAhXvlgvYS9MScu0JhVRwNdpSNScOdmsaywq+OaCc0L 9TMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MgpO95tw; 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 h25si6243872ejc.209.2020.10.31.06.44.15; Sat, 31 Oct 2020 06:44:15 -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=default header.b=MgpO95tw; 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 S1727743AbgJaNoO (ORCPT + 6 others); Sat, 31 Oct 2020 09:44:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:43374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727692AbgJaNoN (ORCPT ); Sat, 31 Oct 2020 09:44:13 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1EA7520723; Sat, 31 Oct 2020 13:44:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151853; bh=f0ljlD9NVU/ipOsXMONXzDvwaPlKWYj1V0G7XAPLgd0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MgpO95tweP+8YOpLANRlPWn8e1ltZepqAPc6gqzrgWbf91QA6oAj8OwnL5KI0DN5C 5+L0YgkG88dkMf6zZsHdVn64SgmAOZKcFLaJkf/WLu+X52Uq5S2yDvBozMAIV+OzmB ehXoqvOxGvjvwp32wBhAxCnVcGPYmtikvuaPO1TQ= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Philippe Reynes Subject: [PATCH v2 21/29] dt-bindings:iio:dac:maxim,max5821 yaml conversion Date: Sat, 31 Oct 2020 13:41:02 +0000 Message-Id: <20201031134110.724233-22-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Simple txt to yaml conversion for this binding description. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Cc: Philippe Reynes --- .../devicetree/bindings/iio/dac/max5821.txt | 14 ------ .../bindings/iio/dac/maxim,max5821.yaml | 44 +++++++++++++++++++ 2 files changed, 44 insertions(+), 14 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/dac/max5821.txt b/Documentation/devicetree/bindings/iio/dac/max5821.txt deleted file mode 100644 index 54276ce8c971..000000000000 --- a/Documentation/devicetree/bindings/iio/dac/max5821.txt +++ /dev/null @@ -1,14 +0,0 @@ -Maxim max5821 DAC device driver - -Required properties: - - compatible: Must be "maxim,max5821" - - reg: Should contain the DAC I2C address - - vref-supply: Phandle to the vref power supply - -Example: - - max5821@38 { - compatible = "maxim,max5821"; - reg = <0x38>; - vref-supply = <®_max5821>; - }; diff --git a/Documentation/devicetree/bindings/iio/dac/maxim,max5821.yaml b/Documentation/devicetree/bindings/iio/dac/maxim,max5821.yaml new file mode 100644 index 000000000000..c43fb5f3f8ac --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/maxim,max5821.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/maxim,max5821.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim max5821 dual 10-bit DAC + +maintainers: + - Philippe Reynes + +description: | + Datasheet publicly available at: + https://datasheets.maximintegrated.com/en/ds/MAX5821.pdf + +properties: + compatible: + const: maxim,max5821 + + reg: + maxItems: 1 + + vref-supply: true + +required: + - compatible + - reg + - vref-supply + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + dac@38 { + compatible = "maxim,max5821"; + reg = <0x38>; + vref-supply = <®_max5821>; + }; + }; +...