From patchwork Sat Sep 5 17:29:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 249161 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp2420666ilg; Sat, 5 Sep 2020 10:32:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhBwpDMoe0hwOb3Rr5HCr/YSevTKCoJ+AaQZoKRKcuNwtEZCWzayvSLqmX2zyNc3UioVcR X-Received: by 2002:aa7:cf0e:: with SMTP id a14mr14597181edy.81.1599327162770; Sat, 05 Sep 2020 10:32:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599327162; cv=none; d=google.com; s=arc-20160816; b=F4FK/wR5RB3nxTEMeaxgAjn1NGSrE35njcaVcLbOe/VXqWSA6vKW5zbrkVQEj8uC2B QvT0FWDyHj0uiEa7pt39Y0sj9Jw/6miylNJd2XRKHn4x77u0GjRvrKVQIIoT90UaTCIg nIdEivfixm7QrYmE2M4mjNjnjI8oEzxL0z1nH6Zx1rMlS0u4UzTp8Pz05P58Wl3Nvgn5 l47sdkGlNwcRLyrK69VkoU+YIimbJKX5pxxafocqx9MY+kPdoV6BpxSrQWSvIuCswkH+ eigbLd3xjoEfxhgOqR4wLgteskaXtMsE64T7HfiaoJxt0zxB6wilEnOyYSe89oVPwkIb 79WQ== 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=UtsEeBMZ/76u1KiESo6nXWbN/20yqbbQGzirKUsBFNY=; b=yoR8UU+cVG6Ms5pwrovD10hWLFCdoRor9wqzu1f8I0LVZoWwukPVsWb9caPTUin9od /7Myfq4wMQa33cukxoLn09sZ/gEnwbKKCol9y+TIn5e6vuz2tfvjTp5RVJQTVdbQMw+z 5xF3KfwSHPCOOUja3A6VdIhI1Zz3XmRrtprFRZjuCNDQFUT86EHAWih7A4DL13ObxQQR zMmBMDAQxfKGVgLTHIPIP9NKudr/Tr5FXjQuK6u3yujYQoy82ltsLbXdfwu9P+4VaRlq ubHJXRKerbaYuW8dbXn98UoGL/QTFKxmlY0GVp87S0UZQnWSSrKsX0A3ONJXi3SDr1sg oiWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Kj1MdPJQ; 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 u17si5687486ejk.29.2020.09.05.10.32.42; Sat, 05 Sep 2020 10:32: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=Kj1MdPJQ; 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 S1728103AbgIERci (ORCPT + 6 others); Sat, 5 Sep 2020 13:32:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:60202 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728042AbgIERc3 (ORCPT ); Sat, 5 Sep 2020 13:32:29 -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 BD406208DB; Sat, 5 Sep 2020 17:32:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599327148; bh=InoOPER+dfdK3R3/ShfHnrpVuku/J1rJIDnlIxp0e60=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kj1MdPJQcZxTjbbi8FQUUid/I/SpkKZg1jt/ucLSNsE8WLXoBF+Ux8vmaF2vts9a3 FLfxLwd/l01tqMdIFOuI2bnjMErMfv6KqJhJPPNWji+hcdo1rICd09/S98YfwB11Ne ICCvmYStydYWOTrDS0byhATbH4Knuu34Va2uQGYs= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Sebastian Reichel Subject: [PATCH 02/20] dt-bindings:iio:adc:ti,twl4030-madc yaml conversion Date: Sat, 5 Sep 2020 18:29:46 +0100 Message-Id: <20200905173004.216081-3-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200905173004.216081-1-jic23@kernel.org> References: <20200905173004.216081-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 Cc: 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 Acked-by: Sebastian Reichel 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>; - }; -};