* [PATCH] dt-bindings: input: touchscreen: imagis: add missing minItems
@ 2025-08-24 16:12 Duje Mihanović
2025-08-25 16:42 ` Conor Dooley
0 siblings, 1 reply; 5+ messages in thread
From: Duje Mihanović @ 2025-08-24 16:12 UTC (permalink / raw)
To: Markuss Broks, Dmitry Torokhov, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: Karel Balej, David Wronek, phone-devel, ~postmarketos/upstreaming,
linux-input, devicetree, linux-kernel, Duje Mihanović
The binding currently expects exactly 5 keycodes, which matches the
chip's theoretical maximum but probably not the number of touch keys on
any phone using the IST3032C. Add a minItems value of 2 to prevent
dt-validate complaints.
Also add another example to make sure the linux,keycodes property is
checked.
Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz>
---
.../bindings/input/touchscreen/imagis,ist3038c.yaml | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/Documentation/devicetree/bindings/input/touchscreen/imagis,ist3038c.yaml b/Documentation/devicetree/bindings/input/touchscreen/imagis,ist3038c.yaml
index bd8ede3a4ad8939cef97e9b177548a8fc8386df7..0ef79343bf9a223501aff8b6a525b873e777ea20 100644
--- a/Documentation/devicetree/bindings/input/touchscreen/imagis,ist3038c.yaml
+++ b/Documentation/devicetree/bindings/input/touchscreen/imagis,ist3038c.yaml
@@ -35,6 +35,7 @@ properties:
linux,keycodes:
description: Keycodes for the touch keys
+ minItems: 2
maxItems: 5
touchscreen-size-x: true
@@ -87,5 +88,22 @@ examples:
touchscreen-inverted-y;
};
};
+ - |
+ #include <dt-bindings/input/linux-event-codes.h>
+ #include <dt-bindings/interrupt-controller/irq.h>
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ touchscreen@50 {
+ compatible = "imagis,ist3032c";
+ reg = <0x50>;
+ interrupt-parent = <&gpio>;
+ interrupts = <72 IRQ_TYPE_EDGE_FALLING>;
+ vdd-supply = <&ldo2>;
+ touchscreen-size-x = <480>;
+ touchscreen-size-y = <800>;
+ linux,keycodes = <KEY_APPSELECT>, <KEY_BACK>;
+ };
+ };
...
---
base-commit: c17b750b3ad9f45f2b6f7e6f7f4679844244f0b9
change-id: 20250824-imagis-minitems-4a71387ce61b
Best regards,
--
Duje Mihanović <duje@dujemihanovic.xyz>
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: input: touchscreen: imagis: add missing minItems
2025-08-24 16:12 [PATCH] dt-bindings: input: touchscreen: imagis: add missing minItems Duje Mihanović
@ 2025-08-25 16:42 ` Conor Dooley
2025-08-25 18:57 ` Duje Mihanović
0 siblings, 1 reply; 5+ messages in thread
From: Conor Dooley @ 2025-08-25 16:42 UTC (permalink / raw)
To: Duje Mihanović
Cc: Markuss Broks, Dmitry Torokhov, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Karel Balej, David Wronek, phone-devel,
~postmarketos/upstreaming, linux-input, devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2271 bytes --]
On Sun, Aug 24, 2025 at 06:12:05PM +0200, Duje Mihanović wrote:
> The binding currently expects exactly 5 keycodes, which matches the
> chip's theoretical maximum but probably not the number of touch keys on
> any phone using the IST3032C. Add a minItems value of 2 to prevent
> dt-validate complaints.
Does this mean that there are devicetrees in the wild that use < 5
keycodes?
>
> Also add another example to make sure the linux,keycodes property is
> checked.
>
> Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz>
> ---
> .../bindings/input/touchscreen/imagis,ist3038c.yaml | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/input/touchscreen/imagis,ist3038c.yaml b/Documentation/devicetree/bindings/input/touchscreen/imagis,ist3038c.yaml
> index bd8ede3a4ad8939cef97e9b177548a8fc8386df7..0ef79343bf9a223501aff8b6a525b873e777ea20 100644
> --- a/Documentation/devicetree/bindings/input/touchscreen/imagis,ist3038c.yaml
> +++ b/Documentation/devicetree/bindings/input/touchscreen/imagis,ist3038c.yaml
> @@ -35,6 +35,7 @@ properties:
>
> linux,keycodes:
> description: Keycodes for the touch keys
> + minItems: 2
> maxItems: 5
>
> touchscreen-size-x: true
> @@ -87,5 +88,22 @@ examples:
> touchscreen-inverted-y;
> };
> };
> + - |
> + #include <dt-bindings/input/linux-event-codes.h>
> + #include <dt-bindings/interrupt-controller/irq.h>
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + touchscreen@50 {
> + compatible = "imagis,ist3032c";
> + reg = <0x50>;
> + interrupt-parent = <&gpio>;
> + interrupts = <72 IRQ_TYPE_EDGE_FALLING>;
> + vdd-supply = <&ldo2>;
> + touchscreen-size-x = <480>;
> + touchscreen-size-y = <800>;
> + linux,keycodes = <KEY_APPSELECT>, <KEY_BACK>;
Does this really need a dedicated example? Why can't the property go
into the existing one?
> + };
> + };
>
> ...
>
> ---
> base-commit: c17b750b3ad9f45f2b6f7e6f7f4679844244f0b9
> change-id: 20250824-imagis-minitems-4a71387ce61b
>
> Best regards,
> --
> Duje Mihanović <duje@dujemihanovic.xyz>
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: input: touchscreen: imagis: add missing minItems
2025-08-25 16:42 ` Conor Dooley
@ 2025-08-25 18:57 ` Duje Mihanović
2025-08-26 17:38 ` Conor Dooley
0 siblings, 1 reply; 5+ messages in thread
From: Duje Mihanović @ 2025-08-25 18:57 UTC (permalink / raw)
To: Conor Dooley
Cc: Markuss Broks, Dmitry Torokhov, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Karel Balej, David Wronek, phone-devel,
~postmarketos/upstreaming, linux-input, devicetree, linux-kernel
On Monday, 25 August 2025 18:42:38 Central European Summer Time Conor Dooley wrote:
> On Sun, Aug 24, 2025 at 06:12:05PM +0200, Duje Mihanović wrote:
> > The binding currently expects exactly 5 keycodes, which matches the
> > chip's theoretical maximum but probably not the number of touch keys on
> > any phone using the IST3032C. Add a minItems value of 2 to prevent
> > dt-validate complaints.
>
> Does this mean that there are devicetrees in the wild that use < 5
> keycodes?
Indeed.
> >
> > + - |
> > + #include <dt-bindings/input/linux-event-codes.h>
> > + #include <dt-bindings/interrupt-controller/irq.h>
> > + i2c {
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> > + touchscreen@50 {
> > + compatible = "imagis,ist3032c";
> > + reg = <0x50>;
> > + interrupt-parent = <&gpio>;
> > + interrupts = <72 IRQ_TYPE_EDGE_FALLING>;
> > + vdd-supply = <&ldo2>;
> > + touchscreen-size-x = <480>;
> > + touchscreen-size-y = <800>;
> > + linux,keycodes = <KEY_APPSELECT>, <KEY_BACK>;
>
> Does this really need a dedicated example? Why can't the property go
> into the existing one?
Only the IST3032C is currently known to support these keys and this is enforced
by the binding, so it wouldn't really make sense to add it to the 3038C
example.
Regards,
--
Duje
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: input: touchscreen: imagis: add missing minItems
2025-08-25 18:57 ` Duje Mihanović
@ 2025-08-26 17:38 ` Conor Dooley
2025-09-04 14:33 ` Dmitry Torokhov
0 siblings, 1 reply; 5+ messages in thread
From: Conor Dooley @ 2025-08-26 17:38 UTC (permalink / raw)
To: Duje Mihanović
Cc: Markuss Broks, Dmitry Torokhov, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Karel Balej, David Wronek, phone-devel,
~postmarketos/upstreaming, linux-input, devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 650 bytes --]
On Mon, Aug 25, 2025 at 08:57:57PM +0200, Duje Mihanović wrote:
> On Monday, 25 August 2025 18:42:38 Central European Summer Time Conor Dooley wrote:
> > On Sun, Aug 24, 2025 at 06:12:05PM +0200, Duje Mihanović wrote:
> > > The binding currently expects exactly 5 keycodes, which matches the
> > > chip's theoretical maximum but probably not the number of touch keys on
> > > any phone using the IST3032C. Add a minItems value of 2 to prevent
> > > dt-validate complaints.
> >
> > Does this mean that there are devicetrees in the wild that use < 5
> > keycodes?
>
> Indeed.
oke, Acked-by: Conor Dooley <conor.dooley@microchip.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: input: touchscreen: imagis: add missing minItems
2025-08-26 17:38 ` Conor Dooley
@ 2025-09-04 14:33 ` Dmitry Torokhov
0 siblings, 0 replies; 5+ messages in thread
From: Dmitry Torokhov @ 2025-09-04 14:33 UTC (permalink / raw)
To: Conor Dooley
Cc: Duje Mihanović, Markuss Broks, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Karel Balej, David Wronek,
phone-devel, ~postmarketos/upstreaming, linux-input, devicetree,
linux-kernel
On Tue, Aug 26, 2025 at 06:38:05PM +0100, Conor Dooley wrote:
> On Mon, Aug 25, 2025 at 08:57:57PM +0200, Duje Mihanović wrote:
> > On Monday, 25 August 2025 18:42:38 Central European Summer Time Conor Dooley wrote:
> > > On Sun, Aug 24, 2025 at 06:12:05PM +0200, Duje Mihanović wrote:
> > > > The binding currently expects exactly 5 keycodes, which matches the
> > > > chip's theoretical maximum but probably not the number of touch keys on
> > > > any phone using the IST3032C. Add a minItems value of 2 to prevent
> > > > dt-validate complaints.
> > >
> > > Does this mean that there are devicetrees in the wild that use < 5
> > > keycodes?
> >
> > Indeed.
>
> oke, Acked-by: Conor Dooley <conor.dooley@microchip.com>
Applied, thank you.
--
Dmitry
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-09-04 14:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-24 16:12 [PATCH] dt-bindings: input: touchscreen: imagis: add missing minItems Duje Mihanović
2025-08-25 16:42 ` Conor Dooley
2025-08-25 18:57 ` Duje Mihanović
2025-08-26 17:38 ` Conor Dooley
2025-09-04 14:33 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox