Skip to contentSkip to conversation

Add VIEWE 7" JD9365TX MIPI-DSI panel support

PATCH Superseded Hefei 1 participant 1 message Nov 25 HID

v2 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Hefei

author
#0 lore raw

v2 cover Add VIEWE 7" JD9365TX MIPI-DSI panel support

Hi,

This series adds support for the VIEWE 7KF82 7" 720x1280 in-cell MIPI-DSI panel based on Jadard JD9365TX (2-lane video mode), plus the companion I2C touchscreen and I2C backlight MCU used on the same FPC.

This is a different programming model from the existing JD9365DA driver (panel-jadard-jd9365da-h3.c): page select uses 0xDE (not 0xE0), bring-up uses 0xDF unlock, and lane config is via 0xCC rather than 0x80. The init sequence and bindings are therefore kept separate.

Tested on Raspberry Pi 4 and Raspberry Pi 5 with a downstream dtoverlay (not included here). A matching series is also under review for the Raspberry Pi downstream kernel:
https://github.com/raspberrypi/linux/pull/7633

Changes in v2:
- panel binding: drop data-lanes from the example; require iovcc-supply
- touch binding/driver: drop jadard,coord-addr; add vdd/iovcc supplies
- backlight: use module-specific compatible viewe,7kf82-backlight
- panel driver: drop per-command 1ms delays and pre-reset NOP; use mipi_dsi *_multi helpers; remove redundant enable()
- touch driver: accept only known chip IDs; drop duplicate backdoor enter
- backlight driver: drop unused wrapper struct

Please review.

Thanks,
Hefei

Hefei (6):
dt-bindings: display: add VIEWE JD9365TX panel binding
dt-bindings: input: add Jadard JD9365TX touchscreen binding
dt-bindings: backlight: add VIEWE I2C backlight binding drm/panel: add VIEWE JD9365TX 7 inch DSI panel
Input: add Jadard JD9365TX in-cell touchscreen driver
backlight: add VIEWE I2C backlight driver

 .../display/panel/viewe,jd9365tx.yaml         |  70 ++++
 .../input/touchscreen/jadard,jd9365tx.yaml    |  64 +++
 .../leds/backlight/viewe,i2c-backlight.yaml   |  46 +++
 drivers/gpu/drm/panel/Kconfig                 |  11 +
 drivers/gpu/drm/panel/Makefile                |   1 +
 drivers/gpu/drm/panel/panel-viewe-jd9365tx.c  | 353 +++++++++++++++++
 drivers/input/touchscreen/Kconfig             |  12 +
 drivers/input/touchscreen/Makefile            |   1 +
 drivers/input/touchscreen/jadard_jd9365tx.c   | 373 ++++++++++++++++++
 drivers/video/backlight/Kconfig               |   7 +
 drivers/video/backlight/Makefile              |   1 +
 drivers/video/backlight/viewe_bl_i2c.c        |  79 ++++
 12 files changed, 1018 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/viewe,jd9365tx.yaml
 create mode 100644 Documentation/devicetree/bindings/input/touchscreen/jadard,jd9365tx.yaml
 create mode 100644 Documentation/devicetree/bindings/leds/backlight/viewe,i2c-backlight.yaml
 create mode 100644 drivers/gpu/drm/panel/panel-viewe-jd9365tx.c
 create mode 100644 drivers/input/touchscreen/jadard_jd9365tx.c
 create mode 100644 drivers/video/backlight/viewe_bl_i2c.c
Signature · 1 line
2.55.0.windows.5