video: drm: Add Device tree support to DRM-FIMD
v2 cover video: drm: Add Device tree support to DRM-FIMD
This patch set adds device tree support for DRM-FIMD for Samsung's Exynos5250. It includes parsing platform data from dts file.
This patchset is based and tested on top of v3.5-rc6
Changes since V1:
- Corrected typo errors and changed compatibility string
Leela Krishna Amudala (1):
video: drm: exynos: Add device tree support
Prathyush K (1):
drm/exynos: Modifying exynos drm fimd to support exynos5
Documentation/devicetree/bindings/fb/drm-fimd.txt | 73 +++++++++++++++ drivers/gpu/drm/exynos/exynos_drm_fimd.c | 101 ++++++++++++++++++++- 2 files changed, 171 insertions(+), 3 deletions(-) create mode 100644 Documentation/devicetree/bindings/fb/drm-fimd.txt
PATCH v2 1/2 video: drm: exynos: Add device tree support
Add device tree based discovery support for DRM-FIMD driver.
--- Documentation/devicetree/bindings/fb/drm-fimd.txt | 73 +++++++++++++++++ drivers/gpu/drm/exynos/exynos_drm_fimd.c | 88 ++++++++++++++++++++- 2 files changed, 159 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/fb/drm-fimd.txt
Documentation/devicetree/bindings/fb/drm-fimd.txt new file +73 -0
@@ -0,0 +1,73 @@ +* Samsung Display Controller using DRM frame work + +The display controller is used to transfer image data from memory to an +external LCD driver interface. It supports various color formats such as +rgb and yuv. + +Required properties: + - compatible: Should be "samsung,exynos5-drm" for fimd using DRM frame work. + - reg: physical base address of the controller and length of memory + mapped region. + - interrupts: Three interrupts should be specified. The interrupts should be + specified in the following order. + - VSYNC interrupt + - FIFO level interrupt + - FIMD System Interrupt + + - samsung,fimd-display: This property should specify the phandle of the + display device node which holds the video interface timing with the + below mentioned properties. + + - lcd-htiming: Specifies the horizontal timing for the overlay. The + horizontal timing includes four parameters in the following order. + + - horizontal back porch (in number of lcd clocks) + - horizontal front porch (in number of lcd clocks) + - hsync pulse width (in number of lcd clocks) + - Display panels X resolution. + + - lcd-vtiming: Specifies the vertical timing for the overlay. The + vertical timing includes four parameters in the following order. + + - vertical back porch (in number of lcd lines) + - vertical front porch (in number of lcd lines) + - vsync pulse width (in number of lcd clocks) + - Display panels Y resolution. + + + - samsung,default-window: Specifies the default window number of the fimd controller. + + - samsung,fimd-win-bpp: Specifies the bits per pixel. + +Optional properties: + - supports-mipi-panel: Specifies the lcd is mipi panel type + - samsung,fimd-vidout-rgb: Video output format is RGB. + - samsung,fimd-inv-vclk: invert video clock polarity. + - samsung,fimd-frame-rate: Number of video frames per second. + +Example: + + The following is an example for the fimd controller is split into + two portions. The SoC specific portion can be specified in the SoC + specific dts file. The board specific portion can be specified in the + board specific dts file. + + - SoC Specific portion + + lcd_fimd0: lcd_panel0 { + lcd-htiming = <4 4 4 480>; + lcd-vtiming = <4 4 4 320>; + supports-mipi-panel; + }; + + - Board Specific portion + + fimd { + samsung,fimd-display = <&lcd_fimd0>; + samsung,fimd-vidout-rgb; + samsung,fimd-inv-vclk; + samsung,fimd-frame-rate = <60>; + samsung,default-window = <0>; + samsung,fimd-win-bpp = <32>; + }; +
drivers/gpu/drm/exynos/exynos_drm_fimd.c +86 -2
122 lines not on this page · raw message
Signature · 1 line
1.7.0.4
PATCH v2 2/2 drm/exynos: Modifying exynos drm fimd to support exynos5
In reply to Leela Krishna AmudalaFrom: Prathyush K <[email protected]>
The name of the exynos drm fimd device is renamed to exynos-drm-fimd and two ids are created from exynos4-fb and exynos5-fb.
--- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-)
drivers/gpu/drm/exynos/exynos_drm_fimd.c +12 -1
@@ -1089,6 +1089,16 @@ static const struct of_device_id drm_fimd_dt_match[] = {MODULE_DEVICE_TABLE (of, drm_fimd_dt_match);#endif +static struct platform_device_id exynos_drm_driver_ids[] = { + { + .name ="exynos4-fb" , + }, { + .name ="exynos5-fb" , + }, + {}, +}; +MODULE_DEVICE_TABLE (platform, exynos_drm_driver_ids); +static const struct dev_pm_ops fimd_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(fimd_suspend, fimd_resume)SET_RUNTIME_PM_OPS (fimd_runtime_suspend, fimd_runtime_resume,NULL )
@@ -1097,8 +1107,9 @@ static const struct dev_pm_ops fimd_pm_ops = {struct platform_driver fimd_driver = { .probe = fimd_probe, .remove =__devexit_p (fimd_remove), + .id_table = exynos_drm_driver_ids, .driver = { - .name ="exynos4-fb" , + .name ="exynos-drm-fimd" , .owner =THIS_MODULE , .pm = &fimd_pm_ops, .of_match_table =of_match_ptr (drm_fimd_dt_match),
Signature · 1 line
1.7.0.4
2012/7/11, Leela Krishna Amudala <[email protected]>:
Quoted 12 lines
This patch set adds device tree support for DRM-FIMD for Samsung's Exynos5250.
It includes parsing platform data from dts file.This patchset is based and tested on top of v3.5-rc6
Changes since V1:
- Corrected typo errors and changed compatibility stringLeela Krishna Amudala (1):
video: drm: exynos: Add device tree support
Quoted 9 lines
Prathyush K (1):
drm/exynos: Modifying exynos drm fimd to support exynos5Documentation/devicetree/bindings/fb/drm-fimd.txt | 73 +++++++++++++++ drivers/gpu/drm/exynos/exynos_drm_fimd.c | 101 ++++++++++++++++++++- 2 files changed, 171 insertions(+), 3 deletions(-) create mode 100644 Documentation/devicetree/bindings/fb/drm-fimd.txt
I'm sorry for being late. I was so busy. your patch set should be tested on our target(based on exynos5) and then it will be reviewed and merged to exynos-drm-next soon if there is no any problem.
Thanks,
Inki Dae
Quoted 5 lines
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
A message that is not in the archive (sent off-list or not yet received): CAAQKjZN0tE=Kfeco434JO3ynkap5d-W6et6VoZjD=eR3USGHGw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 25 lines · InKi Dae
2012/7/11, Leela Krishna Amudala <[email protected]>:
Quoted 15 lines
This patch set adds device tree support for DRM-FIMD for Samsung's Exynos5250.
It includes parsing platform data from dts file.This patchset is based and tested on top of v3.5-rc6
Changes since V1:
- Corrected typo errors and changed compatibility stringLeela Krishna Amudala (1):
video: drm: exynos: Add device tree supportPrathyush K (1):
drm/exynos: Modifying exynos drm fimd to support exynos5Quoted 7 lines
Documentation/devicetree/bindings/fb/drm-fimd.txt | 73 +++++++++++++++ drivers/gpu/drm/exynos/exynos_drm_fimd.c | 101 ++++++++++++++++++++- 2 files changed, 171 insertions(+), 3 deletions(-) create mode 100644 Documentation/devicetree/bindings/fb/drm-fimd.txt
Quoted 8 lines
I'm sorry for being late. I was so busy. your patch set should be tested on our target(based on exynos5) and then it will be reviewed and merged to exynos-drm-next soon if there is no any problem.
Thanks,
Inki Dae
I have tested this patchset over smdk5250 board and seen the boot logo also.
Thanks,
Leela Krishna Amudala
Quoted 9 lines
Quoted 5 lines
_______________________________________________
dri-devel mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel_______________________________________________
dri-devel mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi,
Quoted 5 lines · Leela Krishna Amudala
This patch set adds device tree support for DRM-FIMD for Samsung's Exynos5250. It includes parsing platform data from dts file.
This patchset is based and tested on top of v3.5-rc6
Quoted 8 lines
Changes since V1:
- Corrected typo errors and changed compatibility stringLeela Krishna Amudala (1):
video: drm: exynos: Add device tree supportPrathyush K (1):
drm/exynos: Modifying exynos drm fimd to support exynos5
This patch is not related with device tree. Please send a patch without dependency with "video: drm: exynos: Add device tree support".
Thanks.
Quoted 11 lines
Documentation/devicetree/bindings/fb/drm-fimd.txt | 73 +++++++++++++++ drivers/gpu/drm/exynos/exynos_drm_fimd.c | 101 ++++++++++++++++++++- 2 files changed, 171 insertions(+), 3 deletions(-)create mode 100644
Documentation/devicetree/bindings/fb/drm-fimd.txt_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel