From patchwork Sat Sep 5 17:29:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 249178 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp2420957ilg; Sat, 5 Sep 2020 10:33:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRo9/ZD+Piu2VOhq9KXdIxcjrs3PYSUjA8QyAHonAzbptVk75enVpfZl1eaymG6wCEETyX X-Received: by 2002:a50:9fe6:: with SMTP id c93mr14343092edf.151.1599327191688; Sat, 05 Sep 2020 10:33:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599327191; cv=none; d=google.com; s=arc-20160816; b=JirLvedhwQd3MA4x3fbFQQ+lk9srGHBNuSvTkebRU065CcCzbHVVIRFzhRRM8VxyZ+ GTd/Xok1duG7WmY9xJN4lLgoMZt2s4z18VJ7pCGG29bA8aSoDy92Rc1GWEEm3BADBX+e XdMQJxrN3BPhnoM7RxZ/oBwaDGdh1KwDxJoHZSOx3mXqZdlDBIQOopfqkd3WF0BtXeYP b+n6eVM81+T5BHAJr6VnOIgLkzG06mEw89Jw9MLwak055j889Phd5DE2z3ngMmrvz5Ig mblzn/bsQX3L+VEFEFOBi5Mo7rA22iO5/sH/xMDBfW4oGZ2n49pRB95FlYkj1LCmaiLf tJWg== 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=g8jZtrzoZDPBTRssOc1W9BlGjQFeHBRJWI1K6CPxI6OlQJRh1Dg2ZdeS0eQAc1N6DH L35MDg2yRAQiFEgy8ItDHDPekhVGk8H+GgioT1LbY4VJXvzihh9BdPn1cffZEB0NMZ7y n4NYdL7fWarvDt79WB+Nr9x8pHWrnchUVIQnWP0zK72RLnckK/k3W0HzREvpkrabQupw JEiQTBM/SW/BrOJZF7UCempcHUhCP4BnunRzpBmR2UxBEcfoDeLqQtFWnDEk9GGkbo3v T8uu4/DLVWN4dvG3n2jEr27e2mtey70xEtVaNMYb6MEX8Md+ZyAw9Myp/xF9no2avK5m 7rQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mvE8bDGV; 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.11; Sat, 05 Sep 2020 10:33:11 -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=mvE8bDGV; 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 S1728390AbgIERcg (ORCPT + 6 others); Sat, 5 Sep 2020 13:32:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:60208 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728103AbgIERcb (ORCPT ); Sat, 5 Sep 2020 13:32:31 -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 2C61F2098B; Sat, 5 Sep 2020 17:32:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599327150; bh=FdK1l3fo6UgGdK6dGnHyf2ZFaNBIdLfR1npsQ9CW2AY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mvE8bDGVDBmqFZXu3j7udNuvaOBbL7oKUFk6V5Ro+z3R5ASA8rg4P8nYox60vE3JH 9Kg6QxyHXjrX877Y9mz5xxfXHwBKEMwdSShrOg4FCXKOiNEelMWH1lM4F09GyphlQk DpjV9Enq6sc9rG8CDyeSZmr+sABUQxUEMAFfjIwM= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Stefan Agner Subject: [PATCH 03/20] dt-bindings:iio:adc:st,stmpe-adc yaml conversion Date: Sat, 5 Sep 2020 18:29:47 +0100 Message-Id: <20200905173004.216081-4-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 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 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 */ - };