Commit 2ca376ef authored by Douglas Anderson's avatar Douglas Anderson

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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarMaxime Ripard <mripard@kernel.org>
Reviewed-by: default avatarBenjamin Tissoires <bentiss@kernel.org>
Acked-by: default avatarBenjamin Tissoires <bentiss@kernel.org>
Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230727101636.v4.1.Id68e30343bb1e11470582a9078b086176cfec46b@changeid
parent 82293994
...@@ -13,6 +13,9 @@ description: ...@@ -13,6 +13,9 @@ description:
Supports the Elan eKTH6915 touchscreen controller. Supports the Elan eKTH6915 touchscreen controller.
This touchscreen controller uses the i2c-hid protocol with a reset GPIO. This touchscreen controller uses the i2c-hid protocol with a reset GPIO.
allOf:
- $ref: /schemas/input/touchscreen/touchscreen.yaml#
properties: properties:
compatible: compatible:
items: items:
...@@ -24,6 +27,8 @@ properties: ...@@ -24,6 +27,8 @@ properties:
interrupts: interrupts:
maxItems: 1 maxItems: 1
panel: true
reset-gpios: reset-gpios:
description: Reset GPIO; not all touchscreens using eKTH6915 hook this up. description: Reset GPIO; not all touchscreens using eKTH6915 hook this up.
......
...@@ -14,6 +14,9 @@ description: ...@@ -14,6 +14,9 @@ description:
This touchscreen uses the i2c-hid protocol but has some non-standard This touchscreen uses the i2c-hid protocol but has some non-standard
power sequencing required. power sequencing required.
allOf:
- $ref: /schemas/input/touchscreen/touchscreen.yaml#
properties: properties:
compatible: compatible:
oneOf: oneOf:
...@@ -30,6 +33,8 @@ properties: ...@@ -30,6 +33,8 @@ properties:
interrupts: interrupts:
maxItems: 1 maxItems: 1
panel: true
reset-gpios: reset-gpios:
true true
......
...@@ -44,6 +44,8 @@ properties: ...@@ -44,6 +44,8 @@ properties:
description: HID descriptor address description: HID descriptor address
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
panel: true
post-power-on-delay-ms: post-power-on-delay-ms:
description: Time required by the device after enabling its regulators description: Time required by the device after enabling its regulators
or powering it on, before it is ready for communication. or powering it on, before it is ready for communication.
......
...@@ -10,6 +10,13 @@ maintainers: ...@@ -10,6 +10,13 @@ maintainers:
- Dmitry Torokhov <dmitry.torokhov@gmail.com> - Dmitry Torokhov <dmitry.torokhov@gmail.com>
properties: properties:
panel:
description: If this touchscreen is integrally connected to a panel, this
is a reference to that panel. The presence of this reference indicates
that the touchscreen should be power sequenced together with the panel
and that they may share power and/or reset signals.
$ref: /schemas/types.yaml#/definitions/phandle
touchscreen-min-x: touchscreen-min-x:
description: minimum x coordinate reported description: minimum x coordinate reported
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment