From patchwork Sun Feb 27 12:33:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12761661 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8D7F2C433F5 for ; Sun, 27 Feb 2022 12:35:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kMWTmr8GcFEcjaFfNZhS1JRebhTvOrzWG0wfiUOyAWM=; b=dThJ5nHtCcy/ED SYLVOlCuxKVDRSUdrzb0jHq8F8gXoG6F1QpyRPQbj57xdx7ShQpNYrNpLi6U0GR7RqwWkX57it1HY 8C1J7wEqQrhYnnOXmv3T5IFq92jY/z6AA6wYPjD/xKQmE4ooYUMKqMhqVbRpTzfmNYmLyFw3aj4UM 1n4D4fmVOIyluAZUsoeg4pUaaJPWuNRyGi9r9L8I5YElJhqxK1rH2Q7WEoPxN9vPf1ABjibll+6Hu gSKI4D1EJdIakUMackJiVFSKB1POwmqgUQyn8++c88DbLNixcywaZ6B2td0iHiznahApchmvdQoAX lX2P+zFUKub34I9itNYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOIkL-009BhU-7o; Sun, 27 Feb 2022 12:33:53 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOIk4-009BfC-4F for linux-arm-kernel@lists.infradead.org; Sun, 27 Feb 2022 12:33:39 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 7E9DE580223; Sun, 27 Feb 2022 07:33:35 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 27 Feb 2022 07:33:35 -0500 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; bh=TdjkeNItJHdTmy q+LFHIzBr44CzyamChCcNOe2cjE2M=; b=yLitF93uqMywQosHgFTae2D+lE+uDf xMPcSSM/ovXzZmD6W++IDHsdY57B6bsOCdhDtCwyBFsrb/Z2wYaGFht6F5XPmzIq LqNm8Fmmk9lqLQBF4e1yrpRVy0IT0BhGVWXTZUvAVJKUXTmcPMr3Fyix0oW9660x GZYy8JqepMq155hHILAZhlY6Nz804h2BBro4lnSsbCSlCF/caKqrAvgPnHaYkiSt JsgkKMrHMvkxMynlR6eIpNZVF6SIRZSrfuEqiq0RZpGQxtX0DYbPR+8ZlsKPGKJD ce/EyTn1g8ZFMjKAuZ50FQqPze3+5/zynCIFk7vh6weOwUkd1ZlCCgiw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; 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:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=TdjkeN ItJHdTmyq+LFHIzBr44CzyamChCcNOe2cjE2M=; b=UABfOWN1VOKhmIXQSG9am0 T4Txvw90JxoG0Dmw++jNyFFgM13o2tBhppOsYXgb66Mp83LnHqfG5Da8l4OJ8tmj C2U/YS5ULKFWDw5fJHyJF79W4eioSTdD3t3SGvH9JYbeaIw/yAmPqLtYYmu3/140 IJgd6Yz14Z4Y2bDLYDmVi5DXLBnzkbOOjjt0NMRJajaMlaROS48fQGCSPwE58KCE 8CaDCqbkgxR48768zcs62mPpFYjxEjzVXM0wZ7afqAm+oKbSowJIPrNK+f6GmMhl qs9+DQx/NzpASvt1QJg1C6DTjo5IwYiTzg7WtIhl67bW9dYIunoxUwwmik4DAsdg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrleekgdegtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpeetlhhishhtrghirhcuhfhrrghntghishcuoegrlhhishhtrghi rhesrghlihhsthgrihhrvdefrdhmvgeqnecuggftrfgrthhtvghrnhepffdthffggefgle fgkeejhfekiefgleelfefhtefhheefteelgeeggefgfeffvddtnecuffhomhgrihhnpegu vghvihgtvghtrhgvvgdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlihhsthgrihhrvdefrdhmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 27 Feb 2022 07:33:31 -0500 (EST) From: Alistair Francis To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-input@vger.kernel.org Cc: robh+dt@kernel.org, linus.walleij@linaro.org, rydberg@bitmath.org, dmitry.torokhov@gmail.com, andreas@kemnade.info, alistair23@gmail.com, Alistair Francis Subject: [PATCH v6 2/4] dt-bindings: input: Add Cypress TT2100 touchscreen controller Date: Sun, 27 Feb 2022 22:33:16 +1000 Message-Id: <20220227123318.313009-3-alistair@alistair23.me> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220227123318.313009-1-alistair@alistair23.me> References: <20220227123318.313009-1-alistair@alistair23.me> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220227_043336_270444_3463AB2E X-CRM114-Status: GOOD ( 12.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 --- .../input/touchscreen/cypress,tt21000.yaml | 98 +++++++++++++++++++ 1 file changed, 98 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..12a9c13f7706 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/cypress,tt21000.yaml @@ -0,0 +1,98 @@ +# 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: + $ref: /schemas/types.yaml#/definitions/uint32 + description: EV_ABS specific event code generated by the axis. + +patternProperties: + "^button@[0-9]+$": + type: object + properties: + reg: + maxItems: 1 + linux,keycodes: + $ref: /schemas/types.yaml#/definitions/uint32 + 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 { + 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 = ; + }; + }; + }; +...