From patchwork Sat Sep 5 17:29:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 249165 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp2420707ilg; Sat, 5 Sep 2020 10:32:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxVbPYY0ubEA/SucjfGlKHAijoY6UV2GOrB2UysEeFFwDL7jaL19bLt1yXeJmw1v20TqWe X-Received: by 2002:aa7:dc18:: with SMTP id b24mr14721103edu.224.1599327166209; Sat, 05 Sep 2020 10:32:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599327166; cv=none; d=google.com; s=arc-20160816; b=y2FOe9Eq8gC/7//GJgcJ9wUg75k5JqudRmz0M9IK8G1kBWFI+HjzQYd1qBaW3S8Nu6 hMxYBGw4fFdEuw0m0m0PVCtkcfbBTOqF5EySEdy3NmeFjai9IOWahqQmn1o++zm3eFTY JG+Nx7W3vqzDdyVQg2/ICdhQKQGSgLbN/b+L3PmbbRBS4qb+r9XYfmL24FyqpqA8Wxp8 zV0hnn8vzEHY2fMAB6EA5wRpLAqlBkQQ8hcIyLL5CXtBDRIHBUudy5aTRnvQjr72Ym2k KDA2gNAZj0gaZ+Q2UVzINDm4XKIApV5YzJRAtD/rscHTPpuWTcXd8Ib3IGNyVNIUpplF EWjw== 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=xF8KuriA0DdKdki5nKltrIYMD79BMz+7ZJiIuD1/BQaK6YXDIIW99l/m5ss4lxuPd5 pIWytFTAFlsgQgK93azNAX3I2LLUA7RuUmVlIHgYdwOSYa6ApLys/iQfpWklN4VEL5Vv cMAQrBCUXlYPUoToQMlWIDxtxN86MKbX++QB6kIcctdbFEMJKii3UM5aUU7++77eTeW0 nz/ZtLzskX4xUKYvq3cn3nIJAokSxZ+lx0TQp+oga2EtV2GNWFXNSBbfN56g/dem6nN/ 3vUxu8Dba5WsVuOlzAI4Q8zIWGU5bQdLXX1+sCk1P71jJvao6szJVvBPnW42oGq6zCap LA0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sgicZQzF; 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.45; Sat, 05 Sep 2020 10:32:46 -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=sgicZQzF; 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 S1728443AbgIERcn (ORCPT + 6 others); Sat, 5 Sep 2020 13:32:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:60342 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728387AbgIERcl (ORCPT ); Sat, 5 Sep 2020 13:32:41 -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 E2414208FE; Sat, 5 Sep 2020 17:32:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599327160; bh=E38bXaztWbprGXLGB3ZptLRYv4BC3A7eIgpDTMmcQ14=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sgicZQzFKsBeyZiSxeRpzebkXK4FZo5JwMq5/hIgD8gYnYX8OPA/Z5/VTme3ZtHrv j+GGu1QEIWjshH6yIvgWU1ha+QHgOOhgk+L7mH3RFkfRDpnt416aZLtWlNhPwsqSZk U4YYb646wWoyMSn3tydO5HQnHwQ7B/rWMbZBFCUM= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Gregory Clement Subject: [PATCH 10/20] dt-bindings:iio:adc:lpc3220-adc yaml conversion Date: Sat, 5 Sep 2020 18:29:54 +0100 Message-Id: <20200905173004.216081-11-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 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 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>; + }; + }; +...