From patchwork Mon Oct 24 11:10:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 8345 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp386044wru; Mon, 24 Oct 2022 04:19:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5x0uOslCBY2CZe3H/tA3sQkvEFDnyMrshJJ2Tp8ZbrJV8VOYZj9sJ5eI2jxJ2L6/ZRM1xi X-Received: by 2002:a17:907:78d:b0:740:33e1:998 with SMTP id xd13-20020a170907078d00b0074033e10998mr27588701ejb.162.1666610382490; Mon, 24 Oct 2022 04:19:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666610382; cv=none; d=google.com; s=arc-20160816; b=RALxhIR25viKCPyt2W3QaJuTNfiWUU/2WK6HwK7b6XePWuAT+FFnM9oXSmNgLACOWl tUBvx6hTB7N7eDBtIDya7v9voP+foSnmRrAEVg/NCDL68Pwg0Z+i0ADp56wufcG2Ipcx 0MCnaiyUazXMZ+GpnB5zcke1EWdXjrc3xbBOuL5sx2jLYgocG9sW/j6mJzosTea+zp05 6+uzmwEZj8HRmvfMtfl6qeC82LwoGmNlvcHfM6BbspSKV4DKwLDUQl0T6CiC4B+02OJb nn8+/gt87cJ0SWqeWqwKR2bJxP+w2Of8wOJ9g3pqDammfiD/S5lti8NB3uEMB52P2/R0 kVXw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz30-20020a1709077d9e00b0078e18bd3256si27893214ejc.291.2022.10.24.04.19.18; Mon, 24 Oct 2022 04:19:42 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747567648474626087?= X-GMAIL-MSGID: =?utf-8?q?1747567648474626087?= 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 = ; + }; + }; + }; +...