Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3393010pxf; Mon, 29 Mar 2021 00:33:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwznwLE+33havAANJRnCoQ8gqCd/IRvLzeXtfpKfpRealIF3/wwkza+MmkwuUCyqkgp9NWx X-Received: by 2002:a50:fe81:: with SMTP id d1mr27856239edt.308.1617003237754; Mon, 29 Mar 2021 00:33:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617003237; cv=none; d=google.com; s=arc-20160816; b=Dt65tKABiFhg8yQ6niHnKRqCNU4F44tvqjAwWwnsUoa0JwTD1xQVH9h2vGQp3wrY2U s4xkJTx6mWl/ViLRt1kYxQsoWyKpRQYmDEnsxNtmxAj9aTdI9GvSiwP4U1Q0bRsH6cwe h5OdWocPEGNGn+p7zQN36496dghS2OxLO7R3MHu3HzJCyyqAZivek+XH25P9Dz9C2fBz +hUmlCgvunFm+2B4x7dE7lqF+0QLlfHsGPnI1WzCcg6YttPGFjOjsvWI8awPzj0/Upfi hxSOALCIqpQu0Vv7WRK4wcI2c98hMERudoAnb0KEjtitOR0SR8ZlyC+nYt+JY8Cw1kNu UIag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=7dQsAIEEtFJ9DykUJB5fcSPLc7Luna2PAhQ8MRcDt8Y=; b=txzE84C3l+IgWjElZQDMHVh2QAK0ux17BsxzihP3vBD/my4Rb/v9JVxSD7EcNHFLZe i9eTSfn/Xm7MQtwJ928F0uM0BNmhT7gzIwu1Qo621TZc/AJ6C8bX9Oj0J/GOtLxe2oHL lBbAG/1NuUwQxwxCCsJzitLku5GPmm1k0QV7XNX4SG2OhtloVtYTheIfWoIClOxurr/u qh+RAOdjynln0JNkLQJWz2y9y1v8/erl4im0OyxKALRo4l//iNBfM/LfxH1W/y4Wy2x1 KGwIJoIMijrEwKgitIoi/eHOrWgRuOOKd95B3+kGRCVelzEBmzedda3mka2fBeJiQfxs lQbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i20si11792443edq.582.2021.03.29.00.33.35; Mon, 29 Mar 2021 00:33:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231308AbhC2HcI (ORCPT + 99 others); Mon, 29 Mar 2021 03:32:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230432AbhC2Hbm (ORCPT ); Mon, 29 Mar 2021 03:31:42 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF32FC061574 for ; Mon, 29 Mar 2021 00:31:41 -0700 (PDT) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lQmN3-0001So-KL; Mon, 29 Mar 2021 09:31:33 +0200 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lQmN2-0000Ta-Ry; Mon, 29 Mar 2021 09:31:32 +0200 From: Oleksij Rempel To: Rob Herring , Jonathan Cameron Cc: Oleksij Rempel , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Pengutronix Kernel Team , David Jander , Robin van der Gracht , linux-iio@vger.kernel.org, Lars-Peter Clausen , Peter Meerwald-Stadler , Dmitry Torokhov Subject: [PATCH v5 2/3] dt-bindings:iio:adc: add documentation for TI TSC2046 controller Date: Mon, 29 Mar 2021 09:31:30 +0200 Message-Id: <20210329073131.1759-3-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210329073131.1759-1-o.rempel@pengutronix.de> References: <20210329073131.1759-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a binding documentation for the TI TSC2046 touchscreen controllers ADC functionality. Signed-off-by: Oleksij Rempel Reviewed-by: Rob Herring --- .../bindings/iio/adc/ti,tsc2046.yaml | 115 ++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/ti,tsc2046.yaml diff --git a/Documentation/devicetree/bindings/iio/adc/ti,tsc2046.yaml b/Documentation/devicetree/bindings/iio/adc/ti,tsc2046.yaml new file mode 100644 index 000000000000..601d69971d84 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/ti,tsc2046.yaml @@ -0,0 +1,115 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/ti,tsc2046.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments TSC2046 touch screen controller. + +maintainers: + - Oleksij Rempel + +description: | + TSC2046 is a touch screen controller with 8 channels ADC. + +properties: + compatible: + enum: + - ti,tsc2046e-adc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + spi-max-frequency: true + + "#io-channel-cells": + const: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +required: + - compatible + - reg + +patternProperties: + "^channel@[0-7]$": + $ref: "adc.yaml" + type: object + + properties: + reg: + description: | + The channel number. It can have up to 8 channels + items: + minimum: 0 + maximum: 7 + + settling-time-us: true + oversampling-ratio: true + + required: + - reg + + additionalProperties: false + +additionalProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "ti,tsc2046e-adc"; + reg = <0>; + spi-max-frequency = <1000000>; + interrupts-extended = <&gpio3 20 IRQ_TYPE_LEVEL_LOW>; + #io-channel-cells = <1>; + + #address-cells = <1>; + #size-cells = <0>; + + channel@0 { + reg = <0>; + }; + channel@1 { + reg = <1>; + settling-time-us = <700>; + oversampling-ratio = <5>; + }; + channel@2 { + reg = <2>; + }; + channel@3 { + reg = <3>; + settling-time-us = <700>; + oversampling-ratio = <5>; + }; + channel@4 { + reg = <4>; + settling-time-us = <700>; + oversampling-ratio = <5>; + }; + channel@5 { + reg = <5>; + settling-time-us = <700>; + oversampling-ratio = <5>; + }; + channel@6 { + reg = <6>; + }; + channel@7 { + reg = <7>; + }; + }; + }; +... -- 2.29.2