From patchwork Wed Dec 22 12:46:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12697082 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 4B8A7C433F5 for ; Wed, 22 Dec 2021 12:47:57 +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=C9e9WUaAeV+rOTkdmdHpi6zfxAImC/0N3gCxVcob1Bw=; b=g6ACkvHvcVjTNx xD/0LUJNbv7vFLt7HcUyJn7nAixO0sXfw+JqSlsZZTRgnr9zBX3wWVQ/e5wn+ixLUchLs/bBNZEiH Fo5CbhKiTUapQmE9obdmkkzU/P5MK53VQ0FdfzBb8xi8d9uWSi+VID0q14PeLRePfw5OOUt5BF6d8 5l6Y1WoEQtYtTw7AUVN1LpAQ/Np9nbjBNHG2oe/RL4H8T807paOIhJoHy+xnLmjN4bqSGsQ67KgNW VsnVTMez/nE68rr1q4MeJ7/kAHF7FV48NRN3oR6A/vwliqwUjR9JuHK//M6peGLMvblby4AmWv6lv XaXZsXAyGsP3ISPj+Mlg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0111-00AJh7-JB; Wed, 22 Dec 2021 12:46:43 +0000 Received: from new3-smtp.messagingengine.com ([66.111.4.229]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n010h-00AJbJ-G4 for linux-arm-kernel@lists.infradead.org; Wed, 22 Dec 2021 12:46:25 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id D29615803CD; Wed, 22 Dec 2021 07:46:22 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 22 Dec 2021 07:46:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=fm2; bh= /0L1d4qF1zV4rH2U8KCiQalyzRKpjCVvJn5v0TcvaFw=; b=yH9C5y8hYPnB8x8R OzaTD89PFB8sxXUtsTiDEONlhX4nhRHZ7vTwDO408QhUA7JHl3S2puwNus9XGmuA YAGAEyxRwzEEB9wnSi8CWCkkuRg839qU3Puo8oMd88QlpyZDa2d/1SAddL9Zp90W iemFSEkmNUcHdcC6Wb+LaCCCXsfkx9BUANY0aF1Xmo7184c3zMicZYi63oW+374f wNZwtj/gNs/1lPtpS4bc5JWvaKkdyXswS7LLI7vteb0ycuVYkEywe/nIo/cu3fxu Bthg1MaAHaaQrJziTocjjUcYH+UuFTuUZ6qrNUUpS6Ue+F4eqXkvfvjsX6r0s+Qh 9vuHzA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=/0L1d4qF1zV4rH2U8KCiQalyzRKpjCVvJn5v0Tcva Fw=; b=Qh85zWWXAVq9Up6r+zRDCznQKY+cQC+FNBTYqTeVtAVZNz/2cJS71SxTa zjvM7xG6DfzySqiz8jRfrBNJuAaklw0ec7Rx6NTMHfqUpAuWwp99gaIlDo03c+hp hJRXidEs+6n8CJvYB4OyavJIZwBcFgXa+dwXnkNGZApTN4K8hQB4RPaHsUg3z2/B hjvseQXQptSSPS+joWgAd9xZdfsepKChNRa14aangJoTKz+OKva0XbxnYCS/BVuT UsQL43kiKKgaDCJirf0wZTOUk24fsyfBLb4GUmJgL0wpI8cZs34WrZyvoSr3mgWn rKFPXDl0Vubsl3+V20rD46XwbF4Zg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddruddtiedgfeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfgggtgfesthekredtredtjeenucfhrhhomheptehlihhs thgrihhrucfhrhgrnhgtihhsuceorghlihhsthgrihhrsegrlhhishhtrghirhdvfedrmh gvqeenucggtffrrghtthgvrhhnpeefudehhfevgfffleeiffehuddvgedtueeujeeifefh jeejvdeivddugfehfeehjeenucffohhmrghinhepuggvvhhitggvthhrvggvrdhorhhgne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlihhs thgrihhrsegrlhhishhtrghirhdvfedrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 22 Dec 2021 07:46:16 -0500 (EST) From: Alistair Francis To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: dmitry.torokhov@gmail.com, alistair23@gmail.com, robh+dt@kernel.org, linus.walleij@linaro.org, rydberg@bitmath.org, andreas@kemnade.info, =?utf-8?q?Myl=C3=A8ne_Josserand?= , Alistair Francis Subject: [PATCH v4 2/4] dt-bindings: input: Add Cypress TT2100 touchscreen controller Date: Wed, 22 Dec 2021 22:46:01 +1000 Message-Id: <20211222124603.326920-3-alistair@alistair23.me> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211222124603.326920-1-alistair@alistair23.me> References: <20211222124603.326920-1-alistair@alistair23.me> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211222_044623_643841_B9D40CEB X-CRM114-Status: GOOD ( 12.96 ) 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 From: Mylène Josserand 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: Mylène Josserand Signed-off-by: Alistair Francis --- .../input/touchscreen/cypress,tt21000.yaml | 92 +++++++++++++++++++ 1 file changed, 92 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..5a721d789c87 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/cypress,tt21000.yaml @@ -0,0 +1,92 @@ +# SPDX-License-Identifier: GPL-2.0-only +%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,code: + $ref: /schemas/types.yaml#/definitions/uint32 + description: EV_ABS specific event code generated by the axis. + +patternProperties: + "^button-[0-9]+$": + type: object + properties: + linux,code: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Keycode to emit + + required: + - linux,code + + 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 { + linux,code = ; + }; + + button-1 { + linux,code = ; + }; + + button-2 { + linux,code = ; + }; + }; + }; +...