Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp127740pxy; Wed, 28 Apr 2021 00:36:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9OCF5pmORxRcibPRSFkumTtLtN6Td8yFIDGLkNCTo1oNJlaa/SDU4CgWo+fCY7dgtlFTg X-Received: by 2002:a17:906:70c4:: with SMTP id g4mr27806767ejk.443.1619595365516; Wed, 28 Apr 2021 00:36:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619595365; cv=none; d=google.com; s=arc-20160816; b=HxvJxMMvwC5tH1aPF3ljdtvLyTlMQhMG5fBosAktYVt9Tp2tqWzuVhV51QEe/GSVIQ s+zTGxYTpLtd1gwSzpZQHLfNI5ftwZRGZjiZRl+NEX3kLOPBFWPUfVLOgpF08NQZI6O7 iqk4ULGpw+4A5jew2+UypVoQHHHHA4lYryGwb+VEdi3qx8QXVFj6EEoGDBxaIqwmSOVw btRsQF5cMmRaDP+I68k4jNfaz3aew3iAbyrAdFNV+uKDJYnwr58IQX1MDlJH1/fBmlbo tEiTCGkq58vcGxfG8I191rceF4InvJjXLuVTNH9C0rkLVDfqmZvbKer7k8KrHE6qEQlm aiHA== 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=K48vQV7TCC0R0f+v1gfuox5ruvbxYEaDoHZdFPt5pARyngSQUz/lS1nKEKK2idGLk/ dJypsoBLkD/DHJWIW+T0Xw2OQzqtUCPyImvp3+Os085ms0atr31LtpuUXunXumCf1BWn V36DnEowqCAVg6fxFDgFNr+6OAxG5vuOClApfaKzvZIfgAZPGgdVxspchyjq0rUtgJmp fUKyK0qD8rTlzEjf5KDSDfl50mRxDJU0fazkjekkU8jso52WwxsmE/MC3+N2hFDwc+mA 4sWpSmFA5Iz9GwBfjI/AqwQSuljh3Cj3YGq0doVuezGu7UAP/5gjzQYejv0Mc+VBQYPa AFzQ== 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 nd18si2081354ejc.562.2021.04.28.00.35.42; Wed, 28 Apr 2021 00:36:05 -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 S236962AbhD1HdO (ORCPT + 99 others); Wed, 28 Apr 2021 03:33:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236669AbhD1HdE (ORCPT ); Wed, 28 Apr 2021 03:33:04 -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 07515C061574 for ; Wed, 28 Apr 2021 00:32:20 -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 1lbeg7-00034K-1k; Wed, 28 Apr 2021 09:32:11 +0200 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lbeg5-00056q-Dc; Wed, 28 Apr 2021 09:32:09 +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 v6 2/3] dt-bindings:iio:adc: add documentation for TI TSC2046 controller Date: Wed, 28 Apr 2021 09:32:07 +0200 Message-Id: <20210428073208.19570-3-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210428073208.19570-1-o.rempel@pengutronix.de> References: <20210428073208.19570-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