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

dt-bindings: HID: i2c-hid: Add "panel" property to i2c-hid backed touchscreens

As talked about in the patch ("drm/panel: Add a way for other devices
to follow panel state"), touchscreens that are connected to panels are
generally expected to be power sequenced together with the panel
they're attached to. Today, nothing provides information allowing you
to find out that a touchscreen is connected to a panel. Let's add a
phandle for this.

The proerty is added to the generic touchscreen bindings and then
enabled in the bindings for the i2c-hid backed devices. This can and
should be added for other touchscreens in the future, but for now
let's start small.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Reviewed-by: Benjamin Tissoires <bentiss@kernel.org>
Acked-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230727101636.v4.1.Id68e30343bb1e11470582a9078b086176cfec46b@changeid

+19
+5
Documentation/devicetree/bindings/input/elan,ekth6915.yaml
··· 13 13 Supports the Elan eKTH6915 touchscreen controller. 14 14 This touchscreen controller uses the i2c-hid protocol with a reset GPIO. 15 15 16 + allOf: 17 + - $ref: /schemas/input/touchscreen/touchscreen.yaml# 18 + 16 19 properties: 17 20 compatible: 18 21 items: ··· 26 23 27 24 interrupts: 28 25 maxItems: 1 26 + 27 + panel: true 29 28 30 29 reset-gpios: 31 30 description: Reset GPIO; not all touchscreens using eKTH6915 hook this up.
+5
Documentation/devicetree/bindings/input/goodix,gt7375p.yaml
··· 14 14 This touchscreen uses the i2c-hid protocol but has some non-standard 15 15 power sequencing required. 16 16 17 + allOf: 18 + - $ref: /schemas/input/touchscreen/touchscreen.yaml# 19 + 17 20 properties: 18 21 compatible: 19 22 oneOf: ··· 32 29 33 30 interrupts: 34 31 maxItems: 1 32 + 33 + panel: true 35 34 36 35 reset-gpios: 37 36 true
+2
Documentation/devicetree/bindings/input/hid-over-i2c.yaml
··· 44 44 description: HID descriptor address 45 45 $ref: /schemas/types.yaml#/definitions/uint32 46 46 47 + panel: true 48 + 47 49 post-power-on-delay-ms: 48 50 description: Time required by the device after enabling its regulators 49 51 or powering it on, before it is ready for communication.
+7
Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml
··· 10 10 - Dmitry Torokhov <dmitry.torokhov@gmail.com> 11 11 12 12 properties: 13 + panel: 14 + description: If this touchscreen is integrally connected to a panel, this 15 + is a reference to that panel. The presence of this reference indicates 16 + that the touchscreen should be power sequenced together with the panel 17 + and that they may share power and/or reset signals. 18 + $ref: /schemas/types.yaml#/definitions/phandle 19 + 13 20 touchscreen-min-x: 14 21 description: minimum x coordinate reported 15 22 $ref: /schemas/types.yaml#/definitions/uint32