* [PATCH 0/4] Input: imx6ul_tsc - set glitch threshold by dts property
@ 2025-07-22 10:36 Dario Binacchi
2025-07-22 10:36 ` [PATCH 2/4] dt-bindings: input: touchscreen: fsl,imx6ul-tsc: add fsl,glitch-threshold Dario Binacchi
0 siblings, 1 reply; 7+ messages in thread
From: Dario Binacchi @ 2025-07-22 10:36 UTC (permalink / raw)
To: linux-kernel
Cc: linux-amarula, Dario Binacchi, Conor Dooley, Dmitry Torokhov,
Fabio Estevam, Haibo Chen, Krzysztof Kozlowski, Michael Trimarchi,
Pengutronix Kernel Team, Rob Herring, Sascha Hauer, Shawn Guo,
devicetree, imx, linux-arm-kernel, linux-input
The series allows setting the glitch threshold for the detected signal
from a DTS property instead of a hardcoded value.
In addition, I applied a patch that replaces opencoded masking and
shifting, with BIT(), GENMASK(), FIELD_GET() and FIELD_PREP() macros.
Dario Binacchi (3):
dt-bindings: input: touchscreen: fsl,imx6ul-tsc: add
fsl,glitch-threshold
Input: imx6ul_tsc - set glitch threshold by DTS property
Input: imx6ul_tsc - use BIT, FIELD_{GET,PREP} and GENMASK macros
Michael Trimarchi (1):
Input: imx6ul_tsc - fix typo in register name
.../input/touchscreen/fsl,imx6ul-tsc.yaml | 18 +++
drivers/input/touchscreen/imx6ul_tsc.c | 112 +++++++++++-------
2 files changed, 86 insertions(+), 44 deletions(-)
--
2.43.0
base-commit: 89be9a83ccf1f88522317ce02f854f30d6115c41
branch: tsc_de_glitch
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/4] dt-bindings: input: touchscreen: fsl,imx6ul-tsc: add fsl,glitch-threshold
2025-07-22 10:36 [PATCH 0/4] Input: imx6ul_tsc - set glitch threshold by dts property Dario Binacchi
@ 2025-07-22 10:36 ` Dario Binacchi
2025-07-23 2:45 ` Bough Chen
2025-07-23 5:03 ` Rob Herring
0 siblings, 2 replies; 7+ messages in thread
From: Dario Binacchi @ 2025-07-22 10:36 UTC (permalink / raw)
To: linux-kernel
Cc: linux-amarula, Dario Binacchi, Conor Dooley, Dmitry Torokhov,
Fabio Estevam, Haibo Chen, Krzysztof Kozlowski,
Pengutronix Kernel Team, Rob Herring, Sascha Hauer, Shawn Guo,
devicetree, imx, linux-arm-kernel, linux-input
Add support for glitch threshold configuration. A detected signal is valid
only if it lasts longer than the set threshold; otherwise, it is regarded
as a glitch.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
.../input/touchscreen/fsl,imx6ul-tsc.yaml | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml
index 678756ad0f92..2fee2940213f 100644
--- a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml
+++ b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml
@@ -62,6 +62,23 @@ properties:
description: Number of data samples which are averaged for each read.
enum: [ 1, 4, 8, 16, 32 ]
+ fsl,glitch-threshold:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ default: 0
+ enum: [ 0, 1, 2, 3 ]
+ description: |
+ Indicates the glitch threshold. The threshold is defined by number
+ of clock cycles. A detect signal is only valid if it is exist longer
+ than threshold; otherwise, it is regarded as a glitch.
+ 0: Normal function: 8191 clock cycles
+ Low power mode: 9 clock cycles
+ 1: Normal function: 4095 clock cycles
+ Low power mode: 7 clock cycles
+ 2: Normal function: 2047 clock cycles
+ Low power mode: 5 clock cycles
+ 3: Normal function: 1023 clock cycles
+ Low power mode: 3 clock cycles
+
required:
- compatible
- reg
@@ -94,4 +111,5 @@ examples:
measure-delay-time = <0xfff>;
pre-charge-time = <0xffff>;
touchscreen-average-samples = <32>;
+ fsl,glitch-threshold = <2>;
};
--
2.43.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* RE: [PATCH 2/4] dt-bindings: input: touchscreen: fsl,imx6ul-tsc: add fsl,glitch-threshold
2025-07-22 10:36 ` [PATCH 2/4] dt-bindings: input: touchscreen: fsl,imx6ul-tsc: add fsl,glitch-threshold Dario Binacchi
@ 2025-07-23 2:45 ` Bough Chen
2025-07-23 6:14 ` Dario Binacchi
2025-07-23 5:03 ` Rob Herring
1 sibling, 1 reply; 7+ messages in thread
From: Bough Chen @ 2025-07-23 2:45 UTC (permalink / raw)
To: Dario Binacchi, linux-kernel@vger.kernel.org
Cc: linux-amarula@amarulasolutions.com, Conor Dooley, Dmitry Torokhov,
Fabio Estevam, Krzysztof Kozlowski, Pengutronix Kernel Team,
Rob Herring, Sascha Hauer, Shawn Guo, devicetree@vger.kernel.org,
imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
linux-input@vger.kernel.org
> -----Original Message-----
> From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> Sent: 2025年7月22日 18:36
> To: linux-kernel@vger.kernel.org
> Cc: linux-amarula@amarulasolutions.com; Dario Binacchi
> <dario.binacchi@amarulasolutions.com>; Conor Dooley
> <conor+dt@kernel.org>; Dmitry Torokhov <dmitry.torokhov@gmail.com>;
> Fabio Estevam <festevam@gmail.com>; Bough Chen <haibo.chen@nxp.com>;
> Krzysztof Kozlowski <krzk+dt@kernel.org>; Pengutronix Kernel Team
> <kernel@pengutronix.de>; Rob Herring <robh@kernel.org>; Sascha Hauer
> <s.hauer@pengutronix.de>; Shawn Guo <shawnguo@kernel.org>;
> devicetree@vger.kernel.org; imx@lists.linux.dev;
> linux-arm-kernel@lists.infradead.org; linux-input@vger.kernel.org
> Subject: [PATCH 2/4] dt-bindings: input: touchscreen: fsl,imx6ul-tsc: add
> fsl,glitch-threshold
>
> Add support for glitch threshold configuration. A detected signal is valid only if it
> lasts longer than the set threshold; otherwise, it is regarded as a glitch.
>
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> ---
>
> .../input/touchscreen/fsl,imx6ul-tsc.yaml | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git
> a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml
> b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml
> index 678756ad0f92..2fee2940213f 100644
> --- a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml
> +++ b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc
> +++ .yaml
> @@ -62,6 +62,23 @@ properties:
> description: Number of data samples which are averaged for each read.
> enum: [ 1, 4, 8, 16, 32 ]
>
> + fsl,glitch-threshold:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + default: 0
Here the default should be 2 according to your third patch.
I'm okay for this patch set, let's waiting for comments about this yaml change.
By the way, any real case which need to use other glitch threshod?
Regards
Haibo Chen
> + enum: [ 0, 1, 2, 3 ]
> + description: |
> + Indicates the glitch threshold. The threshold is defined by number
> + of clock cycles. A detect signal is only valid if it is exist longer
> + than threshold; otherwise, it is regarded as a glitch.
> + 0: Normal function: 8191 clock cycles
> + Low power mode: 9 clock cycles
> + 1: Normal function: 4095 clock cycles
> + Low power mode: 7 clock cycles
> + 2: Normal function: 2047 clock cycles
> + Low power mode: 5 clock cycles
> + 3: Normal function: 1023 clock cycles
> + Low power mode: 3 clock cycles
> +
> required:
> - compatible
> - reg
> @@ -94,4 +111,5 @@ examples:
> measure-delay-time = <0xfff>;
> pre-charge-time = <0xffff>;
> touchscreen-average-samples = <32>;
> + fsl,glitch-threshold = <2>;
> };
> --
> 2.43.0
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/4] dt-bindings: input: touchscreen: fsl,imx6ul-tsc: add fsl,glitch-threshold
2025-07-22 10:36 ` [PATCH 2/4] dt-bindings: input: touchscreen: fsl,imx6ul-tsc: add fsl,glitch-threshold Dario Binacchi
2025-07-23 2:45 ` Bough Chen
@ 2025-07-23 5:03 ` Rob Herring
2025-07-23 6:25 ` Dario Binacchi
1 sibling, 1 reply; 7+ messages in thread
From: Rob Herring @ 2025-07-23 5:03 UTC (permalink / raw)
To: Dario Binacchi
Cc: linux-kernel, linux-amarula, Conor Dooley, Dmitry Torokhov,
Fabio Estevam, Haibo Chen, Krzysztof Kozlowski,
Pengutronix Kernel Team, Sascha Hauer, Shawn Guo, devicetree, imx,
linux-arm-kernel, linux-input
On Tue, Jul 22, 2025 at 12:36:16PM +0200, Dario Binacchi wrote:
> Add support for glitch threshold configuration. A detected signal is valid
> only if it lasts longer than the set threshold; otherwise, it is regarded
> as a glitch.
>
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> ---
>
> .../input/touchscreen/fsl,imx6ul-tsc.yaml | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml
> index 678756ad0f92..2fee2940213f 100644
> --- a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml
> +++ b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml
> @@ -62,6 +62,23 @@ properties:
> description: Number of data samples which are averaged for each read.
> enum: [ 1, 4, 8, 16, 32 ]
>
> + fsl,glitch-threshold:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + default: 0
> + enum: [ 0, 1, 2, 3 ]
> + description: |
> + Indicates the glitch threshold. The threshold is defined by number
> + of clock cycles. A detect signal is only valid if it is exist longer
> + than threshold; otherwise, it is regarded as a glitch.
> + 0: Normal function: 8191 clock cycles
> + Low power mode: 9 clock cycles
> + 1: Normal function: 4095 clock cycles
> + Low power mode: 7 clock cycles
> + 2: Normal function: 2047 clock cycles
> + Low power mode: 5 clock cycles
> + 3: Normal function: 1023 clock cycles
> + Low power mode: 3 clock cycles
Don't we have common properties for this expressed in time? Debounce
time IIRC.
> +
> required:
> - compatible
> - reg
> @@ -94,4 +111,5 @@ examples:
> measure-delay-time = <0xfff>;
> pre-charge-time = <0xffff>;
> touchscreen-average-samples = <32>;
> + fsl,glitch-threshold = <2>;
> };
> --
> 2.43.0
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/4] dt-bindings: input: touchscreen: fsl,imx6ul-tsc: add fsl,glitch-threshold
2025-07-23 2:45 ` Bough Chen
@ 2025-07-23 6:14 ` Dario Binacchi
0 siblings, 0 replies; 7+ messages in thread
From: Dario Binacchi @ 2025-07-23 6:14 UTC (permalink / raw)
To: Bough Chen
Cc: linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com,
Conor Dooley, Dmitry Torokhov, Fabio Estevam, Krzysztof Kozlowski,
Pengutronix Kernel Team, Rob Herring, Sascha Hauer, Shawn Guo,
devicetree@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org
Hi Bough,
On Wed, Jul 23, 2025 at 4:45 AM Bough Chen <haibo.chen@nxp.com> wrote:
>
> > -----Original Message-----
> > From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> > Sent: 2025年7月22日 18:36
> > To: linux-kernel@vger.kernel.org
> > Cc: linux-amarula@amarulasolutions.com; Dario Binacchi
> > <dario.binacchi@amarulasolutions.com>; Conor Dooley
> > <conor+dt@kernel.org>; Dmitry Torokhov <dmitry.torokhov@gmail.com>;
> > Fabio Estevam <festevam@gmail.com>; Bough Chen <haibo.chen@nxp.com>;
> > Krzysztof Kozlowski <krzk+dt@kernel.org>; Pengutronix Kernel Team
> > <kernel@pengutronix.de>; Rob Herring <robh@kernel.org>; Sascha Hauer
> > <s.hauer@pengutronix.de>; Shawn Guo <shawnguo@kernel.org>;
> > devicetree@vger.kernel.org; imx@lists.linux.dev;
> > linux-arm-kernel@lists.infradead.org; linux-input@vger.kernel.org
> > Subject: [PATCH 2/4] dt-bindings: input: touchscreen: fsl,imx6ul-tsc: add
> > fsl,glitch-threshold
> >
> > Add support for glitch threshold configuration. A detected signal is valid only if it
> > lasts longer than the set threshold; otherwise, it is regarded as a glitch.
> >
> > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> > ---
> >
> > .../input/touchscreen/fsl,imx6ul-tsc.yaml | 18 ++++++++++++++++++
> > 1 file changed, 18 insertions(+)
> >
> > diff --git
> > a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml
> > b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml
> > index 678756ad0f92..2fee2940213f 100644
> > --- a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml
> > +++ b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc
> > +++ .yaml
> > @@ -62,6 +62,23 @@ properties:
> > description: Number of data samples which are averaged for each read.
> > enum: [ 1, 4, 8, 16, 32 ]
> >
> > + fsl,glitch-threshold:
> > + $ref: /schemas/types.yaml#/definitions/uint32
> > + default: 0
>
> Here the default should be 2 according to your third patch.
I considered the default value of the register, not the driver's.
If I'm not mistaken, the dt-bindings should be a description of the
hardware, not of the associated driver implementation.
>
> I'm okay for this patch set, let's waiting for comments about this yaml change.
>
> By the way, any real case which need to use other glitch threshod?
We recently submitted
https://lore.kernel.org/all/aGUDza5XRGDqfz5n@dragon/#t, and in this
initial contribution we removed all the custom parts that are not
supported upstream. This is
one such case. For our board, we need a de_glitch value of 1.
Thanks and regards,
Dario
>
> Regards
> Haibo Chen
>
> > + enum: [ 0, 1, 2, 3 ]
> > + description: |
> > + Indicates the glitch threshold. The threshold is defined by number
> > + of clock cycles. A detect signal is only valid if it is exist longer
> > + than threshold; otherwise, it is regarded as a glitch.
> > + 0: Normal function: 8191 clock cycles
> > + Low power mode: 9 clock cycles
> > + 1: Normal function: 4095 clock cycles
> > + Low power mode: 7 clock cycles
> > + 2: Normal function: 2047 clock cycles
> > + Low power mode: 5 clock cycles
> > + 3: Normal function: 1023 clock cycles
> > + Low power mode: 3 clock cycles
> > +
> > required:
> > - compatible
> > - reg
> > @@ -94,4 +111,5 @@ examples:
> > measure-delay-time = <0xfff>;
> > pre-charge-time = <0xffff>;
> > touchscreen-average-samples = <32>;
> > + fsl,glitch-threshold = <2>;
> > };
> > --
> > 2.43.0
>
--
Dario Binacchi
Senior Embedded Linux Developer
dario.binacchi@amarulasolutions.com
__________________________________
Amarula Solutions SRL
Via Le Canevare 30, 31100 Treviso, Veneto, IT
T. +39 042 243 5310
info@amarulasolutions.com
www.amarulasolutions.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/4] dt-bindings: input: touchscreen: fsl,imx6ul-tsc: add fsl,glitch-threshold
2025-07-23 5:03 ` Rob Herring
@ 2025-07-23 6:25 ` Dario Binacchi
2025-09-02 6:24 ` Dario Binacchi
0 siblings, 1 reply; 7+ messages in thread
From: Dario Binacchi @ 2025-07-23 6:25 UTC (permalink / raw)
To: Rob Herring
Cc: linux-kernel, linux-amarula, Conor Dooley, Dmitry Torokhov,
Fabio Estevam, Haibo Chen, Krzysztof Kozlowski,
Pengutronix Kernel Team, Sascha Hauer, Shawn Guo, devicetree, imx,
linux-arm-kernel, linux-input
On Wed, Jul 23, 2025 at 7:03 AM Rob Herring <robh@kernel.org> wrote:
>
> On Tue, Jul 22, 2025 at 12:36:16PM +0200, Dario Binacchi wrote:
> > Add support for glitch threshold configuration. A detected signal is valid
> > only if it lasts longer than the set threshold; otherwise, it is regarded
> > as a glitch.
> >
> > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> > ---
> >
> > .../input/touchscreen/fsl,imx6ul-tsc.yaml | 18 ++++++++++++++++++
> > 1 file changed, 18 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml
> > index 678756ad0f92..2fee2940213f 100644
> > --- a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml
> > +++ b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml
> > @@ -62,6 +62,23 @@ properties:
> > description: Number of data samples which are averaged for each read.
> > enum: [ 1, 4, 8, 16, 32 ]
> >
> > + fsl,glitch-threshold:
> > + $ref: /schemas/types.yaml#/definitions/uint32
> > + default: 0
> > + enum: [ 0, 1, 2, 3 ]
> > + description: |
> > + Indicates the glitch threshold. The threshold is defined by number
> > + of clock cycles. A detect signal is only valid if it is exist longer
> > + than threshold; otherwise, it is regarded as a glitch.
> > + 0: Normal function: 8191 clock cycles
> > + Low power mode: 9 clock cycles
> > + 1: Normal function: 4095 clock cycles
> > + Low power mode: 7 clock cycles
> > + 2: Normal function: 2047 clock cycles
> > + Low power mode: 5 clock cycles
> > + 3: Normal function: 1023 clock cycles
> > + Low power mode: 3 clock cycles
>
> Don't we have common properties for this expressed in time? Debounce
> time IIRC.
I tried checking in
Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml,
but I didn't find anything about it.
It exists in some specific touchscreen bindings:
- azoteq,iqs7211.yaml
- brcm,iproc-touchscreen.txt
- fsl-mx25-tcq.txt,
- ti,ads7843.yaml.
Only fsl-mx25-tcq.txt expresses it in terms of time (ns).
Thanks and regards,
Dario
>
> > +
> > required:
> > - compatible
> > - reg
> > @@ -94,4 +111,5 @@ examples:
> > measure-delay-time = <0xfff>;
> > pre-charge-time = <0xffff>;
> > touchscreen-average-samples = <32>;
> > + fsl,glitch-threshold = <2>;
> > };
> > --
> > 2.43.0
> >
--
Dario Binacchi
Senior Embedded Linux Developer
dario.binacchi@amarulasolutions.com
__________________________________
Amarula Solutions SRL
Via Le Canevare 30, 31100 Treviso, Veneto, IT
T. +39 042 243 5310
info@amarulasolutions.com
www.amarulasolutions.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/4] dt-bindings: input: touchscreen: fsl,imx6ul-tsc: add fsl,glitch-threshold
2025-07-23 6:25 ` Dario Binacchi
@ 2025-09-02 6:24 ` Dario Binacchi
0 siblings, 0 replies; 7+ messages in thread
From: Dario Binacchi @ 2025-09-02 6:24 UTC (permalink / raw)
To: Rob Herring
Cc: linux-kernel, linux-amarula, Conor Dooley, Dmitry Torokhov,
Fabio Estevam, Haibo Chen, Krzysztof Kozlowski,
Pengutronix Kernel Team, Sascha Hauer, Shawn Guo, devicetree, imx,
linux-arm-kernel, linux-input
Hello Rob,
just a gentle ping — I’ve replied to your comments on this patch, but
I haven’t seen any further feedback.
Thanks and regards,
Dario
On Wed, Jul 23, 2025 at 8:25 AM Dario Binacchi
<dario.binacchi@amarulasolutions.com> wrote:
>
> On Wed, Jul 23, 2025 at 7:03 AM Rob Herring <robh@kernel.org> wrote:
> >
> > On Tue, Jul 22, 2025 at 12:36:16PM +0200, Dario Binacchi wrote:
> > > Add support for glitch threshold configuration. A detected signal is valid
> > > only if it lasts longer than the set threshold; otherwise, it is regarded
> > > as a glitch.
> > >
> > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> > > ---
> > >
> > > .../input/touchscreen/fsl,imx6ul-tsc.yaml | 18 ++++++++++++++++++
> > > 1 file changed, 18 insertions(+)
> > >
> > > diff --git a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml
> > > index 678756ad0f92..2fee2940213f 100644
> > > --- a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml
> > > +++ b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml
> > > @@ -62,6 +62,23 @@ properties:
> > > description: Number of data samples which are averaged for each read.
> > > enum: [ 1, 4, 8, 16, 32 ]
> > >
> > > + fsl,glitch-threshold:
> > > + $ref: /schemas/types.yaml#/definitions/uint32
> > > + default: 0
> > > + enum: [ 0, 1, 2, 3 ]
> > > + description: |
> > > + Indicates the glitch threshold. The threshold is defined by number
> > > + of clock cycles. A detect signal is only valid if it is exist longer
> > > + than threshold; otherwise, it is regarded as a glitch.
> > > + 0: Normal function: 8191 clock cycles
> > > + Low power mode: 9 clock cycles
> > > + 1: Normal function: 4095 clock cycles
> > > + Low power mode: 7 clock cycles
> > > + 2: Normal function: 2047 clock cycles
> > > + Low power mode: 5 clock cycles
> > > + 3: Normal function: 1023 clock cycles
> > > + Low power mode: 3 clock cycles
> >
> > Don't we have common properties for this expressed in time? Debounce
> > time IIRC.
>
> I tried checking in
> Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml,
> but I didn't find anything about it.
>
> It exists in some specific touchscreen bindings:
> - azoteq,iqs7211.yaml
> - brcm,iproc-touchscreen.txt
> - fsl-mx25-tcq.txt,
> - ti,ads7843.yaml.
>
> Only fsl-mx25-tcq.txt expresses it in terms of time (ns).
>
> Thanks and regards,
> Dario
>
> >
> > > +
> > > required:
> > > - compatible
> > > - reg
> > > @@ -94,4 +111,5 @@ examples:
> > > measure-delay-time = <0xfff>;
> > > pre-charge-time = <0xffff>;
> > > touchscreen-average-samples = <32>;
> > > + fsl,glitch-threshold = <2>;
> > > };
> > > --
> > > 2.43.0
> > >
>
>
>
> --
>
> Dario Binacchi
>
> Senior Embedded Linux Developer
>
> dario.binacchi@amarulasolutions.com
>
> __________________________________
>
>
> Amarula Solutions SRL
>
> Via Le Canevare 30, 31100 Treviso, Veneto, IT
>
> T. +39 042 243 5310
> info@amarulasolutions.com
>
> www.amarulasolutions.com
--
Dario Binacchi
Senior Embedded Linux Developer
dario.binacchi@amarulasolutions.com
__________________________________
Amarula Solutions SRL
Via Le Canevare 30, 31100 Treviso, Veneto, IT
T. +39 042 243 5310
info@amarulasolutions.com
www.amarulasolutions.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-09-02 6:24 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-22 10:36 [PATCH 0/4] Input: imx6ul_tsc - set glitch threshold by dts property Dario Binacchi
2025-07-22 10:36 ` [PATCH 2/4] dt-bindings: input: touchscreen: fsl,imx6ul-tsc: add fsl,glitch-threshold Dario Binacchi
2025-07-23 2:45 ` Bough Chen
2025-07-23 6:14 ` Dario Binacchi
2025-07-23 5:03 ` Rob Herring
2025-07-23 6:25 ` Dario Binacchi
2025-09-02 6:24 ` Dario Binacchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox