From patchwork Wed Nov 3 11:48:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12600625 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC55DC433EF for ; Wed, 3 Nov 2021 11:50:26 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id A9B6661106 for ; Wed, 3 Nov 2021 11:50:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A9B6661106 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=alistair23.me Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=6BZAkx3rlKJhuiAT/YSKbfm3D80wWxOv5L+eGpqns6E=; b=DYZ1Y4X4Z+0rer yqemegS6Rz/9zg1fK/WJgZPfZtpDwlZ6Rh1dZwSLx8l3Fh9mkYxh7PWJ7l4RF99LyNmP45tvmPrcV dQfsSo5MjatvNSqsars2zAQJmhe3fMusQJCbOvgCIiPMTaR5FkULsD00v0HLAyCd/hLEB9WdlN58w 87L//fhPfFT5xyusntIVRx5Up7IVr/tpnwLKKVTxdM8dIL+B46RVkhLJLE4ihUGEQk2YwbYJSzDbx h80WJe4RXKtGmWfJ4/hfxU1khUulHC6sLZ47mZjzdrQwAvQI7tEXRxy5+7y2KQ3O5NXFJwo1LzwVo eav2XD3fwHcatKYEgqGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1miElM-004zus-JC; Wed, 03 Nov 2021 11:49:04 +0000 Received: from new2-smtp.messagingengine.com ([66.111.4.224]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1miEl7-004zrc-Mh for linux-arm-kernel@lists.infradead.org; Wed, 03 Nov 2021 11:48:51 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id EA23258074A; Wed, 3 Nov 2021 07:48:48 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 03 Nov 2021 07:48:48 -0400 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= fciS6BbICquCAT2nipLjc2JqMiyX+SOJZRtpLSc8RfA=; b=1omK5wMNIxqh7gZa VHTPPaYPWycM+L7+hnrDjFt2nBMZizs9tuR3GZxt/YU9l/kgU2XXJ6+odXRy3k6E YteA6yeXiH90yYPCTNm4pwe2WL//7qmCNJPOPK3sUOCzzD+SMGVt2G2Vs/64FiPd KXNot8oZQDPU/YSWnQDkrQknjFoNKCXLq0Er3iZV1LdFVtNa3cYV0HLyMJMB5ZwV KwU3dC5dwEgxQAkUQsywp3HjreZ5y7uPsmQFnslrdOuguUQsG+TAsa8a5xU+040h NGbJWp85++ud9/MG5SGyajnF1Fr7zfCfvJn2pWlNg2ZipoZcEPCAGU8qTQz28Oxn lmX6ew== 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=fciS6BbICquCAT2nipLjc2JqMiyX+SOJZRtpLSc8R fA=; b=WEV+OWYp+8Edef0KUbSJcteFf3R3916W+3JjTPyOeIUctop28D3kwVY7c YXEBGDV3o4VJBJvgYq2eo9bGuL8QJZmsV2Il25oXLdFdisnO+T6J6CQ5vIHqLG0A jQkFP8bhG68efb2SxqvgFg1JKH8+AJuTtrEJxGTZmnG4VhvF+0BHJmddwgFUbrPH ozxk/itKOWLTyETouT46QsHIrdApQTwGr9skwMTI/v87N2vZVqgHw+BACD8iMDZW OdAGEeNpLDYPJFNY0qGRHpzR+cXi9hHBeYHNF4GigQA057ByoY2IJCxMFFccvne4 jNoAEMTkOf8pQFrQl63VtGxLAcBAQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrtddvgdefudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfgggtgfesthekre dtredtjeenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeefudehhfevgf ffleeiffehuddvgedtueeujeeifefhjeejvdeivddugfehfeehjeenucffohhmrghinhep uggvvhhitggvthhrvggvrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomheprghlihhsthgrihhrsegrlhhishhtrghirhdvfedrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 3 Nov 2021 07:48:44 -0400 (EDT) From: Alistair Francis To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: mylene.josserand@free-electrons.com, linus.walleij@linaro.org, andreas@kemnade.info, rydberg@bitmath.org, dmitry.torokhov@gmail.com, robh+dt@kernel.org, alistair23@gmail.com, Alistair Francis Subject: [PATCH v2 2/4] Documentation: DT: bindings: input: Add documentation for cyttsp5 Date: Wed, 3 Nov 2021 21:48:28 +1000 Message-Id: <20211103114830.62711-3-alistair@alistair23.me> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211103114830.62711-1-alistair@alistair23.me> References: <20211103114830.62711-1-alistair@alistair23.me> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211103_044849_862938_36850F6B X-CRM114-Status: GOOD ( 13.53 ) 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 Message-Id: <20170529144538.29187-3-mylene.josserand@free-electrons.com> 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..ff7eca412440 --- /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,cyttsp5.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,tt2100"; + 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_HIGH>; + vdd-supply = <®_touch>; + + button@0 { + linux,code = ; + }; + + button@1 { + linux,code = ; + }; + + button@2 { + linux,code = ; + }; + }; + }; +...