From patchwork Sun Oct 11 17:07:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11830985 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 52BC2109B for ; Sun, 11 Oct 2020 17:10:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3B9E520782 for ; Sun, 11 Oct 2020 17:10:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602436226; bh=ob9pi5WJZCE4xCuL8Z8A7qnI9d86EjfPSiRpQOwLnVo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=0zekHLQZ2H7JC+lN3st3df24ndvrN1YXJ3di4mYYwRW/x9iZv8dpIrQ/dd57v3fKU ggOb9ZEfU2MDZtwHD6bp8MYRdOR6Vi7QevW8mcDLOhdWYCcgz5qCyTjuKOPc2ZP+X5 wBOph5JOPIZaeH2aULe6Vd3Aof2tnWu9ZBlAXPgU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388233AbgJKRKZ (ORCPT ); Sun, 11 Oct 2020 13:10:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:51938 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387984AbgJKRKZ (ORCPT ); Sun, 11 Oct 2020 13:10:25 -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 B43122222A; Sun, 11 Oct 2020 17:10:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602436225; bh=ob9pi5WJZCE4xCuL8Z8A7qnI9d86EjfPSiRpQOwLnVo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Byt3fxGsROs0M50kqTP+q5eAsEmO651DbYGCMiMRDlGQJcOZEgDPpriEPDcjpt80/ WGBjYXluG5Vr80X8OAKYiY/iMukJ63hg0t0rk90gKfmTSdncbKtfJfuZ3zbZ3RHluO 7/lZE2819wPnEHzwDTeTVOHv858XXBlHAzdufUVQ= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring Cc: Jonathan Cameron , "Ismail H . Kose" , "Ismail H . Kose" Subject: [PATCH 18/29] dt-bindings:iio:dac:maxim,ds4424 yaml conversion Date: Sun, 11 Oct 2020 18:07:38 +0100 Message-Id: <20201011170749.243680-19-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201011170749.243680-1-jic23@kernel.org> References: <20201011170749.243680-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Simple conversion of this straight forward binding. Signed-off-by: Jonathan Cameron Cc: Ismail H. Kose Cc: Ismail H. Kose --- .../devicetree/bindings/iio/dac/ds4424.txt | 20 --------- .../bindings/iio/dac/maxim,ds4424.yaml | 45 +++++++++++++++++++ 2 files changed, 45 insertions(+), 20 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/dac/ds4424.txt b/Documentation/devicetree/bindings/iio/dac/ds4424.txt deleted file mode 100644 index eaebbf8dab40..000000000000 --- a/Documentation/devicetree/bindings/iio/dac/ds4424.txt +++ /dev/null @@ -1,20 +0,0 @@ -Maxim Integrated DS4422/DS4424 7-bit Sink/Source Current DAC Device Driver - -Datasheet publicly available at: -https://datasheets.maximintegrated.com/en/ds/DS4422-DS4424.pdf - -Required properties: - - compatible: Should be one of - maxim,ds4422 - maxim,ds4424 - - reg: Should contain the DAC I2C address - -Optional properties: - - vcc-supply: Power supply is optional. If not defined, driver will ignore it. - -Example: - ds4224@10 { - compatible = "maxim,ds4424"; - reg = <0x10>; /* When A0, A1 pins are ground */ - vcc-supply = <&vcc_3v3>; - }; diff --git a/Documentation/devicetree/bindings/iio/dac/maxim,ds4424.yaml b/Documentation/devicetree/bindings/iio/dac/maxim,ds4424.yaml new file mode 100644 index 000000000000..91661079d7ea --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/maxim,ds4424.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/dac/maxim,ds4424.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim Integrated DS4422/DS4424 7-bit Sink/Source Current DAC + +maintainers: + - Ismail H. Kose + +description: | + Datasheet publicly available at: + https://datasheets.maximintegrated.com/en/ds/DS4422-DS4424.pdf + +properties: + compatible: + enum: + - maxim,ds4422 + - maxim,ds4424 + + reg: + maxItems: 1 + + vcc-supply: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + dac@10 { + compatible = "maxim,ds4424"; + reg = <0x10>; /* When A0, A1 pins are ground */ + vcc-supply = <&vcc_3v3>; + }; + }; +...