dt-bindings: vendor-prefixes: Document Chongzhou
Subsystems (5)
Jagan Teki
maintainerPATCH v3 1/4 dt-bindings: vendor-prefixes: Document Chongzhou
Chongzhou is a professional is a manufacturer of LCD panels from Shenzhen.
Add vendor prefix for it.
---
Changes for v3, v2:
- none
Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -246,6 +246,8 @@ patternProperties: description: ChipOne "^chipspark,.*": description: ChipSPARK + "^chongzhou,.*": + description: Shenzhen Chongzhou Electronic Technology Co., Ltd "^chrontel,.*": description: Chrontel, Inc. "^chrp,.*":
Signature · 1 line
2.25.1
Jagan Teki
maintainerPATCH v3 2/4 dt-bindings: vendor-prefixes: Document Jadard
Jadard Technology Inc. manufactures and distributes chips from Shenzhen.
Add vendor prefix for it.
---
Changes for v3, v2:
- none
Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -645,6 +645,8 @@ patternProperties: description: ITian Corporation "^iwave,.*": description: iWave Systems Technologies Pvt. Ltd. + "^jadard,.*": + description: Jadard Technology Inc. "^jdi,.*": description: Japan Display Inc. "^jedec,.*":
Signature · 1 line
2.25.1
Jagan Teki
maintainerPATCH v3 3/4 dt-bindings: display: Document Jadard JD9365DA-H3 DSI panel
In reply to Jagan TekiJadard JD9365DA-H3 is WXGA MIPI DSI panel and it support TFT dot matrix LCD with 800RGBx1280 dots at maximum.
Document it.
---
Changes for v3:
- updated title
- collect Krzysztof r-b
- rebased on drm-misc-next
Changes for v2:
- none
.../display/panel/jadard,jd9365da-h3.yaml | 70 +++++++++++++++++++ MAINTAINERS | 5 ++ 2 files changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/jadard,jd9365da-h3.yaml
Documentation/devicetree/bindings/display/panel/jadard,jd9365da-h3.yaml new file +70 -0
@@ -0,0 +1,70 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/jadard,jd9365da-h3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Jadard JD9365DA-HE WXGA DSI panel + +maintainers: + - Jagan Teki <[email protected]> + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + items: + - enum: + - chongzhou,cz101b4001 + - const: jadard,jd9365da-h3 + + reg: true + + vdd-supply: + description: supply regulator for VDD, usually 3.3V + + vccio-supply: + description: supply regulator for VCCIO, usually 1.8V + + reset-gpios: true + + backlight: true + + port: true + +required: + - compatible + - reg + - vdd-supply + - vccio-supply + - reset-gpios + +additionalProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + #include <dt-bindings/pinctrl/rockchip.h> + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "chongzhou,cz101b4001", "jadard,jd9365da-h3"; + reg = <0>; + vdd-supply = <&lcd_3v3>; + vccio-supply = <&vcca_1v8>; + reset-gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_HIGH>; + backlight = <&backlight>; + + port { + mipi_in_panel: endpoint { + remote-endpoint = <&mipi_out_panel>; + }; + }; + }; + }; + +...
MAINTAINERS +5 -0
@@ -6530,6 +6530,11 @@ S: Orphan / Obsolete F: drivers/gpu/drm/i810/ F: include/uapi/drm/i810_drm.h +DRM DRIVER FOR JADARD JD9365DA-H3 MIPI-DSI LCD PANELS +M: Jagan Teki <[email protected]> +S: Maintained +F: Documentation/devicetree/bindings/display/panel/jadard,jd9365da-h3.yaml + DRM DRIVER FOR LOGICVC DISPLAY CONTROLLER M: Paul Kocialkowski <[email protected]> S: Supported
Signature · 1 line
2.25.1
Jagan Teki
maintainerPATCH v3 4/4 drm: panel: Add Jadard JD9365DA-H3 DSI panel
In reply to Jagan TekiJadard JD9365DA-H3 is WXGA MIPI DSI panel and it support TFT dot matrix LCD with 800RGBx1280 dots at maximum.
Add support for it.
---
Changes for v3:
- updatd to WXGA
- use JD9365DA_CMD_DCS and JD9365DA_CMD_DELAY
Changes for v2:
- none
MAINTAINERS | 1 + drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-jadard-jd9365da-h3.c | 507 ++++++++++++++++++ 4 files changed, 519 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c
MAINTAINERS +1 -0
@@ -6534,6 +6534,7 @@ DRM DRIVER FOR JADARD JD9365DA-H3 MIPI-DSI LCD PANELS M: Jagan Teki <[email protected]> S: Maintained F: Documentation/devicetree/bindings/display/panel/jadard,jd9365da-h3.yaml +F: drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c DRM DRIVER FOR LOGICVC DISPLAY CONTROLLER M: Paul Kocialkowski <[email protected]>
drivers/gpu/drm/panel/Kconfig +10 -0
@@ -203,6 +203,16 @@ 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_JADARD_JD9365DA_H3 + tristate "Jadard JD9365DA-H3 WXGA DSI panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for Jadard JD9365DA-H3 + WXGA MIPI DSI panel. The panel support TFT dot matrix LCD with + 800RGBx1280 dots at maximum. + config DRM_PANEL_JDI_LT070ME05000 tristate "JDI LT070ME05000 WUXGA DSI panel" depends on OF
drivers/gpu/drm/panel/Makefile +1 -0
@@ -18,6 +18,7 @@ obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9341) += panel-ilitek-ili9341.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9881C) += panel-ilitek-ili9881c.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_JADARD_JD9365DA_H3) += panel-jadard-jd9365da-h3.o obj-$(CONFIG_DRM_PANEL_JDI_LT070ME05000) += panel-jdi-lt070me05000.o obj-$(CONFIG_DRM_PANEL_JDI_R63452) += panel-jdi-fhd-r63452.o obj-$(CONFIG_DRM_PANEL_KHADAS_TS050) += panel-khadas-ts050.o
drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c new file +507 -0
507 lines not on this page · raw message
Signature · 1 line
2.25.1
Re: [PATCH v3 4/4] drm: panel: Add Jadard JD9365DA-H3 DSI panel
Quoted 11 lines · Jagan Teki
Jadard JD9365DA-H3 is WXGA MIPI DSI panel and it support TFT dot matrix LCD with 800RGBx1280 dots at maximum.
Add support for it.
Signed-off-by Jagan Teki <[email protected]>---
Changes for v3:
- updatd to WXGA
- useJD9365DA_CMD_DCSandJD9365DA_CMD_DELAY
My comments on v2 have not been addressed, for example I asked to remove the delay from sequences and just use an explicit delay and to then use the existing sequence sending macro.
Yours,
Linus Walleij
Jagan Teki
maintainerRe: [PATCH v3 4/4] drm: panel: Add Jadard JD9365DA-H3 DSI panel
Quoted 15 lines · Linus Walleij
Quoted 11 lines · Jagan Teki
Jadard JD9365DA-H3 is WXGA MIPI DSI panel and it support TFT dot matrix LCD with 800RGBx1280 dots at maximum.
Add support for it.
Signed-off-by Jagan Teki <[email protected]>---
Changes for v3:
- updatd to WXGA
- useJD9365DA_CMD_DCSandJD9365DA_CMD_DELAY
Quoted 3 lines
My comments on v2 have not been addressed, for example I asked to remove the delay from sequences and just use an explicit delay and to then use the existing sequence sending macro.
True, I responded on the same day [1], since I didn't get the reply I have posted by assuming my comment is valid. Would you please check and respond?
[1] https://lore.kernel.org/all/CA+VMnFz0w-6O=wt3iuJo1BhQgPZ2XbpX6JdDz6vg_JW9nHTR2A@mail.gmail.com/
Thanks,
Jagan.
Re: [PATCH v3 4/4] drm: panel: Add Jadard JD9365DA-H3 DSI panel
Quoted 20 lines · Jagan Teki
Quoted 15 lines · Linus Walleij
Quoted 11 lines · Jagan Teki
Jadard JD9365DA-H3 is WXGA MIPI DSI panel and it support TFT dot matrix LCD with 800RGBx1280 dots at maximum.
Add support for it.
Signed-off-by Jagan Teki <[email protected]>---
Changes for v3:
- updatd to WXGA
- useJD9365DA_CMD_DCSandJD9365DA_CMD_DELAYQuoted 3 lines
My comments on v2 have not been addressed, for example I asked to remove the delay from sequences and just use an explicit delay and to then use the existing sequence sending macro.
Quoted 5 lines
True, I responded on the same day [1], since I didn't get the reply I have posted by assuming my comment is valid. Would you please check and respond?
[1] https://lore.kernel.org/all/CA+VMnFz0w-6O=wt3iuJo1BhQgPZ2XbpX6JdDz6vg_JW9nHTR2A@mail.gmail.com/
OK I see, sorry for not reading close.
The driver just supports one single variant.
What you are doing is preparing the ground for more variants that may or may not exist. This creates the antipattern "big upfront design" i.e. abstractions added for things that do not yet exist.
I think it is better to strip it down to just open coding the delay after the init sequence. When the next variant appears, if ever, they can add abstraction. Maybe they need the same delay in the same place? Who knows...
Yours,
Linus Walleij
Jagan Teki
maintainerRe: [PATCH v3 4/4] drm: panel: Add Jadard JD9365DA-H3 DSI panel
Quoted 32 lines · Linus Walleij
Quoted 20 lines · Jagan Teki
Quoted 15 lines · Linus Walleij
Quoted 11 lines · Jagan Teki
Jadard JD9365DA-H3 is WXGA MIPI DSI panel and it support TFT dot matrix LCD with 800RGBx1280 dots at maximum.
Add support for it.
Signed-off-by Jagan Teki <[email protected]>---
Changes for v3:
- updatd to WXGA
- useJD9365DA_CMD_DCSandJD9365DA_CMD_DELAYQuoted 3 lines
My comments on v2 have not been addressed, for example I asked to remove the delay from sequences and just use an explicit delay and to then use the existing sequence sending macro.
Quoted 5 lines
True, I responded on the same day [1], since I didn't get the reply I have posted by assuming my comment is valid. Would you please check and respond?
[1] https://lore.kernel.org/all/CA+VMnFz0w-6O=wt3iuJo1BhQgPZ2XbpX6JdDz6vg_JW9nHTR2A@mail.gmail.com/
OK I see, sorry for not reading close.
The driver just supports one single variant.
Quoted 8 lines
What you are doing is preparing the ground for more variants that may or may not exist. This creates the antipattern "big upfront design" i.e. abstractions added for things that do not yet exist.
I think it is better to strip it down to just open coding the delay after the init sequence. When the next variant appears, if ever, they can add abstraction. Maybe they need the same delay in the same place? Who knows...
I understand your point, but delays are strictly mentioned by the panel vendor init sequence, cz101b4001 do you think adding in the generic or common code is still valid since we have code added for cz101b4001 specifically via driver data?
Thanks,
Jagan.
Re: [PATCH v3 4/4] drm: panel: Add Jadard JD9365DA-H3 DSI panel
Quoted 41 lines · Jagan Teki
Quoted 31 lines · Linus Walleij
Quoted 20 lines · Jagan Teki
Quoted 15 lines · Linus Walleij
Quoted 11 lines · Jagan Teki
Jadard JD9365DA-H3 is WXGA MIPI DSI panel and it support TFT dot matrix LCD with 800RGBx1280 dots at maximum.
Add support for it.
Signed-off-by Jagan Teki <[email protected]>---
Changes for v3:
- updatd to WXGA
- useJD9365DA_CMD_DCSandJD9365DA_CMD_DELAYQuoted 3 lines
My comments on v2 have not been addressed, for example I asked to remove the delay from sequences and just use an explicit delay and to then use the existing sequence sending macro.
Quoted 5 lines
True, I responded on the same day [1], since I didn't get the reply I have posted by assuming my comment is valid. Would you please check and respond?
[1] https://lore.kernel.org/all/CA+VMnFz0w-6O=wt3iuJo1BhQgPZ2XbpX6JdDz6vg_JW9nHTR2A@mail.gmail.com/
OK I see, sorry for not reading close.
The driver just supports one single variant.
Quoted 8 lines
What you are doing is preparing the ground for more variants that may or may not exist. This creates the antipattern "big upfront design" i.e. abstractions added for things that do not yet exist.
I think it is better to strip it down to just open coding the delay after the init sequence. When the next variant appears, if ever, they can add abstraction. Maybe they need the same delay in the same place? Who knows...
Quoted 4 lines
I understand your point, but delays are strictly mentioned by the panel vendor init sequence, cz101b4001 do you think adding in the generic or common code is still valid since we have code added for cz101b4001 specifically via driver data?
I would instead of encoding a sequence into the driver data encode a per-variant callback that sends the sequence (which can then be just static array) and then ends with an explicit delay.
Yours,
Linus Walleij
Jagan Teki
maintainerRe: [PATCH v3 4/4] drm: panel: Add Jadard JD9365DA-H3 DSI panel
Quoted 43 lines · Linus Walleij
Quoted 41 lines · Jagan Teki
Quoted 39 lines · Linus Walleij
Quoted 20 lines · Jagan Teki
Quoted 15 lines · Linus Walleij
Quoted 11 lines · Jagan Teki
Jadard JD9365DA-H3 is WXGA MIPI DSI panel and it support TFT dot matrix LCD with 800RGBx1280 dots at maximum.
Add support for it.
Signed-off-by Jagan Teki <[email protected]>---
Changes for v3:
- updatd to WXGA
- useJD9365DA_CMD_DCSandJD9365DA_CMD_DELAYQuoted 3 lines
My comments on v2 have not been addressed, for example I asked to remove the delay from sequences and just use an explicit delay and to then use the existing sequence sending macro.
Quoted 5 lines
True, I responded on the same day [1], since I didn't get the reply I have posted by assuming my comment is valid. Would you please check and respond?
[1] https://lore.kernel.org/all/CA+VMnFz0w-6O=wt3iuJo1BhQgPZ2XbpX6JdDz6vg_JW9nHTR2A@mail.gmail.com/
OK I see, sorry for not reading close.
The driver just supports one single variant.
What you are doing is preparing the ground for more variants that may or may not exist. This creates the antipattern "big upfront design" i.e. abstractions added for things that do not yet exist.
I think it is better to strip it down to just open coding the delay after the init sequence. When the next variant appears, if ever, they can add abstraction. Maybe they need the same delay in the same place? Who knows...
Quoted 8 lines
Quoted 4 lines
I understand your point, but delays are strictly mentioned by the panel vendor init sequence, cz101b4001 do you think adding in the generic or common code is still valid since we have code added for cz101b4001 specifically via driver data?
I would instead of encoding a sequence into the driver data encode a per-variant callback that sends the sequence (which can then be just static array) and then ends with an explicit delay.
Okay. I will wrap up that delay to make it explicit and update the dcs packet send sequence.
Thanks,
Jagan.