Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp640621rwi; Wed, 26 Oct 2022 05:34:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM57r6bMiKRtidIGEOZCQluGk5Z7N81ABfI5Z+dCNjUEjrD03UALkbhY6fNFwaB6ItHmyLjA X-Received: by 2002:a17:907:3e02:b0:782:1267:f2c8 with SMTP id hp2-20020a1709073e0200b007821267f2c8mr37320161ejc.585.1666787693520; Wed, 26 Oct 2022 05:34:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666787693; cv=none; d=google.com; s=arc-20160816; b=0O/Y27kKLuKI1xOPAbRvVeO+huBIKGkBb/pBV7h50WDR6itpoN6cINkWP0LFntzl71 hWG8/qohQW3/FfFGQfol+SuuEJqLV2zs2hcxe+xl5zJEf1yEZUnGFFV/jJn1Zc7gNxkp BbZ53MX5DjPiYjHAq0ZLEyEwooFdfFVbH2s+VxN5KWBosALDzGlgKfoiRcPMfw7D6aCZ xcUNG5C2PRANFVHZlN/KIUDTJLnNCKYVMFeJCrq92GwjK8jDBGq66Oa2EG1hgoKlmawn c/uk0gMuR0gI/rVnX7rLs1c3/eWidjRWgepIbcYYiba21EAW5hy3Sxu0BSqXassmp/wr 51WQ== 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=x94I9aHfmLGjXqYb5dRoF5FSksxj73tYDSpz7akLDtk=; b=u9PUCraJph+J1AEI7JjyI6/dI4eWutVMXqRbbUTIOMa3KdeqkLm3VNhJ0YDnmMHi1c p6SdlPDF2oRI6XD+GlSQynYg7xNZqpQlop5BhCXsBBFARUIoMOK2I3vwv0FjQMdeig3s Qh3nwQTmtUvGsek1YoeybRgrAKYB6r8zd7D40/a26yhP9pe3cRx5tCApTwVvJXw+AgVG Xji/0ullGDpYnfT+Tv3yBeYx9yIPMylr1r7KF0epq7ltThQGlXJSJIBNeK8LqVAzbijl tmZPdfd5oudF+yOThh5w5SiK7aGQJGLGvAxMa8JykkkqbAPJkUXltFNTZNM2SCgAO1ZG NRJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alistair23.me header.s=fm3 header.b=u8bjBeOE; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="jPbxo/K7"; 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 ch5-20020a0564021bc500b00461c8f80e34si5184214edb.53.2022.10.26.05.34.02; Wed, 26 Oct 2022 05:34:53 -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=u8bjBeOE; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="jPbxo/K7"; 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 S232823AbiJZLuE (ORCPT + 99 others); Wed, 26 Oct 2022 07:50:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233378AbiJZLty (ORCPT ); Wed, 26 Oct 2022 07:49:54 -0400 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 430B954656; Wed, 26 Oct 2022 04:49:53 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 8A4683200920; Wed, 26 Oct 2022 07:49:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 26 Oct 2022 07:49:52 -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=1666784991; x= 1666871391; bh=x94I9aHfmLGjXqYb5dRoF5FSksxj73tYDSpz7akLDtk=; b=u 8bjBeOEKF0NjdTyIRK5jloQAvA7PGK9D2SzNLUNxJkTs4gUkMT8jNn94vQvWMGlX qNVeIQVy0G7KzMbPpY1f0v/Arj5oEk8ni45bCrwO93smM2ERhv5QO2zspucSd2XM 8vn3LMF8cEmDW9KzN/J6WwqhNg/dX8s0ZZB8yTccMrdGxs3BijLeMWqJvmKWRoWY +x/VHooDlOPAe9BD1NT0yIb9P3jgo3EuCsCT1FK9u07BCrKRrnYxsBJEh4PpxGnd f1Ed+epu9OVJ+h9DK0uL0g5YBxrqun3pgpWrRlDw35q+4x2vfymmgnwuV8DvItUo RdWgMuaXWzXoMl9scT2Kg== 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=1666784991; x=1666871391; bh=x94I9aHfmLGjX qYb5dRoF5FSksxj73tYDSpz7akLDtk=; b=jPbxo/K77NBZ+i73snaMWtiOnP9Z7 1g980tfMeZADTmsNX6UdxSJtzvqzS83gyDCfxFOfB6n6H2EMFulq0RBa0zMyDmwh 110f5YnJZGYCLgv3O51bsbP5CnJ4iCf3JoVNr2zTKZf2yD7e/rsYm0XHjBVFrUmq CMeRKRzu0jdWMnd3J7yCh0nXBwJjotFzI2spGQa8n4F9vmDpeSseYpeTlqp9rdPU GriT7535zHBFMpNSocSQiIkmCsnPB0nu/XQLXedpwcJkq/2FA4TnkX0QizG2QB6S DGfskHTCQnq0dHQinJefaKiTN2sTW83Ayb7WOUFKD6sYVOvhby7UdN5rw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrtddvgdeggecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeetlhhishht rghirhcuhfhrrghntghishcuoegrlhhishhtrghirhesrghlihhsthgrihhrvdefrdhmvg eqnecuggftrfgrthhtvghrnheplefgffeuheevvdekgefghfegueeuteetueekteevgedt ffejvefguedujeeljeevnecuffhomhgrihhnpeguvghvihgtvghtrhgvvgdrohhrghenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishht rghirhesrghlihhsthgrihhrvdefrdhmvg X-ME-Proxy: Feedback-ID: ifd214418:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 26 Oct 2022 07:49:42 -0400 (EDT) From: Alistair Francis To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org Cc: krzysztof.kozlowski+dt@linaro.org, linus.walleij@linaro.org, robh+dt@kernel.org, dmitry.torokhov@gmail.com, shawnguo@kernel.org, rydberg@bitmath.org, alistair23@gmail.com, s.hauer@pengutronix.de, andreas@kemnade.info, Alistair Francis , Rob Herring Subject: [PATCH v10 2/4] dt-bindings: input: Add Cypress TT21000 touchscreen controller Date: Wed, 26 Oct 2022 21:49:06 +1000 Message-Id: <20221026114908.191472-3-alistair@alistair23.me> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221026114908.191472-1-alistair@alistair23.me> References: <20221026114908.191472-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,SPF_HELO_PASS, SPF_PASS,URIBL_BLOCKED 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 | 106 ++++++++++++++++++ 1 file changed, 106 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..1959ec394768 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/cypress,tt21000.yaml @@ -0,0 +1,106 @@ +# 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 TT21000 touchscreen controller + +description: The Cypress TT21000 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 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + 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