Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2073994pxm; Sun, 27 Feb 2022 10:31:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJymLaHzkjzPIduQZGff9uYNgtgchO7rB6w3+vC0fkkmNIccWn59g+KLj5vbTxKy1Z6HaWp9 X-Received: by 2002:a05:6402:176d:b0:410:80df:ff8e with SMTP id da13-20020a056402176d00b0041080dfff8emr16440996edb.324.1645986719435; Sun, 27 Feb 2022 10:31:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645986719; cv=none; d=google.com; s=arc-20160816; b=HivPIKBK6ujJzn2zxQ3l9lqr255BnTRYSFySxsffGOjZs+YTDSAr+goff3Lr0eqAsK if554MmG5DcbByoz+zeOc4J9cKkcYrgQv2L35j7+uoDGjyeNaGT8uq27qqbvMdsilhqd 1NATafzUh599oDU7M0Yj3PVQ5sG9IX2eDtBSwlK/Em8TqdXtK6YyOlBtqp8qKQJ7ckLy i1tcvshkcxJWFElWGd7gDOWI/2rj8SVIrF8cCa1xZZ6UtkzJb4DPW9EkmFQ6poePGwvp WGgasQQePX1YRfA19/bOxVrHCtz22iCXz3VQn4mDRp17U94DuUfD7jOJUziF/XKI+K1J fgYg== 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 :dkim-signature:dkim-signature; bh=TdjkeNItJHdTmyq+LFHIzBr44CzyamChCcNOe2cjE2M=; b=La4JwqIsywC+pQJ8Hb0tQ9OvFbSV3ZYjNrIcos99GudWJwZ4sZPurXwpMTVyCVh+yk dWKcLrWFzfczPYNpyQUkAsTM8RNGoGSWyc//yBXlwnTYnJLRhszOWNjqaYx22zxjlPjX SxgD+N65t/cOse8UB3s68QTmgk/lyr3kf6SFip17FETGJyEyFqNzW3DO9w95A68L9N/j P2MhFgbkg3ePwLZhQAN76NspfqkCl+B7Mal8LAfsxRg2lNjLkZW+ZENz8X5UbWc1w9zi 5hwDnOXK0WRL8H3QccVbohLnZ3VH6DdeDg22Qe5I2Z+rkzSAClD27kgODnuBFiEBWINK 7Aaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm3 header.b=yLitF93u; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=UABfOWN1; 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 k3-20020a1709062a4300b006ae96f7b834si4711372eje.264.2022.02.27.10.31.37; Sun, 27 Feb 2022 10:31:59 -0800 (PST) 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=yLitF93u; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=UABfOWN1; 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 S230469AbiB0Mli (ORCPT + 99 others); Sun, 27 Feb 2022 07:41:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230251AbiB0Mlg (ORCPT ); Sun, 27 Feb 2022 07:41:36 -0500 Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 898636D382; Sun, 27 Feb 2022 04:40:58 -0800 (PST) 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 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_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 --- .../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 = ; + }; + }; + }; +... -- 2.34.1