From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D8FF1C433FE for ; Tue, 4 Jan 2022 19:30:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229719AbiADTaa (ORCPT ); Tue, 4 Jan 2022 14:30:30 -0500 Received: from mail-oi1-f182.google.com ([209.85.167.182]:43724 "EHLO mail-oi1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbiADTa2 (ORCPT ); Tue, 4 Jan 2022 14:30:28 -0500 Received: by mail-oi1-f182.google.com with SMTP id u21so47721764oie.10; Tue, 04 Jan 2022 11:30:28 -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=Fp7mpV0jaGY/mBci3bW2viP27TakGFeuXQpYOq0ghhY=; b=rd07o7jV/7gIBrOfwjjL+dsSZCIWy6NAqUUSF+Zahu7WS0TBYo9gmxLtWYyaSQFA2B aoztWil5fy+Zxo+bXElQ4O7ycLJaW/6TavpbZ4wdTvbetFgwjXz8jV7O47oySiubEqkw oKIbmFFxNB0AMezjSdCQoInqKjvmySA9RZoi6SAWIq+aW0ZprQM8lUH6A2LgYpwny3Fh QDi2/zyg7geLXRnG0bO91pubBSrolgmD0xot3gyCgM/OEr50tLfhJsiLOthaiHVTuhvR eYQ+/NuVR/YTC6L64LeiTuObqAtWJBnMfd0tsD3d5M9uKxO7/iU/2WHDt60EvHVR6pag hfRA== X-Gm-Message-State: AOAM530ha3Au8WnXPeWHqlXzjWBYYNoRBwTzmxLUKivoloHcOcodvMpH 7ICn+OyyeM7fy5WWauZqwA== X-Google-Smtp-Source: ABdhPJxR+udq9ZViO2cj397JZRBYhhH5HT6XF2Y2AOr6hkSQFSItryyl69fzJh8TNOcXXyssw8NUPg== X-Received: by 2002:a05:6808:241:: with SMTP id m1mr39397412oie.169.1641324627810; Tue, 04 Jan 2022 11:30:27 -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 x26sm2075011ote.78.2022.01.04.11.30.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jan 2022 11:30:27 -0800 (PST) Received: (nullmailer pid 1268031 invoked by uid 1000); Tue, 04 Jan 2022 19:30:26 -0000 Date: Tue, 4 Jan 2022 13:30:26 -0600 From: Rob Herring To: Alistair Francis Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, dmitry.torokhov@gmail.com, alistair23@gmail.com, linus.walleij@linaro.org, rydberg@bitmath.org, andreas@kemnade.info, =?iso-8859-1?Q?Myl=E8ne?= Josserand Subject: Re: [PATCH v4 2/4] dt-bindings: input: Add Cypress TT2100 touchscreen controller Message-ID: References: <20211222124603.326920-1-alistair@alistair23.me> <20211222124603.326920-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: <20211222124603.326920-3-alistair@alistair23.me> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 22, 2021 at 10:46:01PM +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..5a721d789c87 > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/touchscreen/cypress,tt21000.yaml > @@ -0,0 +1,92 @@ > +# SPDX-License-Identifier: GPL-2.0-only Dual license new bindings. 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]+$": > + 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 > > From mboxrd@z Thu Jan 1 00:00:00 1970 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 4F4D9C433EF for ; Tue, 4 Jan 2022 19:32:00 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6X25CPUWCHYQAQQAGnGT/tXkjim/AqSOEcvaQD4o7OQ=; b=a9hKWqQpCsf7ee nMWgHT2YRWH3gINWibv9unoGR4ptWxD8sapfRXnE7p0TvqiZ9nv9eBl58yWfxDrajmuq3yn3pu8EO 2GNdxqMQIID9RDb7/L15Y+9B4C+vtoKp0P+cOVzNqV4Y3jSnh2+n9WaNLkJqsy4+swr8THcJnBviB ncmopNjPv5yvpBtCfG65f4jNvEurqK4UC7kthwWhcujsahk7FAPaAh+OSo9fPIupsuL0z4sMQ8p6Y 4U5ypkjPZumKva/weGKe8wS3/L8aNBoM2qudwEeDr+R50imdbxpqpnSlrssATwuY/+SdS8cvB2MWw 38+69dJQeMW5i4cUkaTg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4pVx-00Cbp7-B3; Tue, 04 Jan 2022 19:30:33 +0000 Received: from mail-oi1-f174.google.com ([209.85.167.174]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4pVt-00CboC-AQ for linux-arm-kernel@lists.infradead.org; Tue, 04 Jan 2022 19:30:31 +0000 Received: by mail-oi1-f174.google.com with SMTP id x10so56027418oix.6 for ; Tue, 04 Jan 2022 11:30:28 -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=Fp7mpV0jaGY/mBci3bW2viP27TakGFeuXQpYOq0ghhY=; b=lzuqoH+WK6Yfbf3FIagBVvsgYNZ+X7wgT4VGcDoNzhEWcAxS86d9hWemLiGMhXd1+q P4dMbWytuQDed+zgN2Mr4axOTTYBAuqpDI8icaXGsscxyH+3Hn/cn7M50SKtNoJY+ysc zIW9M3DU+Gt+jzvuQuqH5ju2QQ5oeSLfK2Oh2ADUdZLo6h+0BOhtLl2vUal7B9YYNcS7 BA4O9K/EfqQ8p0CUvMbsPOVvsbmPegPC6xZ/DB6FOPXdvxq9crXU5U1g7LtOpC0Kb9no tvs7b8FxJ6p5sVe8PDSswdSDIZ7kj9WJY1SOGX1AKOPiBqiy5hsmUd9oHWIIVwyVr3y5 tYpg== X-Gm-Message-State: AOAM532hrZzm7erVV+8rMBTtWLeVlpFcIVcP/cY6XkR3cuSCF6X610X1 TI+p5m/nRx9LJiUX90sK3A== X-Google-Smtp-Source: ABdhPJxR+udq9ZViO2cj397JZRBYhhH5HT6XF2Y2AOr6hkSQFSItryyl69fzJh8TNOcXXyssw8NUPg== X-Received: by 2002:a05:6808:241:: with SMTP id m1mr39397412oie.169.1641324627810; Tue, 04 Jan 2022 11:30:27 -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 x26sm2075011ote.78.2022.01.04.11.30.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jan 2022 11:30:27 -0800 (PST) Received: (nullmailer pid 1268031 invoked by uid 1000); Tue, 04 Jan 2022 19:30:26 -0000 Date: Tue, 4 Jan 2022 13:30:26 -0600 From: Rob Herring To: Alistair Francis Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, dmitry.torokhov@gmail.com, alistair23@gmail.com, linus.walleij@linaro.org, rydberg@bitmath.org, andreas@kemnade.info, =?iso-8859-1?Q?Myl=E8ne?= Josserand Subject: Re: [PATCH v4 2/4] dt-bindings: input: Add Cypress TT2100 touchscreen controller Message-ID: References: <20211222124603.326920-1-alistair@alistair23.me> <20211222124603.326920-3-alistair@alistair23.me> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211222124603.326920-3-alistair@alistair23.me> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220104_113029_396227_CB1E3984 X-CRM114-Status: GOOD ( 20.93 ) 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: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Dec 22, 2021 at 10:46:01PM +1000, Alistair Francis wrote: > From: Myl=E8ne 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=E8ne 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/c= ypress,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 Dual license new bindings. GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/input/touchscreen/cypress,tt21000.yam= l# > +$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 =3D <1>; > + #size-cells =3D <0>; > + > + touchscreen@24 { > + compatible =3D "cypress,tt21000"; > + reg =3D <0x24>; > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&tp_reset_ds203>; > + interrupt-parent =3D <&pio>; > + interrupts =3D <1 5 IRQ_TYPE_LEVEL_LOW>; > + reset-gpios =3D <&pio 7 1 GPIO_ACTIVE_LOW>; > + vdd-supply =3D <®_touch>; > + > + button-0 { > + linux,code =3D ; > + }; > + > + button-1 { > + linux,code =3D ; > + }; > + > + button-2 { > + linux,code =3D ; > + }; > + }; > + }; > +... > -- = > 2.31.1 > = > = _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel