Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: input: touchscreen: imagis: add missing minItems

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>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20250824-imagis-minitems-v1-1-cea9db55e87f@dujemihanovic.xyz
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Duje Mihanović and committed by
Dmitry Torokhov
0fec357a 9a12e2fb

+18
+18
Documentation/devicetree/bindings/input/touchscreen/imagis,ist3038c.yaml
··· 35 35 36 36 linux,keycodes: 37 37 description: Keycodes for the touch keys 38 + minItems: 2 38 39 maxItems: 5 39 40 40 41 touchscreen-size-x: true ··· 86 85 touchscreen-fuzz-y = <10>; 87 86 touchscreen-inverted-x; 88 87 touchscreen-inverted-y; 88 + }; 89 + }; 90 + - | 91 + #include <dt-bindings/input/linux-event-codes.h> 92 + #include <dt-bindings/interrupt-controller/irq.h> 93 + i2c { 94 + #address-cells = <1>; 95 + #size-cells = <0>; 96 + touchscreen@50 { 97 + compatible = "imagis,ist3032c"; 98 + reg = <0x50>; 99 + interrupt-parent = <&gpio>; 100 + interrupts = <72 IRQ_TYPE_EDGE_FALLING>; 101 + vdd-supply = <&ldo2>; 102 + touchscreen-size-x = <480>; 103 + touchscreen-size-y = <800>; 104 + linux,keycodes = <KEY_APPSELECT>, <KEY_BACK>; 89 105 }; 90 106 }; 91 107