Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1625075pxb; Sat, 22 Jan 2022 01:41:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyO7ickorw+ag4AYJEO4KMvj1PSROPDucbON4pzxwm6FA7OgkFHg+SxxZyv5q+122Y8fGZn X-Received: by 2002:a63:534f:: with SMTP id t15mr5532040pgl.327.1642844517108; Sat, 22 Jan 2022 01:41:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642844517; cv=none; d=google.com; s=arc-20160816; b=W50aY5HWjU3POQ65hZZcp8kQlegLw67TAInBDuGXlndzC2m4bXurtMg7M1CcTPgEZU rIOrVVHBoxiJOCfCPLkAL2xI0OIeujMUY1oXepQ+t6xLmSOm8fjdZ3ybrpS8k/QnMek3 lUnqZhE1sXnENQu6Qak4qTVYR3KCC+iEgxRqJiYYVR5yERQhFZ3+OQ6OUSOZRwbRSeb+ 4pPwSNO0O7io/L+MszAPcQ8TiCIjKja2vXFgoI/i7GdtZsdfm+bT76X3CiDe+xP1cnLa gXTn4s9ORSsRb8gACQ2U9kauhUmih3egar7DCZoG6ZXPFvcIzxgblIyII1D4CQrqxzxL V38Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=B5PRJv8DW4GtoofF22Yvx5mcu38WclazOKtU1d0nT6U=; b=JNuq4RdkpFYeRg9//z3oRMICY0kkAV4xc6FgUtU9XQ25+ySbzMSOz2raN5IpXCI02S rRoPhTaQl9tQy1DlaD+FS1lM6UTH80cikhtkV2DX2VMm09pCCAYfsSdC6Ec9a6sCH6i+ BmRzv+N7xF12yRh2AuwT6uhkmnRvM5ojITkfge/uSFE/sIr0GW2kIyDIZZK+VSgEAxu8 mcN70fdiTml+Tf+rSIlPwT3IXerTXHJ/xd3NfBwi2YrE47az+WthkGdH3HfxhEURpijT PJCNGWPTDGgYll83Ke0j6vJnw0Y0JAozwVnTURj+ka3nS2inXLi28Do0F8oTl0Ta2V3b to0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j68si7972584pfb.379.2022.01.22.01.41.45; Sat, 22 Jan 2022 01:41:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231860AbiAUWI5 (ORCPT + 99 others); Fri, 21 Jan 2022 17:08:57 -0500 Received: from mail-oi1-f180.google.com ([209.85.167.180]:45728 "EHLO mail-oi1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiAUWI5 (ORCPT ); Fri, 21 Jan 2022 17:08:57 -0500 Received: by mail-oi1-f180.google.com with SMTP id m9so1083159oia.12; Fri, 21 Jan 2022 14:08:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=B5PRJv8DW4GtoofF22Yvx5mcu38WclazOKtU1d0nT6U=; b=z1t8EgPdc82tFjmnizYT8KGo3305Uc1yE0e9m7QZxPg1FwTXH5rcTaho13UYF+EtUW idPsQImxcosKUSDsIXiPXNUeeYKVLspmEcreHVxfBXIK0z6X5jIJt5dMzDi10njumbIs fKhOlq7Pg7lMx5Eslsk7C3fQKGHbgT9Jme/lEUlfPpEkXp0gTMXrq/dqDxz4DwM45S9n G80mjwd+K3iBZfAjomwcV8/VjDpY2X7oAa4BkumwLkk+lnXYLqxSysBk6WdGuSAJDKRM R1WopoKP01xUyfoo5WttPIosRnvhIJiFg8s8n4/MYbZDyUyZ69LGYNc4kdSL1/112QyP UNpg== X-Gm-Message-State: AOAM531EBgBT5gQPH/bBFNi+tBarv7IUgZInBpUWgJySJwsRc9KA8HDP 5OppJvhrO/gSD0jk8RIR1zSQpkEYfg== X-Received: by 2002:aca:b985:: with SMTP id j127mr2168884oif.92.1642802936359; Fri, 21 Jan 2022 14:08:56 -0800 (PST) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id l16sm1310898oop.45.2022.01.21.14.08.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jan 2022 14:08:55 -0800 (PST) Received: (nullmailer pid 1682948 invoked by uid 1000); Fri, 21 Jan 2022 22:08:54 -0000 Date: Fri, 21 Jan 2022 16:08:54 -0600 From: Rob Herring To: Alistair Francis Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dmitry.torokhov@gmail.com, rydberg@bitmath.org, andreas@kemnade.info, linus.walleij@linaro.org, alistair23@gmail.com, =?iso-8859-1?Q?Myl=E8ne?= Josserand Subject: Re: [PATCH v5 2/4] dt-bindings: input: Add Cypress TT2100 touchscreen controller Message-ID: References: <20220109115331.388633-1-alistair@alistair23.me> <20220109115331.388633-3-alistair@alistair23.me> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220109115331.388633-3-alistair@alistair23.me> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 09, 2022 at 09:53:29PM +1000, Alistair Francis wrote: > 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..acd2d9389f8c > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/touchscreen/cypress,tt21000.yaml > @@ -0,0 +1,92 @@ > +# 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,code: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: EV_ABS specific event code generated by the axis. > + > +patternProperties: > + "^button-[0-9]+$": Where does the numbering come from? I assume it correlates to something in the h/w. If so, I think you should use 'reg' and a unit-address here. Generally, we don't want the node names to be important (i.e. used by the OS). > + 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 = ; > + }; > + }; > + }; > +... > -- > 2.31.1 > >