From c34d866db29473c311189e9bd502b94a0af4bb3c Mon Sep 17 00:00:00 2001 From: Hefei <3066883572@qq.com> Date: Tue, 27 Oct 2026 15:12:37 +0800 Subject: [PATCH 1/8] dt-bindings: display: add VIEWE JD9365TX panel binding Add the device tree binding for the VIEWE 7KF82 720x1280 Jadard JD9365TX MIPI-DSI panel. Signed-off-by: Hefei <3066883572@qq.com> --- .../display/panel/viewe,jd9365tx.yaml | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/viewe,jd9365tx.yaml diff --git a/Documentation/devicetree/bindings/display/panel/viewe,jd9365tx.yaml b/Documentation/devicetree/bindings/display/panel/viewe,jd9365tx.yaml new file mode 100644 index 00000000000000..b15d6db3a09b63 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/viewe,jd9365tx.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/viewe,jd9365tx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: VIEWE 7.0" 720x1280 Jadard JD9365TX MIPI-DSI in-cell panel + +maintainers: + - Hefei <3066883572@qq.com> + +description: | + The VIEWE 7KF82 module is a 720x1280 RGB888 video-mode MIPI-DSI panel + based on Jadard JD9365TX. It uses two DSI data lanes and exposes in-cell + touch over I2C on the same FPC. + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: viewe,7kf82 + + reg: + maxItems: 1 + + vdd-supply: + description: Panel VDD supply, usually 3.3V + + iovcc-supply: + description: Panel IO voltage supply, usually 3.3V + + vccio-supply: + description: Alternate name for iovcc-supply + + reset-gpios: + description: Optional panel reset GPIO (omit if board uses POR only). + maxItems: 1 + + backlight: true + rotation: true + port: true + +required: + - compatible + - reg + - vdd-supply + +anyOf: + - required: [iovcc-supply] + - required: [vccio-supply] + +additionalProperties: false + +examples: + - | + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "viewe,7kf82"; + reg = <0>; + vdd-supply = <®_vdd>; + iovcc-supply = <®_iovcc>; + backlight = <&viewe_bl>; + + port { + endpoint { + remote-endpoint = <&dsi_out>; + data-lanes = <0 1>; + }; + }; + }; + }; +... From b0d3a785671bbaf85f2d22a62814f660728f89ae Mon Sep 17 00:00:00 2001 From: Hefei <3066883572@qq.com> Date: Tue, 27 Oct 2026 15:12:37 +0800 Subject: [PATCH 2/8] dt-bindings: input: add Jadard JD9365TX touchscreen binding Add the binding for the Jadard JD9365TX in-cell touchscreen used on the VIEWE 7KF82 module. Signed-off-by: Hefei <3066883572@qq.com> --- .../input/touchscreen/jadard,jd9365tx.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/jadard,jd9365tx.yaml diff --git a/Documentation/devicetree/bindings/input/touchscreen/jadard,jd9365tx.yaml b/Documentation/devicetree/bindings/input/touchscreen/jadard,jd9365tx.yaml new file mode 100644 index 00000000000000..23696a4bbee55c --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/jadard,jd9365tx.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/jadard,jd9365tx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Jadard JD9365TX in-cell touchscreen + +maintainers: + - Hefei <3066883572@qq.com> + +description: | + In-cell touch integrated with Jadard JD9365TX DSI panels. The module FPC + often exposes only I2C (no interrupt GPIO); the driver polls coordinate + reports. + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + const: jadard,jd9365tx + + reg: + maxItems: 1 + + poll-interval: true + + jadard,coord-addr: + description: Optional fixed coordinate SRAM address override + $ref: /schemas/types.yaml#/definitions/uint32 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@68 { + compatible = "jadard,jd9365tx"; + reg = <0x68>; + touchscreen-size-x = <720>; + touchscreen-size-y = <1280>; + poll-interval = <16>; + }; + }; +... From 70fbb48d4cc0ab9f4ee1ccc274ccdb31be59bcdb Mon Sep 17 00:00:00 2001 From: Hefei <3066883572@qq.com> Date: Tue, 27 Oct 2026 15:12:37 +0800 Subject: [PATCH 3/8] dt-bindings: backlight: add VIEWE I2C backlight binding Add the binding for the VIEWE panel backlight MCU on I2C. Signed-off-by: Hefei <3066883572@qq.com> --- .../leds/backlight/viewe,i2c-backlight.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/backlight/viewe,i2c-backlight.yaml diff --git a/Documentation/devicetree/bindings/leds/backlight/viewe,i2c-backlight.yaml b/Documentation/devicetree/bindings/leds/backlight/viewe,i2c-backlight.yaml new file mode 100644 index 00000000000000..ab60c2c27ca440 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/backlight/viewe,i2c-backlight.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/backlight/viewe,i2c-backlight.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: VIEWE I2C panel backlight + +maintainers: + - Hefei <3066883572@qq.com> + +description: | + Simple I2C backlight used on VIEWE DSI modules. Default protocol is device + address 0x45, register 0x86, brightness 0..255. + +allOf: + - $ref: common.yaml# + +properties: + compatible: + const: viewe,i2c-backlight + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + backlight@45 { + compatible = "viewe,i2c-backlight"; + reg = <0x45>; + default-brightness = <200>; + }; + }; +... From 34d60389a0aadc8b70092b21974f90eca6dc6219 Mon Sep 17 00:00:00 2001 From: Hefei <3066883572@qq.com> Date: Tue, 27 Oct 2026 15:12:38 +0800 Subject: [PATCH 4/8] drm/panel: add VIEWE JD9365TX 7 inch DSI panel Add a DRM MIPI-DSI panel driver for the VIEWE 7KF82 module based on Jadard JD9365TX (2-lane video mode). Signed-off-by: Hefei <3066883572@qq.com> --- drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-viewe-jd9365tx.c | 381 +++++++++++++++++++ 3 files changed, 393 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-viewe-jd9365tx.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 3100640512aaf3..ad1eee34b8bd90 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -324,6 +324,17 @@ config DRM_PANEL_INNOLUX_P079ZCA 24 bit RGB per pixel. It provides a MIPI DSI interface to the host and has a built-in LED backlight. +config DRM_PANEL_VIEWE_JD9365TX + tristate "VIEWE 7\" JD9365TX DSI panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here to enable the VIEWE 7" 720x1280 Jadard JD9365TX + MIPI-DSI panel. + + If unsure, say N. + config DRM_PANEL_JADARD_JD9365DA_H3 tristate "Jadard JD9365DA-H3 WXGA DSI panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 75f6bf2729a602..29334890d7b003 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -33,6 +33,7 @@ obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9881C) += panel-ilitek-ili9881c.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9882T) += panel-ilitek-ili9882t.o obj-$(CONFIG_DRM_PANEL_INNOLUX_EJ030NA) += panel-innolux-ej030na.o obj-$(CONFIG_DRM_PANEL_INNOLUX_P079ZCA) += panel-innolux-p079zca.o +obj-$(CONFIG_DRM_PANEL_VIEWE_JD9365TX) += panel-viewe-jd9365tx.o obj-$(CONFIG_DRM_PANEL_JADARD_JD9365DA_H3) += panel-jadard-jd9365da-h3.o obj-$(CONFIG_DRM_PANEL_JDI_LT070ME05000) += panel-jdi-lt070me05000.o obj-$(CONFIG_DRM_PANEL_JDI_LPM102A188A) += panel-jdi-lpm102a188a.o diff --git a/drivers/gpu/drm/panel/panel-viewe-jd9365tx.c b/drivers/gpu/drm/panel/panel-viewe-jd9365tx.c new file mode 100644 index 00000000000000..b06bd74b807030 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-viewe-jd9365tx.c @@ -0,0 +1,381 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2026 VIEWE + * + * DRM panel driver for VIEWE 7" 720x1280 Jadard JD9365TX (module 7KF82). + * 2-lane MIPI-DSI video mode. Optional reset-gpios; many FPCs use POR only. + */ + +#include +#include +#include +#include +#include + +#include