From patchwork Wed Sep 9 17:59:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 249537 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp57119ilk; Wed, 9 Sep 2020 11:05:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGW6JpKuhsnJ7353WQk2lfHyHyjchJpuJIuI1hr71ccqs//gGSolp2MC5jELc+g7ZOjN2W X-Received: by 2002:a17:907:70cb:: with SMTP id yk11mr4807004ejb.312.1599674744785; Wed, 09 Sep 2020 11:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599674744; cv=none; d=google.com; s=arc-20160816; b=qWcnHMESOyYR/gmZh7jJJq+G2TDecOSkNNnXatkjqD9NYgETtAT2K3cBTqTUtr4PnB Icvf2QAlM0yx7rAS+nyOmRGtIfnuj2p0uHtmhyxpndSxv8BegPnoMNDqYzjaNeUwnmC2 7E+HdttlYSi4VhTYNen25Vb3MYDn+hhnU69zXE4RXszWDRTTOUp/zoHe7y3ihaNPlmoI aepcHjIqIpiT8qSofTJuClwaX39LwEFIc/irU/bY/QUFjMElsOSnfHN6Up2ohBYBL18w s0E49pcdYIrqoHrS3wzrlFMoKWLDUuo+O/VBaafpTygAJdSvtfzMjkpvVy5BZ0mwlQW8 8NyA== 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=BBGk54B/iVW9xy4TjqMcj/CBFp+GfOf3IU4JtMUmyMs=; b=lIBba207fTmVl1sY3LLv1ltbDCHIkOR8EM6RDm0E7RYYUAR2HmUS6FC6sEX4EPjOK3 nZkO2Uw9dEXLht6XWoSPSHyWdWJwewUp5GCN2KZDGeEoc8I8yNcGTC5FNRZb6grBKE3n M3RDy35gcGwe0S88fp4j76PiMcgmW2hIo3pgj6aMfKdUXh3XehOgUQUpknRGvVzg5ApE 1gunmuVTpoABs1mzYjLCiVNPrMH/W0pXrAit03E6lomE87KE19RqqFk8/LEq1v2w4wz7 uVXXp9LGO4kngExpqAH8TO3ZR+3O2vl3owXiaAauCWFytQ56qn4HTXQxeafWqy4xp32N QiMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rs1iOxfY; 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.44; Wed, 09 Sep 2020 11:05:44 -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=rs1iOxfY; 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 S1728264AbgIISFh (ORCPT + 6 others); Wed, 9 Sep 2020 14:05:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:60318 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726440AbgIISEa (ORCPT ); Wed, 9 Sep 2020 14:04:30 -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 ECAD3221E8; Wed, 9 Sep 2020 18:02:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599674558; bh=LXwmjBNNxQhHZ1OQIxynrn4oVDZJ0D7lt0BpKadQpOc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rs1iOxfYBCVpDSSNKsFnVn5FLjhDNnlMR5Zdf/vaBWqGdFvT3k9YHTNNPyB0IuQUt yoDDRNw88cGOHru5QKmPA6d8Ln7HQKve+7zQe1IDbt/ARup/+XweMrfBHQ3CL2NTKA K3jvPQIraXICGZ9BvK49cD14i4BHEDjNv4HFDAKM= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Adam Thomson Subject: [PATCH v2 12/20] dt-bindings:iio:adc:dlg, da9150-gpadc yaml conversion Date: Wed, 9 Sep 2020 18:59:38 +0100 Message-Id: <20200909175946.395313-13-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 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 Acked-by: 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 Reviewed-by: Rob Herring 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>; + }; +...