dt-bindings: Add vendor prefix for Elida
Subsystems (5)
Heiko Stuebner
maintainerPATCH v2 1/3 dt-bindings: Add vendor prefix for Elida
From: Heiko Stuebner <heiko.stuebner-SN7IsUiht6C/[email protected]>
Shenzen Elida Technology Co. Ltd. is a Chinese TFT manufacturer.
--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -285,6 +285,8 @@ patternProperties: description: Elan Microelectronic Corp. "^elgin,.*": description: Elgin S/A. + "^elida,.*": + description: Shenzhen Elida Technology Co., Ltd. "^embest,.*": description: Shenzhen Embest Technology Co., Ltd. "^emlid,.*":
Signature · 1 line
2.24.1
Heiko Stuebner
maintainerPATCH v2 2/3 dt-bindings: display: panel: Add binding document for Elida KD35T133
From: Heiko Stuebner <heiko.stuebner-SN7IsUiht6C/[email protected]>
The KD35T133 is a 3.5" 320x480 DSI display used in the RK3326-based Odroid Go Advance handheld device.
--- .../display/panel/elida,kd35t133.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/elida,kd35t133.yaml
Documentation/devicetree/bindings/display/panel/elida,kd35t133.yaml new file +49 -0
@@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/elida,kd35t133.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Elida KD35T133 3.5in 320x480 DSI panel + +maintainers: + - Heiko Stuebner <heiko.stuebner-SN7IsUiht6C/[email protected]> + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: elida,kd35t133 + reg: true + backlight: true + reset-gpios: true + iovcc-supply: + description: regulator that supplies the iovcc voltage + vdd-supply: + description: regulator that supplies the vdd voltage + +required: + - compatible + - reg + - backlight + - iovcc-supply + - vdd-supply + +additionalProperties: false + +examples: + - | + dsi@ff450000 { + #address-cells = <1>; + #size-cells = <0>; + panel@0 { + compatible = "elida,kd35t133"; + reg = <0>; + backlight = <&backlight>; + iovcc-supply = <&vcc_1v8>; + vdd-supply = <&vcc3v3_lcd>; + }; + }; + +...
Signature · 1 line
2.24.1
Re: [PATCH v2 2/3] dt-bindings: display: panel: Add binding document for Elida KD35T133
Hi Heiko.
Quoted 6 lines · Heiko Stuebner
From: Heiko Stuebner <heiko.stuebner-SN7IsUiht6C/[email protected]>
The KD35T133 is a 3.5" 320x480 DSI display used in the RK3326-based Odroid Go Advance handheld device.
One small comment, but anyway:
Quoted 30 lines
--- .../display/panel/elida,kd35t133.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/elida,kd35t133.yamlDocumentation/devicetree/bindings/display/panel/elida,kd35t133.yaml new file +19
-0@@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/elida,kd35t133.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Elida KD35T133 3.5in 320x480 DSI panel + +maintainers: + - Heiko Stuebner <heiko.stuebner-SN7IsUiht6C/[email protected]> + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: elida,kd35t133 + reg: true + backlight: true
Documentation/devicetree/bindings/display/panel/elida,kd35t133.yaml line 29
Quoted 10 lines
Documentation/devicetree/bindings/display/panel/elida,kd35t133.yaml new file +10
-0+ reset-gpios: true + iovcc-supply: + description: regulator that supplies the iovcc voltage + vdd-supply: + description: regulator that supplies the vdd voltage + +required: + - compatible + - reg + - backlight
Is backlight really required? If it is tied to for example vcc then there is nothing to express in the DT.
Sam
Quoted 22 lines
Documentation/devicetree/bindings/display/panel/elida,kd35t133.yaml new file +20
-0+ - iovcc-supply + - vdd-supply + +additionalProperties: false + +examples: + - | + dsi@ff450000 { + #address-cells = <1>; + #size-cells = <0>; + panel@0 { + compatible = "elida,kd35t133"; + reg = <0>; + backlight = <&backlight>; + iovcc-supply = <&vcc_1v8>; + vdd-supply = <&vcc3v3_lcd>; + }; + }; + +...Signature · 1 line
2.24.1
Heiko Stuebner
maintainerRe: [PATCH v2 2/3] dt-bindings: display: panel: Add binding document for Elida KD35T133
Hi Sam,
Am Samstag, 29. Februar 2020, 13:50:52 CET schrieb Sam Ravnborg:
Quoted 47 lines
Hi Heiko.
Quoted 6 lines · Heiko Stuebner
From: Heiko Stuebner <heiko.stuebner-SN7IsUiht6C/[email protected]>
The KD35T133 is a 3.5" 320x480 DSI display used in the RK3326-based Odroid Go Advance handheld device.
One small comment, but anyway:
Reviewed-by Sam Ravnborg <[email protected]>Quoted 34 lines
--- .../display/panel/elida,kd35t133.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/elida,kd35t133.yamlDocumentation/devicetree/bindings/display/panel/elida,kd35t133.yaml new file +23
-0@@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/elida,kd35t133.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Elida KD35T133 3.5in 320x480 DSI panel + +maintainers: + - Heiko Stuebner <heiko.stuebner-SN7IsUiht6C/[email protected]> + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: elida,kd35t133 + reg: true + backlight: true + reset-gpios: true + iovcc-supply: + description: regulator that supplies the iovcc voltage + vdd-supply:
Quoted 8 lines
Documentation/devicetree/bindings/display/panel/elida,kd35t133.yaml line 29
Quoted 6 lines
Documentation/devicetree/bindings/display/panel/elida,kd35t133.yaml new file +6
-0+ description: regulator that supplies the vdd voltage + +required: + - compatible + - reg + - backlightIs backlight really required? If it is tied to for example vcc then there is nothing to express in the DT.
Not sure I follow. On the Odroid Go Advance (device in question) the backlight is provided by a (adjustable) pwm-backlight.
So of course for probability it is not required by at least to make the display usable it is ;-)
Heiko
Quoted 24 lines
Sam
Quoted 20 lines
Documentation/devicetree/bindings/display/panel/elida,kd35t133.yaml new file +20
-0+ - iovcc-supply + - vdd-supply + +additionalProperties: false + +examples: + - | + dsi@ff450000 { + #address-cells = <1>; + #size-cells = <0>; + panel@0 { + compatible = "elida,kd35t133"; + reg = <0>; + backlight = <&backlight>; + iovcc-supply = <&vcc_1v8>; + vdd-supply = <&vcc3v3_lcd>; + }; + }; + +...
Heiko Stuebner
maintainerPATCH v2 3/3 drm/panel: add panel driver for Elida KD35T133 panels
In reply to Heiko StuebnerFrom: Heiko Stuebner <heiko.stuebner-SN7IsUiht6C/[email protected]>
Panel driver for the KD35T133 display from Elida, used for example in the rk3326-based Odroid Go Advance handheld.
changes in v2:
- rename dsi_generic_write_seq macro to dsi_dcs_write_seq to honor the underlying mipi_dsi_dcs_write (Robin)
--- drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-elida-kd35t133.c | 352 +++++++++++++++++++ 3 files changed, 363 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-elida-kd35t133.c
drivers/gpu/drm/panel/Kconfig +10 -0
@@ -50,6 +50,16 @@ config DRM_PANEL_SIMPLE that it can be automatically turned off when the panel goes into a low power state. +config DRM_PANEL_ELIDA_KD35T133 + tristate "Elida KD35T133 panel driver" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for the Elida + KD35T133 controller for 320x480 LCD panels with MIPI-DSI + system interfaces. + config DRM_PANEL_FEIYANG_FY07024DI26A30D tristate "Feiyang FY07024DI26A30-D MIPI-DSI LCD panel" depends on OF
drivers/gpu/drm/panel/Makefile +1 -0
@@ -3,6 +3,7 @@ obj-$(CONFIG_DRM_PANEL_ARM_VERSATILE) += panel-arm-versatile.o obj-$(CONFIG_DRM_PANEL_BOE_HIMAX8279D) += panel-boe-himax8279d.o obj-$(CONFIG_DRM_PANEL_LVDS) += panel-lvds.o obj-$(CONFIG_DRM_PANEL_SIMPLE) += panel-simple.o +obj-$(CONFIG_DRM_PANEL_ELIDA_KD35T133) += panel-elida-kd35t133.o obj-$(CONFIG_DRM_PANEL_FEIYANG_FY07024DI26A30D) += panel-feiyang-fy07024di26a30d.o obj-$(CONFIG_DRM_PANEL_ILITEK_IL9322) += panel-ilitek-ili9322.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9881C) += panel-ilitek-ili9881c.o
drivers/gpu/drm/panel/panel-elida-kd35t133.c new file +352 -0
352 lines not on this page · raw message
Signature · 1 line
2.24.1
Re: [PATCH v2 3/3] drm/panel: add panel driver for Elida KD35T133 panels
Hi Heiko.
Quoted 10 lines · Heiko Stuebner
From: Heiko Stuebner <heiko.stuebner-SN7IsUiht6C/[email protected]>
Panel driver for the KD35T133 display from Elida, used for example in the rk3326-based Odroid Go Advance handheld.
changes in v2:
- renamedsi_generic_write_seqmacro todsi_dcs_write_seqto honor the underlyingmipi_dsi_dcs_write(Robin)
Driver looks good. One small nit.
With or without this addressed:
Until we have the vendor prefix applied I cannot apply the binding and thus this driver.
Ping me when we have the vendor prefix applied.
Sam
Quoted 61 lines
--- drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-elida-kd35t133.c | 352 +++++++++++++++++++ 3 files changed, 363 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-elida-kd35t133.cdrivers/gpu/drm/panel/Kconfig +10
-0@@ -50,6 +50,16 @@ config DRM_PANEL_SIMPLE that it can be automatically turned off when the panel goes into a low power state. +config DRM_PANEL_ELIDA_KD35T133 + tristate "Elida KD35T133 panel driver" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for the Elida + KD35T133 controller for 320x480 LCD panels with MIPI-DSI + system interfaces. + config DRM_PANEL_FEIYANG_FY07024DI26A30D tristate "Feiyang FY07024DI26A30-D MIPI-DSI LCD panel" depends on OFdrivers/gpu/drm/panel/Makefile +1
-0@@ -3,6 +3,7 @@ obj-$(CONFIG_DRM_PANEL_ARM_VERSATILE) += panel-arm-versatile.o obj-$(CONFIG_DRM_PANEL_BOE_HIMAX8279D) += panel-boe-himax8279d.o obj-$(CONFIG_DRM_PANEL_LVDS) += panel-lvds.o obj-$(CONFIG_DRM_PANEL_SIMPLE) += panel-simple.o +obj-$(CONFIG_DRM_PANEL_ELIDA_KD35T133) += panel-elida-kd35t133.o obj-$(CONFIG_DRM_PANEL_FEIYANG_FY07024DI26A30D) += panel-feiyang-fy07024di26a30d.o obj-$(CONFIG_DRM_PANEL_ILITEK_IL9322) += panel-ilitek-ili9322.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9881C) += panel-ilitek-ili9881c.odrivers/gpu/drm/panel/panel-elida-kd35t133.c new file +15
-0@@ -0,0 +1,352 @@ +// SPDX-License-Identifier: GPL-2.0 +/* +* Elida kd35t133 5.5" MIPI-DSI panel driver +* Copyright (C) 2020 Theobroma Systems Design und Consulting GmbH +* +* based on +* +* Rockteck jh057n00900 5.5" MIPI-DSI panel driver +* Copyright (C) Purism SPC 2019 +*/ + +#include <drm/drm_mipi_dsi.h> +#include <drm/drm_modes.h> +#include <drm/drm_panel.h> +#include <drm/drm_print.h>
drivers/gpu/drm/panel/panel-elida-kd35t133.c line 25
Quoted 10 lines
drivers/gpu/drm/panel/panel-elida-kd35t133.c new file +10
-0+ +#include <video/display_timing.h> +#include <video/mipi_display.h> + +#include <linux/delay.h> +#include <linux/gpio/consumer.h> +#include <linux/media-bus-format.h> +#include <linux/module.h> +#include <linux/of.h> +#include <linux/regulator/consumer.h>
We usually order this:
#include <linux/*>
#include <video/*>
#include <drm/*>
And sorted within each block as you already did.
Quoted 7 lines
drivers/gpu/drm/panel/panel-elida-kd35t133.c new file +7
-0+ +/* Manufacturer specific Commands send via DSI */ +#define KD35T133_CMD_INTERFACEMODECTRL 0xb0 +#define KD35T133_CMD_FRAMERATECTRL 0xb1 +#define KD35T133_CMD_DISPLAYINVERSIONCTRL 0xb4 +#define KD35T133_CMD_DISPLAYFUNCTIONCTRL 0xb6 +#define KD35T133_CMD_POWERCONTROL1 0xc0
Quoted 5 lines · Heiko Stuebner
From: Heiko Stuebner <heiko.stuebner-SN7IsUiht6C/[email protected]>
Shenzen Elida Technology Co. Ltd. is a Chinese TFT manufacturer.
Quoted 19 lines
--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/vendor-prefixes.yaml +2
-0@@ -285,6 +285,8 @@ patternProperties: description: Elan Microelectronic Corp. "^elgin,.*": description: Elgin S/A. + "^elida,.*": + description: Shenzhen Elida Technology Co., Ltd. "^embest,.*": description: Shenzhen Embest Technology Co., Ltd. "^emlid,.*":Signature · 1 line
2.24.1