Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3530084pxf; Mon, 22 Mar 2021 08:31:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOsmNbXYw49Z1NoRt2DR1+DFLcOf8fsJ1wDukxj7/O8juvFgFMA/SjxPRyv6O3FhOH2RDf X-Received: by 2002:a50:82c5:: with SMTP id 63mr74134edg.97.1616427084273; Mon, 22 Mar 2021 08:31:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616427084; cv=none; d=google.com; s=arc-20160816; b=Emd17R3eK60uuAvZDYTslOmuFp4l2wgaotJ+jTvN2pjIdlRUlYTOyR92ULAViiV4hV VYi22WaMtCFFsMWHxnPBGPZ8NsIUEw50rQWqYYCS7hHBg2Q1C3UiK/+c0eqZPYqcHBWk ynv4u0pU9hq2KIWCl/oC+ziROwoLF5XIKLWlFF5wlnhQCdEdG7wen8VrE7/db7m/Jrj/ 7adgxUcO9V6LgdCGlW0ec1UtLKBxOZYo9Xi5sZz9wxBj/70sNwk9OyQsFbvY8i0xaSJf PGXyI4cgADXn0EPfFIFcNjyxjsOAO+6eQnEGtkzfHrt7JxtNMrkZJlAArMW4yAOB02+B iO3w== 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=g/l1GK/7m+QH60LRbfGetbDgnj3Bizmq9+j5zwtBGslTx4vhZuGQ8mZGMaljjua5tR tpECYYS772byYUA5HOd9zJtZiRBGOxnipiMl0oLzUevLsIf3lBMQ8em5zDj3UrOOBCL+ EnW6DDECTea/k7Nu+0SiqeRPUt15TGS8WeetyC8qk3wMBuRzsfLRBJGVVBJCz3jKmZsl Li7Qu991/83EpkDUjO+SWnIrh9zaeFBNNjtqLk8y7F4sbxDBriP4bbjZPPGk7Y3pnAEd 6H+cvPhWyIDve8Df44s+LUAL74kRE5jF9DpdYzS0ghPpTPmAPiWnIawuWQ65/yEWze20 udCQ== 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 o9si11481785eja.264.2021.03.22.08.31.00; Mon, 22 Mar 2021 08:31:24 -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 S231699AbhCVPHC (ORCPT + 99 others); Mon, 22 Mar 2021 11:07:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231630AbhCVPGU (ORCPT ); Mon, 22 Mar 2021 11:06:20 -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 38C8FC0613DB for ; Mon, 22 Mar 2021 08:06:19 -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 1lOM8A-0000Lu-07; Mon, 22 Mar 2021 16:06:10 +0100 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lOM89-0003la-En; Mon, 22 Mar 2021 16:06:09 +0100 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 v4 2/3] dt-bindings:iio:adc: add documentation for TI TSC2046 controller Date: Mon, 22 Mar 2021 16:06:07 +0100 Message-Id: <20210322150608.14347-3-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210322150608.14347-1-o.rempel@pengutronix.de> References: <20210322150608.14347-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