From patchwork Wed Sep 9 17:59:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 249523 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp54586ilk; Wed, 9 Sep 2020 11:02:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcMXBjQNGmaRXfsz8UErPs9jlOYkeVsbCLwpZ7N9+LDNey6/ME9t0+xwWhwztCbcose/uW X-Received: by 2002:aa7:de82:: with SMTP id j2mr5614254edv.3.1599674562524; Wed, 09 Sep 2020 11:02:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599674562; cv=none; d=google.com; s=arc-20160816; b=AI2pvbAFInGbgpv/x8xsaW49zEI0yON9fSA4hMHAco1yFJMCqayOtYLev14pwB+epA btPdzPfIucWUpXmEPWe45aA1NMrQo3f3c+7xZhUHRaecFsvQU51XSRd5PhUDtAAdZdXr +ixxZVF223aElsgK/yq4dBqDx8raJ1sQggOtATbPLIXq/TBe0oPUmsI5qRlQcz7bHfrZ Mr37g+bXn4H+EQFrTX+Z7kC/fBXgUWfLNIm7+lemty+0OtoocG/hvm0Cqk3EMEdfp55j KxU5S/ttPtLbjooYs2yFLZnj9T3Z8dwetaGv82muPIjhaq5i8kUKedaDqumncvoy1Fas UZjw== 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=O76sH3UDfMkBe9TVy62fc6jh571VIGGi+5nEgGJSUr0=; b=kC1dKPRTBVMEmSDhqqr0zfOi7Qp12B7lZMayXWbjt2IuZMxbT+ulyC5GQwpThPoKQn yRtqqLqawExS3NIguGzEcEOXaBgXJ5+ZKCxOq0y1sf8ymWECPSJRKHOI9io89L+AzP8a +0VL2xLFgQ9Dfo789Zrd2A2gz59waAzgzq3Y9CFHfnJprTtNcbRRJSYxmKfGIe7/ffsm KW4QrINSH4goGVePfwIUCaIDxaRD1LUnlDjeI02cPhTLQ1E9Ae8LOnBJtxYoD3XjXIsi G3QBgPBttexKia6K66TJL9v16A5NyK/mUtZh27FfLNYghp7zzn/+Nxpp7jcBk+cMKlQ/ VULQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZdhAi+G7; 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 p9si1923789ejx.463.2020.09.09.11.02.42; Wed, 09 Sep 2020 11:02:42 -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=ZdhAi+G7; 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 S1730136AbgIISC2 (ORCPT + 6 others); Wed, 9 Sep 2020 14:02:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:59154 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730085AbgIISCX (ORCPT ); Wed, 9 Sep 2020 14:02:23 -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 2E02F21D81; Wed, 9 Sep 2020 18:02:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599674542; bh=ZN6NGpvZGo3yujVKM7KhX/BMrihZUNzLTI7BVhYHBnk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZdhAi+G7apVMEHq/aHkQhY6WTNO38epa3PIh8dB2HtRYRDN85CBHKfn3bkjNJqxL7 DisqU4yVAx3qT34ymXfM5XpsDTlgiiFKLIEsT2R3rcdu02Ku/IHwXHQ4yjgXm6n/nh VsDo9iysONmY9WKhXBscHYURZ6F62lQKqRSXN+Us= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Sebastian Reichel Subject: [PATCH v2 02/20] dt-bindings:iio:adc:ti, twl4030-madc yaml conversion Date: Wed, 9 Sep 2020 18:59:28 +0100 Message-Id: <20200909175946.395313-3-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 Conversion from txt to yaml as part of a general move of IIO bindings to the new format. Signed-off-by: Jonathan Cameron Acked-by: Sebastian Reichel --- .../bindings/iio/adc/ti,twl4030-madc.yaml | 48 +++++++++++++++++++ .../bindings/iio/adc/twl4030-madc.txt | 24 ---------- 2 files changed, 48 insertions(+), 24 deletions(-) -- 2.28.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/ti,twl4030-madc.yaml b/Documentation/devicetree/bindings/iio/adc/ti,twl4030-madc.yaml new file mode 100644 index 000000000000..6781ad2f0f51 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,twl4030-madc.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,twl4030-madc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MADC subsystem in the TWL4030 power module + +maintainers: + - Sebastian Reichel + +description: + The MADC subsystem in the TWL4030 consists of a 10-bit ADC + combined with a 16-input analog multiplexer. + +properties: + compatible: + const: ti,twl4030-madc + + interrupts: + maxItems: 1 + + ti,system-uses-second-madc-irq: + type: boolean + description: + Set if the second madc irq register should be used, which is intended + to be used by Co-Processors (e.g. a modem). + + "#io-channel-cells": + const: 1 + +required: + - compatible + - interrupts + - "#io-channel-cells" + +additionalProperties: false + +examples: + - | + twl { + madc { + compatible = "ti,twl4030-madc"; + interrupts = <3>; + #io-channel-cells = <1>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/adc/twl4030-madc.txt b/Documentation/devicetree/bindings/iio/adc/twl4030-madc.txt deleted file mode 100644 index 6bdd21404b57..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/twl4030-madc.txt +++ /dev/null @@ -1,24 +0,0 @@ -* TWL4030 Monitoring Analog to Digital Converter (MADC) - -The MADC subsystem in the TWL4030 consists of a 10-bit ADC -combined with a 16-input analog multiplexer. - -Required properties: - - compatible: Should contain "ti,twl4030-madc". - - interrupts: IRQ line for the MADC submodule. - - #io-channel-cells: Should be set to <1>. - -Optional properties: - - ti,system-uses-second-madc-irq: boolean, set if the second madc irq register - should be used, which is intended to be used - by Co-Processors (e.g. a modem). - -Example: - -&twl { - madc { - compatible = "ti,twl4030-madc"; - interrupts = <3>; - #io-channel-cells = <1>; - }; -};