From patchwork Wed Sep 9 17:59:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 249531 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp56635ilk; Wed, 9 Sep 2020 11:05:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2/18w9eF/JAERknytjvOTCvDsu0dcPCHvlB3e5d9Rnss2R1uhA+ldl2mLIy05JK8QJzPx X-Received: by 2002:a05:6402:b1a:: with SMTP id bm26mr5345519edb.209.1599674711950; Wed, 09 Sep 2020 11:05:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599674711; cv=none; d=google.com; s=arc-20160816; b=ppXjUdl853005NLpy7/tZdUFogfN95kGuDh5ZwLs2KyRBJp4w8Re0Fk8E/GJYW9Gy4 Q0IIovYEHYq4SQFAgh+qmbK25F5FzUzBZaOaRNXSOY6vHw/YZzplF8iQbfQOACBJvzdd f/vc5kuMENW/3p4xcL3XDionL4gb3ckktOWP1rQFwp4UnMyz8XV1cq5xKQXv9iM3v2Dn UyVG6k7UqaflEPa/AKJDB+sWvY7yjKuvpWP+AniVsFBKZt7up4GsdRqRYEugCqPRhFrQ OqzJ9XrIwWJiwhsx/6alAvZm1zQx7il7PH3WEL1RiDJQRJI325DO/V1bLQ/mBvbH7OFC +24A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GuYLvPxsatq3DzvV8gCl34w4nugjf2wdNwGIsu1k8/g=; b=MC0L+xmeV6v9QZvuiAEFDiqPvdfZOrYuXbkVxEll7pjTOBZT0YrXszDavqHm43Mvoz vQ2p1+zWplX0IAf1gXfjxzyiBb2/iPM1W+tNcR4O2PF9zpGeyt/y0wPYrz3xwGBJteBU FpnPqpCgFXM/maIZzqYXGq+Y2PKr2xzj+8azSnZz2oUDOpbqPshKEBMOz5SjR6zKfgl4 4OjVQo+AkHFcoUDPVSIV5o55oNZzOOq4KgLMPgRbkZjKE/F3caQB0J6uBWLTBvEOjQES SPr07FAl/z7xOrB5QAUKtcvFlFfGbpSaetc498p8rnzTHhfrBlYhlEYlRHqwTsnvEcZw ZdmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xRkWpTqi; 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 n12si1886631ejx.468.2020.09.09.11.05.11; Wed, 09 Sep 2020 11:05:11 -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=xRkWpTqi; 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 S1730092AbgIISFB (ORCPT + 6 others); Wed, 9 Sep 2020 14:05:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:59278 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730131AbgIISC2 (ORCPT ); Wed, 9 Sep 2020 14:02:28 -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 183BA21D81; Wed, 9 Sep 2020 18:02:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599674547; bh=DtL49blLpMOtxEPIeBCeY9B+Ng8j1YbWXi+5wonoYrQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xRkWpTqiWwEXvenrjqLJB3d+M3eNQbG4QoA7MX5OjfgmLpHvVBEybWZlVs5xDQNgm QIqlHbL4yLT9UPHksGpjqwwBKHX5K0IK4H1GnV4eTdze8Hf1LR09B1KCgRzD48jF94 mZ3R0QTnjMiAlB6ZtDhjIm4YR2wgacWLFt5oX/D0= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Antoine Tenart Subject: [PATCH v2 05/20] dt-bindings:iio:adc:marvell, berlin2-adc yaml conversion Date: Wed, 9 Sep 2020 18:59:31 +0100 Message-Id: <20200909175946.395313-6-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200909175946.395313-1-jic23@kernel.org> References: <20200909175946.395313-1-jic23@kernel.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Part of a general move of IIO bindings over to yaml. Signed-off-by: Jonathan Cameron Cc: Antoine Tenart --- .../bindings/iio/adc/berlin2_adc.txt | 19 ------- .../bindings/iio/adc/marvell,berlin2-adc.yaml | 50 +++++++++++++++++++ 2 files changed, 50 insertions(+), 19 deletions(-) -- 2.28.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/berlin2_adc.txt b/Documentation/devicetree/bindings/iio/adc/berlin2_adc.txt deleted file mode 100644 index 908334c6b07f..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/berlin2_adc.txt +++ /dev/null @@ -1,19 +0,0 @@ -* Berlin Analog to Digital Converter (ADC) - -The Berlin ADC has 8 channels, with one connected to a temperature sensor. -It is part of the system controller register set. The ADC node should be a -sub-node of the system controller node. - -Required properties: -- compatible: must be "marvell,berlin2-adc" -- interrupts: the interrupts for the ADC and the temperature sensor -- interrupt-names: should be "adc" and "tsen" - -Example: - -adc: adc { - compatible = "marvell,berlin2-adc"; - interrupt-parent = <&sic>; - interrupts = <12>, <14>; - interrupt-names = "adc", "tsen"; -}; diff --git a/Documentation/devicetree/bindings/iio/adc/marvell,berlin2-adc.yaml b/Documentation/devicetree/bindings/iio/adc/marvell,berlin2-adc.yaml new file mode 100644 index 000000000000..b3b292fb1c59 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/marvell,berlin2-adc.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/marvell,berlin2-adc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Berlin 2 Analog to Digital Converter (ADC) + +maintainers: + - Antoine Tenart + +description: + The Berlin ADC has 8 channels, with one connected to a temperature sensor. + It is part of the system controller register set. The ADC node should be a + sub-node of the system controller node. + +properties: + compatible: + const: marvell,berlin2-adc + + interrupts: + minItems: 2 + maxItems: 2 + + interrupt-names: + items: + - const: adc + - const: tsen + + "#io-channel-cells": + const: 1 + +required: + - compatible + - interrupts + - interrupt-names + +additionalProperties: false + +examples: + - | + sysctrl { + adc { + compatible = "marvell,berlin2-adc"; + interrupt-parent = <&sic>; + interrupts = <12>, <14>; + interrupt-names = "adc", "tsen"; + }; + }; +...