add Display support for exynos3250 Rinato board
Subsystems (5)
cover add Display support for exynos3250 Rinato board
This patch series adds Display support for exynos3250 Rinato board. For this, it adds fimd, MIPI-DSI and Panel device nodes to exynos3250-rinato dts file, and adds a s6e63j0x03 Amoled panel device driver which is based on MIPI-DSI bus.
Inki Dae (3):
ARM: dts: add fimd device support for exynos3250-rinato drm/panel: add s6e63j0x03 LCD Panel driver
ARM: dts: add Panel device support for exynos3250-rinato
arch/arm/boot/dts/exynos3250-rinato.dts | 70 +++ drivers/gpu/drm/panel/Kconfig | 6 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-s6e63j0x03.c | 693 ++++++++++++++++++++++++++++++ 4 files changed, 770 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-s6e63j0x03.c
Signature · 1 line
1.7.9.5
PATCH 1/3 ARM: dts: add fimd device support for exynos3250-rinato
This patch adds fimd device node which is a display controller for Exynos3250 Rinato board.
--- arch/arm/boot/dts/exynos3250-rinato.dts | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/arm/boot/dts/exynos3250-rinato.dts +11 -0
@@ -125,6 +125,17 @@ }; }; +&fimd { + status = "okay"; + + i80-if-timings { + cs-setup = <0>; + wr-setup = <0>; + wr-act = <1>; + wr-hold = <0>; + }; +}; + &i2c_0 { #address-cells = <1>; #size-cells = <0>;
Signature · 6 lines
1.7.9.5 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/3 drm/panel: add s6e63j0x03 LCD Panel driver
In reply to Inki DaeThis patch adds MIPI-DSI based S6E63J0X03 AMOLED LCD Panel driver which uses mipi_dsi bus to communicate with Panel.
--- drivers/gpu/drm/panel/Kconfig | 6 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-s6e63j0x03.c | 693 ++++++++++++++++++++++++++++++ 3 files changed, 700 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-s6e63j0x03.c
drivers/gpu/drm/panel/Kconfig +6 -0
@@ -27,4 +27,10 @@ config DRM_PANEL_S6E8AA0 select DRM_MIPI_DSI select VIDEOMODE_HELPERS +config DRM_PANEL_S6E63J0X03 + tristate "S6E63J0X03 DSI video mode panel" + depends on OF + select DRM_MIPI_DSI + select VIDEOMODE_HELPERS + endmenu
drivers/gpu/drm/panel/Makefile +1 -0
@@ -1,3 +1,4 @@ obj-$(CONFIG_DRM_PANEL_SIMPLE) += panel-simple.o obj-$(CONFIG_DRM_PANEL_LD9040) += panel-ld9040.o obj-$(CONFIG_DRM_PANEL_S6E8AA0) += panel-s6e8aa0.o +obj-$(CONFIG_DRM_PANEL_S6E63J0X03) += panel-s6e63j0x03.o
drivers/gpu/drm/panel/panel-s6e63j0x03.c new file +693 -0
693 lines not on this page · raw message
Signature · 6 lines
1.7.9.5 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 3/3 ARM: dts: add Panel device support for exynos3250-rinato
In reply to Inki DaeThis patch adds MIPI-DSI and MIPI-DSI based S6E63J0X03 AMOLED panel device nodes for Exynos3250 Rinato board.
--- arch/arm/boot/dts/exynos3250-rinato.dts | 59 +++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+)
arch/arm/boot/dts/exynos3250-rinato.dts +59 -0
@@ -125,6 +125,65 @@ }; }; +&dsi_0 { + vddcore-supply = <&ldo6_reg>; + vddio-supply = <&ldo6_reg>; + samsung,pll-clock-frequency = <24000000>; + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@1 { + reg = <1>; + + dsi_out: endpoint { + remote-endpoint = <&dsi_in>; + samsung,burst-clock-frequency = <250000000>; + samsung,esc-clock-frequency = <20000000>; + }; + }; + }; + + panel@0 { + compatible = "samsung,s6e63j0x03"; + reg = <0>; + vdd3-supply = <&ldo16_reg>; + vci-supply = <&ldo20_reg>; + reset-gpios = <&gpe0 1 0>; + te-gpios = <&gpx0 6 0>; + power-on-delay= <30>; + power-off-delay= <120>; + reset-delay = <5>; + init-delay = <100>; + flip-horizontal; + flip-vertical; + panel-width-mm = <29>; + panel-height-mm = <29>; + + display-timings { + timing-0 { + clock-frequency = <0>; + hactive = <320>; + vactive = <320>; + hfront-porch = <1>; + hback-porch = <1>; + hsync-len = <1>; + vfront-porch = <150>; + vback-porch = <1>; + vsync-len = <2>; + }; + }; + + port { + dsi_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + }; +}; + &fimd { status = "okay";
Signature · 6 lines
1.7.9.5 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 2/3] drm/panel: add s6e63j0x03 LCD Panel driver
In reply to Inki DaeQuoted 2 lines · Inki Dae
This patch adds MIPI-DSI based S6E63J0X03 AMOLED LCD Panel driver which uses
mipi_dsibus to communicate with Panel.
s/Panel/panel/. Also I prefer to have more information in the commit message than this. Physical size and resolution would be good. Also a small comment as to which device this panel can be found in would be good.
Quoted 17 lines
drivers/gpu/drm/panel/Kconfig +6
-0+config DRM_PANEL_S6E63J0X03 + tristate "S6E63J0X03 DSI video mode panel" + depends on OF + select DRM_MIPI_DSI + select VIDEOMODE_HELPERS + endmenudrivers/gpu/drm/panel/Makefile +1
-0@@ -1,3 +1,4 @@ obj-$(CONFIG_DRM_PANEL_SIMPLE) += panel-simple.o obj-$(CONFIG_DRM_PANEL_LD9040) += panel-ld9040.o obj-$(CONFIG_DRM_PANEL_S6E8AA0) += panel-s6e8aa0.o +obj-$(CONFIG_DRM_PANEL_S6E63J0X03) += panel-s6e63j0x03.odrivers/gpu/drm/panel/panel-s6e63j0x03.c +0
-0
[...]
Quoted 4 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +4
-0+struct s6e63j0x03 { +struct device *dev; +struct drm_panel panel; +struct backlight_device *bl_dev;
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 54
Quoted 10 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +10
-0+ +struct regulator_bulk_data supplies[2 ]; +struct gpio_desc *reset_gpio; +u32 power_on_delay; +u32 power_off_delay; +u32 reset_delay; +u32 init_delay; +bool flip_horizontal; +bool flip_vertical; +struct videomode vm;
Specifying the video mode in DT should be optional and only used to override the default mode provided by the driver.
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 56
Quoted 2 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +2
-0+u32 width_mm; +u32 height_mm;
There's no need for these to be sized types. unsigned int will do just fine.
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 58
Quoted 1 line
drivers/gpu/drm/panel/panel-s6e63j0x03.c +1
-0+int power;
What's the difference between this and bl_dev->properties.power?
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 65
Quoted 7 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +7
-0+ +/* This field is tested by functions directly accessing DSI bus before +* transfer, transfer is skipped if it is set. In case of transfer +* failure or unexpected response the field is set to error value. +* Such construct allows to eliminate many checks in higher level +* functions. +*/
The format of this comment is wrong, it should be:
/* * ... */
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 69
Quoted 4 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +4
-0+int error; +}; + +static const unsigned char GAMMA_10 [] = {
...
These array names should not be all-caps.
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 144
Quoted 13 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +13
-0+static const unsigned char *gamma_tbl[MAX_GAMMA_CNT ] = { +GAMMA_10 , +GAMMA_30 , +GAMMA_60 , +GAMMA_90 , +GAMMA_120 , +GAMMA_150 , +GAMMA_200 , +GAMMA_200 , +GAMMA_240 , +GAMMA_300 , +GAMMA_300 +};
Why not just do this using a two-dimensional array?
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 157
Quoted 13 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +13
-0+ +static inline struct s6e63j0x03 *panel_to_s6e63j0x03 (struct drm_panel *panel) +{ + return container_of(panel, struct s6e63j0x03, panel); +} + +static int s6e63j0x03_clear_error (struct s6e63j0x03 *ctx) +{ +int ret = ctx->error; + + ctx->error =0 ; +return ret; +}
The only place where you ever call this ignores the return value.
Quoted 6 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +6
-0+ +static void s6e63j0x03_dcs_write (struct s6e63j0x03 *ctx,const void *data,size_t len) +{ +struct mipi_dsi_device *dsi =to_mipi_dsi_device (ctx->dev); +int ret; +
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 173
Quoted 10 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +10
-0+if (ctx->error <0 ) +return ; + + ret =mipi_dsi_dcs_write (dsi, data, len); +if (ret <0 ) { +dev_err (ctx->dev,"error %d writing dcs seq: %*ph\n" , ret, len, + data); + ctx->error = ret; + } +}
The only reason for these wrappers seems to be the ctx->error handling. But that error handling is flawed because it silently ignores errors. The only location where you check for errors is in .prepare(), but you only do so after all commands have been executed, so you loose all context about what exactly went wrong.
I'd prefer if the driver just did straightforward checking of all commands that could possibly fail.
Quoted 13 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +13
-0+static void s6e63j0x03_set_maximum_return_packet_size (struct s6e63j0x03 *ctx, +unsigned int size) +{ +struct mipi_dsi_device *dsi =to_mipi_dsi_device (ctx->dev); +const struct mipi_dsi_host_ops *ops = dsi->host->ops; + +if (ops && ops->transfer) { +unsigned char buf[] = {size,0 }; +struct mipi_dsi_msg msg = { + .channel = dsi->channel, + .type =MIPI_DSI_SET_MAXIMUM_RETURN_PACKET_SIZE , + .tx_len =sizeof (buf), + .tx_buf = buf
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 322
Quoted 10 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +10
-0+ }; +int ret; + + ret = ops->transfer (dsi->host, &msg); +if (ret <0 ) { +dev_err (ctx->dev,"failed to transfer message.\n" ); + ctx->error = ret; + } + } +}
Use mipi_dsi_set_maximum_return_packet_size().
Quoted 1 line
+static void
s6e63j0x03_set_sequence(struct s6e63j0x03 *ctx)
Can you find a better name for this? Also this is really only called by ->prepare() below, so why not just inline it there?
Quoted 9 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +9
-0+{ +/* Test key enable */ +s6e63j0x03_test_level_1_key_on (ctx); +s6e63j0x03_test_level_2_key_on (ctx); + +s6e63j0x03_porch_adjustment (ctx); +s6e63j0x03_frame_freq (ctx); +s6e63j0x03_frame_freq (ctx); +s6e63j0x03_mem_addr_set_0 (ctx);
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 363
Quoted 10 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +10
-0+s6e63j0x03_mem_addr_set_1 (ctx); + +s6e63j0x03_ltps_timming_set_0_60hz (ctx); +s6e63j0x03_ltps_timming_set_1 (ctx); + +s6e63j0x03_param_pos_te_edge (ctx); +s6e63j0x03_te_rising_edge (ctx); +s6e63j0x03_param_pos_default (ctx); + +s6e63j0x03_dcs_write_seq_static (ctx,MIPI_DCS_EXIT_SLEEP_MODE );
Use mipi_dsi_dcs_exit_sleep_mode().
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 375
Quoted 12 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +12
-0+msleep (120 ); + +/* etc condition setting */ +s6e63j0x03_elvss_cond (ctx); +s6e63j0x03_set_pos (ctx); + +/* brightness setting */ +s6e63j0x03_white_brightness_default (ctx); +s6e63j0x03_white_ctrl (ctx); +s6e63j0x03_acl_off (ctx); + +s6e63j0x03_dcs_write_seq_static (ctx,MIPI_DCS_SET_TEAR_ON );
Use mipi_dsi_dcs_set_tear_on().
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 379
Quoted 4 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +4
-0+s6e63j0x03_test_level_2_key_off (ctx); + +/* display on */ +s6e63j0x03_dcs_write_seq_static (ctx,MIPI_DCS_SET_DISPLAY_ON );
Use mipi_dsi_dcs_set_display_on().
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 421
Quoted 6 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +6
-0+static int s6e63j0x03_get_brightness (struct backlight_device *bl_dev) +{ +return bl_dev->props.brightness; +} + +static int s6e63j0x03_get_brightness_index (unsigned int brightness)
Should return unsigned int.
Quoted 18 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +18
-0+{ +int index; + +switch (brightness) { + case 0 ... 20: + index =0 ; +break ; + case 21 ... 40: + index =2 ; +break ; + case 41 ... 60: + index =4 ; +break ; + case 61 ... 80: + index =6 ; +break ; +default : + index =10 ;
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 449
Quoted 10 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +10
-0+break ; + } + +return index; +} + +static void s6e63j0x03_update_gamma (struct s6e63j0x03 *ctx, +unsigned int brightness) +{ +int index =s6e63j0x03_get_brightness_index (brightness);
And this should be unsigned, too, otherwise you'll need to test that it's non-negative before indexing the array.
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 466
Quoted 9 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +9
-0+static int s6e63j0x03_set_brightness (struct backlight_device *bl_dev) +{ +struct s6e63j0x03 *ctx = (struct s6e63j0x03 *)bl_get_data (bl_dev); +unsigned int brightness = bl_dev->props.brightness; + +if (brightness <MIN_BRIGHTNESS || + brightness > bl_dev->props.max_brightness) { +dev_err (ctx->dev,"brightness[%u] is invalid value\n" , + brightness);
Perhaps a more canonical error message would read: "Invalid brightness %u\n".
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 473
Quoted 7 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +7
-0+return -EINVAL ; + } + +if (ctx->power >FB_BLANK_UNBLANK ) { +dev_err (ctx->dev,"panel is not in fb unblank state\n" ); +return -EPERM ; + }
What does that have to do with anything? If the screen is blanked you could still set the brightness and have it in effect when the screen is unblanked, I presume?
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 485
Quoted 12 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +12
-0+ +s6e63j0x03_update_gamma (ctx, brightness); + +return 0 ; +} + +static const struct backlight_ops s6e63j0x03_bl_ops = { + .get_brightness = s6e63j0x03_get_brightness, + .update_status = s6e63j0x03_set_brightness, +}; + +
There's a gratuitous blank line here.
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 494
Quoted 9 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +9
-0+static int s6e63j0x03_enable (struct drm_panel *panel) +{ +return 0 ; +} + +static int s6e63j0x03_disable (struct drm_panel *panel) +{ +return 0 ; +}
These should typically enable or disable the backlight.
Quoted 6 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +6
-0+static int s6e63j0x03_prepare (struct drm_panel *panel) +{ +struct s6e63j0x03 *ctx =panel_to_s6e63j0x03 (panel); +int ret; + + ret =s6e63j0x03_power_on (ctx);
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 511
Quoted 10 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +10
-0+if (ret <0 ) +return ret; + +s6e63j0x03_read_mtp_id (ctx); + +s6e63j0x03_set_sequence (ctx); + ret = ctx->error; + +if (ret <0 ) +return s6e63j0x03_disable (panel);
No, you can't do this. While there's nothing enforcing this (yet), the panel can't be disabled before it's been prepared.
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 523
Quoted 12 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +12
-0+ + ctx->power =FB_BLANK_UNBLANK ; + +return ret; +} + +static int s6e63j0x03_unprepare (struct drm_panel *panel) +{ +struct s6e63j0x03 *ctx =panel_to_s6e63j0x03 (panel); +int ret; + +s6e63j0x03_dcs_write_seq_static (ctx,MIPI_DCS_SET_DISPLAY_OFF );
Use mipi_dsi_dcs_set_display_off().
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 524
Quoted 1 line
drivers/gpu/drm/panel/panel-s6e63j0x03.c +1
-0+s6e63j0x03_dcs_write_seq_static (ctx,MIPI_DCS_ENTER_SLEEP_MODE );
Use mipi_dsi_dcs_enter_sleep_mode().
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 533
Quoted 9 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +9
-0+ +s6e63j0x03_clear_error (ctx); + +usleep_range (ctx->power_off_delay *1000 , + (ctx->power_off_delay +1 ) *1000 ); + + ret =s6e63j0x03_power_off (ctx); +if (ret <0 ) +return s6e63j0x03_prepare (panel);
Huh? Why?
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 564
Quoted 7 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +7
-0+ + ctx->power =FB_BLANK_POWERDOWN ; + +return ret; +} + +static const struct drm_panel_funcs s6e63j0x03_drm_funcs = {
No need for "_drm" in the variable name here.
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 567
Quoted 3 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +3
-0+ .enable = s6e63j0x03_enable, + .disable = s6e63j0x03_disable, + .prepare= s6e63j0x03_prepare,
Missing space between '.prepare' and '='.
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 569
Quoted 2 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +2
-0+ .unprepare = s6e63j0x03_unprepare, + .get_modes = s6e63j0x03_get_modes,
Please order these in the same way as they are declared in the structure.
Quoted 4 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +4
-0+static int s6e63j0x03_parse_dt (struct s6e63j0x03 *ctx) +{ +struct device *dev = ctx->dev; +struct device_node *np = dev->of_node;
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 585
Quoted 10 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +10
-0+int ret; + + ret =of_get_videomode (np, &ctx->vm,0 ); +if (ret <0 ) +return ret; + +of_property_read_u32 (np,"power-on-delay" , &ctx->power_on_delay); +of_property_read_u32 (np,"power-off-delay" , &ctx->power_off_delay); +of_property_read_u32 (np,"reset-delay" , &ctx->reset_delay); +of_property_read_u32 (np,"init-delay" , &ctx->init_delay);
I take it that these are optional (I can't tell because you haven't provided a DT binding for this panel)?
Quoted 25 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +25
-0+static int s6e63j0x03_probe (struct mipi_dsi_device *dsi) +{ +struct device *dev = &dsi->dev; +struct s6e63j0x03 *ctx; +int ret; + + ctx =devm_kzalloc (dev,sizeof (struct s6e63j0x03 ),GFP_KERNEL ); +if (!ctx) +return -ENOMEM ; + +mipi_dsi_set_drvdata (dsi, ctx); + + ctx->dev = dev; + + dsi->lanes =1 ; + dsi->format =MIPI_DSI_FMT_RGB888 ; + dsi->mode_flags =MIPI_DSI_MODE_EOT_PACKET |MIPI_DSI_MODE_VIDEO_BURST ; + + ret =s6e63j0x03_parse_dt (ctx); +if (ret <0 ) +return ret; + + ctx->supplies[0 ].supply ="vdd3" ; + ctx->supplies[1 ].supply ="vci" ; + ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(ctx->supplies),
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 627
Quoted 10 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +10
-0+ ctx->supplies); +if (ret <0 ) { +dev_err (dev,"failed to get regulators: %d\n" , ret); +return ret; + } + + ctx->reset_gpio =devm_gpiod_get (dev,"reset" ,GPIOD_OUT_HIGH ); +if (IS_ERR (ctx->reset_gpio)) { +dev_err (dev,"cannot get reset-gpios %ld\n" , +PTR_ERR (ctx->reset_gpio));
"reset GPIO" since it's only one. Also please separate the error code from the rest of the message using a colon to make it more obvious that the number isn't the GPIO that could be gotten.
Quoted 7 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +7
-0+ ctx->bl_dev->props.max_brightness =MAX_BRIGHTNESS ; + ctx->bl_dev->props.brightness =DEFAULT_BRIGHTNESS ; + + ret =drm_panel_add (&ctx->panel); +if (ret <0 ) + goto err_unregister_backlight; +
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 660
Quoted 10 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +10
-0+ ret =mipi_dsi_attach (dsi); +if (ret <0 ) + goto err_remove_panel; + +return ret; + +err_remove_panel: +drm_panel_remove (&ctx->panel); + +err_unregister_backlight:
No need for the err_ prefix here.
Quoted 8 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +8
-0+backlight_device_unregister (ctx->bl_dev); + +return ret; +} + +static int s6e63j0x03_remove (struct mipi_dsi_device *dsi) +{ +struct s6e63j0x03 *ctx =mipi_dsi_get_drvdata (dsi);
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 678
Quoted 10 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +10
-0+ +mipi_dsi_detach (dsi); +drm_panel_remove (&ctx->panel); + +backlight_device_unregister (ctx->bl_dev); + +return 0 ; +} + +static struct of_device_id s6e63j0x03_of_match[] = {
static const please.
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 689
Quoted 11 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +11
-0+ { .compatible = "samsung,s6e63j0x03" }, + { } +}; +MODULE_DEVICE_TABLE (of, s6e63j0x03_of_match); + +static struct mipi_dsi_driver s6e63j0x03_driver = { + .probe = s6e63j0x03_probe, + .remove = s6e63j0x03_remove, + .driver = { + .name ="panel_s6e63j0x03" , + .owner =THIS_MODULE ,
It is no longer necessary to specify this explicitly.
drivers/gpu/drm/panel/panel-s6e63j0x03.c line 693
Quoted 4 lines
drivers/gpu/drm/panel/panel-s6e63j0x03.c +4
-0+ .of_match_table = s6e63j0x03_of_match, + }, +}; +module_mipi_dsi_driver (s6e63j0x03_driver);
You're missing MODULE_AUTHOR, MODULE_DESCRIPTION and MODULE_LICENSE here.
Thierry
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 1/3] ARM: dts: add fimd device support for exynos3250-rinato
In reply to Inki DaeQuoted 2 lines · Inki Dae
This patch adds fimd device node which is a display controller for Exynos3250 Rinato board.
Hi Kukjin,
Please, ping~
Thanks,
Inki Dae
Quoted 20 lines
Signed-off-by Inki Dae <[email protected]>Acked-by Kyungmin Park <[email protected]>--- arch/arm/boot/dts/exynos3250-rinato.dts | 11 +++++++++++ 1 file changed, 11 insertions(+)arch/arm/boot/dts/exynos3250-rinato.dts +4
-0@@ -125,6 +125,17 @@ }; }; +&fimd { + status = "okay"; + + i80-if-timings {
arch/arm/boot/dts/exynos3250-rinato.dts line 141
Quoted 10 lines
arch/arm/boot/dts/exynos3250-rinato.dts +7
-0+ cs-setup = <0>; + wr-setup = <0>; + wr-act = <1>; + wr-hold = <0>; + }; +}; + &i2c_0 { #address-cells = <1>; #size-cells = <0>;
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 3/3] ARM: dts: add Panel device support for exynos3250-rinato
In reply to Inki DaeQuoted 2 lines · Inki Dae
This patch adds MIPI-DSI and MIPI-DSI based S6E63J0X03 AMOLED panel device nodes for Exynos3250 Rinato board.
Hi Mr. Kukjin,
Please, ping~
Thanks,
Inki Dae
Quoted 68 lines
Signed-off-by Inki Dae <[email protected]>Acked-by Kyungmin Park <[email protected]>--- arch/arm/boot/dts/exynos3250-rinato.dts | 59 +++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+)arch/arm/boot/dts/exynos3250-rinato.dts +52
-0@@ -125,6 +125,65 @@ }; }; +&dsi_0 { + vddcore-supply = <&ldo6_reg>; + vddio-supply = <&ldo6_reg>; + samsung,pll-clock-frequency = <24000000>; + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@1 { + reg = <1>; + + dsi_out: endpoint { + remote-endpoint = <&dsi_in>; + samsung,burst-clock-frequency = <250000000>; + samsung,esc-clock-frequency = <20000000>; + }; + }; + }; + + panel@0 { + compatible = "samsung,s6e63j0x03"; + reg = <0>; + vdd3-supply = <&ldo16_reg>; + vci-supply = <&ldo20_reg>; + reset-gpios = <&gpe0 1 0>; + te-gpios = <&gpx0 6 0>; + power-on-delay= <30>; + power-off-delay= <120>; + reset-delay = <5>; + init-delay = <100>; + flip-horizontal; + flip-vertical; + panel-width-mm = <29>; + panel-height-mm = <29>; + + display-timings { + timing-0 { + clock-frequency = <0>; + hactive = <320>; + vactive = <320>; + hfront-porch = <1>; + hback-porch = <1>; + hsync-len = <1>; + vfront-porch = <150>; + vback-porch = <1>; + vsync-len = <2>; + }; + }; + + port {
arch/arm/boot/dts/exynos3250-rinato.dts line 189
Quoted 10 lines
arch/arm/boot/dts/exynos3250-rinato.dts +7
-0+ dsi_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + }; +}; + &fimd { status = "okay";
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 1/3] ARM: dts: add fimd device support for exynos3250-rinato
In reply to Inki DaeQuoted 26 lines · Inki Dae
Quoted 2 lines · Inki Dae
This patch adds fimd device node which is a display controller for Exynos3250 Rinato board.
Hi Kukjin,
Please, ping~
Thanks,
Inki DaeQuoted 15 lines
Signed-off-by Inki Dae <[email protected]>Acked-by Kyungmin Park <[email protected]>--- arch/arm/boot/dts/exynos3250-rinato.dts | 11 +++++++++++ 1 file changed, 11 insertions(+)arch/arm/boot/dts/exynos3250-rinato.dts +0
-0@@ -125,6 +125,17 @@ }; };
Quoted 15 lines
Quoted 5 lines
arch/arm/boot/dts/exynos3250-rinato.dts +4
-0+&fimd { + status = "okay"; + + i80-if-timings {arch/arm/boot/dts/exynos3250-rinato.dts line 141
Quoted 10 lines
arch/arm/boot/dts/exynos3250-rinato.dts +7
-0+ cs-setup = <0>; + wr-setup = <0>; + wr-act = <1>; + wr-hold = <0>; + }; +}; + &i2c_0 { #address-cells = <1>; #size-cells = <0>;
Applied this and 3rd one.
BTW, I can't see the "samsung,s6e63j0x03" support yet?
- Kukjin
Re: [PATCH 1/3] ARM: dts: add fimd device support for exynos3250-rinato
Quoted 37 lines · Kukjin Kim
Quoted 36 lines · Inki Dae
Quoted 2 lines · Inki Dae
This patch adds fimd device node which is a display controller for Exynos3250 Rinato board.
Hi Kukjin,
Please, ping~
Thanks,
Inki DaeQuoted 25 lines
Signed-off-by Inki Dae <[email protected]>Acked-by Kyungmin Park <[email protected]>--- arch/arm/boot/dts/exynos3250-rinato.dts | 11 +++++++++++ 1 file changed, 11 insertions(+)arch/arm/boot/dts/exynos3250-rinato.dts +10
-0@@ -125,6 +125,17 @@ }; }; +&fimd { + status = "okay"; + + i80-if-timings { + cs-setup = <0>; + wr-setup = <0>; + wr-act = <1>; + wr-hold = <0>; + }; +};
Quoted 8 lines
Quoted 5 lines
arch/arm/boot/dts/exynos3250-rinato.dts line 141
Quoted 5 lines
arch/arm/boot/dts/exynos3250-rinato.dts +1
-0+ &i2c_0 { #address-cells = <1>; #size-cells = <0>;Applied this and 3rd one.
BTW, I can't see the "samsung,s6e63j0x03" support yet?
I sent it with a separated patch Ccing you. You can refer to below link,
http://www.spinics.net/lists/linux-samsung-soc/msg39756.html
Thanks,
Inki Dae
Quoted 7 lines
- Kukjin
--
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
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel