All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/4] how to link a panel to a touchscreen controller driver
@ 2025-11-19  6:51 Martin Kepplinger
  2025-11-19  6:51 ` [RFC 1/4] hack: drm: panel: mantix: Allow to query enabled state Martin Kepplinger
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Martin Kepplinger @ 2025-11-19  6:51 UTC (permalink / raw)
  To: robh, krzk+dt, airlied, gregkh
  Cc: kernel, linux-arm-kernel, dri-devel, Martin Kepplinger

hi,

When there's a panel/touchscreen combination that is sold as a combinded
module (with the reset line shared even), how would I connect the 2
drivers and make sure the touchscreen driver probes after the panel is ready?

I have the feeling there is https://docs.kernel.org/driver-api/device_link.html
for such cases. Can you show me examples of 2 "random" drivers connected
in this case?

In the past I also played with CONFIG_RESET_GPIO using the reset-controller
logic, but I *think* this is more for 2+ of the *same* devices connected.

Might there be yet a different way in devicetree I'm not aware of?

The below patches - for completeness - are only the workaround for what I'd
like to do, exposing the state of the panel so that the touchscreen can query
it.

thank you very much for any hints,

                               martin



Guido Günther (2):
  hack: drm: panel: mantix: Allow to query enabled state
  hack: Input: edt-ft5x06: hackery to probe after panel

Martin Kepplinger (2):
  hack: edt-ft5x06 / panel-mantix-mlaf057we51: declare
    mantix_panel_prepared() in drm_panel.h
  hack: arm64: dts: imx8mq-librem5: add purism,panel-librem5-workaround

 .../boot/dts/freescale/imx8mq-librem5.dtsi    |  1 +
 .../gpu/drm/panel/panel-mantix-mlaf057we51.c  | 12 ++++++++++
 drivers/input/touchscreen/edt-ft5x06.c        | 22 +++++++++++++++++++
 include/drm/drm_panel.h                       |  2 ++
 4 files changed, 37 insertions(+)

-- 
2.47.3



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-11-22 21:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-19  6:51 [RFC 0/4] how to link a panel to a touchscreen controller driver Martin Kepplinger
2025-11-19  6:51 ` [RFC 1/4] hack: drm: panel: mantix: Allow to query enabled state Martin Kepplinger
2025-11-19  6:51 ` [RFC 2/4] hack: edt-ft5x06 / panel-mantix-mlaf057we51: declare mantix_panel_prepared() in drm_panel.h Martin Kepplinger
2025-11-19  6:51 ` [RFC 3/4] hack: Input: edt-ft5x06: hackery to probe after panel Martin Kepplinger
2025-11-22 21:53   ` kernel test robot
2025-11-19  6:51 ` [RFC 4/4] hack: arm64: dts: imx8mq-librem5: add purism, panel-librem5-workaround Martin Kepplinger
2025-11-19 10:08 ` [RFC 0/4] how to link a panel to a touchscreen controller driver Marco Felsch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.