From patchwork Wed Sep 9 17:59:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 249525 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp56113ilk; Wed, 9 Sep 2020 11:04:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+4Z975E2qf3ZMGBvN5k8KCaD4SOrCmgTHFkx1dzbjLZxwc5ameHieJ7MRyH3HHIvFGQiz X-Received: by 2002:a17:906:341b:: with SMTP id c27mr4818112ejb.286.1599674675375; Wed, 09 Sep 2020 11:04:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599674675; cv=none; d=google.com; s=arc-20160816; b=xCAzsytH4tcu4RnhWLdVrIucq5gCWW7hPIwdSfJkLTZM/3hPqa6ARTYLdcGI0+Xgxi XKudHxfGItQRBiOLidllt8pNbjfSyMI0yCmqsniJrW8sdaG6fdIJy8hANlx6+OMHauUz bdTB+P1VSLuIR3sIq3SZ3QWlTN2BkbFRzCHeS0mzNJxfcwCUF4V2yPF8o5lVDxWGDQM1 c4ztx4fBMr2IOxaDVRpXO4XwzHO6yFgygkFxgL6rq0syVsb3PFMjxgTQ8zNESG0HmEow PWZqqWZxkJ6Qo8Z4A68uCuz/HsxjLwAtlTUoV7T6cGdfMvuWmjZplXYHSuWC7Yzgv13c Wv2Q== 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=PjN4bGHA05J0EUSg/173ivx6p/j8FI9E70rrzTDjy6A=; b=mM+j3knW5fBkGoPOMryno0V0RpFa87dPlKewOURIwVSBVeFCVUhlKjsHaxMfGJL45L H75KgiR3aFs8n7Y8Qg4i+MbWn0F8l9Thedxr++LVCYB9FUjiIRPF04u46Duv8/5Ui4FB WDOSRG1Zf/hzTZpGhwESaRmWAIJO6/q4sF/UczoFpXOC+GzTUihcq2MebITWMByJ8MAJ wXWN15y17VDGE8IqhsyD0a7KLqJepzFzCbFT2lDnHMTWnW9jIrTR8UWzIZrz4I/k90yz iEpo2CXn3d0U3TkaqnZ57opMWKh5+XY6Ljdm5gOK3pFAIEEeujpVdom5YtrVz+JEKbaR Wuxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IjsfJLnd; 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 n12si1886631ejx.468.2020.09.09.11.04.35; Wed, 09 Sep 2020 11:04:35 -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=IjsfJLnd; 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 S1729129AbgIISEd (ORCPT + 6 others); Wed, 9 Sep 2020 14:04:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:59114 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730099AbgIISCZ (ORCPT ); Wed, 9 Sep 2020 14:02:25 -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 ACE2821D93; Wed, 9 Sep 2020 18:02:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599674543; bh=FdK1l3fo6UgGdK6dGnHyf2ZFaNBIdLfR1npsQ9CW2AY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IjsfJLnd5vFT8rkBErobJSoiZFLtX5E6bliKTDIylUABmueCPPRTawc5ZTpf7GQI2 C141Zd5ctxzVSx2EtzulcwLOGiJcmbcSXSXEEynGUbLgP9pWtHFZKm1wUbtDt8Zu3I 93gYV7xjfrPKHxfd5eg7CXelSVrY/4v7yFIfxZcU= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Stefan Agner Subject: [PATCH v2 03/20] dt-bindings:iio:adc:st,stmpe-adc yaml conversion Date: Wed, 9 Sep 2020 18:59:29 +0100 Message-Id: <20200909175946.395313-4-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 Conversion from freeform text to yaml. One oddity in this binding is that, for historical reasons it requires the node name to be stmpe_adc. I've put that in the decription field but I'm not sure if there is a better way to specify this? Signed-off-by: Jonathan Cameron Cc: Stefan Agner --- .../bindings/iio/adc/st,stmpe-adc.yaml | 45 +++++++++++++++++++ .../devicetree/bindings/iio/adc/stmpe-adc.txt | 21 --------- 2 files changed, 45 insertions(+), 21 deletions(-) -- 2.28.0 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/adc/st,stmpe-adc.yaml b/Documentation/devicetree/bindings/iio/adc/st,stmpe-adc.yaml new file mode 100644 index 000000000000..9049c699152f --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/st,stmpe-adc.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/st,stmpe-adc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ADC on an STMPE multifunction device. + +maintainers: + - Stefan Agner + +description: + This ADC forms part of an ST microelectronics STMPE multifunction device . + The ADC is shared with the STMPE touchscreen. As a result some ADC related + settings are specified in the parent node. + The node name myst be stmpe_adc and should be a child node of the stmpe node + to which it belongs. + +properties: + compatible: + const: st,stmpe-adc + + st,norequest-mask: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Bitmask specifying which ADC channels should _not_ be + requestable due to different usage (e.g. touch). + + "#io-channel-cells": + const: 1 + +required: + - compatible + +additionalProperties: false + +examples: + - | + stmpe { + stmpe_adc { + compatible = "st,stmpe-adc"; + st,norequest-mask = <0x0F>; /* dont use ADC CH3-0 */ + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/adc/stmpe-adc.txt b/Documentation/devicetree/bindings/iio/adc/stmpe-adc.txt deleted file mode 100644 index 480e66422625..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/stmpe-adc.txt +++ /dev/null @@ -1,21 +0,0 @@ -STMPE ADC driver ----------------- - -Required properties: - - compatible: "st,stmpe-adc" - -Optional properties: -Note that the ADC is shared with the STMPE touchscreen. ADC related settings -have to be done in the mfd. -- st,norequest-mask: bitmask specifying which ADC channels should _not_ be - requestable due to different usage (e.g. touch) - -Node name must be stmpe_adc and should be child node of stmpe node to -which it belongs. - -Example: - - stmpe_adc { - compatible = "st,stmpe-adc"; - st,norequest-mask = <0x0F>; /* dont use ADC CH3-0 */ - };