From patchwork Wed Sep 9 17:59:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 249533 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp56722ilk; Wed, 9 Sep 2020 11:05:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNgbnMb4RAgYTA8YXlVVomTCsGKMfsQrkB5+dMTXWTQ2SVqrkCFyiNpmULz2oD7yX1kltC X-Received: by 2002:a05:6402:2c7:: with SMTP id b7mr5581944edx.125.1599674719608; Wed, 09 Sep 2020 11:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599674719; cv=none; d=google.com; s=arc-20160816; b=YsJ1me1nZehG3qH+LcMKiap0QFBmqinS25O3guW0mNY67vw4KRuYP5hjGbTOJ5sPFe 33ieB4ntlFxOltGlKwk/efItUCmmVUKdjvAMl+tRfpjj+K9a026KSfiq6OAVe/37/u+k AMAYkV49o6qN1PoXid4Zayh+zALXQbUaTAx1A0/wRNePEhhWMqUL9eU0oPXVaSZxlNba KmKKRwMEoAnZB7dGMkjs0QL6ufSXxu9d3LpqzGuSoNStdpQklsdNtve9BFvecPQW/XOC 20UVzuEjNELMRZsYQ9dPQhOIi92oYzSJ2ogbSN+lWgGRRqsqVPEJcR0LhzA+Trm/cd4T WG5w== 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=gVOwZWONYfVUyjerRn2Ls+12GrXsFbwf6YHvU6+QUUU=; b=qt4Tb9iXoiKQGihfovUBDiZigF1WiRrDcwb75T3b4NLqWcfYXAeExnkz8qr0zCjtPK ft51FCw+Ru+XMvvVbA5fWoUgrO8XRCsj4u4n/vcAYzeDAC9RuGq0q1gBC5MV28j73G2A gSgyUJvIpqcbFniBRAOxEWwxEWot38Xpd22UztVH4S5QkEARvHKk3Nu0dogrxI/VsQSO 2kL9q0OR3lH9k2HOyhh4IXIbWV8M2p+eJhVJymw08FN69Th8NH5YWWRPSs2Gw1vlcIVH TNPHhHHV+isprgllFrqYQGEZ1v3/J1propNfIldT199t95EOt7fXuOy0D8RQTkilobFk XP9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mgqPjG+D; 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 m3si1923698ejk.485.2020.09.09.11.05.19; Wed, 09 Sep 2020 11:05:19 -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=mgqPjG+D; 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 S1729529AbgIISE7 (ORCPT + 6 others); Wed, 9 Sep 2020 14:04:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:59374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727055AbgIISCf (ORCPT ); Wed, 9 Sep 2020 14:02:35 -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 EB14D21D91; Wed, 9 Sep 2020 18:02:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599674555; bh=E38bXaztWbprGXLGB3ZptLRYv4BC3A7eIgpDTMmcQ14=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mgqPjG+D69xI2ciYzYhieqhVli2zRwhIqutPsrb8+JT9dn5UNOeLdxs1gv+ROAmC8 JvMxT4kD5jiInho7lL+WtUC/ofn/C3L7ynMTCmyUuzjywfh1CchfBaZ+OYY6A4xoS7 dsYNZ53mhrTZn7M6OncnK7NxT7IrzA0JcmHIHCxA= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Gregory Clement Subject: [PATCH v2 10/20] dt-bindings:iio:adc:lpc3220-adc yaml conversion Date: Wed, 9 Sep 2020 18:59:36 +0100 Message-Id: <20200909175946.395313-11-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 Renamed to remove the wild cards. These go wrong far too often so in general preferred to use the name of a specific part. As this binding only provides one compatible, I went with that. Signed-off-by: Jonathan Cameron Cc: Gregory Clement --- .../bindings/iio/adc/lpc32xx-adc.txt | 21 -------- .../bindings/iio/adc/nxp,lpc3220-adc.yaml | 50 +++++++++++++++++++ 2 files changed, 50 insertions(+), 21 deletions(-) -- 2.28.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/lpc32xx-adc.txt b/Documentation/devicetree/bindings/iio/adc/lpc32xx-adc.txt deleted file mode 100644 index 3a1bc669bd51..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/lpc32xx-adc.txt +++ /dev/null @@ -1,21 +0,0 @@ -* NXP LPC32xx SoC ADC controller - -Required properties: -- compatible: must be "nxp,lpc3220-adc" -- reg: physical base address of the controller and length of memory mapped - region. -- interrupts: The ADC interrupt - -Optional: - - vref-supply: The regulator supply ADC reference voltage, optional - for legacy reason, but highly encouraging to us in new device tree - -Example: - - adc@40048000 { - compatible = "nxp,lpc3220-adc"; - reg = <0x40048000 0x1000>; - interrupt-parent = <&mic>; - interrupts = <39 0>; - vref-supply = <&vcc>; - }; diff --git a/Documentation/devicetree/bindings/iio/adc/nxp,lpc3220-adc.yaml b/Documentation/devicetree/bindings/iio/adc/nxp,lpc3220-adc.yaml new file mode 100644 index 000000000000..2c5032be83bd --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/nxp,lpc3220-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/nxp,lpc3220-adc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP LPC3220 SoC ADC controller + +maintainers: + - Gregory Clement + +description: + This hardware block has been used on several LPC32XX SoCs. + +properties: + compatible: + const: nxp,lpc3220-adc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + vref-supply: true + + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + soc { + #address-cells = <1>; + #size-cells = <1>; + adc@40048000 { + compatible = "nxp,lpc3220-adc"; + reg = <0x40048000 0x1000>; + interrupt-parent = <&mic>; + interrupts = <39 0>; + vref-supply = <&vcc>; + }; + }; +...