Message ID | 20231211121430.1689139-3-kamel.bouhara@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp6998873vqy; Mon, 11 Dec 2023 04:15:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHbdYZEoyGJTvXoYwtvV9bOG5ITZG642QhpEjTjk0Dv05kGMQvaxtJyS6xW7BHgtu29rKHG X-Received: by 2002:a17:90a:ce03:b0:286:e34a:d163 with SMTP id f3-20020a17090ace0300b00286e34ad163mr1632543pju.3.1702296907446; Mon, 11 Dec 2023 04:15:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702296907; cv=none; d=google.com; s=arc-20160816; b=hXvqTn21m+7vFKJ1a9cGIsY4mr0cX5wih1g9qMIXcG57wYEjpmB3k3nxhOAEYOTpAZ 6hVLTjGUGVuklsGginVqrYPQoEKw/oD67hkU9dqoMj0Cmxp+dqaQthSHcu1Kir3nG80c VD7ShKtcyGkTC4OWpN4n1oEL9RIxj/doPmRC6YcpofVLDSS+rY5PneO7FlseZHkHNM3X G6bgfPZLaVrrwR8FYpo3BVkSriVg89AHUOCdJfcEihDw7mCVD84D5c1vCVG3Z0miVnOJ dSjlhebVCIBbYTjCd69WU47sWFjCQhHehqTRKE0nIz7n6kCpbCEfQTNrqICFUWbh/TaS 7wGg== 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; bh=Eg87ZovtTfscZWbYAJIdbHo+yXOg2XwLG3HN8O/pMsg=; fh=EgA3ynOL0MYidVPneEorVrq8MDk7rnKA329crS/81pE=; b=Fw132PYl/2H4ObwFySAHtdwNei79hwzfIm+J73OyCYHIesEqCFiiv7ZB9qIIvn0Fla hNKCdN3kD9jTyl31GKGfXIBaOfLnfr596XN+Q7GOfh3Q/0RQVxGI1TYspWmec7A3Jsxa NTiaRUozAMxpKgeZYHLZ/Pencove1fmy5D6gYZUOsxWOchz62811/FsRAYrYYZJabJp9 0gNx7vs/r/amnhTeFZ0R/ok5P02jD9jVGWlbJzqAGzPgoptpSJ6yMnx5BVS8dBKxEpT8 aeCqz8QsYHE8M2mag38fFCgviQO2bPKrPeew0jWcrcKx/+6ye8rCvV0AWaa7YG+neytj FYAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=QH6gccPC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id o8-20020a17090aac0800b0028648abac04si6008447pjq.58.2023.12.11.04.15.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 04:15:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=QH6gccPC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 8CB2B808D239; Mon, 11 Dec 2023 04:14:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234453AbjLKMOp (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Mon, 11 Dec 2023 07:14:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234803AbjLKMOi (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 11 Dec 2023 07:14:38 -0500 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::225]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58ABADC; Mon, 11 Dec 2023 04:14:43 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 795DD1C000A; Mon, 11 Dec 2023 12:14:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1702296882; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Eg87ZovtTfscZWbYAJIdbHo+yXOg2XwLG3HN8O/pMsg=; b=QH6gccPCVALh6eD2FyEtc0C4RVC37GtrEsTRk8a6j6rGH5DXwN/K/MchaZW0XGMjeS0PEK z7NWkjpCKIjM7g7/2qBTUzDN86vdFLHhJE/89nx5n7uU2U8hcAgWLPupdbCpdWPzIXrcT9 5CiVDc5WFQqevtFhwv23E+qnfFxoSFkbL10GEtWaMX5yJdyK9joUEiTUpZV2Pz+RlI48AO Z5rbWBFA7+QM5JKjjKHgSsHdovYI3gMx+39g43BKf+TBRJwtXDvr77XVMix4EV7/Y6kXXY XoaYMqjIDVuG9iHlaRVyxNh8fBMUBbmtewZRQkVRP3TLr0he4PfRYA8GLWFFwA== From: Kamel Bouhara <kamel.bouhara@bootlin.com> To: Dmitry Torokhov <dmitry.torokhov@gmail.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Henrik Rydberg <rydberg@bitmath.org>, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Marco Felsch <m.felsch@pengutronix.de>, Jeff LaBundy <jeff@labundy.com> Cc: catalin.popescu@leica-geosystems.com, mark.satterthwaite@touchnetix.com, bartp@baasheep.co.uk, hannah.rossiter@touchnetix.com, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Gregory Clement <gregory.clement@bootlin.com>, bsp-development.geo@leica-geosystems.com, Kamel Bouhara <kamel.bouhara@bootlin.com> Subject: [PATCH v5 2/3] dt-bindings: input: Add TouchNetix axiom touchscreen Date: Mon, 11 Dec 2023 13:14:28 +0100 Message-ID: <20231211121430.1689139-3-kamel.bouhara@bootlin.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231211121430.1689139-1-kamel.bouhara@bootlin.com> References: <20231211121430.1689139-1-kamel.bouhara@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: kamel.bouhara@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 11 Dec 2023 04:14:58 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784987681939648766 X-GMAIL-MSGID: 1784987681939648766 |
Series |
Input: Add TouchNetix axiom touchscreen driver
|
|
Commit Message
Kamel Bouhara
Dec. 11, 2023, 12:14 p.m. UTC
Add the TouchNetix axiom I2C touchscreen device tree bindings
documentation.
Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com>
---
.../input/touchscreen/touchnetix,ax54a.yaml | 64 +++++++++++++++++++
MAINTAINERS | 6 ++
2 files changed, 70 insertions(+)
create mode 100644 Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml
Comments
On Mon, Dec 11, 2023 at 01:14:28PM +0100, Kamel Bouhara wrote: > Add the TouchNetix axiom I2C touchscreen device tree bindings > documentation. > > Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com> > --- > .../input/touchscreen/touchnetix,ax54a.yaml | 64 +++++++++++++++++++ > MAINTAINERS | 6 ++ > 2 files changed, 70 insertions(+) > create mode 100644 Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml > > diff --git a/Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml b/Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml > new file mode 100644 > index 000000000000..cbdf48fc538b > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml > @@ -0,0 +1,64 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/input/touchscreen/touchnetix,ax54a.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: TouchNetix Axiom series touchscreen controller > + > +maintainers: > + - Kamel Bouhara <kamel.bouhara@bootlin.com> > + > +allOf: > + - $ref: /schemas/input/touchscreen/touchscreen.yaml# Weird, you add this ref here but do not actually allow any properties from it since you have "additionalProperties: false" below. What's the point of its inclusion? Cheers, Conor. > + - $ref: /schemas/input/input.yaml# > + > +properties: > + compatible: > + const: touchnetix,ax54a > + > + reg: > + const: 0x66 > + > + interrupts: > + maxItems: 1 > + > + reset-gpios: > + maxItems: 1 > + > + vdda-supply: > + description: Analog power supply regulator on VDDA pin > + > + vddi-supply: > + description: I/O power supply regulator on VDDI pin > + > + poll-interval: true > + > +required: > + - compatible > + - reg > + - vdda-supply > + - vddi-supply > + > +additionalProperties: false > + > +examples: > + - | > + #include <dt-bindings/gpio/gpio.h> > + #include <dt-bindings/interrupt-controller/arm-gic.h> > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + touchscreen@66 { > + compatible = "touchnetix,ax54a"; > + reg = <0x66>; > + interrupt-parent = <&gpio2>; > + interrupts = <2 IRQ_TYPE_EDGE_FALLING>; > + reset-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; > + vdda-supply = <&vdda_reg>; > + vddi-supply = <&vddi_reg>; > + poll-interval = <20>; > + }; > + }; > +... > diff --git a/MAINTAINERS b/MAINTAINERS > index 7608b714653f..4752d8436dbb 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -21431,6 +21431,12 @@ S: Maintained > F: Documentation/ABI/testing/sysfs-class-firmware-attributes > F: drivers/platform/x86/think-lmi.? > > +TOUCHNETIX AXIOM I2C TOUCHSCREEN DRIVER > +M: Kamel Bouhara <kamel.bouhara@bootlin.com> > +L: linux-input@vger.kernel.org > +S: Maintained > +F: Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml > + > THUNDERBOLT DMA TRAFFIC TEST DRIVER > M: Isaac Hazan <isaac.hazan@intel.com> > L: linux-usb@vger.kernel.org > -- > 2.25.1 >
On 12/12/2023 17:57, Conor Dooley wrote: > On Mon, Dec 11, 2023 at 01:14:28PM +0100, Kamel Bouhara wrote: >> Add the TouchNetix axiom I2C touchscreen device tree bindings >> documentation. >> >> Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com> >> --- >> .../input/touchscreen/touchnetix,ax54a.yaml | 64 +++++++++++++++++++ >> MAINTAINERS | 6 ++ >> 2 files changed, 70 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml >> >> diff --git a/Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml b/Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml >> new file mode 100644 >> index 000000000000..cbdf48fc538b >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml >> @@ -0,0 +1,64 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/input/touchscreen/touchnetix,ax54a.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: TouchNetix Axiom series touchscreen controller >> + >> +maintainers: >> + - Kamel Bouhara <kamel.bouhara@bootlin.com> >> + >> +allOf: >> + - $ref: /schemas/input/touchscreen/touchscreen.yaml# > > Weird, you add this ref here but do not actually allow any properties > from it since you have "additionalProperties: false" below. > > What's the point of its inclusion? It still brings the type of some fields or the constraints. However need of specifying "poll-interval" already points to missing unevaluatedProperties. Best regards, Krzysztof
Hi, Le Tue, Dec 12, 2023 at 04:57:11PM +0000, Conor Dooley a écrit : > On Mon, Dec 11, 2023 at 01:14:28PM +0100, Kamel Bouhara wrote: > > Add the TouchNetix axiom I2C touchscreen device tree bindings > > documentation. > > > > Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com> > > --- > > .../input/touchscreen/touchnetix,ax54a.yaml | 64 +++++++++++++++++++ > > MAINTAINERS | 6 ++ > > 2 files changed, 70 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml > > > > diff --git a/Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml b/Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml > > new file mode 100644 > > index 000000000000..cbdf48fc538b > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml > > @@ -0,0 +1,64 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/input/touchscreen/touchnetix,ax54a.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: TouchNetix Axiom series touchscreen controller > > + > > +maintainers: > > + - Kamel Bouhara <kamel.bouhara@bootlin.com> > > + > > +allOf: > > + - $ref: /schemas/input/touchscreen/touchscreen.yaml# > > Weird, you add this ref here but do not actually allow any properties > from it since you have "additionalProperties: false" below. > > What's the point of its inclusion? Currently the driver doesn't use thoses properties but still some are valid for this device. Greetings, Kamel > > Cheers, > Conor. > > > + - $ref: /schemas/input/input.yaml# > > + > > +properties: > > + compatible: > > + const: touchnetix,ax54a > > + > > + reg: > > + const: 0x66 > > + > > + interrupts: > > + maxItems: 1 > > + > > + reset-gpios: > > + maxItems: 1 > > + > > + vdda-supply: > > + description: Analog power supply regulator on VDDA pin > > + > > + vddi-supply: > > + description: I/O power supply regulator on VDDI pin > > + > > + poll-interval: true > > + > > +required: > > + - compatible > > + - reg > > + - vdda-supply > > + - vddi-supply > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include <dt-bindings/gpio/gpio.h> > > + #include <dt-bindings/interrupt-controller/arm-gic.h> > > + i2c { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + touchscreen@66 { > > + compatible = "touchnetix,ax54a"; > > + reg = <0x66>; > > + interrupt-parent = <&gpio2>; > > + interrupts = <2 IRQ_TYPE_EDGE_FALLING>; > > + reset-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; > > + vdda-supply = <&vdda_reg>; > > + vddi-supply = <&vddi_reg>; > > + poll-interval = <20>; > > + }; > > + }; > > +... > > diff --git a/MAINTAINERS b/MAINTAINERS > > index 7608b714653f..4752d8436dbb 100644 > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -21431,6 +21431,12 @@ S: Maintained > > F: Documentation/ABI/testing/sysfs-class-firmware-attributes > > F: drivers/platform/x86/think-lmi.? > > > > +TOUCHNETIX AXIOM I2C TOUCHSCREEN DRIVER > > +M: Kamel Bouhara <kamel.bouhara@bootlin.com> > > +L: linux-input@vger.kernel.org > > +S: Maintained > > +F: Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml > > + > > THUNDERBOLT DMA TRAFFIC TEST DRIVER > > M: Isaac Hazan <isaac.hazan@intel.com> > > L: linux-usb@vger.kernel.org > > -- > > 2.25.1 > > -- Kamel Bouhara, Bootlin Embedded Linux and kernel engineering https://bootlin.com
Hello Krzysztof, Le Wed, Dec 13, 2023 at 07:44:33AM +0100, Krzysztof Kozlowski a écrit : > On 12/12/2023 17:57, Conor Dooley wrote: > > On Mon, Dec 11, 2023 at 01:14:28PM +0100, Kamel Bouhara wrote: > >> Add the TouchNetix axiom I2C touchscreen device tree bindings > >> documentation. > >> > >> Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com> > >> --- > >> .../input/touchscreen/touchnetix,ax54a.yaml | 64 +++++++++++++++++++ > >> MAINTAINERS | 6 ++ > >> 2 files changed, 70 insertions(+) > >> create mode 100644 Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml > >> > >> diff --git a/Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml b/Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml > >> new file mode 100644 > >> index 000000000000..cbdf48fc538b > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml > >> @@ -0,0 +1,64 @@ > >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > >> +%YAML 1.2 > >> +--- > >> +$id: http://devicetree.org/schemas/input/touchscreen/touchnetix,ax54a.yaml# > >> +$schema: http://devicetree.org/meta-schemas/core.yaml# > >> + > >> +title: TouchNetix Axiom series touchscreen controller > >> + > >> +maintainers: > >> + - Kamel Bouhara <kamel.bouhara@bootlin.com> > >> + > >> +allOf: > >> + - $ref: /schemas/input/touchscreen/touchscreen.yaml# > > > > Weird, you add this ref here but do not actually allow any properties > > from it since you have "additionalProperties: false" below. > > > > What's the point of its inclusion? > > It still brings the type of some fields or the constraints. However need > of specifying "poll-interval" already points to missing > unevaluatedProperties. Ok, this wasn't clear for me wether or not I should pick unevaluatedProperties as I still reference "poll-interval" from the input.yaml schema ? Regards, -- Kamel Bouhara, Bootlin Embedded Linux and kernel engineering https://bootlin.com
On 13/12/2023 09:22, Kamel Bouhara wrote: >> It still brings the type of some fields or the constraints. However need >> of specifying "poll-interval" already points to missing >> unevaluatedProperties. > > Ok, this wasn't clear for me wether or not I should pick > unevaluatedProperties Yes > as I still reference "poll-interval" from the > input.yaml schema ? You should drop it from your binding. Best regards, Krzysztof
Le Wed, Dec 13, 2023 at 09:46:03AM +0100, Krzysztof Kozlowski a écrit : > On 13/12/2023 09:22, Kamel Bouhara wrote: > >> It still brings the type of some fields or the constraints. However need > >> of specifying "poll-interval" already points to missing > >> unevaluatedProperties. > > > > Ok, this wasn't clear for me wether or not I should pick > > unevaluatedProperties > > Yes > > > as I still reference "poll-interval" from the > > input.yaml schema ? > > You should drop it from your binding. The driver use it could you explain why I should drop it ? -- Kamel Bouhara, Bootlin Embedded Linux and kernel engineering https://bootlin.com
On 13/12/2023 10:14, Kamel Bouhara wrote: > Le Wed, Dec 13, 2023 at 09:46:03AM +0100, Krzysztof Kozlowski a écrit : >> On 13/12/2023 09:22, Kamel Bouhara wrote: >>>> It still brings the type of some fields or the constraints. However need >>>> of specifying "poll-interval" already points to missing >>>> unevaluatedProperties. >>> >>> Ok, this wasn't clear for me wether or not I should pick >>> unevaluatedProperties >> >> Yes >> >>> as I still reference "poll-interval" from the >>> input.yaml schema ? >> >> You should drop it from your binding. > > The driver use it could you explain why I should drop it ? Because it comes from input.yaml and you did not add any constraints, so poll-interval here is redundant. Best regards, Krzysztof
Le Wed, Dec 13, 2023 at 10:15:35AM +0100, Krzysztof Kozlowski a écrit : > On 13/12/2023 10:14, Kamel Bouhara wrote: > > Le Wed, Dec 13, 2023 at 09:46:03AM +0100, Krzysztof Kozlowski a écrit : > >> On 13/12/2023 09:22, Kamel Bouhara wrote: > >>>> It still brings the type of some fields or the constraints. However need > >>>> of specifying "poll-interval" already points to missing > >>>> unevaluatedProperties. > >>> > >>> Ok, this wasn't clear for me wether or not I should pick > >>> unevaluatedProperties > >> > >> Yes > >> > >>> as I still reference "poll-interval" from the > >>> input.yaml schema ? > >> > >> You should drop it from your binding. > > > > The driver use it could you explain why I should drop it ? > > Because it comes from input.yaml and you did not add any constraints, so > poll-interval here is redundant. > Ok clear, thanks ! Regards, -- Kamel Bouhara, Bootlin Embedded Linux and kernel engineering https://bootlin.com
diff --git a/Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml b/Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml new file mode 100644 index 000000000000..cbdf48fc538b --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/touchnetix,ax54a.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TouchNetix Axiom series touchscreen controller + +maintainers: + - Kamel Bouhara <kamel.bouhara@bootlin.com> + +allOf: + - $ref: /schemas/input/touchscreen/touchscreen.yaml# + - $ref: /schemas/input/input.yaml# + +properties: + compatible: + const: touchnetix,ax54a + + reg: + const: 0x66 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + vdda-supply: + description: Analog power supply regulator on VDDA pin + + vddi-supply: + description: I/O power supply regulator on VDDI pin + + poll-interval: true + +required: + - compatible + - reg + - vdda-supply + - vddi-supply + +additionalProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + #include <dt-bindings/interrupt-controller/arm-gic.h> + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@66 { + compatible = "touchnetix,ax54a"; + reg = <0x66>; + interrupt-parent = <&gpio2>; + interrupts = <2 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; + vdda-supply = <&vdda_reg>; + vddi-supply = <&vddi_reg>; + poll-interval = <20>; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 7608b714653f..4752d8436dbb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -21431,6 +21431,12 @@ S: Maintained F: Documentation/ABI/testing/sysfs-class-firmware-attributes F: drivers/platform/x86/think-lmi.? +TOUCHNETIX AXIOM I2C TOUCHSCREEN DRIVER +M: Kamel Bouhara <kamel.bouhara@bootlin.com> +L: linux-input@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/input/touchscreen/touchnetix,ax54a.yaml + THUNDERBOLT DMA TRAFFIC TEST DRIVER M: Isaac Hazan <isaac.hazan@intel.com> L: linux-usb@vger.kernel.org