From patchwork Sat Sep 5 17:29:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 249175 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp2420897ilg; Sat, 5 Sep 2020 10:33:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybAtpi9qY27xB7JWTcDdt3R21tonpre5FOXxWy/u6zqepugHW39s2gBcb63Di/65LtqE8q X-Received: by 2002:a17:906:4685:: with SMTP id a5mr9401307ejr.446.1599327185477; Sat, 05 Sep 2020 10:33:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599327185; cv=none; d=google.com; s=arc-20160816; b=F4G0o2WXwy5Hv3kAs7JUYoZxmB9kTtl1uwMyrqoVKu/ina0uNyZZUsUsjnAjykDugT yMRBapY0UZVuA3gTGAKsTEp0zY1CKMMWK6MWnvzBIxs7rrLbcTEtVHYJNEoxlWy8Jowq D1d3yTFC7a68zwcrmb0jsCQVlmhEYXQNSn1LNY3eZUBuPdQJSat4CvjbVE/dfZTMbIuB vqbVdfnL8XpNogqO9pQetnPfjgNgP6J6OkMqoCroYNPItZ1Jr1r60fO69/gH2vTg0Ywb NS+WNvuC0GF1x59qvzEb/JjbiUOfPq6h9yTBdyUIQRnHehbyIcw0UGuClymgQuyUuPhz pUqg== 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=SvAr1IaqJcu0Ch+fEAzAApNjTyrUCRBFdLASr4jra9c=; b=BVluZWUcRKf4J6njGzkeQzuUbH0phCq7AEohSL0wtHU+L5S79+ciXeLiaxzbUoLTdE +sI4TtUBXRXJ90Vl5u4+B9A/lWFuVC+LiD4RISqswfTDmird0/4HnmjTQysdFIeU/Z+3 OjhPYhoew6Y8KYvCFqs8Is6MFMM8vFRXMgpCd/HOyxeMAdqQvRiNGcvm75Zm1pIurABw vukLBC6D2l4h4HVdObGHsAJHdI1wsp6/EkfB/fEI2vsuQYWVOr9p4ivdIP6EhVvWket1 cv3rDVpTZnRLHlkVw/9+/sYrTjFokUQsJl7Y4ANuF/iJjJjgPRyaRA+Uv0NVBimgqK6e LulA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cQ6IGkmb; 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.33.05; Sat, 05 Sep 2020 10:33:05 -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=cQ6IGkmb; 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 S1728483AbgIERcs (ORCPT + 6 others); Sat, 5 Sep 2020 13:32:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:60418 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728445AbgIERco (ORCPT ); Sat, 5 Sep 2020 13:32:44 -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 B342E20DD4; Sat, 5 Sep 2020 17:32:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599327163; bh=1IL0MVyoisyJ6afqne2x4ewY/YCiP8wNlnqRsz+1SE0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cQ6IGkmbzY/478Bbsr8I5ZPAio/lizum3yqtkLYl+0UB+d6oeJAjMgFyJVpYlmn3D k8gIZYIUpAForI2Ey7hACd9VEK3onVEWVjC+RXec4D+za0frK8H5PlxRoJBB1Bm2IW h62EhvZodijWrrVx+OCFkYDXFlEr/MoeM6Z2EEjQ= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Adam Thomson Subject: [PATCH 12/20] dt-bindings:iio:adc:dlg,da9150-gpadc yaml conversion Date: Sat, 5 Sep 2020 18:29:56 +0100 Message-Id: <20200905173004.216081-13-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 This is a small part of an MFD so perhaps ultimately it makes more sense to document it with that MFD binding rather than separately. In the meantime it's a straightforward conversion from txt to yaml. Signed-off-by: Jonathan Cameron Cc: Adam Thomson --- .../bindings/iio/adc/da9150-gpadc.txt | 16 --------- .../bindings/iio/adc/dlg,da9150-gpadc.yaml | 33 +++++++++++++++++++ 2 files changed, 33 insertions(+), 16 deletions(-) -- 2.28.0 Acked-by: Adam Thomson diff --git a/Documentation/devicetree/bindings/iio/adc/da9150-gpadc.txt b/Documentation/devicetree/bindings/iio/adc/da9150-gpadc.txt deleted file mode 100644 index c07228da92ac..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/da9150-gpadc.txt +++ /dev/null @@ -1,16 +0,0 @@ -Dialog Semiconductor DA9150 IIO GPADC bindings - -Required properties: -- compatible: "dlg,da9150-gpadc" for DA9150 IIO GPADC -- #io-channel-cells: Should be set to <1> - (See Documentation/devicetree/bindings/iio/iio-bindings.txt for further info) - -For further information on GPADC channels, see device datasheet. - - -Example: - - gpadc: da9150-gpadc { - compatible = "dlg,da9150-gpadc"; - #io-channel-cells = <1>; - }; diff --git a/Documentation/devicetree/bindings/iio/adc/dlg,da9150-gpadc.yaml b/Documentation/devicetree/bindings/iio/adc/dlg,da9150-gpadc.yaml new file mode 100644 index 000000000000..15c51d337108 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/dlg,da9150-gpadc.yaml @@ -0,0 +1,33 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/dlg,da9150-gpadc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Dialog Semiconductor DA9150 IIO GPADC + +maintainers: + - Adam Thomson + +description: + This patch adds support for general purpose ADC within the + DA9150 Charger & Fuel-Gauge IC. + +properties: + compatible: + const: dlg,da9150-gpadc + + "#io-channel-cells": + const: 1 + +required: + - compatible + - "#io-channel-cells" + +examples: + - | + adc { + compatible = "dlg,da9150-gpadc"; + #io-channel-cells = <1>; + }; +...