drm/panel: simple: Add support for Winstar WF35LTIACD
Subsystems (4)
PATCH v2 2/2 drm/panel: simple: Add support for Winstar WF35LTIACD
This adds support for the Winstar Display Co. WF35LTIACD 3.5" QVGA TFT LCD panel, which can be supported by the simple panel driver.
---
Changes since v1:
Add power-supply property and an example in documentation
.../bindings/display/panel/winstar,wf35ltiacd | 53 ++++++++++++++++++++++ drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd
Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd new file +53 -0
@@ -0,0 +1,53 @@ +Winstar Display Corporation 3.5" QVGA (320x240) TFT LCD panel + +Required properties: +- compatible: should be "winstar,wf35ltiacd" +- power-supply: regulator to provide the VCC supply voltage (3.3 volts) + +This binding is compatible with the simple-panel binding, which is specified +in simple-panel.txt in this directory. + +Example: + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&hlcdc_pwm 0 50000 PWM_POLARITY_INVERTED>; + brightness-levels = <0 31 63 95 127 159 191 223 255>; + default-brightness-level = <191>; + power-supply = <&bl_reg>; + status = "okay"; + }; + + bl_reg: backlight_regulator { + compatible = "regulator-fixed"; + regulator-name = "backlight-power-supply"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + status = "okay"; + }; + + panel: panel { + compatible = "winstar,wf35ltiacd", "simple-panel"; + backlight = <&backlight>; + power-supply = <&panel_reg>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + port@0 { + #address-cells = <1>; + #size-cells = <0>; + + panel_input: endpoint@0 { + reg = <0>; + remote-endpoint = <&hlcdc_panel_output>; + }; + }; + }; + + panel_reg: panel_regulator { + compatible = "regulator-fixed"; + regulator-name = "panel-power-supply"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + status = "okay"; + };
drivers/gpu/drm/panel/panel-simple.c +28 -0
@@ -1713,6 +1713,31 @@ static const struct panel_desc urt_umsh_8596md_parallel = { .bus_format = MEDIA_BUS_FMT_RGB666_1X18, }; +static const struct drm_display_mode winstar_wf35ltiacd_mode = { + .clock =6410 , + .hdisplay =320 , + .hsync_start =320 +20 , + .hsync_end =320 +20 +30 , + .htotal =320 +20 +30 +38 , + .vdisplay =240 , + .vsync_start =240 +4 , + .vsync_end =240 +4 +3 , + .vtotal =240 +4 +3 +15 , + .vrefresh =60 , + .flags =DRM_MODE_FLAG_NVSYNC |DRM_MODE_FLAG_NHSYNC , +}; + +static const struct panel_desc winstar_wf35ltiacd = { + .modes = &winstar_wf35ltiacd_mode, + .num_modes =1 , + .bpc =8 , + .size = { + .width =70 , + .height =53 , + }, + .bus_format =MEDIA_BUS_FMT_RGB888_1X24 , +}; +static const struct of_device_id platform_of_match[] = { { .compatible ="ampire,am800480r3tmqwa1h" ,
@@ -1892,6 +1917,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "urt,umsh-8596md-20t", .data = &urt_umsh_8596md_parallel, }, { + .compatible = "winstar,wf35ltiacd", + .data = &winstar_wf35ltiacd, + }, {/* sentinel */ } };
Quoted 27 lines · Richard Genoud
This adds support for the Winstar Display Co. WF35LTIACD 3.5" QVGA TFT LCD panel, which can be supported by the simple panel driver.
Signed-off-by Richard Genoud <[email protected]>---
Changes since v1:
Add power-supply property and an example in documentation.../bindings/display/panel/winstar,wf35ltiacd | 53 ++++++++++++++++++++++ drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacdDocumentation/devicetree/bindings/display/panel/winstar,wf35ltiacd new file +7
-0@@ -0,0 +1,53 @@ +Winstar Display Corporation 3.5" QVGA (320x240) TFT LCD panel + +Required properties: +- compatible: should be "winstar,wf35ltiacd" +- power-supply: regulator to provide the VCC supply voltage (3.3 volts) + +This binding is compatible with the simple-panel binding, which is specified
Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd line 17
Quoted 10 lines
Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd new file +10
-0+in simple-panel.txt in this directory. + +Example: + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&hlcdc_pwm 0 50000 PWM_POLARITY_INVERTED>; + brightness-levels = <0 31 63 95 127 159 191 223 255>; + default-brightness-level = <191>; + power-supply = <&bl_reg>; + status = "okay";
Drop status from examples.
Quoted 14 lines
Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd new file +14
-0+ }; + + bl_reg: backlight_regulator { + compatible = "regulator-fixed"; + regulator-name = "backlight-power-supply"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + status = "okay"; + }; + + panel: panel { + compatible = "winstar,wf35ltiacd", "simple-panel"; + backlight = <&backlight>; + power-supply = <&panel_reg>;
Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd line 41
Quoted 10 lines
Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd new file +10
-0+ #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + port@0 { + #address-cells = <1>; + #size-cells = <0>; + + panel_input: endpoint@0 { + reg = <0>;
You don't need reg and unit-addresses for these.
With that,
Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd line 53
Quoted 12 lines
Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd new file +12
-0+ remote-endpoint = <&hlcdc_panel_output>; + }; + }; + }; + + panel_reg: panel_regulator { + compatible = "regulator-fixed"; + regulator-name = "panel-power-supply"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + status = "okay"; + };
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
2017-03-24 16:58 GMT+01:00 Rob Herring <[email protected]>:
Quoted 68 lines · Richard Genoud
Quoted 27 lines
This adds support for the Winstar Display Co. WF35LTIACD 3.5" QVGA TFT LCD panel, which can be supported by the simple panel driver.
Signed-off-by Richard Genoud <[email protected]>---
Changes since v1:
Add power-supply property and an example in documentation.../bindings/display/panel/winstar,wf35ltiacd | 53 ++++++++++++++++++++++ drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacdDocumentation/devicetree/bindings/display/panel/winstar,wf35ltiacd new file +7
-0@@ -0,0 +1,53 @@ +Winstar Display Corporation 3.5" QVGA (320x240) TFT LCD panel + +Required properties: +- compatible: should be "winstar,wf35ltiacd" +- power-supply: regulator to provide the VCC supply voltage (3.3 volts) + +This binding is compatible with the simple-panel binding, which is specifiedDocumentation/devicetree/bindings/display/panel/winstar,wf35ltiacd line 17
Quoted 10 lines
Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd new file +10
-0+in simple-panel.txt in this directory. + +Example: + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&hlcdc_pwm 0 50000 PWM_POLARITY_INVERTED>; + brightness-levels = <0 31 63 95 127 159 191 223 255>; + default-brightness-level = <191>; + power-supply = <&bl_reg>; + status = "okay";Drop status from examples.
Quoted 14 lines
Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd new file +14
-0+ }; + + bl_reg: backlight_regulator { + compatible = "regulator-fixed"; + regulator-name = "backlight-power-supply"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + status = "okay"; + }; + + panel: panel { + compatible = "winstar,wf35ltiacd", "simple-panel"; + backlight = <&backlight>; + power-supply = <&panel_reg>;Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd line 41
Quoted 10 lines
Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd new file +10
-0+ #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + port@0 { + #address-cells = <1>; + #size-cells = <0>; + + panel_input: endpoint@0 { + reg = <0>;You don't need reg and unit-addresses for these.
Quoted 4 lines
With that,
Acked-by Rob Herring <[email protected]>
Ok, I'll resend the patch with reg and unit-addresses removed.
Thanks !
Quoted 4 lines
Quoted 4 lines
Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd new file +4
-0+ remote-endpoint = <&hlcdc_panel_output>; + }; + }; + };
Quoted 8 lines
Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd line 53
Quoted 8 lines
Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd new file +8
-0+ + panel_reg: panel_regulator { + compatible = "regulator-fixed"; + regulator-name = "panel-power-supply"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + status = "okay"; + };
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html