Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6696532rwi; Mon, 24 Oct 2022 05:06:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5A2ysTJvJdgIdfWcFWsk5d/1aciGuneHUQ29h4ZpqR5UlpLASr7WfxaN5J8KknIQVOB3UK X-Received: by 2002:a17:902:da8e:b0:186:9869:adfa with SMTP id j14-20020a170902da8e00b001869869adfamr9361039plx.57.1666613183945; Mon, 24 Oct 2022 05:06:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666613183; cv=none; d=google.com; s=arc-20160816; b=IWryQ5Kd1djIxFEGFoFuh8iP/qBfpEf67VQhIZ3BOQpAJyKg1Gf4Ue8W+5K4TBVMwl 4O7qzQLlSxH25+2jfwpwfSDKRg3NuTawCFwd7CE+KoA3biT/pye5TldEmb0VD7fHjhZv hBA+e1DZkHDOReg/wcMJ8pI99exuC0RU6t00/QH2PQWRpZYnOZkDpp/w2nyHH4AtNTwb TUtEdYdGNbFmfR8ZH55jh7W6vLiRLzs6MrYkY54q3UgAMS62fYGNRg9f41ciPR/RKK19 IxFttLvzqLvIFkQQfahZNfVNKzvsxio7HFutMbEyoJJ/2udQ83VUuJiBE8TG+aDRXvG3 XxxQ== 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 :feedback-id:dkim-signature:dkim-signature; bh=QE/t9z9CMyL9UR78guoOLnyMowBUbgZ3WsCHLUVTT94=; b=KmptWJ21N5xBfTa7oifM/llgvVNAtEW4B7zZMGZsCdGNMbPs5G2XbTPhbnK7eFvEZ6 fmJAWej8gSiDzFnO+BbFhXUo4LOZZMKo2Q19kBMbCVo5pdhegZuZxV2aJoxBxTKaLFL8 VLJalTWuGXACsjRSxjyOe1o+5XTBudJW6qFjEW02l3A7glAuBab6kir2h87ufmL/miVW b9yd6ptkyTSCcr2OpwFAhxE/WUSUZULznyZL9Kl/CtYo5nE65YvogeCdLKDAs3lqJD84 fLoyHZspHExGnO4RUdVhJ2HPi9OkVFw8j44PFkxSeKD8CCYs+ZkirwmL3RFxhCEmZckr 6tZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm3 header.b="v5cnVG/L"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=eZnwJsff; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b16-20020a170902d51000b001869394a38dsi7384706plg.503.2022.10.24.05.06.12; Mon, 24 Oct 2022 05:06:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm3 header.b="v5cnVG/L"; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=eZnwJsff; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229964AbiJXLLR (ORCPT + 99 others); Mon, 24 Oct 2022 07:11:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230200AbiJXLLD (ORCPT ); Mon, 24 Oct 2022 07:11:03 -0400 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C183845999; Mon, 24 Oct 2022 04:11:00 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 4737E3200919; Mon, 24 Oct 2022 07:10:59 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 24 Oct 2022 07:11:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1666609858; x= 1666696258; bh=QE/t9z9CMyL9UR78guoOLnyMowBUbgZ3WsCHLUVTT94=; b=v 5cnVG/LxeZ1GExr93cvVTDPL/mAqjnVWHHLVELFd7JgBeddYkNf39egBrtvbLS/v GstPDllllcsUMmhki1NdAQDvppsROUysi/N4DhiGUAPjtY/WPkNBn5MlCGIzDF19 DGe4CN92OMBGsmYbn4vY1fiZkQt0JvKmedSellZd2QsqPxlxRLZSJcinnBpyNZ26 KSEZ2clbznRjUDgJWyj/GP9I6Tl7cLr+WcXxPfCWEEgnyO8Qc28wvQ68wNVI270R rKHwvMwzE7tfH4YOQuUONve9mRYkNsqgmsybfs5msCywNvCuHS1zUqOGy03CuEof 1jCIo5hsk5o+54IVIg6ig== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1666609858; x=1666696258; bh=QE/t9z9CMyL9U R78guoOLnyMowBUbgZ3WsCHLUVTT94=; b=eZnwJsff4b0i0ZpG3AcFS2lj5FWaz bulPOPQn5VIVPMcOzKWbue1qcfe6oZjnh9+FvHIsAduMaXQ83osLjfaSf50IGH+v gf4p5vB6anR3OsIlUrQT/cifABKJKMcdQPHYTS7o1ub3o9KVSakG+4g2mZ0chJL/ ZGjioIRvhT2KZGR8F19mv+0Cgs0qoiwcHHgW80AyofIQhpavj9Pfk6NdTG9C3hLC HU9OpJ/FOzpoO3NKW3ZwNo53LCpYGA1akvBfJgT3QYkGz1z8JQKwbAnpTz+YaqLB R+58Y/ji5m+Ha0dCqXPNhXAqLnF84/tK8Lhs4ZgIMDtMUVP1p7o6j9DrA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrgedtgedgfeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheptehlihhs thgrihhrucfhrhgrnhgtihhsuceorghlihhsthgrihhrsegrlhhishhtrghirhdvfedrmh gvqeenucggtffrrghtthgvrhhnpeelgfffueehvedvkeeggffhgeeuueetteeukeetveeg tdffjeevgfeuudejleejveenucffohhmrghinhepuggvvhhitggvthhrvggvrdhorhhgne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlihhs thgrihhrsegrlhhishhtrghirhdvfedrmhgv X-ME-Proxy: Feedback-ID: ifd214418:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 24 Oct 2022 07:10:49 -0400 (EDT) From: Alistair Francis To: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linus.walleij@linaro.org, s.hauer@pengutronix.de, robh+dt@kernel.org, andreas@kemnade.info, krzysztof.kozlowski+dt@linaro.org, alistair23@gmail.com, dmitry.torokhov@gmail.com, rydberg@bitmath.org, shawnguo@kernel.org, Alistair Francis , Rob Herring Subject: [PATCH v9 2/4] dt-bindings: input: Add Cypress TT2100 touchscreen controller Date: Mon, 24 Oct 2022 21:10:15 +1000 Message-Id: <20221024111017.43859-3-alistair@alistair23.me> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221024111017.43859-1-alistair@alistair23.me> References: <20221024111017.43859-1-alistair@alistair23.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the Cypress TrueTouch Generation 5 touchscreen device tree bindings documentation. It can use I2C or SPI bus. This touchscreen can handle some defined zone that are designed and sent as button. To be able to customize the keycode sent, the "linux,code" property in a "button" sub-node can be used. Signed-off-by: Alistair Francis Reviewed-by: Linus Walleij Reviewed-by: Rob Herring --- .../input/touchscreen/cypress,tt21000.yaml | 100 ++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/cypress,tt21000.yaml diff --git a/Documentation/devicetree/bindings/input/touchscreen/cypress,tt21000.yaml b/Documentation/devicetree/bindings/input/touchscreen/cypress,tt21000.yaml new file mode 100644 index 000000000000..0913b585af5c --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/cypress,tt21000.yaml @@ -0,0 +1,100 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/cypress,tt21000.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cypress TT2100 touchscreen controller + +description: The Cypress TT2100 series (also known as "CYTTSP5" after + the marketing name Cypress TrueTouch Standard Product series 5). + +maintainers: + - Alistair Francis + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + const: cypress,tt21000 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + vdd-supply: + description: Regulator for voltage. + + reset-gpios: + maxItems: 1 + + linux,keycodes: + description: EV_ABS specific event code generated by the axis. + +patternProperties: + "^button@[0-9]+$": + type: object + $ref: input.yaml# + properties: + reg: + maxItems: 1 + linux,keycodes: + description: Keycode to emit + + required: + - reg + - linux,keycodes + + additionalProperties: false + +required: + - compatible + - reg + - interrupts + - vdd-supply + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@24 { + #address-cells = <1>; + #size-cells = <0>; + + compatible = "cypress,tt21000"; + reg = <0x24>; + pinctrl-names = "default"; + pinctrl-0 = <&tp_reset_ds203>; + interrupt-parent = <&pio>; + interrupts = <1 5 IRQ_TYPE_LEVEL_LOW>; + reset-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; + vdd-supply = <®_touch>; + + button@0 { + reg = <0>; + linux,keycodes = ; + }; + + button@1 { + reg = <1>; + linux,keycodes = ; + }; + + button@2 { + reg = <2>; + linux,keycodes = ; + }; + }; + }; +... -- 2.37.3